diff options
Diffstat (limited to 'arabluatex.lua')
-rw-r--r-- | arabluatex.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arabluatex.lua b/arabluatex.lua index 2c0e2c2..3d25a05 100644 --- a/arabluatex.lua +++ b/arabluatex.lua | |||
@@ -124,6 +124,12 @@ local function breakcmd(str) | |||
124 | body = string.sub(body, 2, -2) | 124 | body = string.sub(body, 2, -2) |
125 | return string.format("}\\aemph{\\%s{%s}}\\arb{", tag, body) | 125 | return string.format("}\\aemph{\\%s{%s}}\\arb{", tag, body) |
126 | end) | 126 | end) |
127 | -- Arbmark | ||
128 | str = string.gsub(str, "\\(arbmark.-)(%b{})", | ||
129 | function(tag, body) | ||
130 | body = string.sub(body, 2, -2) | ||
131 | return string.format("}\\%s{%s}\\arb{", tag, body) | ||
132 | end) | ||
127 | return str | 133 | return str |
128 | end | 134 | end |
129 | 135 | ||
@@ -665,8 +671,8 @@ function processtrans(str, mode, rules, scheme) | |||
665 | return str | 671 | return str |
666 | end | 672 | end |
667 | 673 | ||
668 | function processarbmarks(str, mode) | 674 | function processarbmarks(str) |
669 | if mode == "trans" then | 675 | if tex.textdir == "TLT" then |
670 | for i = 1,#arbmarks do | 676 | for i = 1,#arbmarks do |
671 | str = string.gsub(str, arbmarks[i].a, arbmarks[i].c) | 677 | str = string.gsub(str, arbmarks[i].a, arbmarks[i].c) |
672 | end | 678 | end |