From 31391d3642f9e22185982099017e1e2e61a1df24 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Thu, 9 Apr 2020 10:22:07 +0200 Subject: use Harfbuzz in the doc. improved \arind: now works with hyperref and xindex --- arabluatex.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arabluatex.lua') diff --git a/arabluatex.lua b/arabluatex.lua index cc3f713..32bb500 100644 --- a/arabluatex.lua +++ b/arabluatex.lua @@ -660,11 +660,11 @@ local function processarind(str, mode) str = gsub(str, arind * bcbraces, function(tag, arg) arg = string.sub(arg, 2, -2) if mode == "trans" then - return string.format("%s{\\txtrans{%s}}", tag, arg) + return string.format("%s{%s@\\txtrans{%s}}", tag, arg, arg) else arg = novoc(arg) arg = string.gsub(arg, "\\arabicfont%s?{}", "") - return string.format("%s{\\txarb{%s}}", tag, arg) + return string.format("%s{%s@\\txarb{%s}}", tag, arg, arg) end end) return str -- cgit v1.2.3