aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arabluatex.dtx2
-rw-r--r--arabluatex.lua11
2 files changed, 5 insertions, 8 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx
index f6f084a..6fb2993 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -3967,7 +3967,7 @@ wa-ya.sIru ta.hta 'l-jild-i
3967\NewDocumentCommand{\txarb}{+m}{\bgroup\textdir 3967\NewDocumentCommand{\txarb}{+m}{\bgroup\textdir
3968 TRT\arabicfont#1\egroup} 3968 TRT\arabicfont#1\egroup}
3969\NewDocumentCommand{\txtrans}{+m}{\bgroup\textdir 3969\NewDocumentCommand{\txtrans}{+m}{\bgroup\textdir
3970 TLT\al@trans@font#1\egroup} 3970 TLT\al@trans@font\al@trans@style#1\egroup}
3971% \end{macrocode} 3971% \end{macrocode}
3972% \end{macro} 3972% \end{macro}
3973% \end{macro} 3973% \end{macro}
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