aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index 6e40efd..862b8ae 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -997,6 +997,7 @@ function processtrans(str, mode, rules, scheme)
997end 997end
998 998
999function newarbmark(abbr, rtlmk, ltrmk) 999function newarbmark(abbr, rtlmk, ltrmk)
1000 abbr = "@"..abbr
1000 rtlmk = "\\arabicfont{}"..rtlmk 1001 rtlmk = "\\arabicfont{}"..rtlmk
1001 table.insert(arbmarks, {a = abbr, b = rtlmk, c = ltrmk}) 1002 table.insert(arbmarks, {a = abbr, b = rtlmk, c = ltrmk})
1002 table.sort(arbmarks, function(a ,b) return(#a.a > #b.a) end) 1003 table.sort(arbmarks, function(a ,b) return(#a.a > #b.a) end)
@@ -1013,6 +1014,7 @@ local function isintable(table, element)
1013end 1014end
1014 1015
1015function processarbmarks(str, dir) 1016function processarbmarks(str, dir)
1017 str = "@"..str
1016 if not isintable(arbmarks, str) then 1018 if not isintable(arbmarks, str) then
1017 str = "\\LR{<??>}"..atletter.."\\al@wrong@mark{}"..atother 1019 str = "\\LR{<??>}"..atletter.."\\al@wrong@mark{}"..atother
1018 else 1020 else