diff options
Diffstat (limited to 'arabluatex.lua')
-rw-r--r-- | arabluatex.lua | 11 |
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) |
573 | return str | 572 | return str |
574 | end | 573 | end |
@@ -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) |
612 | return str | 610 | return str |
613 | end | 611 | end |
@@ -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) |
648 | return str | 645 | return str |
649 | end | 646 | end |
@@ -741,7 +738,7 @@ return str | |||
741 | end | 738 | end |
742 | 739 | ||
743 | function newarbmark(abbr, rtlmk, ltrmk) | 740 | function 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 |