From b4ea0b56577c3ffa721b180f70c4c708a6560071 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Thu, 22 Dec 2016 18:13:48 +0100 Subject: arbnulls inserted in trans table --- arabluatex.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'arabluatex.lua') diff --git a/arabluatex.lua b/arabluatex.lua index 527be3b..294e75f 100644 --- a/arabluatex.lua +++ b/arabluatex.lua @@ -128,6 +128,11 @@ local function indnum(str) return str end +local function processdiscretionary(str) + str = string.gsub(str, "\\%-", "\\-{}") + return str +end + local function processarbnull(str, scheme) if scheme == "buckwalter" then str = string.gsub(str, "(\\arbnull.?)(%b{})", function(tag, body) @@ -558,6 +563,7 @@ end function processtrans(str, mode, rules, scheme) str = "\\arb{".. str.."}" + str = processdiscretionary(str) str = processarbnull(str, scheme) str = takeoutabjad(str) str = protectarb(str) -- cgit v1.2.3