aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.dtx
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2018-03-27 21:19:41 +0200
committerRobert Alessi <alessi@robertalessi.net>2018-03-27 21:19:41 +0200
commit60f993283f724252b3d9df2d696ba2629a0bd73c (patch)
tree613cbd634eef5c5ddf4e715799880129bb97db6d /arabluatex.dtx
parent885093a0d9a5b54d7d5ac71a35e3504387e5b30a (diff)
downloadarabluatex-60f993283f724252b3d9df2d696ba2629a0bd73c.tar.gz
start encoding the honorifics
Diffstat (limited to 'arabluatex.dtx')
-rw-r--r--arabluatex.dtx22
1 files changed, 19 insertions, 3 deletions
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
3692% Lua functions to insert transliterated Arabic text. Therefore, it is 3692% Lua functions to insert transliterated Arabic text. Therefore, it is
3693% not documented. 3693% not documented.
3694% \begin{macrocode} 3694% \begin{macrocode}
3695\DeclareDocumentCommand{\txarb}{+m}{\bgroup\textdir 3695\NewDocumentCommand{\txarb}{+m}{\bgroup\textdir
3696 TRT\arabicfont#1\egroup} 3696 TRT\arabicfont#1\egroup}
3697\DeclareDocumentCommand{\txtrans}{+m}{\bgroup\textdir 3697\NewDocumentCommand{\txtrans}{+m}{\bgroup\textdir
3698 TLT\al@trans@font#1\egroup} 3698 TLT\al@trans@font#1\egroup}
3699% \end{macrocode} 3699% \end{macrocode}
3700% \end{macro} 3700% \end{macro}
@@ -3716,7 +3716,7 @@ wa-ya.sIru ta.hta 'l-jild-i
3716% either globally if no option is set, or locally, then passes its 3716% either globally if no option is set, or locally, then passes its
3717% argument to the appropriate Lua function. 3717% argument to the appropriate Lua function.
3718% \begin{macrocode} 3718% \begin{macrocode}
3719\DeclareDocumentCommand{\arb}{O{\al@mode} +m}% 3719\NewDocumentCommand{\arb}{O{\al@mode} +m}%
3720{\edef\@tempa{#1}% 3720{\edef\@tempa{#1}%
3721 \ifx\@tempa\al@mode@voc% 3721 \ifx\@tempa\al@mode@voc%
3722 \bgroup\textdir TRT\arabicfont% 3722 \bgroup\textdir TRT\arabicfont%
@@ -3743,6 +3743,22 @@ wa-ya.sIru ta.hta 'l-jild-i
3743 \fi\fi\fi\fi} 3743 \fi\fi\fi\fi}
3744% \end{macrocode} 3744% \end{macrocode}
3745% \end{macro} 3745% \end{macro}
3746% \begin{macro}{\arbmark}
3747% New command to be documented
3748% \begin{macrocode}
3749\NewDocumentCommand{\garbmark}{m}{%
3750 \bgroup%
3751 \SetInputScheme{arabtex}%
3752 \ifx\al@mode\al@mode@trans%
3753 \luadirect{tex.write(processarbmarks(\luastringN{#1},
3754 \luastringO{trans}))}%
3755 \else%
3756 \luadirect{tex.write(processarbmarks(\luastringN{#1},
3757 \luastringO{notrans}))}%
3758 \fi\egroup}
3759% \end{macrocode}
3760%
3761% \end{macro}
3746% \begin{environment}{arab} 3762% \begin{environment}{arab}
3747% The |arab| environment does for paragraphs the same as \cs{arb} does 3763% The |arab| environment does for paragraphs the same as \cs{arb} does
3748% for short insertions of Arabic text. 3764% for short insertions of Arabic text.