diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-06-27 11:52:48 +0300 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-06-27 11:54:55 +0300 |
commit | 0e831895dcfbdf4d01609160cd69c062b0c6ba99 (patch) | |
tree | 4c49979ca1e3b15a823cf1dc67a2b6011a649df5 | |
parent | ce8286ccb9bf9d0b554d8dc16b0d1e6dfec62973 (diff) | |
download | luaotfload-0e831895dcfbdf4d01609160cd69c062b0c6ba99.tar.gz |
Fix 'anum' feature
'FAR' script was used instead of 'ARA' and 'URD' instead of 'FAR'!
-rw-r--r-- | otfl-font-otc.lua | 4 | ||||
-rw-r--r-- | tests/anum.tex | 12 |
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 |