aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index f1aeda0..f0cfa78 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -40,6 +40,12 @@ return str
40end 40end
41 41
42local function breakcmd(str) 42local function breakcmd(str)
43 -- \RL
44 str = string.gsub(str, "\\(RL.-)(%b{})",
45 function(tag, body)
46 body = string.sub(body, 2, -2)
47 return string.format("}\\%s{%s}\\arb{", tag, body)
48 end)
43 -- \LR 49 -- \LR
44 str = string.gsub(str, "\\(LR.-)(%b{})", 50 str = string.gsub(str, "\\(LR.-)(%b{})",
45 function(tag, body) 51 function(tag, body)