aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index e763b2a..b539484 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -192,10 +192,10 @@ end
192local function takeoutcapetc(str) 192local function takeoutcapetc(str)
193 str = string.gsub(str, "(\\arb.?%[trans%])(%b{})", function(tag, body) 193 str = string.gsub(str, "(\\arb.?%[trans%])(%b{})", function(tag, body)
194 body = string.sub(body, 2, -2) 194 body = string.sub(body, 2, -2)
195 body = string.gsub(body, "(\\cap%s?)(%b{})", "\\Cap%2") 195 body = string.gsub(body, "(\\uc%s?)(%b{})", "\\Uc%2")
196 return string.format("%s{%s}", tag, body) 196 return string.format("%s{%s}", tag, body)
197 end) 197 end)
198 str = string.gsub(str, "(\\cap.?)(%b{})", function(tag, body) 198 str = string.gsub(str, "(\\uc.?)(%b{})", function(tag, body)
199 body = string.sub(body, 2, -2) 199 body = string.sub(body, 2, -2)
200 return string.format("%s", body) 200 return string.format("%s", body)
201 end) 201 end)
@@ -665,7 +665,7 @@ function processtrans(str, mode, rules, scheme)
665return str 665return str
666end 666end
667 667
668function cap(str) 668function uc(str)
669 str = string.gsub(str, "(\\txtrans.?)(%b{})", function(tag, body) 669 str = string.gsub(str, "(\\txtrans.?)(%b{})", function(tag, body)
670 body = string.sub(body, 2, -2) 670 body = string.sub(body, 2, -2)
671 return string.format("%s", body) 671 return string.format("%s", body)