aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.dtx')
-rw-r--r--arabluatex.dtx52
1 files changed, 42 insertions, 10 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx
index fccee3c..ff52e80 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/09/09 v1.4.2 This is ArabTeX for LuaLaTeX] 30 [2016/09/14 v1.4.3 This is ArabTeX for LuaLaTeX]
31%</package-info> 31%</package-info>
32% 32%
33%<*driver> 33%<*driver>
@@ -145,7 +145,7 @@
145\defaultfontfeatures{RawFeature={+liga}} 145\defaultfontfeatures{RawFeature={+liga}}
146\setmainfont{Old Standard}[SmallCapsFont={Latin Modern Roman Caps}, 146\setmainfont{Old Standard}[SmallCapsFont={Latin Modern Roman Caps},
147 RawFeature={+mark;+ccmp;+ss05;+ss06}] 147 RawFeature={+mark;+ccmp;+ss05;+ss06}]
148\usepackage{arabluatex}[2016/09/09] 148\usepackage{arabluatex}[2016/09/14]
149\usepackage{varioref} 149\usepackage{varioref}
150\usepackage{hypdoc} 150\usepackage{hypdoc}
151\hypersetup{unicode=true, colorlinks, allcolors=blue, 151\hypersetup{unicode=true, colorlinks, allcolors=blue,
@@ -161,7 +161,7 @@
161\usepackage[position=below]{caption} 161\usepackage[position=below]{caption}
162\usepackage{longtable} 162\usepackage{longtable}
163\usepackage{booktabs} 163\usepackage{booktabs}
164\usepackage[defaultlines=2,all]{nowidow} 164\usepackage[defaultlines=3,all]{nowidow}
165\usepackage{tikz} 165\usepackage{tikz}
166\usepackage[breakable, skins, listings, xparse]{tcolorbox} 166\usepackage[breakable, skins, listings, xparse]{tcolorbox}
167\DeclareTCBListing{arabluacode}{s O{}}{colback=white, boxrule=.15mm, 167\DeclareTCBListing{arabluacode}{s O{}}{colback=white, boxrule=.15mm,
@@ -198,7 +198,7 @@
198%</driver> 198%</driver>
199% \fi 199% \fi
200% 200%
201% \CheckSum{0} 201% \CheckSum{376}
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
@@ -1524,7 +1524,7 @@ vowels (see §~3).
1524% \arb[novoc]{a"'} & \dmg{a"'} & \loc{a"'} & \verb|a"'| \\ 1524% \arb[novoc]{a"'} & \dmg{a"'} & \loc{a"'} & \verb|a"'| \\
1525% \arb[novoc]{u"'} & \dmg{u"'} & \loc{u"'} & \verb|u"'| \\ 1525% \arb[novoc]{u"'} & \dmg{u"'} & \loc{u"'} & \verb|u"'| \\
1526% \arb[novoc]{w"'} & \dmg{w"'} & \loc{w"'} & \verb|w"'| \\ 1526% \arb[novoc]{w"'} & \dmg{w"'} & \loc{w"'} & \verb|w"'| \\
1527% \arb[novoc]{i"'} & \dmg{i"'} & \loc{i"'} & \verb|i"'| \\ \pagebreak 1527% \arb[novoc]{i"'} & \dmg{i"'} & \loc{i"'} & \verb|i"'| \\
1528% \arb[novoc]{y"'} & \dmg{y"'} & \loc{y"'} & \verb|y"'| \\ 1528% \arb[novoc]{y"'} & \dmg{y"'} & \loc{y"'} & \verb|y"'| \\
1529% \bottomrule 1529% \bottomrule
1530% \caption*{\Cref*{tab:quoted-hamza}: \enquote{Quoted} \arb[trans]{hamzaT}} 1530% \caption*{\Cref*{tab:quoted-hamza}: \enquote{Quoted} \arb[trans]{hamzaT}}
@@ -1712,6 +1712,37 @@ vowels (see §~3).
1712% \arb[trans]{B--aN}, |B"| \arb[voc]{B"}\,. 1712% \arb[trans]{B--aN}, |B"| \arb[voc]{B"}\,.
1713% \end{quote} 1713% \end{quote}
1714% 1714%
1715% \paragraph{Brackets}
1716% \NEWfeature{v1.4.3} The various bracket symbols are useful in
1717% technical documents such as critical editions for indicating that
1718% some words or some letters must be added or
1719% removed. \package{arabluatex} will automatically fit those symbols
1720% to the direction of the text. For the time being, the following
1721% symbols are supported:
1722% \begin{compactitem}
1723% \item parentheses: |()|
1724% \item square brackets: |[]|
1725% \item angle brackets: |<>|
1726% \item braces: |{}|
1727% \end{compactitem}
1728%
1729% \DescribeMacro{\abraces} Parentheses, square and angle brackets may
1730% be input directly at the keyboard; however, words or letters that
1731% are to be read between braces must be passed as arguments to the
1732% command \cs{abraces}:---
1733% \iffalse
1734%<*example>
1735% \fi
1736\begin{arabluacode}
1737 \begin{arab}
1738 \abraces{wa-qAla} 'inna 'abI kAna mina 'l-muqAtilaTi
1739 wa-kAna--<--t> 'ummI min `u.zamA'i buyUti 'l-zamAzimaTi.
1740 \end{arab}
1741\end{arabluacode}
1742% \iffalse
1743%</example>
1744% \fi
1745%
1715% \section{Transliteration} 1746% \section{Transliteration}
1716% \label{sec:transliteration} 1747% \label{sec:transliteration}
1717% It may be more appropriate to speak of \enquote{romanization} than 1748% It may be more appropriate to speak of \enquote{romanization} than
@@ -2352,7 +2383,7 @@ wa-ya.sIru ta.hta 'l-jild-i
2352% \begin{macrocode} 2383% \begin{macrocode}
2353\NeedsTeXFormat{LaTeX2e} 2384\NeedsTeXFormat{LaTeX2e}
2354\ProvidesPackage{arabluatex}% 2385\ProvidesPackage{arabluatex}%
2355[2016/09/09 v1.4.2 ArabTeX-like interface for LuaLaTeX] 2386[2016/09/14 v1.4.3 ArabTeX-like interface for LuaLaTeX]
2356\RequirePackage{ifluatex} 2387\RequirePackage{ifluatex}
2357% \end{macrocode} 2388% \end{macrocode}
2358% \package{arabluatex} requires \LuaLaTeX\ of course. Issue a warning 2389% \package{arabluatex} requires \LuaLaTeX\ of course. Issue a warning
@@ -2636,10 +2667,11 @@ wa-ya.sIru ta.hta 'l-jild-i
2636% \end{macrocode} 2667% \end{macrocode}
2637% \end{macro} 2668% \end{macro}
2638% \begin{macro}{\abraces} 2669% \begin{macro}{\abraces}
2639% \cs{abraces}\marg{Arabic text} puts its argument between curly 2670% \cs{abraces}\marg{Arabic text} puts its argument between
2640% braces. 2671% braces. This macro is written in Lua and is dependent on the
2641% \changes{v1.4.3}{2016/09/13}{New command \cs{abraces} expresses 2672% current value of |tex.textdir|.
2642% its argument between curly braces.} 2673% \changes{v1.4.3}{2016/09/14}{New command \cs{abraces} which
2674% expresses its argument between braces.}
2643% \begin{macrocode} 2675% \begin{macrocode}
2644\NewDocumentCommand{\abraces}{+m}{% 2676\NewDocumentCommand{\abraces}{+m}{%
2645 \luadirect{tex.sprint(abraces(\luastringN{#1}))}} 2677 \luadirect{tex.sprint(abraces(\luastringN{#1}))}}