diff options
Diffstat (limited to 'arabluatex.lua')
-rw-r--r-- | arabluatex.lua | 5 |
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) | |||
157 | end | 157 | end |
158 | 158 | ||
159 | local function takeoutcapetc(str) | 159 | local 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) |