aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.dtx')
-rw-r--r--arabluatex.dtx22
1 files changed, 20 insertions, 2 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx
index dc7193f..f44b309 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -189,7 +189,7 @@
189%</driver> 189%</driver>
190% \fi 190% \fi
191% 191%
192% \CheckSum{286} 192% \CheckSum{0}
193% 193%
194% \CharacterTable 194% \CharacterTable
195% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z 195% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -2060,6 +2060,23 @@ wa-ya.sIru ta.hta 'l-jildi
2060 {\NewDocumentCommand{\aemph}{m}{$\overline{\text{#1}}$}}} 2060 {\NewDocumentCommand{\aemph}{m}{$\overline{\text{#1}}$}}}
2061% \end{macrocode} 2061% \end{macrocode}
2062% \end{macro} 2062% \end{macro}
2063% \begin{macro}{\SetArbEasy}
2064% \begin{macro}{\SetArbDeflt}
2065% By default, \package{arabluatex} applies complex rules to generate
2066% euphonic \arb[trans]{ta^sdId}, \arb[trans]{'alif mamdUdaT}
2067% \linebreak and \arb[trans]{sukUn} depending on the modes which are
2068% selected, either |voc|, |fullvoc| or |trans|. Such refinements can
2069% be discarded with \cs{SetArbEasy}, either globally in the preamble
2070% or at any point of the document. Default complex rules can be set
2071% back at any point of the document with \cs{\SetArbDflt}
2072% \changes{}{}{}
2073% \begin{macrocode}
2074\def\al@arb@rules{dflt}
2075\NewDocumentCommand{\SetArbEasy}{}{\def\al@arb@rules{easy}}
2076\NewDocumentCommand{\SetArbDflt}{}{\def\al@arb@rules{default}}
2077% \end{macrocode}
2078% \end{macro}
2079% \end{macro}
2063% \begin{macro}{\SetTranslitStyle} By default any transliterated 2080% \begin{macro}{\SetTranslitStyle} By default any transliterated
2064% Arabic text is printed in italics. This can be changed globally in 2081% Arabic text is printed in italics. This can be changed globally in
2065% the preamble or at any point of the document: 2082% the preamble or at any point of the document:
@@ -2108,7 +2125,8 @@ wa-ya.sIru ta.hta 'l-jildi
2108{\edef\@tempa{#1}% 2125{\edef\@tempa{#1}%
2109 \ifx\@tempa\al@mode@voc% 2126 \ifx\@tempa\al@mode@voc%
2110 \bgroup\textdir TRT\arabicfont% 2127 \bgroup\textdir TRT\arabicfont%
2111 \luadirect{tex.sprint(processvoc(\luastringN{#2}))}\egroup% 2128 \luadirect{tex.sprint(processvoc(\luastringN{#2},
2129 \luastringO{\al@arb@rules}))}\egroup%
2112 \else% 2130 \else%
2113 \ifx\@tempa\al@mode@fullvoc% 2131 \ifx\@tempa\al@mode@fullvoc%
2114 \bgroup\textdir TRT\arabicfont% 2132 \bgroup\textdir TRT\arabicfont%