aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.dtx')
-rw-r--r--arabluatex.dtx19
1 files changed, 12 insertions, 7 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx
index f44b309..2661ad4 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -2061,7 +2061,7 @@ wa-ya.sIru ta.hta 'l-jildi
2061% \end{macrocode} 2061% \end{macrocode}
2062% \end{macro} 2062% \end{macro}
2063% \begin{macro}{\SetArbEasy} 2063% \begin{macro}{\SetArbEasy}
2064% \begin{macro}{\SetArbDeflt} 2064% \begin{macro}{\SetArbDflt}
2065% By default, \package{arabluatex} applies complex rules to generate 2065% By default, \package{arabluatex} applies complex rules to generate
2066% euphonic \arb[trans]{ta^sdId}, \arb[trans]{'alif mamdUdaT} 2066% euphonic \arb[trans]{ta^sdId}, \arb[trans]{'alif mamdUdaT}
2067% \linebreak and \arb[trans]{sukUn} depending on the modes which are 2067% \linebreak and \arb[trans]{sukUn} depending on the modes which are
@@ -2073,7 +2073,7 @@ wa-ya.sIru ta.hta 'l-jildi
2073% \begin{macrocode} 2073% \begin{macrocode}
2074\def\al@arb@rules{dflt} 2074\def\al@arb@rules{dflt}
2075\NewDocumentCommand{\SetArbEasy}{}{\def\al@arb@rules{easy}} 2075\NewDocumentCommand{\SetArbEasy}{}{\def\al@arb@rules{easy}}
2076\NewDocumentCommand{\SetArbDflt}{}{\def\al@arb@rules{default}} 2076\NewDocumentCommand{\SetArbDflt}{}{\def\al@arb@rules{dflt}}
2077% \end{macrocode} 2077% \end{macrocode}
2078% \end{macro} 2078% \end{macro}
2079% \end{macro} 2079% \end{macro}
@@ -2130,7 +2130,8 @@ wa-ya.sIru ta.hta 'l-jildi
2130 \else% 2130 \else%
2131 \ifx\@tempa\al@mode@fullvoc% 2131 \ifx\@tempa\al@mode@fullvoc%
2132 \bgroup\textdir TRT\arabicfont% 2132 \bgroup\textdir TRT\arabicfont%
2133 \luadirect{tex.sprint(processfullvoc(\luastringN{#2}))}\egroup% 2133 \luadirect{tex.sprint(processfullvoc(\luastringN{#2},
2134 \luastringO{\al@arb@rules}))}\egroup%
2134 \else% 2135 \else%
2135 \ifx\@tempa\al@mode@novoc% 2136 \ifx\@tempa\al@mode@novoc%
2136 \bgroup\textdir TRT\arabicfont% 2137 \bgroup\textdir TRT\arabicfont%
@@ -2139,7 +2140,8 @@ wa-ya.sIru ta.hta 'l-jildi
2139 \ifx\@tempa\al@mode@trans% 2140 \ifx\@tempa\al@mode@trans%
2140 \bgroup\textdir TLT\al@trans@style% 2141 \bgroup\textdir TLT\al@trans@style%
2141 \luadirect{tex.sprint(processtrans(\luastringN{#2}, 2142 \luadirect{tex.sprint(processtrans(\luastringN{#2},
2142 \luastringO{\al@trans@convention}))}\egroup% 2143 \luastringO{\al@trans@convention},
2144 \luastringO{\al@arb@rules}))}\egroup%
2143 \else% 2145 \else%
2144 \fi\fi\fi\fi} 2146 \fi\fi\fi\fi}
2145% \end{macrocode} 2147% \end{macrocode}
@@ -2152,11 +2154,13 @@ wa-ya.sIru ta.hta 'l-jildi
2152{\par\edef\@tempa{#1}% 2154{\par\edef\@tempa{#1}%
2153 \ifx\@tempa\al@mode@voc% 2155 \ifx\@tempa\al@mode@voc%
2154 \bgroup\pardir TRT\textdir TRT\arabicfont% 2156 \bgroup\pardir TRT\textdir TRT\arabicfont%
2155 \luadirect{tex.sprint(processvoc(\luastringO{\BODY}))}\egroup% 2157 \luadirect{tex.sprint(processvoc(\luastringO{\BODY},
2158 \luastringO{\al@arb@rules}))}\egroup%
2156 \else% 2159 \else%
2157 \ifx\@tempa\al@mode@fullvoc% 2160 \ifx\@tempa\al@mode@fullvoc%
2158 \bgroup\pardir TRT\textdir TRT\arabicfont% 2161 \bgroup\pardir TRT\textdir TRT\arabicfont%
2159 \luadirect{tex.sprint(processfullvoc(\luastringO{\BODY}))}\egroup% 2162 \luadirect{tex.sprint(processfullvoc(\luastringO{\BODY},
2163 \luastringO{\al@arb@rules}))}\egroup%
2160 \else% 2164 \else%
2161 \ifx\@tempa\al@mode@novoc% 2165 \ifx\@tempa\al@mode@novoc%
2162 \bgroup\pardir TRT\textdir TRT\arabicfont% 2166 \bgroup\pardir TRT\textdir TRT\arabicfont%
@@ -2164,7 +2168,8 @@ wa-ya.sIru ta.hta 'l-jildi
2164 \else \ifx\@tempa\al@mode@trans% 2168 \else \ifx\@tempa\al@mode@trans%
2165 \bgroup\pardir TLT\textdir TLT\al@trans@style% 2169 \bgroup\pardir TLT\textdir TLT\al@trans@style%
2166 \luadirect{tex.sprint(processtrans(\luastringO{\BODY}, 2170 \luadirect{tex.sprint(processtrans(\luastringO{\BODY},
2167 \luastringO{\al@trans@convention}))}\egroup% 2171 \luastringO{\al@trans@convention},
2172 \luastringO{\al@arb@rules}))}\egroup%
2168 \else \fi\fi\fi\fi}[\par] 2173 \else \fi\fi\fi\fi}[\par]
2169% \end{macrocode} 2174% \end{macrocode}
2170% \end{environment} 2175% \end{environment}