diff options
author | Robert Alessi <alessi@robertalessi.net> | 2017-04-01 21:11:01 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2017-04-01 21:11:01 +0200 |
commit | f46c9c50cca7fc2f46c799a4fff3a271992c894d (patch) | |
tree | ff57ceaccf45b9644e7a1af71ce05ede92584449 | |
parent | 8cbdce87049d120488056d9f1b4f6ed2f42e02b0 (diff) | |
download | arabluatex-f46c9c50cca7fc2f46c799a4fff3a271992c894d.tar.gz |
bugfix: ʾalif maqṣūrah wrongly interpreted from buckwalter scheme to arabica transliteration
-rw-r--r-- | arabluatex.lua | 4 | ||||
-rw-r--r-- | arabluatex_trans.lua | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/arabluatex.lua b/arabluatex.lua index eeef54b..c71fe10 100644 --- a/arabluatex.lua +++ b/arabluatex.lua | |||
@@ -512,8 +512,8 @@ local function transarabica(str) | |||
512 | for i = 1,#singletrarabica do | 512 | for i = 1,#singletrarabica do |
513 | inside = string.gsub(inside, singletrarabica[i].a, singletrarabica[i].b) | 513 | inside = string.gsub(inside, singletrarabica[i].a, singletrarabica[i].b) |
514 | end | 514 | end |
515 | for i = 1,#longvtrloc do | 515 | for i = 1,#longvtrarabica do |
516 | inside = string.gsub(inside, longvtrloc[i].a, longvtrloc[i].b) | 516 | inside = string.gsub(inside, longvtrarabica[i].a, longvtrarabica[i].b) |
517 | end | 517 | end |
518 | for i = 1,#shortvtrloc do | 518 | for i = 1,#shortvtrloc do |
519 | inside = string.gsub(inside, shortvtrloc[i].a, shortvtrloc[i].b) | 519 | inside = string.gsub(inside, shortvtrloc[i].a, shortvtrloc[i].b) |
diff --git a/arabluatex_trans.lua b/arabluatex_trans.lua index 7820cd1..4463b6c 100644 --- a/arabluatex_trans.lua +++ b/arabluatex_trans.lua | |||
@@ -825,3 +825,8 @@ singletrarabica = { | |||
825 | {a="B", b=""} | 825 | {a="B", b=""} |
826 | } | 826 | } |
827 | 827 | ||
828 | longvtrarabica = { | ||
829 | {a="[AY]", b="ā"}, | ||
830 | {a="U", b="ū"}, | ||
831 | {a="I", b="ī"} | ||
832 | } | ||