From ead71bd1eb0e996a00da3b88894eb0ee39cc7865 Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Sun, 6 May 2018 12:42:10 +0200
Subject: \abjad{} should be able to accept commands and counters as arguments

---
 arabluatex.dtx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'arabluatex.dtx')

diff --git a/arabluatex.dtx b/arabluatex.dtx
index 289512f..2672655 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -3988,10 +3988,10 @@ wa-ya.sIru ta.hta 'l-jild-i
 \AtBeginDocument{%
   \ifdefined\abjad%
   \RenewDocumentCommand{\abjad}{m}%
-  {\luadirect{tex.sprint(abjadify(#1))}}%
+  {\luadirect{tex.sprint(abjadify(\luastring{#1}))}}%
   \else%
   \NewDocumentCommand{\abjad}{m}%
-  {\luadirect{tex.sprint(abjadify(#1))}}
+  {\luadirect{tex.sprint(abjadify(\luastring{#1}))}}
 \fi}
 %    \end{macrocode}
 % \end{macro}
-- 
cgit v1.2.3

