From d6397857b9a28e7a73d6806422dcb03112441711 Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Tue, 26 Apr 2016 13:02:21 +0200
Subject: implementation of abjad numbering in Lua, so that polyglossia no
 longer be needed (this is much more flexible)

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

(limited to 'arabluatex.dtx')

diff --git a/arabluatex.dtx b/arabluatex.dtx
index bd9810c..79d038d 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -1967,6 +1967,8 @@ wa-ya.sIru ta.hta 'l-jildi
   {\NewDocumentCommand{\RL}{m}{\bgroup\textdir TRT#1\rmfamily\egroup}}}
 %    \end{macrocode}
 % \end{macro}
+\NewDocumentCommand{\abjad}{m}%
+  {\luadirect{tex.sprint(abjadify(#1))}}
 % \begin{macro}{\aemph} Arabic emphasis. Needs to be redefined as well.
 %    \begin{macrocode}
 \AtBeginDocument{\ifdef{\aemph}%
-- 
cgit v1.2.3

