diff options
Diffstat (limited to 'arabluatex.dtx')
-rw-r--r-- | arabluatex.dtx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx index ed3e6c9..71dfd1d 100644 --- a/arabluatex.dtx +++ b/arabluatex.dtx | |||
@@ -4615,6 +4615,7 @@ | |||
4615 | % not documented. | 4615 | % not documented. |
4616 | % \begin{macrocode} | 4616 | % \begin{macrocode} |
4617 | \NewDocumentCommand{\txarb}{+m}{% | 4617 | \NewDocumentCommand{\txarb}{+m}{% |
4618 | \ifvmode\leavevmode\fi% | ||
4618 | \bgroup\textdir TRT\arabicfont#1\egroup} | 4619 | \bgroup\textdir TRT\arabicfont#1\egroup} |
4619 | \NewDocumentCommand{\txtrans}{+m}{% | 4620 | \NewDocumentCommand{\txtrans}{+m}{% |
4620 | \bgroup\textdir TLT\al@trans@font\al@trans@style#1\egroup} | 4621 | \bgroup\textdir TLT\al@trans@font\al@trans@style#1\egroup} |
@@ -4652,16 +4653,19 @@ | |||
4652 | \NewDocumentCommand{\arb}{O{\al@mode} +m}% | 4653 | \NewDocumentCommand{\arb}{O{\al@mode} +m}% |
4653 | {\edef\@tempa{#1}% | 4654 | {\edef\@tempa{#1}% |
4654 | \ifx\@tempa\al@mode@voc% | 4655 | \ifx\@tempa\al@mode@voc% |
4656 | \ifvmode\leavevmode\fi% | ||
4655 | \bgroup\booltrue{al@rlmode}\textdir TRT\arabicfont% | 4657 | \bgroup\booltrue{al@rlmode}\textdir TRT\arabicfont% |
4656 | \luadirect{tex.sprint(arabluatex.processvoc(\luastringN{#2}, | 4658 | \luadirect{tex.sprint(arabluatex.processvoc(\luastringN{#2}, |
4657 | \luastringO{\al@arb@rules}, \luastringO{\al@input@scheme}))}\egroup% | 4659 | \luastringO{\al@arb@rules}, \luastringO{\al@input@scheme}))}\egroup% |
4658 | \else% | 4660 | \else% |
4659 | \ifx\@tempa\al@mode@fullvoc% | 4661 | \ifx\@tempa\al@mode@fullvoc% |
4662 | \ifvmode\leavevmode\fi% | ||
4660 | \bgroup\booltrue{al@rlmode}\textdir TRT\arabicfont% | 4663 | \bgroup\booltrue{al@rlmode}\textdir TRT\arabicfont% |
4661 | \luadirect{tex.sprint(arabluatex.processfullvoc(\luastringN{#2}, | 4664 | \luadirect{tex.sprint(arabluatex.processfullvoc(\luastringN{#2}, |
4662 | \luastringO{\al@arb@rules}, \luastringO{\al@input@scheme}))}\egroup% | 4665 | \luastringO{\al@arb@rules}, \luastringO{\al@input@scheme}))}\egroup% |
4663 | \else% | 4666 | \else% |
4664 | \ifx\@tempa\al@mode@novoc% | 4667 | \ifx\@tempa\al@mode@novoc% |
4668 | \ifvmode\leavevmode\fi% | ||
4665 | \bgroup\booltrue{al@rlmode}\textdir TRT\arabicfont% | 4669 | \bgroup\booltrue{al@rlmode}\textdir TRT\arabicfont% |
4666 | \luadirect{tex.sprint(arabluatex.processnovoc(\luastringN{#2}, | 4670 | \luadirect{tex.sprint(arabluatex.processnovoc(\luastringN{#2}, |
4667 | \luastringO{\al@arb@rules}, \luastringO{\al@input@scheme}))}\egroup% | 4671 | \luastringO{\al@arb@rules}, \luastringO{\al@input@scheme}))}\egroup% |