diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2012-02-26 18:05:30 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2012-02-26 18:33:32 +0200 |
commit | 820dae976c197221adf58fcea0d12d2f81e75dd2 (patch) | |
tree | 9e3bf506df72d2ef0c9d1848232f58e71349c8df | |
parent | 44edf674bc30f87263c01103774d60400b8b3915 (diff) | |
download | luaotfload-820dae976c197221adf58fcea0d12d2f81e75dd2.tar.gz |
Restore the rest of legacy TeX ligatures.
-rw-r--r-- | luaotfload.dtx | 7 | ||||
-rw-r--r-- | tests/texligatures.tex | 6 |
2 files changed, 8 insertions, 5 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx index fb32340..0e4745c 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -330,8 +330,8 @@ and the derived files % \begin{itemize*} % \item |anum|: replaces European numbers with eastern Arabic numbers or % Persian numbers, depending on the value of |language|. -% \item |tlig|: applies legacy \tex ligatures (|``''-- --|). -% \item |trep|: applies legacy \tex replacements (|`'|). +% \item |tlig|: applies legacy \tex ligatures (|`` '' -- -- !` ?`|). +% \item |trep|: applies legacy \tex replacements (|` ' "|). % \end{itemize*} % % (For \xetex users: these last two are the equivalent of writing @@ -608,9 +608,12 @@ local tlig = { [0x201C] = {0x0060, 0x0060}, -- quotedblleft [0x201D] = {0x0027, 0x0027}, -- quotedblright [0x201E] = {0x002C, 0x002C}, -- quotedblbase + [0x00A1] = {0x0021, 0x0060}, -- exclamdown + [0x00BF] = {0x003F, 0x0060}, -- questiondown } local trep = { + [0x0022] = 0x201D, -- quotedblright [0x0027] = 0x2019, -- quoteleft [0x0060] = 0x2018, -- quoteright } diff --git a/tests/texligatures.tex b/tests/texligatures.tex index 5d9d21c..bc1db70 100644 --- a/tests/texligatures.tex +++ b/tests/texligatures.tex @@ -1,7 +1,7 @@ \input luaotfload.sty -\font\testa={file:lmroman10-regular:script=latn;+tlig;+trep} at 10pt +\font\testa={file:lmroman10-regular:mode=base;script=latn;+tlig;+trep} at 10pt \font\testb={file:lmroman10-regular:mode=node;script=latn;+tlig;+trep} at 10pt -\testa ``fi `fl' ffi--ffl---ff'' \par -\testb ``fi `fl' ffi--ffl---ff'' \par +\testa ``fi `fl' ffi--ffl---ff'' !` ?` "\par +\testb ``fi `fl' ffi--ffl---ff'' !` ?` "\par \bye |