diff options
author | Robert Alessi <alessi@robertalessi.net> | 2016-07-05 09:58:13 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2016-07-05 09:58:13 +0200 |
commit | 096137dec1ba59f789928fb91d2a824041cf2c69 (patch) | |
tree | 503885be6c83e768b340f9371d3eeb74373eda0c | |
parent | c41c28e8b22ec1f316aa705939e021f6ec59cdaa (diff) | |
download | arabluatex-096137dec1ba59f789928fb91d2a824041cf2c69.tar.gz |
added clarification about \SetTranslitFont
-rw-r--r-- | arabluatex.dtx | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx index 7f5246c..f72d1d9 100644 --- a/arabluatex.dtx +++ b/arabluatex.dtx | |||
@@ -27,7 +27,7 @@ | |||
27 | %<package-info>\NeedsTeXFormat{LaTeX2e}[1999/12/01] | 27 | %<package-info>\NeedsTeXFormat{LaTeX2e}[1999/12/01] |
28 | %<package-info>\ProvidesPackage{arabluatex} | 28 | %<package-info>\ProvidesPackage{arabluatex} |
29 | %<*package-info> | 29 | %<*package-info> |
30 | [2016/05/28 v1.3 This is ArabTeX for LuaLaTeX] | 30 | [2016/07/05 v1.4 This is ArabTeX for LuaLaTeX] |
31 | %</package-info> | 31 | %</package-info> |
32 | % | 32 | % |
33 | %<*driver> | 33 | %<*driver> |
@@ -135,7 +135,7 @@ | |||
135 | \defaultfontfeatures{RawFeature={+liga}} | 135 | \defaultfontfeatures{RawFeature={+liga}} |
136 | \setmainfont{Old Standard}[SmallCapsFont={Latin Modern Roman Caps}] | 136 | \setmainfont{Old Standard}[SmallCapsFont={Latin Modern Roman Caps}] |
137 | \newfontfamily\translitfont{Latin Modern Roman}[Ligatures=TeX] | 137 | \newfontfamily\translitfont{Latin Modern Roman}[Ligatures=TeX] |
138 | \usepackage{arabluatex}[2016/05/28] | 138 | \usepackage{arabluatex}[2016/07/05] |
139 | \SetTranslitFont{\translitfont} | 139 | \SetTranslitFont{\translitfont} |
140 | \usepackage{varioref} | 140 | \usepackage{varioref} |
141 | \usepackage{hypdoc} | 141 | \usepackage{hypdoc} |
@@ -189,7 +189,7 @@ | |||
189 | %</driver> | 189 | %</driver> |
190 | % \fi | 190 | % \fi |
191 | % | 191 | % |
192 | % \CheckSum{0} | 192 | % \CheckSum{371} |
193 | % | 193 | % |
194 | % \CharacterTable | 194 | % \CharacterTable |
195 | % {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 | 195 | % {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 |
@@ -217,7 +217,8 @@ | |||
217 | % \DoNotIndex{\else,\endcsname,\endinput,\expandafter,\fi} | 217 | % \DoNotIndex{\else,\endcsname,\endinput,\expandafter,\fi} |
218 | % \DoNotIndex{\ifdef,\ifdefined,\ifx,\MessageBreak,\NeedsTeXFormat} | 218 | % \DoNotIndex{\ifdef,\ifdefined,\ifx,\MessageBreak,\NeedsTeXFormat} |
219 | % \DoNotIndex{\NewDocumentCommand,\newif,\PackageError,\PackageWarning} | 219 | % \DoNotIndex{\NewDocumentCommand,\newif,\PackageError,\PackageWarning} |
220 | % \DoNotIndex{\relax,\RenewDocumentCommand,\string,\verb} | 220 | % \DoNotIndex{\relax,\RenewDocumentCommand,\string,\verb,\let} |
221 | % \DoNotIndex{\enskip} | ||
221 | % | 222 | % |
222 | % \providecommand*{\url}{\texttt} | 223 | % \providecommand*{\url}{\texttt} |
223 | % \GetFileInfo{arabluatex.dtx} | 224 | % \GetFileInfo{arabluatex.dtx} |
@@ -1749,12 +1750,13 @@ vowels (see ยง~3). | |||
1749 | % font shape selection command, eg. \cs{upshape}, \cs{itshape}, | 1750 | % font shape selection command, eg. \cs{upshape}, \cs{itshape}, |
1750 | % \cs{slshape}, and so forth. | 1751 | % \cs{slshape}, and so forth. |
1751 | % | 1752 | % |
1752 | % \paragraph{Font} \DescribeMacro{\SetTranslitFont} Any specific font | 1753 | % \paragraph{Font} \NEWfeature{v1.4} \DescribeMacro{\SetTranslitFont} |
1753 | % may also be selected for rendering transliterated text with the | 1754 | % \cs{SetTranslitFont}\marg{font selection command} allows any |
1754 | % font-selecting commands of the \package{fontspec} package. Of | 1755 | % specific font to be selected for rendering transliterated text with |
1755 | % course, this font must have been defined properly. To take one | 1756 | % the font-selecting commands of the \package{fontspec} or |
1756 | % example, here is how the \emph{Gentium Plus} font may be used for | 1757 | % \package{luaotfload} package. Of course, this font must have been |
1757 | % rendering transliterated text:--- | 1758 | % defined properly. To take one example, here is how the \emph{Gentium |
1759 | % Plus} font may be used for rendering transliterated text:--- | ||
1758 | % \iffalse | 1760 | % \iffalse |
1759 | %<*example> | 1761 | %<*example> |
1760 | % \fi | 1762 | % \fi |
@@ -2314,7 +2316,7 @@ wa-ya.sIru ta.hta 'l-jild-i | |||
2314 | % \begin{macrocode} | 2316 | % \begin{macrocode} |
2315 | \NeedsTeXFormat{LaTeX2e} | 2317 | \NeedsTeXFormat{LaTeX2e} |
2316 | \ProvidesPackage{arabluatex}% | 2318 | \ProvidesPackage{arabluatex}% |
2317 | [2016/05/28 v1.3 ArabTeX-like interface for LuaLaTeX] | 2319 | [2016/07/05 v1.4 ArabTeX-like interface for LuaLaTeX] |
2318 | \RequirePackage{ifluatex} | 2320 | \RequirePackage{ifluatex} |
2319 | % \end{macrocode} | 2321 | % \end{macrocode} |
2320 | % \package{arabluatex} requires \LuaLaTeX\ of course. Issue a warning | 2322 | % \package{arabluatex} requires \LuaLaTeX\ of course. Issue a warning |
@@ -2410,7 +2412,7 @@ wa-ya.sIru ta.hta 'l-jild-i | |||
2410 | {\NewDocumentCommand{\aemph}{m}{$\overline{\text{#1}}$}}} | 2412 | {\NewDocumentCommand{\aemph}{m}{$\overline{\text{#1}}$}}} |
2411 | % \end{macrocode} | 2413 | % \end{macrocode} |
2412 | % \begin{macro}{\SetInputScheme} | 2414 | % \begin{macro}{\SetInputScheme} |
2413 | % \changes{v1.4}{2016/07/04}{\cs{SetInputScheme} may be used to | 2415 | % \changes{v1.4}{2016/07/05}{\cs{SetInputScheme} may be used to |
2414 | % process other input schemes such as \enquote*{Buckwalter}} | 2416 | % process other input schemes such as \enquote*{Buckwalter}} |
2415 | % \package{arabluatex} is designed for processing Arab\TeX\ input | 2417 | % \package{arabluatex} is designed for processing Arab\TeX\ input |
2416 | % notation. \cs{SetInputScheme} may be used in the preamble or at | 2418 | % notation. \cs{SetInputScheme} may be used in the preamble or at |
@@ -2440,10 +2442,11 @@ wa-ya.sIru ta.hta 'l-jild-i | |||
2440 | % \end{macrocode} | 2442 | % \end{macrocode} |
2441 | % \end{macro} | 2443 | % \end{macro} |
2442 | % \begin{macro}{\SetTranslitFont} | 2444 | % \begin{macro}{\SetTranslitFont} |
2443 | % By default, the font that is used for transliterated text is the | 2445 | % \changes{v1.4}{2016/07/05}{For selecting a specific font for |
2444 | % main font of the document. Any other font may also be selected | 2446 | % transliterated texts} By default, the font that is used for |
2445 | % with the font-selecting commands of the \package{fontspec} | 2447 | % transliterated text is the main font of the document. Any other |
2446 | % package. | 2448 | % font may also be selected with the font-selecting commands of the |
2449 | % \package{fontspec} package. | ||
2447 | % \begin{macrocode} | 2450 | % \begin{macrocode} |
2448 | \def\al@trans@font{\rmfamily}% | 2451 | \def\al@trans@font{\rmfamily}% |
2449 | \NewDocumentCommand{\SetTranslitFont}{m}{\def\al@trans@font{#1}} | 2452 | \NewDocumentCommand{\SetTranslitFont}{m}{\def\al@trans@font{#1}} |