diff options
author | Robert Alessi <alessi@robertalessi.net> | 2018-07-23 20:58:33 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2018-07-23 20:58:33 +0200 |
commit | 47e0cb507cc8758bef0caca70a5bab9618261ba6 (patch) | |
tree | c374e91799abc7438f5036e21956aa6b2a3b6f37 | |
parent | 6adbeb0de2abb8d50efb0fbf579531a76ec37b45 (diff) | |
download | arabluatex-47e0cb507cc8758bef0caca70a5bab9618261ba6.tar.gz |
put back the braces after \arabicfont in voc, fullvoc &ct functions
-rw-r--r-- | arabluatex.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arabluatex.lua b/arabluatex.lua index 197a40e..3efccd2 100644 --- a/arabluatex.lua +++ b/arabluatex.lua | |||
@@ -303,7 +303,7 @@ local function voc(str, rules) | |||
303 | inside = string.gsub(inside, null[i].a, null[i].b) | 303 | inside = string.gsub(inside, null[i].a, null[i].b) |
304 | end | 304 | end |
305 | inside = indnum(inside) | 305 | inside = indnum(inside) |
306 | return string.format("\\arabicfont %s", inside) | 306 | return string.format("\\arabicfont{}%s", inside) |
307 | end) | 307 | end) |
308 | return str | 308 | return str |
309 | end | 309 | end |
@@ -339,7 +339,7 @@ local function voceasy(str) | |||
339 | inside = string.gsub(inside, null[i].a, null[i].b) | 339 | inside = string.gsub(inside, null[i].a, null[i].b) |
340 | end | 340 | end |
341 | inside = indnum(inside) | 341 | inside = indnum(inside) |
342 | return string.format("\\arabicfont %s", inside) | 342 | return string.format("\\arabicfont{}%s", inside) |
343 | end) | 343 | end) |
344 | return str | 344 | return str |
345 | end | 345 | end |
@@ -392,7 +392,7 @@ local function fullvoc(str, rules) | |||
392 | inside = string.gsub(inside, null[i].a, null[i].b) | 392 | inside = string.gsub(inside, null[i].a, null[i].b) |
393 | end | 393 | end |
394 | inside = indnum(inside) | 394 | inside = indnum(inside) |
395 | return string.format("\\arabicfont %s", inside) | 395 | return string.format("\\arabicfont{}%s", inside) |
396 | end) | 396 | end) |
397 | return str | 397 | return str |
398 | end | 398 | end |
@@ -440,7 +440,7 @@ local function fullvoceasy(str, rules) | |||
440 | inside = string.gsub(inside, null[i].a, null[i].b) | 440 | inside = string.gsub(inside, null[i].a, null[i].b) |
441 | end | 441 | end |
442 | inside = indnum(inside) | 442 | inside = indnum(inside) |
443 | return string.format("\\arabicfont %s", inside) | 443 | return string.format("\\arabicfont{}%s", inside) |
444 | end) | 444 | end) |
445 | return str | 445 | return str |
446 | end | 446 | end |
@@ -476,7 +476,7 @@ local function novoc(str) | |||
476 | inside = string.gsub(inside, null[i].a, null[i].b) | 476 | inside = string.gsub(inside, null[i].a, null[i].b) |
477 | end | 477 | end |
478 | inside = indnum(inside) | 478 | inside = indnum(inside) |
479 | return string.format("\\arabicfont %s", inside) | 479 | return string.format("\\arabicfont{}%s", inside) |
480 | end) | 480 | end) |
481 | return str | 481 | return str |
482 | end | 482 | end |
@@ -512,7 +512,7 @@ local function novoceasy(str) | |||
512 | inside = string.gsub(inside, null[i].a, null[i].b) | 512 | inside = string.gsub(inside, null[i].a, null[i].b) |
513 | end | 513 | end |
514 | inside = indnum(inside) | 514 | inside = indnum(inside) |
515 | return string.format("\\arabicfont %s", inside) | 515 | return string.format("\\arabicfont{}%s", inside) |
516 | end) | 516 | end) |
517 | return str | 517 | return str |
518 | end | 518 | end |
@@ -744,7 +744,7 @@ return str | |||
744 | end | 744 | end |
745 | 745 | ||
746 | function newarbmark(abbr, rtlmk, ltrmk) | 746 | function newarbmark(abbr, rtlmk, ltrmk) |
747 | rtlmk = "\\arabicfont "..rtlmk | 747 | rtlmk = "\\arabicfont{}"..rtlmk |
748 | table.insert(arbmarks, {a = abbr, b = rtlmk, c = ltrmk}) | 748 | table.insert(arbmarks, {a = abbr, b = rtlmk, c = ltrmk}) |
749 | table.sort(arbmarks, function(a ,b) return(#a.a > #b.a) end) | 749 | table.sort(arbmarks, function(a ,b) return(#a.a > #b.a) end) |
750 | return true | 750 | return true |