aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2016-03-02 19:11:56 +0100
committerRobert Alessi <alessi@robertalessi.net>2016-03-02 19:11:56 +0100
commitcd918a2b21db3d7d3f983288527b2283cdab697d (patch)
tree62c91032f1f1608ee99af933beb99338459a99d8
parentcb871c9b4dbffaff35c6bd0f4b76bddd1416d37a (diff)
downloadarabluatex-cd918a2b21db3d7d3f983288527b2283cdab697d.tar.gz
pipe must be taken out in translit modes
-rw-r--r--arabluatex.lua6
-rw-r--r--arabluatex_trans.lua6
2 files changed, 12 insertions, 0 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index df23ddc..23abbc9 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -239,6 +239,9 @@ local function transdmg(str)
239 for i = 1,#shortvtrdmg do 239 for i = 1,#shortvtrdmg do
240 inside = string.gsub(inside, shortvtrdmg[i].a, shortvtrdmg[i].b) 240 inside = string.gsub(inside, shortvtrdmg[i].a, shortvtrdmg[i].b)
241 end 241 end
242 for i = 1,#nulltr do
243 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b)
244 end
242 return string.format("\\txtrans{%s}", inside) 245 return string.format("\\txtrans{%s}", inside)
243 end) 246 end)
244return str 247return str
@@ -271,6 +274,9 @@ local function transloc(str)
271 for i = 1,#finaltrloc do 274 for i = 1,#finaltrloc do
272 inside = string.gsub(inside, finaltrloc[i].a, finaltrloc[i].b) 275 inside = string.gsub(inside, finaltrloc[i].a, finaltrloc[i].b)
273 end 276 end
277 for i = 1,#nulltr do
278 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b)
279 end
274 return string.format("\\txtrans{%s}", inside) 280 return string.format("\\txtrans{%s}", inside)
275 end) 281 end)
276return str 282return str
diff --git a/arabluatex_trans.lua b/arabluatex_trans.lua
index 96ef38f..d9b4418 100644
--- a/arabluatex_trans.lua
+++ b/arabluatex_trans.lua
@@ -22,6 +22,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2202111-1307, USA. 2202111-1307, USA.
23--]] 23--]]
24 24
25-- common
26
27nulltr = {
28 {a="%|", b=""}
29}
30
25-- dmg 31-- dmg
26 32
27hamzatrdmg = { 33hamzatrdmg = {