aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arabluatex.dtx8
1 files changed, 6 insertions, 2 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx
index 67d6545..6469ed3 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -4475,13 +4475,17 @@ wa-ya.sIru ta.hta 'l-jild-i
4475% Then follows the environment itself: 4475% Then follows the environment itself:
4476% \begin{macrocode} 4476% \begin{macrocode}
4477\NewDocumentEnvironment{arabverse}{O{}}% 4477\NewDocumentEnvironment{arabverse}{O{}}%
4478{\bgroup\setkeys[al]{verse}[width, gutter, color, utf, delim, mode, 4478{\bgroup\setkeys[al]{verse}[width, gutter, color, utf, delim,
4479 metre]{#1}% 4479 metre]{#1}%
4480 \if@pkg@export\ifal@verse@export% 4480 \if@pkg@export\ifal@verse@export%
4481 \ArbOutFile{\begin{arabverse}}% 4481 \ArbOutFile{\begin{arabverse}}%
4482 \ifx\al@mode\al@mode@trans%
4483 \luadirect{tooutfile(\luastringN{[#1]})}%
4484 \else%
4482 \IfSubStr[1]{#1}{utf}% 4485 \IfSubStr[1]{#1}{utf}%
4483 {\luadirect{tooutfile(\luastringN{[#1]})}}% 4486 {\luadirect{tooutfile(\luastringN{[#1]})}}%
4484 {\luadirect{tooutfile(\luastringN{[#1, utf]})}}% 4487 {\luadirect{tooutfile(\luastringN{[#1, utf]})}}%
4488 \fi
4485 \else\fi\else\fi\egroup% 4489 \else\fi\else\fi\egroup%
4486 \par\centering\noindent\bgroup\setkeys[al]{verse}[metre]{#1}% 4490 \par\centering\noindent\bgroup\setkeys[al]{verse}[metre]{#1}%
4487 \ifx\al@mode\al@mode@trans% 4491 \ifx\al@mode\al@mode@trans%