aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2017-04-01 17:21:45 +0200
committerRobert Alessi <alessi@robertalessi.net>2017-04-01 17:21:45 +0200
commit8cbdce87049d120488056d9f1b4f6ed2f42e02b0 (patch)
treee93041b9fd517bf74a82911a159e3a2f8d37da80 /arabluatex.lua
parentc2c0347648d8d14d46df8114572fd4d1df1d2853 (diff)
downloadarabluatex-741292229db2012965545bae88cb71cceb563f39.tar.gz
the implementation of the 'arabica' transliteration needed more work; a couple of bugs also found their way into v1.8 in the processv1.8.1
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index 3b76376..eeef54b 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -497,8 +497,8 @@ 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,#hamzatrloc do 500 for i = 1,#hamzatrarabica do
501 inside = string.gsub(inside, hamzatrloc[i].a, hamzatrloc[i].b) 501 inside = string.gsub(inside, hamzatrarabica[i].a, hamzatrarabica[i].b)
502 end 502 end
503 for i = 1,#tanwintrloc do 503 for i = 1,#tanwintrloc do
504 inside = string.gsub(inside, tanwintrloc[i].a, tanwintrloc[i].b) 504 inside = string.gsub(inside, tanwintrloc[i].a, tanwintrloc[i].b)