aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2017-04-01 21:11:01 +0200
committerRobert Alessi <alessi@robertalessi.net>2017-04-01 21:11:01 +0200
commitf46c9c50cca7fc2f46c799a4fff3a271992c894d (patch)
treeff57ceaccf45b9644e7a1af71ce05ede92584449
parent8cbdce87049d120488056d9f1b4f6ed2f42e02b0 (diff)
downloadarabluatex-f46c9c50cca7fc2f46c799a4fff3a271992c894d.tar.gz
bugfix: ʾalif maqṣūrah wrongly interpreted from buckwalter scheme to arabica transliteration
-rw-r--r--arabluatex.lua4
-rw-r--r--arabluatex_trans.lua5
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
828longvtrarabica = {
829 {a="[AY]", b="ā"},
830 {a="U", b="ū"},
831 {a="I", b="ī"}
832}