aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index 2b1360c..2c0e2c2 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -665,6 +665,19 @@ function processtrans(str, mode, rules, scheme)
665return str 665return str
666end 666end
667 667
668function processarbmarks(str, mode)
669 if mode == "trans" then
670 for i = 1,#arbmarks do
671 str = string.gsub(str, arbmarks[i].a, arbmarks[i].c)
672 end
673 else
674 for i = 1,#arbmarks do
675 str = string.gsub(str, arbmarks[i].a, arbmarks[i].b)
676 end
677 end
678 return str
679end
680
668function uc(str) 681function uc(str)
669 str = string.gsub(str, "(\\txtrans.?)(%b{})", function(tag, body) 682 str = string.gsub(str, "(\\txtrans.?)(%b{})", function(tag, body)
670 body = string.sub(body, 2, -2) 683 body = string.sub(body, 2, -2)