From 4a37f31851d48d04c9d9ddebdd124146fd7760df Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Mon, 5 Nov 2018 17:26:43 +0100 Subject: make possible to say '\uc ' without subsequent braces so that umoline may be used --- arabluatex.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arabluatex.lua b/arabluatex.lua index 2c8dc77..66bbbde 100644 --- a/arabluatex.lua +++ b/arabluatex.lua @@ -228,10 +228,11 @@ local function takeoutcapetc(str) body = string.sub(body, 2, -2) return string.format("%s", body) end) - str = string.gsub(str, "(\\uc.?)(%b{})", function(tag, body) + str = string.gsub(str, "(\\uc%s?)(%b{})", function(tag, body) body = string.sub(body, 2, -2) return string.format("%s", body) end) + str = string.gsub(str, "\\uc%s", "") str = string.gsub(str, "\\linebreak", "") str = string.gsub(str, "\\%-", "") return str -- cgit v1.2.3