diff options
-rw-r--r-- | arabluatex.dtx | 35 |
1 files changed, 25 insertions, 10 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx index e3e60c3..dbc431d 100644 --- a/arabluatex.dtx +++ b/arabluatex.dtx | |||
@@ -2500,15 +2500,15 @@ word that \cs{arbnull} is applied to. | |||
2500 | % \fi% | 2500 | % \fi% |
2501 | % | 2501 | % |
2502 | % The example below provides an implementation of this technique. It | 2502 | % The example below provides an implementation of this technique. It |
2503 | % may be observed that \cs{textcolor} is used so as to have the marks | 2503 | % may be observed that \cs{arbcolor} is used so as to have the marks |
2504 | % printed in red:---% | 2504 | % printed in red:---% |
2505 | % \iffalse | 2505 | % \iffalse |
2506 | %<*example> | 2506 | %<*example> |
2507 | % \fi | 2507 | % \fi |
2508 | \begin{arabluacode} | 2508 | \begin{arabluacode} |
2509 | \SetArbDflt* | 2509 | \SetArbDflt* |
2510 | \newarbmark{sly}{\textcolor{red}{^^^^06d6}}{} | 2510 | \newarbmark{sly}{\arbcolor[red]{^^^^06d6}}{} |
2511 | \newarbmark{jim}{\textcolor{red}{^^^^06da}}{} | 2511 | \newarbmark{jim}{\arbcolor[red]{^^^^06da}}{} |
2512 | \begin{arab} | 2512 | \begin{arab} |
2513 | sUraTu 'l-nisA'i, 19: | 2513 | sUraTu 'l-nisA'i, 19: |
2514 | \end{arab} | 2514 | \end{arab} |
@@ -3230,7 +3230,7 @@ qAla barzawayhi bn-u 'azhar-a, ra's-u 'a.tibbA'-i fAris-a... | |||
3230 | % \fi | 3230 | % \fi |
3231 | \begin{arabluacode} | 3231 | \begin{arabluacode} |
3232 | \MkArbBreak{fvred} | 3232 | \MkArbBreak{fvred} |
3233 | \newcommand{\fvred}[1]{\textcolor{red}{\arb[fullvoc]{#1}}} | 3233 | \newcommand{\fvred}[1]{\arbcolor[red]{\arb[fullvoc]{#1}}} |
3234 | \begin{arab}[voc] | 3234 | \begin{arab}[voc] |
3235 | _tumma "intalaqa _dU 'l-qarn-ayni 'il_A 'ummaT-iN 'u_hr_A fI | 3235 | _tumma "intalaqa _dU 'l-qarn-ayni 'il_A 'ummaT-iN 'u_hr_A fI |
3236 | \fvred{((ma.tli`-i 'l-^sams-i))} wa-lA binA'-a la-hum | 3236 | \fvred{((ma.tli`-i 'l-^sams-i))} wa-lA binA'-a la-hum |
@@ -3478,15 +3478,16 @@ qAla barzawayhi bn-u 'azhar-a, ra's-u 'a.tibbA'-i fAris-a... | |||
3478 | % | 3478 | % |
3479 | % \paragraph{Color} | 3479 | % \paragraph{Color} |
3480 | % \label{sec:textcolor} | 3480 | % \label{sec:textcolor} |
3481 | % The two-argument command \cs{textcolor}\marg{color}\marg{Arabic | 3481 | % The two-argument command |
3482 | % text} is supported inside \cs{begin}|{arab}| \ldots\ | 3482 | % \cs{textcolor}\marg{color}\marg{\cs{arb}\oarg{opt}\marg{Arabic |
3483 | % text}} is supported inside \cs{begin}|{arab}| \ldots\ | ||
3483 | % \cs{end}|{arab}|. One simple example follows:--- % | 3484 | % \cs{end}|{arab}|. One simple example follows:--- % |
3484 | % \iffalse | 3485 | % \iffalse |
3485 | %<*example> | 3486 | %<*example> |
3486 | % \fi | 3487 | % \fi |
3487 | \begin{arabluacode} | 3488 | \begin{arabluacode} |
3488 | \begin{arab} | 3489 | \begin{arab} |
3489 | \textcolor{red}{\uc{m}uha_d_dabu \uc{'l-d}Ini \uc{`a}bdu | 3490 | \arbcolor[red]{\uc{m}uha_d_dabu \uc{'l-d}Ini \uc{`a}bdu |
3490 | \uc{'l-r}a.hImi bnu \uc{`a}liyyiN} huwa ^say_hu-nA 'l-'imAmu | 3491 | \uc{'l-r}a.hImi bnu \uc{`a}liyyiN} huwa ^say_hu-nA 'l-'imAmu |
3491 | 'l-.sadru 'l-kabIru 'l-`Alimu 'l-fA.dilu \uc{m}uha_d_dabu | 3492 | 'l-.sadru 'l-kabIru 'l-`Alimu 'l-fA.dilu \uc{m}uha_d_dabu |
3492 | \uc{'l-d}Ini \uc{'a}bU \uc{m}u.hammadiN \uc{`a}bdu | 3493 | \uc{'l-d}Ini \uc{'a}bU \uc{m}u.hammadiN \uc{`a}bdu |
@@ -3494,7 +3495,7 @@ qAla barzawayhi bn-u 'azhar-a, ra's-u 'a.tibbA'-i fAris-a... | |||
3494 | bi-\uc{'l-d}a_hwari. | 3495 | bi-\uc{'l-d}a_hwari. |
3495 | \end{arab} | 3496 | \end{arab} |
3496 | \begin{arab}[trans] | 3497 | \begin{arab}[trans] |
3497 | \textcolor{red}{\uc{m}uha_d_dabu \uc{'l-d}Ini \uc{`a}bdu | 3498 | \arbcolor[red]{\uc{m}uha_d_dabu \uc{'l-d}Ini \uc{`a}bdu |
3498 | \uc{'l-r}a.hImi bnu \uc{`a}liyyiN} huwa ^say_hu-nA 'l-'imAmu | 3499 | \uc{'l-r}a.hImi bnu \uc{`a}liyyiN} huwa ^say_hu-nA 'l-'imAmu |
3499 | 'l-.sadru 'l-kabIru 'l-`Alimu 'l-fA.dilu \uc{m}uha_d_dabu | 3500 | 'l-.sadru 'l-kabIru 'l-`Alimu 'l-fA.dilu \uc{m}uha_d_dabu |
3500 | \uc{'l-d}Ini \uc{'a}bU \uc{m}u.hammadiN \uc{`a}bdu | 3501 | \uc{'l-d}Ini \uc{'a}bU \uc{m}u.hammadiN \uc{`a}bdu |
@@ -3711,9 +3712,13 @@ wa-ya.sIru ta.hta 'l-jild-i | |||
3711 | % to give any command---either new or already existing---the | 3712 | % to give any command---either new or already existing---the |
3712 | % precedence over \package{arabluatex} inside Arabic environments. It | 3713 | % precedence over \package{arabluatex} inside Arabic environments. It |
3713 | % is actually coded in Lua. | 3714 | % is actually coded in Lua. |
3715 | % \changes{v1.12}{2018/06/11}{TODO} | ||
3714 | % \begin{macrocode} | 3716 | % \begin{macrocode} |
3715 | \DeclareDocumentCommand{\MkArbBreak}{m}{% | 3717 | \DeclareDocumentCommand{\MkArbBreak}{s m}{% |
3716 | \luadirect{mkarbbreak(\luastringN{#1})}} | 3718 | \IfBooleanTF{#1} |
3719 | {\luadirect{mkarbbreak(\luastringN{#1}, "out")}} | ||
3720 | {\luadirect{mkarbbreak(\luastringN{#1}, "dflt")}} | ||
3721 | } | ||
3717 | % \end{macrocode} | 3722 | % \end{macrocode} |
3718 | % \end{macro} | 3723 | % \end{macro} |
3719 | % \begin{macro}{\aemph} Arabic emphasis. Needs to be redefined as | 3724 | % \begin{macro}{\aemph} Arabic emphasis. Needs to be redefined as |
@@ -3735,6 +3740,16 @@ wa-ya.sIru ta.hta 'l-jild-i | |||
3735 | % \end{macrocode} | 3740 | % \end{macrocode} |
3736 | % \end{macro} | 3741 | % \end{macro} |
3737 | % \end{macro} | 3742 | % \end{macro} |
3743 | % \begin{macro}{\arbcolor}\changes{v1.12}{2018/06/10}{Standard color | ||
3744 | % command for Arabic environments} | ||
3745 | % \cs{arbcolor}\oarg{color}\marg{Arabic text} takes the Arabic text to | ||
3746 | % be colored as argument. | ||
3747 | % \begin{macrocode} | ||
3748 | \NewDocumentCommand{\arbcolor}{o m}{% | ||
3749 | \IfNoValueTF{#1}{#2}{\textcolor{#1}{#2}}} | ||
3750 | % \end{macrocode} | ||
3751 | % | ||
3752 | % \end{macro} | ||
3738 | % \begin{macro}{\SetInputScheme} | 3753 | % \begin{macro}{\SetInputScheme} |
3739 | % \changes{v1.4}{2016/07/05}{\cs{SetInputScheme} can be used to | 3754 | % \changes{v1.4}{2016/07/05}{\cs{SetInputScheme} can be used to |
3740 | % process other input schemes such as \enquote*{Buckwalter}} | 3755 | % process other input schemes such as \enquote*{Buckwalter}} |