diff options
author | Robert Alessi <alessi@robertalessi.net> | 2018-06-16 17:35:46 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2018-06-16 17:35:46 +0200 |
commit | b482fab8aa1280e9d5828f941c992f40c9a59fbd (patch) | |
tree | 3514097c8785bbe6519636c8f67d8fae94d9cf8c | |
parent | 97295d25656a269c7f308dc7e611ae4eee3a3f98 (diff) | |
download | arabluatex-b482fab8aa1280e9d5828f941c992f40c9a59fbd.tar.gz |
added \arbup{} in takeoutcapetc()
-rw-r--r-- | arabluatex.lua | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/arabluatex.lua b/arabluatex.lua index 4ff7538..deffac1 100644 --- a/arabluatex.lua +++ b/arabluatex.lua | |||
@@ -224,6 +224,10 @@ local function takeoutcapetc(str) | |||
224 | body = string.gsub(body, "(\\uc%s?)(%b{})", "\\Uc%2") | 224 | body = string.gsub(body, "(\\uc%s?)(%b{})", "\\Uc%2") |
225 | return string.format("%s{%s}", tag, body) | 225 | return string.format("%s{%s}", tag, body) |
226 | end) | 226 | end) |
227 | str = string.gsub(str, "(\\arbup.?)(%b{})", function(tag, body) | ||
228 | body = string.sub(body, 2, -2) | ||
229 | return string.format("%s", body) | ||
230 | end) | ||
227 | str = string.gsub(str, "(\\uc.?)(%b{})", function(tag, body) | 231 | str = string.gsub(str, "(\\uc.?)(%b{})", function(tag, body) |
228 | body = string.sub(body, 2, -2) | 232 | body = string.sub(body, 2, -2) |
229 | return string.format("%s", body) | 233 | return string.format("%s", body) |
@@ -563,7 +567,8 @@ local function transdmg(str, rules) | |||
563 | for i = 1,#nulltr do | 567 | for i = 1,#nulltr do |
564 | inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) | 568 | inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) |
565 | end | 569 | end |
566 | return string.format("\\txtrans{%s}", inside) | 570 | -- return string.format("\\txtrans{%s}", inside) |
571 | return string.format("%s", inside) | ||
567 | end) | 572 | end) |
568 | return str | 573 | return str |
569 | end | 574 | end |
@@ -601,7 +606,8 @@ local function transloc(str) | |||
601 | for i = 1,#nulltr do | 606 | for i = 1,#nulltr do |
602 | inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) | 607 | inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) |
603 | end | 608 | end |
604 | return string.format("\\txtrans{%s}", inside) | 609 | -- return string.format("\\txtrans{%s}", inside) |
610 | return string.format("%s", inside) | ||
605 | end) | 611 | end) |
606 | return str | 612 | return str |
607 | end | 613 | end |
@@ -636,7 +642,8 @@ local function transarabica(str) | |||
636 | for i = 1,#nulltr do | 642 | for i = 1,#nulltr do |
637 | inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) | 643 | inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) |
638 | end | 644 | end |
639 | return string.format("\\txtrans{%s}", inside) | 645 | -- return string.format("\\txtrans{%s}", inside) |
646 | return string.format("%s", inside) | ||
640 | end) | 647 | end) |
641 | return str | 648 | return str |
642 | end | 649 | end |