summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/char-tex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/char-tex.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/char-tex.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/base/char-tex.lua b/Master/texmf-dist/tex/context/base/char-tex.lua
index 62bb6a04107..2093c6d6c68 100644
--- a/Master/texmf-dist/tex/context/base/char-tex.lua
+++ b/Master/texmf-dist/tex/context/base/char-tex.lua
@@ -286,6 +286,13 @@ local commandmapping = allocate {
texcharacters.commandmapping = commandmapping
+local ligaturemapping = allocate {
+ ["''"] = "”",
+ ["``"] = "“",
+ ["--"] = "–",
+ ["---"] = "—",
+}
+
-- local achar = R("az","AZ") + P("ı") + P("\\i")
--
-- local spaces = P(" ")^0
@@ -355,6 +362,9 @@ local function toutfpattern()
hash["{\\"..k.."}"] = v
hash["{\\"..k.." }"] = v
end
+ for k, v in next, ligaturemapping do
+ hash[k] = v
+ end
untex = utfchartabletopattern(hash) / hash
end
return untex