aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.dtx')
-rw-r--r--arabluatex.dtx39
1 files changed, 30 insertions, 9 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx
index ff52e80..2d6eb13 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -198,7 +198,7 @@
198%</driver> 198%</driver>
199% \fi 199% \fi
200% 200%
201% \CheckSum{376} 201% \CheckSum{0}
202% 202%
203% \CharacterTable 203% \CharacterTable
204% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z 204% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -510,12 +510,16 @@
510% \item In |fullvoc| mode, the \arb[trans]{sukUn} is expressed. 510% \item In |fullvoc| mode, the \arb[trans]{sukUn} is expressed.
511% \end{compactitem} 511% \end{compactitem}
512% 512%
513% \DescribeMacro{\SetArbEasy} \DescribeMacro{\SetArbDflt} Such 513% \DescribeMacro{\SetArbEasy} \NEWfeature{v1.4.4}
514% \DescribeMacro{\SetArbEasy*} \DescribeMacro{\SetArbDflt} Such
514% refinements may be discarded by the command \cs{SetArbEasy}, either 515% refinements may be discarded by the command \cs{SetArbEasy}, either
515% globally in the preamble or locally at any point of the 516% globally in the preamble or locally at any point of the
516% document. Default \enquote*{classic} rules may be set back at any 517% document. The difference between \cs{SetArbEasy} and its
517% point of the document with the command \cs{SetArbDflt}. Examples 518% \enquote*{starred} version \cs{SetArbEasy*} is that the former keeps
518% follow:--- 519% the \arb[trans]{sukUn} that is generated by the |fullvoc| mode,
520% while the latter further takes it away. Default \enquote*{classic}
521% rules may be set back at any point of the document with the command
522% \cs{SetArbDflt}. Examples follow:---
519% \begin{compactenum}[(a)] 523% \begin{compactenum}[(a)]
520% \item \cs{SetArbDflt}: 524% \item \cs{SetArbDflt}:
521% \begin{compactenum}[i.] 525% \begin{compactenum}[i.]
@@ -535,6 +539,15 @@
535% \item |trans| \arb[trans]{wa-mAta istisqA'aN qabla 'an yutimma 539% \item |trans| \arb[trans]{wa-mAta istisqA'aN qabla 'an yutimma
536% kitAba-hu fI nujUm-i 'l-samA'-i}\SetArbDflt 540% kitAba-hu fI nujUm-i 'l-samA'-i}\SetArbDflt
537% \end{compactenum} 541% \end{compactenum}
542% \item \cs{SetArbEasy*}:
543% \begin{compactenum}[i.]\SetArbEasy*
544% \item |voc| \arb[voc]{wa-mAta istisqA'aN qabla 'an yutimma
545% kitAba-hu fI nujUm-i 'l-samA'-i}
546% \item |fullvoc| \arb[fullvoc]{wa-mAta istisqA'aN qabla 'an yutimma
547% kitAba-hu fI nujUm-i 'l-samA'-i}
548% \item |trans| \arb[trans]{wa-mAta istisqA'aN qabla 'an yutimma
549% kitAba-hu fI nujUm-i 'l-samA'-i}\SetArbDflt
550% \end{compactenum}
538% \end{compactenum} 551% \end{compactenum}
539% 552%
540% \iffalse 553% \iffalse
@@ -2494,20 +2507,29 @@ wa-ya.sIru ta.hta 'l-jild-i
2494% \begin{macro}{\SetArbEasy} 2507% \begin{macro}{\SetArbEasy}
2495% \changes{v1.2}{2016/05/09}{New \cs{SetArbEasy}/\cs{SetArbDflt} for 2508% \changes{v1.2}{2016/05/09}{New \cs{SetArbEasy}/\cs{SetArbDflt} for
2496% \enquote*{modern} or \enquote*{classic} Arabic styles.} 2509% \enquote*{modern} or \enquote*{classic} Arabic styles.}
2510% \begin{macro}{\SetArbEasy*}
2511% \changes{v1.4.4}{2016/09/28}{this starred version discards the
2512% \arb[trans]{sukUn} in addition to what is already discarded by
2513% \cs{SetArbEasy}.}
2497% \begin{macro}{\SetArbDflt} 2514% \begin{macro}{\SetArbDflt}
2498% By default, \package{arabluatex} applies complex rules to generate 2515% By default, \package{arabluatex} applies complex rules to generate
2499% euphonic \arb[trans]{ta^sdId}, \arb[trans]{'alif mamdUdaT} and 2516% euphonic \arb[trans]{ta^sdId}, \arb[trans]{'alif mamdUdaT} and
2500% \arb[trans]{sukUn} depending on the modes which are selected, 2517% \arb[trans]{sukUn} depending on the modes which are selected,
2501% either |voc|, |fullvoc| or |trans|. Such refinements can be 2518% either |voc|, |fullvoc| or |trans|. Such refinements can be
2502% discarded with \cs{SetArbEasy}, either globally in the preamble or 2519% discarded with \cs{SetArbEasy}, either globally in the preamble or
2503% at any point of the document. Default complex rules can be set 2520% at any point of the document. Note that \cs{SetArbEasy} keeps the
2521% \arb[trans]{sukUn} that is generated, while the starred version
2522% \cs{SetArbEasy*} takes it away. Default complex rules can be set
2504% back at any point of the document with \cs{SetArbDflt}. 2523% back at any point of the document with \cs{SetArbDflt}.
2505% \begin{macrocode} 2524% \begin{macrocode}
2506\def\al@arb@rules{dflt} 2525\def\al@arb@rules{dflt} \NewDocumentCommand{\SetArbEasy}{s}{%
2507\NewDocumentCommand{\SetArbEasy}{}{\def\al@arb@rules{easy}} 2526 \IfBooleanTF{#1} {\def\al@arb@rules{easynosukun}}
2527 {\def\al@arb@rules{easy}}}
2508\NewDocumentCommand{\SetArbDflt}{}{\def\al@arb@rules{dflt}} 2528\NewDocumentCommand{\SetArbDflt}{}{\def\al@arb@rules{dflt}}
2509% \end{macrocode} 2529% \end{macrocode}
2510% \end{macro} 2530% \end{macro}
2531% \end{macro}
2532% \end{macro}
2511% \begin{macro}{\SetTranslitFont} 2533% \begin{macro}{\SetTranslitFont}
2512% \changes{v1.4}{2016/07/05}{For selecting a specific font for 2534% \changes{v1.4}{2016/07/05}{For selecting a specific font for
2513% transliterated texts} By default, the font that is used for 2535% transliterated texts} By default, the font that is used for
@@ -2519,7 +2541,6 @@ wa-ya.sIru ta.hta 'l-jild-i
2519\NewDocumentCommand{\SetTranslitFont}{m}{\def\al@trans@font{#1}} 2541\NewDocumentCommand{\SetTranslitFont}{m}{\def\al@trans@font{#1}}
2520% \end{macrocode} 2542% \end{macrocode}
2521% \end{macro} 2543% \end{macro}
2522% \end{macro}
2523% \begin{macro}{\SetTranslitStyle} By default any transliterated 2544% \begin{macro}{\SetTranslitStyle} By default any transliterated
2524% Arabic text is printed in italics. This can be changed either 2545% Arabic text is printed in italics. This can be changed either
2525% globally in the preamble or at any point of the document: 2546% globally in the preamble or at any point of the document: