From 0aefecc9f54b3ad26dbbb468619b9adb9da109ba Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Sun, 17 Jun 2018 15:20:15 +0200 Subject: font information to be applied to romanized Arabic was missing too --- arabluatex.dtx | 2 +- arabluatex.lua | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/arabluatex.dtx b/arabluatex.dtx index f6f084a..6fb2993 100644 --- a/arabluatex.dtx +++ b/arabluatex.dtx @@ -3967,7 +3967,7 @@ wa-ya.sIru ta.hta 'l-jild-i \NewDocumentCommand{\txarb}{+m}{\bgroup\textdir TRT\arabicfont#1\egroup} \NewDocumentCommand{\txtrans}{+m}{\bgroup\textdir - TLT\al@trans@font#1\egroup} + TLT\al@trans@font\al@trans@style#1\egroup} % \end{macrocode} % \end{macro} % \end{macro} diff --git a/arabluatex.lua b/arabluatex.lua index 3078490..9ed37c1 100644 --- a/arabluatex.lua +++ b/arabluatex.lua @@ -567,8 +567,7 @@ local function transdmg(str, rules) for i = 1,#nulltr do inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) end --- return string.format("\\txtrans{%s}", inside) - return string.format("%s", inside) + return string.format("\\txtrans{%s}", inside) end) return str end @@ -606,8 +605,7 @@ local function transloc(str) for i = 1,#nulltr do inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) end --- return string.format("\\txtrans{%s}", inside) - return string.format("%s", inside) + return string.format("\\txtrans{%s}", inside) end) return str end @@ -642,8 +640,7 @@ local function transarabica(str) for i = 1,#nulltr do inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) end --- return string.format("\\txtrans{%s}", inside) - return string.format("%s", inside) + return string.format("\\txtrans{%s}", inside) end) return str end @@ -741,7 +738,7 @@ return str end function newarbmark(abbr, rtlmk, ltrmk) - rtlmk = "\\arabicfont "..rtlmk + rtlmk = "\\arabicfont{}"..rtlmk table.insert(arbmarks, {a = abbr, b = rtlmk, c = ltrmk}) table.sort(arbmarks, function(a ,b) return(#a.a > #b.a) end) return true -- cgit v1.2.3