From 0e831895dcfbdf4d01609160cd69c062b0c6ba99 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 27 Jun 2010 11:52:48 +0300 Subject: Fix 'anum' feature 'FAR' script was used instead of 'ARA' and 'URD' instead of 'FAR'! --- otfl-font-otc.lua | 4 ++-- tests/anum.tex | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 tests/anum.tex 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 -- cgit v1.2.3