From 60f993283f724252b3d9df2d696ba2629a0bd73c Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Tue, 27 Mar 2018 21:19:41 +0200 Subject: start encoding the honorifics --- arabluatex.dtx | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'arabluatex.dtx') diff --git a/arabluatex.dtx b/arabluatex.dtx index b97ce4e..e6b680e 100644 --- a/arabluatex.dtx +++ b/arabluatex.dtx @@ -3692,9 +3692,9 @@ wa-ya.sIru ta.hta 'l-jild-i % Lua functions to insert transliterated Arabic text. Therefore, it is % not documented. % \begin{macrocode} -\DeclareDocumentCommand{\txarb}{+m}{\bgroup\textdir +\NewDocumentCommand{\txarb}{+m}{\bgroup\textdir TRT\arabicfont#1\egroup} -\DeclareDocumentCommand{\txtrans}{+m}{\bgroup\textdir +\NewDocumentCommand{\txtrans}{+m}{\bgroup\textdir TLT\al@trans@font#1\egroup} % \end{macrocode} % \end{macro} @@ -3716,7 +3716,7 @@ wa-ya.sIru ta.hta 'l-jild-i % either globally if no option is set, or locally, then passes its % argument to the appropriate Lua function. % \begin{macrocode} -\DeclareDocumentCommand{\arb}{O{\al@mode} +m}% +\NewDocumentCommand{\arb}{O{\al@mode} +m}% {\edef\@tempa{#1}% \ifx\@tempa\al@mode@voc% \bgroup\textdir TRT\arabicfont% @@ -3743,6 +3743,22 @@ wa-ya.sIru ta.hta 'l-jild-i \fi\fi\fi\fi} % \end{macrocode} % \end{macro} +% \begin{macro}{\arbmark} +% New command to be documented +% \begin{macrocode} +\NewDocumentCommand{\garbmark}{m}{% + \bgroup% + \SetInputScheme{arabtex}% + \ifx\al@mode\al@mode@trans% + \luadirect{tex.write(processarbmarks(\luastringN{#1}, + \luastringO{trans}))}% + \else% + \luadirect{tex.write(processarbmarks(\luastringN{#1}, + \luastringO{notrans}))}% + \fi\egroup} +% \end{macrocode} +% +% \end{macro} % \begin{environment}{arab} % The |arab| environment does for paragraphs the same as \cs{arb} does % for short insertions of Arabic text. -- cgit v1.2.3