summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2011-12-19 20:15:20 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2011-12-19 20:15:20 +0200
commit7b028b4346551f61450d42da5a52cdf85407674c (patch)
tree7ff504f1a39ce160d37862ab74e9526324d6e6a7
parentdb6d134438fee52b713c8a846d2275eea6a43123 (diff)
downloadluaotfload-7b028b4346551f61450d42da5a52cdf85407674c.tar.gz
Revert "tlig, trep and anum are no longer supported"
This reverts commit b0786c4d31736f4421c2e71d655a1e407cfabd76. Conflicts: luaotfload.dtx
-rw-r--r--luaotfload.dtx15
-rw-r--r--tests/anum.tex12
-rw-r--r--tests/texligatures.tex7
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