diff options
author | Robert Alessi <alessi@robertalessi.net> | 2016-03-02 19:11:56 +0100 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2016-03-02 19:11:56 +0100 |
commit | cd918a2b21db3d7d3f983288527b2283cdab697d (patch) | |
tree | 62c91032f1f1608ee99af933beb99338459a99d8 | |
parent | cb871c9b4dbffaff35c6bd0f4b76bddd1416d37a (diff) | |
download | arabluatex-cd918a2b21db3d7d3f983288527b2283cdab697d.tar.gz |
pipe must be taken out in translit modes
-rw-r--r-- | arabluatex.lua | 6 | ||||
-rw-r--r-- | arabluatex_trans.lua | 6 |
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) |
244 | return str | 247 | return 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) |
276 | return str | 282 | return 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 | |||
22 | 02111-1307, USA. | 22 | 02111-1307, USA. |
23 | --]] | 23 | --]] |
24 | 24 | ||
25 | -- common | ||
26 | |||
27 | nulltr = { | ||
28 | {a="%|", b=""} | ||
29 | } | ||
30 | |||
25 | -- dmg | 31 | -- dmg |
26 | 32 | ||
27 | hamzatrdmg = { | 33 | hamzatrdmg = { |