aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arabluatex.lua14
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)
308return str 308return str
309end 309end
@@ -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)
344return str 344return str
345end 345end
@@ -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)
397return str 397return str
398end 398end
@@ -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)
445return str 445return str
446end 446end
@@ -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)
481return str 481return str
482end 482end
@@ -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)
517return str 517return str
518end 518end
@@ -744,7 +744,7 @@ return str
744end 744end
745 745
746function newarbmark(abbr, rtlmk, ltrmk) 746function 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