aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arabluatex.lua13
1 files changed, 10 insertions, 3 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index 4ff7538..deffac1 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -224,6 +224,10 @@ local function takeoutcapetc(str)
224 body = string.gsub(body, "(\\uc%s?)(%b{})", "\\Uc%2") 224 body = string.gsub(body, "(\\uc%s?)(%b{})", "\\Uc%2")
225 return string.format("%s{%s}", tag, body) 225 return string.format("%s{%s}", tag, body)
226 end) 226 end)
227 str = string.gsub(str, "(\\arbup.?)(%b{})", function(tag, body)
228 body = string.sub(body, 2, -2)
229 return string.format("%s", body)
230 end)
227 str = string.gsub(str, "(\\uc.?)(%b{})", function(tag, body) 231 str = string.gsub(str, "(\\uc.?)(%b{})", function(tag, body)
228 body = string.sub(body, 2, -2) 232 body = string.sub(body, 2, -2)
229 return string.format("%s", body) 233 return string.format("%s", body)
@@ -563,7 +567,8 @@ local function transdmg(str, rules)
563 for i = 1,#nulltr do 567 for i = 1,#nulltr do
564 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) 568 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b)
565 end 569 end
566 return string.format("\\txtrans{%s}", inside) 570-- return string.format("\\txtrans{%s}", inside)
571 return string.format("%s", inside)
567 end) 572 end)
568return str 573return str
569end 574end
@@ -601,7 +606,8 @@ local function transloc(str)
601 for i = 1,#nulltr do 606 for i = 1,#nulltr do
602 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) 607 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b)
603 end 608 end
604 return string.format("\\txtrans{%s}", inside) 609-- return string.format("\\txtrans{%s}", inside)
610 return string.format("%s", inside)
605 end) 611 end)
606return str 612return str
607end 613end
@@ -636,7 +642,8 @@ local function transarabica(str)
636 for i = 1,#nulltr do 642 for i = 1,#nulltr do
637 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) 643 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b)
638 end 644 end
639 return string.format("\\txtrans{%s}", inside) 645-- return string.format("\\txtrans{%s}", inside)
646 return string.format("%s", inside)
640 end) 647 end)
641return str 648return str
642end 649end