From 7b028b4346551f61450d42da5a52cdf85407674c Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Mon, 19 Dec 2011 20:15:20 +0200 Subject: Revert "tlig, trep and anum are no longer supported" This reverts commit b0786c4d31736f4421c2e71d655a1e407cfabd76. Conflicts: luaotfload.dtx --- luaotfload.dtx | 15 +++++++++++++++ tests/anum.tex | 12 ++++++++++++ tests/texligatures.tex | 7 +++++++ 3 files changed, 34 insertions(+) create mode 100644 tests/anum.tex create mode 100644 tests/texligatures.tex 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 -- cgit v1.2.3