summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--otfl-font-otc.lua4
-rw-r--r--tests/anum.tex12
2 files changed, 14 insertions, 2 deletions
diff --git a/otfl-font-otc.lua b/otfl-font-otc.lua
index 551696f..35555ed 100644
--- a/otfl-font-otc.lua
+++ b/otfl-font-otc.lua
@@ -94,14 +94,14 @@ local extra_features = { -- maybe just 1..n so that we prescribe order
},
anum = {
{
- features = { { scripts = { { script = "arab", langs = { "dflt", "FAR" }, } }, tag = "anum", comment = "added bij mkiv" }, },
+ features = { { scripts = { { script = "arab", langs = { "dflt", "ARA" }, } }, tag = "anum", comment = "added bij mkiv" }, },
name = "ctx_anum_1",
subtables = { { name = "ctx_anum_1_s" } },
type = "gsub_single",
flags = { },
},
{
- features = { { scripts = { { script = "arab", langs = { "URD" }, } }, tag = "anum", comment = "added bij mkiv" }, },
+ features = { { scripts = { { script = "arab", langs = { "FAR" }, } }, tag = "anum", comment = "added bij mkiv" }, },
name = "ctx_anum_2",
subtables = { { name = "ctx_anum_2_s" } },
type = "gsub_single",
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