From b482fab8aa1280e9d5828f941c992f40c9a59fbd Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Sat, 16 Jun 2018 17:35:46 +0200 Subject: added \arbup{} in takeoutcapetc() --- arabluatex.lua | 13 ++++++++++--- 1 file 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) body = string.gsub(body, "(\\uc%s?)(%b{})", "\\Uc%2") return string.format("%s{%s}", tag, body) end) + str = string.gsub(str, "(\\arbup.?)(%b{})", function(tag, body) + body = string.sub(body, 2, -2) + return string.format("%s", body) + end) str = string.gsub(str, "(\\uc.?)(%b{})", function(tag, body) body = string.sub(body, 2, -2) return string.format("%s", body) @@ -563,7 +567,8 @@ local function transdmg(str, rules) for i = 1,#nulltr do inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) end - return string.format("\\txtrans{%s}", inside) +-- return string.format("\\txtrans{%s}", inside) + return string.format("%s", inside) end) return str end @@ -601,7 +606,8 @@ local function transloc(str) for i = 1,#nulltr do inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) end - return string.format("\\txtrans{%s}", inside) +-- return string.format("\\txtrans{%s}", inside) + return string.format("%s", inside) end) return str end @@ -636,7 +642,8 @@ local function transarabica(str) for i = 1,#nulltr do inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) end - return string.format("\\txtrans{%s}", inside) +-- return string.format("\\txtrans{%s}", inside) + return string.format("%s", inside) end) return str end -- cgit v1.2.3