From 945113620ca5de402bb6d63b9fd8573281da37cd Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Tue, 5 Sep 2017 16:09:14 +0200
Subject: \aemph now outputs \underline instead of \overline in any of the
 transliteration modes

---
 arabluatex.dtx | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

(limited to 'arabluatex.dtx')

diff --git a/arabluatex.dtx b/arabluatex.dtx
index 685b9d0..18293eb 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -3357,11 +3357,14 @@ wa-ya.sIru ta.hta 'l-jild-i
   \luadirect{mkarbbreak(\luastringN{#1})}}
 %    \end{macrocode}
 % \end{macro}
-% \begin{macro}{\aemph} Arabic emphasis. Needs to be redefined as well.
+% \begin{macro}{\aemph} Arabic emphasis. Needs to be redefined as
+% well. The function is actually coded in Lua.
 %    \begin{macrocode}
 \AtBeginDocument{\ifdef{\aemph}%
-  {\RenewDocumentCommand{\aemph}{m}{$\overline{\text{#1}}$}}
-  {\NewDocumentCommand{\aemph}{m}{$\overline{\text{#1}}$}}}
+  {\RenewDocumentCommand{\aemph}{m}{%
+      \luadirect{tex.sprint(aemph(\luastringN{#1}))}}}
+  {\NewDocumentCommand{\aemph}{m}{%
+      \luadirect{tex.sprint(aemph(\luastringN{#1}))}}}}
 %    \end{macrocode}
 % \begin{macro}{\SetInputScheme}
 %   \changes{v1.4}{2016/07/05}{\cs{SetInputScheme} may be used to
-- 
cgit v1.2.3

