aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua11
1 files changed, 4 insertions, 7 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index 3078490..9ed37c1 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -567,8 +567,7 @@ local function transdmg(str, rules)
567 for i = 1,#nulltr do 567 for i = 1,#nulltr do
568 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) 568 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b)
569 end 569 end
570-- return string.format("\\txtrans{%s}", inside) 570 return string.format("\\txtrans{%s}", inside)
571 return string.format("%s", inside)
572 end) 571 end)
573return str 572return str
574end 573end
@@ -606,8 +605,7 @@ local function transloc(str)
606 for i = 1,#nulltr do 605 for i = 1,#nulltr do
607 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) 606 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b)
608 end 607 end
609-- return string.format("\\txtrans{%s}", inside) 608 return string.format("\\txtrans{%s}", inside)
610 return string.format("%s", inside)
611 end) 609 end)
612return str 610return str
613end 611end
@@ -642,8 +640,7 @@ local function transarabica(str)
642 for i = 1,#nulltr do 640 for i = 1,#nulltr do
643 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) 641 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b)
644 end 642 end
645-- return string.format("\\txtrans{%s}", inside) 643 return string.format("\\txtrans{%s}", inside)
646 return string.format("%s", inside)
647 end) 644 end)
648return str 645return str
649end 646end
@@ -741,7 +738,7 @@ return str
741end 738end
742 739
743function newarbmark(abbr, rtlmk, ltrmk) 740function newarbmark(abbr, rtlmk, ltrmk)
744 rtlmk = "\\arabicfont "..rtlmk 741 rtlmk = "\\arabicfont{}"..rtlmk
745 table.insert(arbmarks, {a = abbr, b = rtlmk, c = ltrmk}) 742 table.insert(arbmarks, {a = abbr, b = rtlmk, c = ltrmk})
746 table.sort(arbmarks, function(a ,b) return(#a.a > #b.a) end) 743 table.sort(arbmarks, function(a ,b) return(#a.a > #b.a) end)
747 return true 744 return true