aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua28
1 files changed, 14 insertions, 14 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index 09c1acb..2c8dc77 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -487,7 +487,7 @@ local function novoc(str)
487 inside = indnum(inside) 487 inside = indnum(inside)
488 return string.format("\\arabicfont{}%s", inside) 488 return string.format("\\arabicfont{}%s", inside)
489 end) 489 end)
490return str 490 return str
491end 491end
492 492
493local function novoceasy(str) 493local function novoceasy(str)
@@ -523,7 +523,7 @@ local function novoceasy(str)
523 inside = indnum(inside) 523 inside = indnum(inside)
524 return string.format("\\arabicfont{}%s", inside) 524 return string.format("\\arabicfont{}%s", inside)
525 end) 525 end)
526return str 526 return str
527end 527end
528 528
529local function transdmg(str, rules) 529local function transdmg(str, rules)
@@ -561,9 +561,9 @@ local function transdmg(str, rules)
561 for i = 1,#nulltr do 561 for i = 1,#nulltr do
562 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) 562 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b)
563 end 563 end
564 return string.format("\\txtrans{%s}", inside) 564 return string.format("%s", inside)
565 end) 565 end)
566return str 566 return str
567end 567end
568 568
569local function transloc(str) 569local function transloc(str)
@@ -599,9 +599,9 @@ local function transloc(str)
599 for i = 1,#nulltr do 599 for i = 1,#nulltr do
600 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) 600 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b)
601 end 601 end
602 return string.format("\\txtrans{%s}", inside) 602 return string.format("%s", inside)
603 end) 603 end)
604return str 604 return str
605end 605end
606 606
607local function transarabica(str) 607local function transarabica(str)
@@ -634,9 +634,9 @@ local function transarabica(str)
634 for i = 1,#nulltr do 634 for i = 1,#nulltr do
635 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) 635 inside = string.gsub(inside, nulltr[i].a, nulltr[i].b)
636 end 636 end
637 return string.format("\\txtrans{%s}", inside) 637 return string.format("%s", inside)
638 end) 638 end)
639return str 639 return str
640end 640end
641 641
642local function processbuckw(str) 642local function processbuckw(str)
@@ -647,7 +647,7 @@ local function processbuckw(str)
647 end 647 end
648 return string.format("\\arb{%s}", inside) 648 return string.format("\\arb{%s}", inside)
649 end) 649 end)
650return str 650 return str
651end 651end
652 652
653-- The following functions produce a copy of the original .tex source 653-- The following functions produce a copy of the original .tex source
@@ -985,10 +985,10 @@ function processtrans(str, mode, rules, scheme)
985 end 985 end
986 str = unprotectarb(str) 986 str = unprotectarb(str)
987 if export_utf == "yes" then 987 if export_utf == "yes" then
988 tofile = str 988 tofile = "\\txtrans{"..str.."}"
989 tooutfile(tofile) 989 tooutfile(tofile)
990 elseif export_utf == "arabverse" then 990 elseif export_utf == "arabverse" then
991 tofile = str 991 tofile = "\\txtrans{"..str.."}"
992 tooutfile(tofile) 992 tooutfile(tofile)
993 else 993 else
994 return str 994 return str
@@ -1100,13 +1100,13 @@ function uc(str)
1100 str = string.gsub(str, "(%s[%(%<%[]?)"..lcuc[i].a, "%1"..lcuc[i].b) 1100 str = string.gsub(str, "(%s[%(%<%[]?)"..lcuc[i].a, "%1"..lcuc[i].b)
1101 end 1101 end
1102 if export_utf == "yes" then 1102 if export_utf == "yes" then
1103 tofile = "\\txtrans{"..str.."}" 1103 tofile = str
1104 tooutfile(tofile) 1104 tooutfile(tofile)
1105 elseif export_utf == "arabverse" then 1105 elseif export_utf == "arabverse" then
1106 tofile = "\\txtrans{"..str.."}" 1106 tofile = str
1107 tooutfile(tofile) 1107 tooutfile(tofile)
1108 else 1108 else
1109 return "\\txtrans{"..str.."}" 1109 return str
1110 end 1110 end
1111 return "" 1111 return ""
1112end 1112end