diff options
-rw-r--r-- | luaotfload.dtx | 15 | ||||
-rw-r--r-- | tests/anum.tex | 12 | ||||
-rw-r--r-- | tests/texligatures.tex | 7 |
3 files changed, 34 insertions, 0 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx index b08091a..ab8949c 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -323,6 +323,21 @@ and the derived files % |\font\test=Latin Modern Roman:protrusion=default| % \end{description} % +% \subparagraph{Non-standard font features} +% \textsf{luaotfload} defines some additional font feature not defined in +% OpenType, currently three features are defined: +% +% \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 (|`'"|). +% \end{itemize*} +% +% (For \xetex users: these last two are the equivalent of writing +% |mapping=text-tex| using \xetex's input remapping feature.) +% +% % \section{Font names database} % \label{sec:fontdb} % diff --git a/tests/anum.tex b/tests/anum.tex new file mode 100644 index 0000000..bfbee2f --- /dev/null +++ b/tests/anum.tex @@ -0,0 +1,12 @@ +\input luaotfload.sty + +\font\testa={name:dejavusans:script=arab;language=ara;+anum} +\font\testp={name:dejavusans:script=arab;language=far;+anum} +\font\tests={name:dejavusans:script=arab;language=snd;+anum} +\font\testu={name:dejavusans:script=arab;language=urd;+anum} + +\testa 0123456789\par +\testp 0123456789\par +\tests 0123456789\par +\testu 0123456789\par +\bye diff --git a/tests/texligatures.tex b/tests/texligatures.tex new file mode 100644 index 0000000..68b554c --- /dev/null +++ b/tests/texligatures.tex @@ -0,0 +1,7 @@ +\input luaotfload.sty + +\font\testa={file:lmroman10-regular: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 +\bye |