aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index 088d241..2adcdb0 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -670,6 +670,9 @@ function uc(str)
670 body = string.sub(body, 2, -2) 670 body = string.sub(body, 2, -2)
671 return string.format("%s", body) 671 return string.format("%s", body)
672 end) 672 end)
673 -- Allah and ibn
674 str = string.gsub(str, "([%'%-]?)(l%-lāh)([uai]?)", "%1{Llāh%3}")
675 str = string.gsub(str, "(al%-lāh)([uai]?)", "{Allāh%2}")
673 str = string.gsub(str, "(%s[%(%<%[]?)([i%']?b[n%.])", "%1{%2}") 676 str = string.gsub(str, "(%s[%(%<%[]?)([i%']?b[n%.])", "%1{%2}")
674 for i = 1,#lcuc do 677 for i = 1,#lcuc do
675 str = string.gsub(str, "^([%S]-%-[`']?)"..lcuc[i].a, "{%1"..lcuc[i].b.."}") 678 str = string.gsub(str, "^([%S]-%-[`']?)"..lcuc[i].a, "{%1"..lcuc[i].b.."}")
@@ -758,3 +761,10 @@ function aemph(str)
758 end 761 end
759 return str 762 return str
760end 763end
764
765function writevrb(str)
766 local f = io.open(tex.jobname.."-out.tex", "a+")
767 f:write(str)
768 f:close()
769 return true
770end