aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index c71fe10..8644588 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -157,6 +157,11 @@ local function takeoutabjad(str)
157end 157end
158 158
159local function takeoutcapetc(str) 159local function takeoutcapetc(str)
160 str = string.gsub(str, "(\\arb.?%[trans%])(%b{})", function(tag, body)
161 body = string.sub(body, 2, -2)
162 body = string.gsub(body, "(\\cap%s?)(%b{})", "\\Cap%2")
163 return string.format("%s{%s}", tag, body)
164 end)
160 str = string.gsub(str, "(\\cap.?)(%b{})", function(tag, body) 165 str = string.gsub(str, "(\\cap.?)(%b{})", function(tag, body)
161 body = string.sub(body, 2, -2) 166 body = string.sub(body, 2, -2)
162 return string.format("%s", body) 167 return string.format("%s", body)