aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.dtx')
-rw-r--r--arabluatex.dtx14
1 files changed, 12 insertions, 2 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx
index 72792db..67fa916 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -175,9 +175,11 @@
175% \begin{macrocode} 175% \begin{macrocode}
176\DeclareOption{voc}{\def\al@mode{voc}} 176\DeclareOption{voc}{\def\al@mode{voc}}
177\DeclareOption{novoc}{\def\al@mode{novoc}} 177\DeclareOption{novoc}{\def\al@mode{novoc}}
178\DeclareOption{fullvoc}{\def\al@mode{fullvoc}}
178\ExecuteOptions{voc} 179\ExecuteOptions{voc}
179\ProcessOptions\relax 180\ProcessOptions\relax
180\def\al@mode@voc{voc} 181\def\al@mode@voc{voc}
182\def\al@mode@fullvoc{fullvoc}
181\def\al@mode@novoc{novoc} 183\def\al@mode@novoc{novoc}
182% \newif\ifal@mode@defined 184% \newif\ifal@mode@defined
183\RequirePackage{amsmath} 185\RequirePackage{amsmath}
@@ -208,11 +210,15 @@
208 \bgroup\textdir TRT\arabicfont% 210 \bgroup\textdir TRT\arabicfont%
209 \luadirect{tex.sprint(processvoc("\luaescapestring{#2}"))}\egroup% 211 \luadirect{tex.sprint(processvoc("\luaescapestring{#2}"))}\egroup%
210 \else% 212 \else%
213 \ifx\@tempa\al@mode@fullvoc%
214 \bgroup\textdir TRT\arabicfont%
215 \luadirect{tex.sprint(processfullvoc("\luaescapestring{#2}"))}\egroup%
216 \else%
211 \ifx\@tempa\al@mode@novoc% 217 \ifx\@tempa\al@mode@novoc%
212 \bgroup\textdir TRT\arabicfont% 218 \bgroup\textdir TRT\arabicfont%
213 \luadirect{tex.sprint(processnovoc("\luaescapestring{#2}"))}\egroup% 219 \luadirect{tex.sprint(processnovoc("\luaescapestring{#2}"))}\egroup%
214 \else% 220 \else%
215 \fi\fi} 221 \fi\fi\fi}
216\DeclareDocumentCommand{\aemph}{m}{$\overline{\text{#1}}$} 222\DeclareDocumentCommand{\aemph}{m}{$\overline{\text{#1}}$}
217\NewEnviron{arab}[1][\al@mode]% 223\NewEnviron{arab}[1][\al@mode]%
218{\par\edef\@tempa{#1}% 224{\par\edef\@tempa{#1}%
@@ -220,12 +226,16 @@
220 \bgroup\pardir TRT\textdir TRT\arabicfont% 226 \bgroup\pardir TRT\textdir TRT\arabicfont%
221 \luadirect{tex.sprint(processvoc("\luaescapestring{\BODY}"))}\egroup% 227 \luadirect{tex.sprint(processvoc("\luaescapestring{\BODY}"))}\egroup%
222 \else% 228 \else%
229 \ifx\@tempa\al@mode@fullvoc%
230 \bgroup\pardir TRT\textdir TRT\arabicfont%
231 \luadirect{tex.sprint(processfullvoc("\luaescapestring{\BODY}"))}\egroup%
232 \else%
223 \ifx\@tempa\al@mode@novoc% 233 \ifx\@tempa\al@mode@novoc%
224 \bgroup\pardir TRT\textdir TRT\arabicfont% 234 \bgroup\pardir TRT\textdir TRT\arabicfont%
225 \luadirect{tex.sprint(processnovoc("\luaescapestring{\BODY}"))}\egroup% 235 \luadirect{tex.sprint(processnovoc("\luaescapestring{\BODY}"))}\egroup%
226 \else 236 \else
227 \BODY% 237 \BODY%
228 \fi\fi}[\par] 238 \fi\fi\fi}[\par]
229\robustify{\textbf} 239\robustify{\textbf}
230\robustify{\emph} 240\robustify{\emph}
231\robustify{\footnote} 241\robustify{\footnote}