From 79c0fac2e0890107ddc1a0f5e60ef11cba305c3f Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Mon, 22 Jan 2018 19:06:23 +0100 Subject: use xkeyval for package option processing; process the name of God through \prname{} --- arabluatex.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'arabluatex.lua') 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) body = string.sub(body, 2, -2) return string.format("%s", body) end) + -- Allah and ibn + str = string.gsub(str, "([%'%-]?)(l%-lāh)([uai]?)", "%1{Llāh%3}") + str = string.gsub(str, "(al%-lāh)([uai]?)", "{Allāh%2}") str = string.gsub(str, "(%s[%(%<%[]?)([i%']?b[n%.])", "%1{%2}") for i = 1,#lcuc do str = string.gsub(str, "^([%S]-%-[`']?)"..lcuc[i].a, "{%1"..lcuc[i].b.."}") @@ -758,3 +761,10 @@ function aemph(str) end return str end + +function writevrb(str) + local f = io.open(tex.jobname.."-out.tex", "a+") + f:write(str) + f:close() + return true +end -- cgit v1.2.3