diff options
Diffstat (limited to 'arabluatex.lua')
-rw-r--r-- | arabluatex.lua | 2 |
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) | |||
997 | end | 997 | end |
998 | 998 | ||
999 | function newarbmark(abbr, rtlmk, ltrmk) | 999 | function 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) | |||
1013 | end | 1014 | end |
1014 | 1015 | ||
1015 | function processarbmarks(str, dir) | 1016 | function 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 |