aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arabluatex.dtx7
-rw-r--r--arabluatex.lua5
2 files changed, 11 insertions, 1 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx
index 53a7ed4..121de84 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -3752,7 +3752,12 @@ wa-ya.sIru ta.hta 'l-jild-i
3752 \luadirect{tex.sprint(processarbmarks(\luastringN{#1}))}% 3752 \luadirect{tex.sprint(processarbmarks(\luastringN{#1}))}%
3753 \egroup} 3753 \egroup}
3754% \end{macrocode} 3754% \end{macrocode}
3755% 3755% \end{macro}
3756% \begin{macro}{\newarbmark}
3757% \begin{macrocode}
3758\NewDocumentCommand{\newarbmark}{m m m}{%
3759 \luadirect{newarbmark(\luastringN{#1}, \luastringN{#2}, \luastringN{#3})}}
3760% \end{macrocode}
3756% \end{macro} 3761% \end{macro}
3757% \begin{environment}{arab} 3762% \begin{environment}{arab}
3758% The |arab| environment does for paragraphs the same as \cs{arb} does 3763% The |arab| environment does for paragraphs the same as \cs{arb} does
diff --git a/arabluatex.lua b/arabluatex.lua
index 3d25a05..cd0bfa2 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -671,6 +671,11 @@ function processtrans(str, mode, rules, scheme)
671return str 671return str
672end 672end
673 673
674function newarbmark(abbr, rtlmk, ltrmk)
675 table.insert(arbmarks, {a = abbr, b = rtlmk, c = ltrmk})
676 return true
677end
678
674function processarbmarks(str) 679function processarbmarks(str)
675 if tex.textdir == "TLT" then 680 if tex.textdir == "TLT" then
676 for i = 1,#arbmarks do 681 for i = 1,#arbmarks do