diff options
Diffstat (limited to 'arabluatex.lua')
-rw-r--r-- | arabluatex.lua | 13 |
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) | |||
665 | return str | 665 | return str |
666 | end | 666 | end |
667 | 667 | ||
668 | function 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 | ||
679 | end | ||
680 | |||
668 | function uc(str) | 681 | function 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) |