aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua19
1 files changed, 8 insertions, 11 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index 722084c..3b76376 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -497,11 +497,11 @@ end
497local function transarabica(str) 497local function transarabica(str)
498 str = string.gsub(str, "\\arb(%b{})", function(inside) 498 str = string.gsub(str, "\\arb(%b{})", function(inside)
499 inside = string.sub(inside, 2, -2) 499 inside = string.sub(inside, 2, -2)
500 for i = 1,#hamzatrarabica do 500 for i = 1,#hamzatrloc do
501 inside = string.gsub(inside, hamzatrarabica[i].a, hamzatrarabica[i].b) 501 inside = string.gsub(inside, hamzatrloc[i].a, hamzatrloc[i].b)
502 end 502 end
503 for i = 1,#tanwintrarabica do 503 for i = 1,#tanwintrloc do
504 inside = string.gsub(inside, tanwintrarabica[i].a, tanwintrarabica[i].b) 504 inside = string.gsub(inside, tanwintrloc[i].a, tanwintrloc[i].b)
505 end 505 end
506 for i = 1,#trigraphstrarabica do 506 for i = 1,#trigraphstrarabica do
507 inside = string.gsub(inside, trigraphstrarabica[i].a, trigraphstrarabica[i].b) 507 inside = string.gsub(inside, trigraphstrarabica[i].a, trigraphstrarabica[i].b)
@@ -512,14 +512,11 @@ 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,#longvtrarabica do 515 for i = 1,#longvtrloc do
516 inside = string.gsub(inside, longvtrarabica[i].a, longvtrarabica[i].b) 516 inside = string.gsub(inside, longvtrloc[i].a, longvtrloc[i].b)
517 end
518 for i = 1,#shortvtrarabica do
519 inside = string.gsub(inside, shortvtrarabica[i].a, shortvtrarabica[i].b)
520 end 517 end
521 for i = 1,#finaltrarabica do 518 for i = 1,#shortvtrloc do
522 inside = string.gsub(inside, finaltrarabica[i].a, finaltrarabica[i].b) 519 inside = string.gsub(inside, shortvtrloc[i].a, shortvtrloc[i].b)
523 end 520 end
524 for i = 1,#punctuationtr do 521 for i = 1,#punctuationtr do
525 inside = string.gsub(inside, punctuationtr[i].a, punctuationtr[i].b) 522 inside = string.gsub(inside, punctuationtr[i].a, punctuationtr[i].b)