diff options
Diffstat (limited to 'arabluatex.dtx')
-rw-r--r-- | arabluatex.dtx | 58 |
1 files changed, 49 insertions, 9 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx index cecee31..2f6b393 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/03/29 v1.0 This is ArabTeX for LuaLaTeX] | 30 | [2016/03/31 v1.0.1 This is ArabTeX for LuaLaTeX] |
31 | %</package-info> | 31 | %</package-info> |
32 | % | 32 | % |
33 | %<*driver> | 33 | %<*driver> |
@@ -40,7 +40,7 @@ | |||
40 | \setmainfont{Libertinus Serif} | 40 | \setmainfont{Libertinus Serif} |
41 | \setsansfont{Libertinus Sans} | 41 | \setsansfont{Libertinus Sans} |
42 | \setmonofont[Scale=.9]{Libertinus Mono} | 42 | \setmonofont[Scale=.9]{Libertinus Mono} |
43 | \usepackage{arabluatex}[2016/03/29] | 43 | \usepackage{arabluatex}[2016/03/31] |
44 | \usepackage{polyglossia} | 44 | \usepackage{polyglossia} |
45 | \setdefaultlanguage{english} | 45 | \setdefaultlanguage{english} |
46 | \setotherlanguage{arabic} | 46 | \setotherlanguage{arabic} |
@@ -116,6 +116,7 @@ | |||
116 | % | 116 | % |
117 | % | 117 | % |
118 | % \changes{1.0}{2016/03/29}{Initial release} | 118 | % \changes{1.0}{2016/03/29}{Initial release} |
119 | % \changes{1.0.1}{2016/03/31}{Minor update of the documentation} | ||
119 | % | 120 | % |
120 | % \DoNotIndex{\newcommand,\newenvironment,\renewcommand} | 121 | % \DoNotIndex{\newcommand,\newenvironment,\renewcommand} |
121 | % \DoNotIndex{\~,\AtBeginDocument,\bgroup,\csname} | 122 | % \DoNotIndex{\~,\AtBeginDocument,\bgroup,\csname} |
@@ -1683,8 +1684,8 @@ al-muqAtilIna.}, wa-kAnat 'ummI min `u.zamA'i buyUti | |||
1683 | % \fi | 1684 | % \fi |
1684 | \begin{arabluacode} | 1685 | \begin{arabluacode} |
1685 | \begin{arab} | 1686 | \begin{arab} |
1686 | wa-'at_A _dU 'l-qarnayni 'ummaTaN 'llatI hiya fI | 1687 | _tumma "intalaqa _dU 'l-qarnayni 'il_A 'ummaTiN 'u_hr_A fI |
1687 | \LR{\textcolor{red}{\arb[fullvoc]{((ma.gribi 'l-^samsi))}}} | 1688 | \LR{\textcolor{red}{\arb[fullvoc]{((ma.tli`i 'l-^samsi))}}} |
1688 | wa-lA binA'a la-hum yu'amminu-hum mina 'l-^samsi. | 1689 | wa-lA binA'a la-hum yu'amminu-hum mina 'l-^samsi. |
1689 | \end{arab} | 1690 | \end{arab} |
1690 | \end{arabluacode} | 1691 | \end{arabluacode} |
@@ -1754,14 +1755,53 @@ qAla barzawayhi bnu 'azhara, ra'su 'a.tibbA'i fArisa... | |||
1754 | %</example> | 1755 | %</example> |
1755 | % \fi | 1756 | % \fi |
1756 | % | 1757 | % |
1757 | % \paragraph{\package{reledmac}} The two-arguments command | 1758 | % \subsection{\package{csquotes}} |
1758 | % \cs{edtext}\marg{lemma}\marg{commands} is supported inside | 1759 | % \label{sec:csquotes} |
1759 | % \cs{begin}|{arab}| \ldots\ \cs{end}|{arab}|. As an example, one may | 1760 | % The recommended way of inserting quotation marks in running Arabic |
1760 | % get \package{arabluatex} and \package{reledmac} to work together | 1761 | % text is to use \package{csquotes}. With the help of the |
1761 | % like so:--- | 1762 | % \cs{DeclareQuoteStyle} command, one can define an Arabic style, like |
1763 | % so:--- | ||
1764 | % \iffalse | ||
1765 | %<*example> | ||
1766 | % \fi | ||
1767 | \begin{arabluaverbatim} | ||
1768 | \usepackage{csquotes} | ||
1769 | \DeclareQuoteStyle{arabic} | ||
1770 | {\rmfamily\textquotedblright}{\rmfamily\textquotedblleft} | ||
1771 | {\rmfamily\textquoteright}{\rmfamily\textquoteleft} | ||
1772 | \end{arabluaverbatim} | ||
1773 | % \iffalse | ||
1774 | %</example> | ||
1775 | % \fi | ||
1776 | % Then, use this newly defined style with \cs{setquotestyle}, like so:--- | ||
1762 | % \iffalse | 1777 | % \iffalse |
1763 | %<*example> | 1778 | %<*example> |
1764 | % \fi | 1779 | % \fi |
1780 | \begin{arabluacode} | ||
1781 | \setquotestyle{arabic} | ||
1782 | \begin{arab} | ||
1783 | fa-qAla la-hu ju.hA: \enquote{.garIbuN 'amru-ka yA .sadIqI | ||
1784 | 'a-tu.saddiqu 'l-.himAra wa-tuka_d_dibu-nI?} | ||
1785 | \end{arab} | ||
1786 | \setquotestyle{english} | ||
1787 | \end{arabluacode} | ||
1788 | % \iffalse | ||
1789 | %</example> | ||
1790 | % \fi | ||
1791 | % \begin{quoting} | ||
1792 | % \textsc{Rem.} Do not forget to set back the quoting style to its | ||
1793 | % initial state once the Arabic environment is closed. See the last | ||
1794 | % line in the code above. | ||
1795 | % \end{quoting} | ||
1796 | % | ||
1797 | % \subsection{\package{reledmac}} | ||
1798 | % \label{sec:reledmac} | ||
1799 | % The two-arguments command \cs{edtext}\marg{lemma}\marg{commands} is | ||
1800 | % supported inside \cs{begin}|{arab}| \ldots\ \cs{end}|{arab}|. As an | ||
1801 | % example, one may get \package{arabluatex} and \package{reledmac} to | ||
1802 | % work together like so:--- \iffalse | ||
1803 | %<*example> | ||
1804 | % \fi | ||
1765 | \begin{arabluaverbatim} | 1805 | \begin{arabluaverbatim} |
1766 | \beginnumbering | 1806 | \beginnumbering |
1767 | \pstart | 1807 | \pstart |