aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua10
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
128end 134end
129 135
@@ -665,8 +671,8 @@ function processtrans(str, mode, rules, scheme)
665return str 671return str
666end 672end
667 673
668function processarbmarks(str, mode) 674function 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