summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-03-31 23:23:33 +0000
committerKarl Berry <karl@freefriends.org>2017-03-31 23:23:33 +0000
commit5a79b99deceadff69a94adffd5df61caccfa7554 (patch)
treeb0d921581a99d71ae62cf6fd88e1715d5501b8ed /Master
parent071026baab3643897ae28725b0cd7120214920dd (diff)
arabluatex (31mar17)
git-svn-id: svn://tug.org/texlive/trunk@43663 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/lualatex/arabluatex/arabluatex.pdfbin452855 -> 454991 bytes
-rw-r--r--Master/texmf-dist/source/lualatex/arabluatex/arabluatex.dtx319
-rw-r--r--Master/texmf-dist/tex/lualatex/arabluatex/arabluatex.lua37
-rw-r--r--Master/texmf-dist/tex/lualatex/arabluatex/arabluatex.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/arabluatex/arabluatex_trans.lua150
5 files changed, 356 insertions, 152 deletions
diff --git a/Master/texmf-dist/doc/lualatex/arabluatex/arabluatex.pdf b/Master/texmf-dist/doc/lualatex/arabluatex/arabluatex.pdf
index 6e7f3144129..81f653858e1 100644
--- a/Master/texmf-dist/doc/lualatex/arabluatex/arabluatex.pdf
+++ b/Master/texmf-dist/doc/lualatex/arabluatex/arabluatex.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/lualatex/arabluatex/arabluatex.dtx b/Master/texmf-dist/source/lualatex/arabluatex/arabluatex.dtx
index 941387bc7f9..3e2c1d76a98 100644
--- a/Master/texmf-dist/source/lualatex/arabluatex/arabluatex.dtx
+++ b/Master/texmf-dist/source/lualatex/arabluatex/arabluatex.dtx
@@ -27,7 +27,7 @@
%<package-info>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package-info>\ProvidesPackage{arabluatex}
%<*package-info>
- [2017/03/18 v1.7.3 An ArabTeX-like interface for LuaLaTeX]
+ [2017/03/30 v1.8 An ArabTeX-like interface for LuaLaTeX]
%</package-info>
%
%<*driver>
@@ -145,7 +145,7 @@
\defaultfontfeatures{RawFeature={+liga}}
\setmainfont{Old Standard}[SmallCapsFont={Latin Modern Roman Caps},
RawFeature={+mark;+ccmp;+ss05;+ss06}]
-\usepackage{arabluatex}[2017/03/18]
+\usepackage{arabluatex}[2017/03/30]
\usepackage[nopar]{quran}
\usepackage{varioref}
\usepackage{hyperxmp}
@@ -511,12 +511,13 @@
%
% \DescribeOption{trans} \\ \label{ref:describe-trans}This mode
% transliterates the Arab\TeX\ input into one of the accepted
-% standards. At present, two standards are supported (see below
+% standards. At present, three standards are supported (see below
% \vref{sec:transliteration} for more details):
% \begin{compactdesc}
% \item[dmg] \emph{Deutsche Morgenländische Gesellschaft}, which is
% selected by default;
-% \item[loc] \emph{Library of Congress}.
+% \item[loc] \emph{Library of Congress};
+% \item[arabica] \emph{Arabica}.
% \end{compactdesc}
% More standards will be included in future releases of
% \package{arabluatex}.
@@ -730,51 +731,54 @@ vowels (see §~3).
% \newcommand{\loc}[1]{%
% \SetTranslitConvention{loc}%
% \arb[trans]{#1}\SetTranslitConvention{dmg}}
-% \begin{longtable}{llll}
+% \newcommand{\brill}[1]{%
+% \SetTranslitConvention{arabica}%
+% \arb[trans]{#1}\SetTranslitConvention{dmg}}
+% \begin{longtable}{lllll}
% \captionlistentry{Arab\TeX\ consonants}\\[-1em]
% \toprule
-% Letter & \multicolumn{2}{l}{Transliteration\footnotemark}
+% Letter & \multicolumn{3}{l}{Transliteration\footnotemark}
% & Arab\TeX\ notation \\
-% & \texttt{dmg} & \texttt{loc} & \\ \midrule
+% & \texttt{dmg} & \texttt{loc} & \texttt{arabica} & \\ \midrule
% \endfirsthead
% \toprule
-% Letter & \multicolumn{2}{l}{Transliteration}
+% Letter & \multicolumn{3}{l}{Transliteration}
% & Arab\TeX\ notation \\
-% & \texttt{dmg} & \texttt{loc} & \\ \midrule
+% & \texttt{dmg} & \texttt{loc} & \texttt{arabica} & \\ \midrule
% \endhead \footnotetext{See below \vref{sec:transliteration}.}
% \label{tab:arabtex-consonants}
% \arb[novoc]{a}\footnote{For \arb[trans]{'alif} as a consonant, see
% \textcite[i. 16 D]{Wright}. The \arb[trans]{hamzaT} itself is
% encoded \texttt{<'>}. See below \vref{ref:hamza}.} & \dmg{a} &
-% \loc{a} & \verb|a| \\
-% \arb[novoc]{b} & \dmg{b} & \loc{b} & |b| \\
-% \arb[novoc]{t} & \dmg{t} & \loc{t} & |t| \\
-% \arb[novoc]{_t} & \dmg{_t} & \loc{_t} & |_t| \\
-% \arb[novoc]{j} & \dmg{j} & \loc{j} & |^g| or |j| \\
-% \arb[novoc]{.h} & \dmg{.h} & \loc{.h} & |.h| \\
-% \arb[novoc]{x} & \dmg{x} & \loc{x} & |_h| or |x|\\
-% \arb[novoc]{d} & \dmg{d} & \loc{d} & |d| \\
-% \arb[novoc]{_d} & \dmg{_d} & \loc{_d} & |_d| \\
-% \arb[novoc]{r} & \dmg{r} & \loc{r} & |r| \\
-% \arb[novoc]{z} & \dmg{z} & \loc{z} & |z| \\
-% \arb[novoc]{s} & \dmg{s} & \loc{s} & |s| \\
-% \arb[novoc]{^s} & \dmg{^s} & \loc{^s} & |^s| \\
-% \arb[novoc]{.s} & \dmg{.s} & \loc{.s} & |.s| \\
-% \arb[novoc]{.d} & \dmg{.d} & \loc{.d} & |.d| \\
-% \arb[novoc]{.t} & \dmg{.t} & \loc{.t} & |.t| \\
-% \arb[novoc]{.z} & \dmg{.z} & \loc{.z} & |.z| \\
-% \arb[novoc]{`} & \dmg{`} & \loc{`} & |`| \\
-% \arb[novoc]{.g} & \dmg{.g} & \loc{.g} & |.g| \\
-% \arb[novoc]{f} & \dmg{f} & \loc{f} & |f| \\
-% \arb[novoc]{q} & \dmg{q} & \loc{q} & |q| \\
-% \arb[novoc]{k} & \dmg{k} & \loc{k} & |k| \\
-% \arb[novoc]{l} & \dmg{l} & \loc{l} & |l| \\
-% \arb[novoc]{m} & \dmg{m} & \loc{m} & |m| \\
-% \arb[novoc]{n} & \dmg{n} & \loc{n} & |n| \\
-% \arb[novoc]{h} & \dmg{h} & \loc{h} & |h| \\
-% \arb[novoc]{w} & \dmg{w} & \loc{w} & |w| \\
-% \arb[novoc]{y} & \dmg{y} & \loc{y} & |y| \\
-% \arb[novoc]{T} & \dmg{aT} & \loc{aT} & |T| \\
+% \loc{a} & \brill{a} & \verb|a| \\
+% \arb[novoc]{b} & \dmg{b} & \loc{b} & \brill{b} & |b| \\
+% \arb[novoc]{t} & \dmg{t} & \loc{t} & \brill{t} & |t| \\
+% \arb[novoc]{_t} & \dmg{_t} & \loc{_t} & \brill{_t} & |_t| \\
+% \arb[novoc]{j} & \dmg{j} & \loc{j} & \brill{j} & |^g| or |j| \\
+% \arb[novoc]{.h} & \dmg{.h} & \loc{.h} & \brill{.h} & |.h| \\
+% \arb[novoc]{x} & \dmg{x} & \loc{x} & \brill{x} & |_h| or |x|\\
+% \arb[novoc]{d} & \dmg{d} & \loc{d} & \brill{d} & |d| \\
+% \arb[novoc]{_d} & \dmg{_d} & \loc{_d} & \brill{_d} & |_d| \\
+% \arb[novoc]{r} & \dmg{r} & \loc{r} & \brill{r} & |r| \\
+% \arb[novoc]{z} & \dmg{z} & \loc{z} & \brill{z} & |z| \\
+% \arb[novoc]{s} & \dmg{s} & \loc{s} & \brill{s} & |s| \\
+% \arb[novoc]{^s} & \dmg{^s} & \loc{^s} & \brill{^s} & |^s| \\
+% \arb[novoc]{.s} & \dmg{.s} & \loc{.s} & \brill{.s} & |.s| \\
+% \arb[novoc]{.d} & \dmg{.d} & \loc{.d} & \brill{.d} & |.d| \\
+% \arb[novoc]{.t} & \dmg{.t} & \loc{.t} & \brill{.t} & |.t| \\
+% \arb[novoc]{.z} & \dmg{.z} & \loc{.z} & \brill{.z} & |.z| \\
+% \arb[novoc]{`} & \dmg{`} & \loc{`} & \brill{`} & |`| \\
+% \arb[novoc]{.g} & \dmg{.g} & \loc{.g} & \brill{.g} & |.g| \\
+% \arb[novoc]{f} & \dmg{f} & \loc{f} & \brill{f} & |f| \\
+% \arb[novoc]{q} & \dmg{q} & \loc{q} & \brill{q} & |q| \\
+% \arb[novoc]{k} & \dmg{k} & \loc{k} & \brill{k} & |k| \\
+% \arb[novoc]{l} & \dmg{l} & \loc{l} & \brill{l} & |l| \\
+% \arb[novoc]{m} & \dmg{m} & \loc{m} & \brill{m} & |m| \\
+% \arb[novoc]{n} & \dmg{n} & \loc{n} & \brill{n} & |n| \\
+% \arb[novoc]{h} & \dmg{h} & \loc{h} & \brill{h} & |h| \\
+% \arb[novoc]{w} & \dmg{w} & \loc{w} & \brill{w} & |w| \\
+% \arb[novoc]{y} & \dmg{y} & \loc{y} & \brill{y} & |y| \\
+% \arb[novoc]{T} & \dmg{aT} & \loc{aT} & \brill{aT} & |T| \\
% \bottomrule
% \caption*{\Cref*{tab:arabtex-consonants}: Standard Arab\TeX\ (consonants)}
% \end{longtable}
@@ -784,27 +788,27 @@ vowels (see §~3).
% \Cref{tab:arabtex-long-vowels} gives the Arab\TeX\ equivalents for
% the Arabic long vowels.
%
-% \begin{longtable}{llll}
+% \begin{longtable}{lllll}
% \captionlistentry{Arab\TeX\ long vowels}\\[-1em]
% \toprule
-% Letter & \multicolumn{2}{l}{Transliteration\footnotemark}
+% Letter & \multicolumn{3}{l}{Transliteration\footnotemark}
% & Arab\TeX\ notation \\
-% & \texttt{dmg} & \texttt{loc} & \\ \midrule
+% & \texttt{dmg} & \texttt{loc} & \texttt{arabica} & \\ \midrule
% \endfirsthead
% \toprule
-% Letter & \multicolumn{2}{l}{Transliteration}
+% Letter & \multicolumn{3}{l}{Transliteration}
% & Arab\TeX\ notation \\
-% & \texttt{dmg} & \texttt{loc} & \\ \midrule
+% & \texttt{dmg} & \texttt{loc} & \texttt{arabica} & \\ \midrule
% \endhead \footnotetext{See below \vref{sec:transliteration}.}
% \label{tab:arabtex-long-vowels}
-% \arb[novoc]{A} & \dmg{A} & \loc{A} & \verb|A| \\
-% \arb[novoc]{U} & \dmg{U} & \loc{U} & \verb|U| \\
-% \arb[novoc]{I} & \dmg{I} & \loc{I} & \verb|I| \\
+% \arb[novoc]{A} & \dmg{A} & \loc{A} & \brill{A} & \verb|A| \\
+% \arb[novoc]{U} & \dmg{U} & \loc{U} & \brill{U} & \verb|U| \\
+% \arb[novoc]{I} & \dmg{I} & \loc{I} & \brill{I} & \verb|I| \\
% \arb[novoc]{_A}\footnote{$=$ \arb[trans]{al-'alif-u 'l-maq.sUraT-u}.}
-% & \dmg{_A} & \loc{_A} & \verb|_A| or \verb|Y| \\
-% \arb[novoc]{B_a} & \dmg{B_a} & \loc{B_a} & \verb|_a| \\
-% \arb[novoc]{B_u} & \dmg{B_u} & \loc{B_u} & \verb|_u| \\
-% \arb[novoc]{B_i} & \dmg{B_i} & \loc{B_i} & \verb|_i| \\
+% & \dmg{_A} & \loc{_A} & \brill{_A} & \verb|_A| or \verb|Y| \\
+% \arb[novoc]{B_a} & \dmg{B_a} & \loc{B_a} & \brill{B_a} & \verb|_a| \\
+% \arb[novoc]{B_u} & \dmg{B_u} & \loc{B_u} & \brill{B_u} & \verb|_u| \\
+% \arb[novoc]{B_i} & \dmg{B_i} & \loc{B_i} & \brill{B_i} & \verb|_i| \\
% \bottomrule
% \caption*{\Cref*{tab:arabtex-long-vowels}: Standard Arab\TeX\ (long vowels)}
% \end{longtable}
@@ -834,25 +838,25 @@ vowels (see §~3).
% \Cref{tab:arabtex-short-vowels} gives the Arab\TeX\ equivalents for
% the Arabic short vowels.
%
-% \begin{longtable}{llll}
+% \begin{longtable}{lllll}
% \captionlistentry{Arab\TeX\ short vowels}\\[-1em]
% \toprule
-% Letter & \multicolumn{2}{l}{Transliteration\footnotemark}
+% Letter & \multicolumn{3}{l}{Transliteration\footnotemark}
% & Arab\TeX\ notation \\
-% & \texttt{dmg} & \texttt{loc} & \\ \midrule
+% & \texttt{dmg} & \texttt{loc} & \texttt{arabica} & \\ \midrule
% \endfirsthead
% \toprule
-% Letter & \multicolumn{2}{l}{Transliteration}
+% Letter & \multicolumn{3}{l}{Transliteration}
% & Arab\TeX\ notation \\
-% & \texttt{dmg} & \texttt{loc} & \\ \midrule
+% & \texttt{dmg} & \texttt{loc} & \texttt{arabica} & \\ \midrule
% \endhead \footnotetext{See below \vref{sec:transliteration}.}
% \label{tab:arabtex-short-vowels}
-% \arb[voc]{Ba} & \dmg{Ba} & \loc{Ba} & \verb|a| \\
-% \arb[voc]{Bu} & \dmg{Bu} & \loc{Bu} & \verb|u| \\
-% \arb[voc]{Bi} & \dmg{Bi} & \loc{Bi} & \verb|i| \\
-% \arb[voc]{BaN} & \dmg{BaN} & \loc{BaN} & \verb|aN| \\
-% \arb[voc]{BuN} & \dmg{BuN} & \loc{BuN} & \verb|uN| \\
-% \arb[voc]{BiN} & \dmg{BiN} & \loc{BiN} & \verb|iN| \\
+% \arb[voc]{Ba} & \dmg{Ba} & \loc{Ba} & \brill{Ba} & \verb|a| \\
+% \arb[voc]{Bu} & \dmg{Bu} & \loc{Bu} & \brill{Bu} & \verb|u| \\
+% \arb[voc]{Bi} & \dmg{Bi} & \loc{Bi} & \brill{Bi} & \verb|i| \\
+% \arb[voc]{BaN} & \dmg{BaN} & \loc{BaN} & \brill{BaN} & \verb|aN| \\
+% \arb[voc]{BuN} & \dmg{BuN} & \loc{BuN} & \brill{BuN} & \verb|uN| \\
+% \arb[voc]{BiN} & \dmg{BiN} & \loc{BiN} & \brill{BiN} & \verb|iN| \\
% \bottomrule
% \caption*{\Cref*{tab:arabtex-short-vowels}: Standard Arab\TeX\ (short vowels)}
% \end{longtable}
@@ -1630,26 +1634,26 @@ vowels (see §~3).
% context. \Cref{tab:quoted-hamza} gives the equivalents for all the
% possible carriers the \arb[trans]{hamzaT} may take.
%
-% \begin{longtable}{llll}
+% \begin{longtable}{lllll}
% \captionlistentry{\enquote{Quoted} \arb[trans]{hamzaT}}\\[-1em]
% \toprule
-% Letter & \multicolumn{2}{l}{Transliteration\footnotemark}
+% Letter & \multicolumn{3}{l}{Transliteration\footnotemark}
% & Arab\TeX\ notation \\
-% & \texttt{dmg} & \texttt{loc} & \\ \midrule
+% & \texttt{dmg} & \texttt{loc} & \texttt{arabica} & \\ \midrule
% \endfirsthead
% \toprule
-% Letter & \multicolumn{2}{l}{Transliteration}
+% Letter & \multicolumn{3}{l}{Transliteration}
% & Arab\TeX\ notation \\
-% & \texttt{dmg} & \texttt{loc} & \\ \midrule
+% & \texttt{dmg} & \texttt{loc} & \texttt{arabica} & \\ \midrule
% \endhead \footnotetext{See below \vref{sec:transliteration}.}
% \label{tab:quoted-hamza}
-% \arb[novoc]{|"'} & \dmg{|"'} & \loc{|"'} & \verb+|"'+ \\
-% \arb[novoc]{A"'} & \dmg{A"'} & \loc{A"'} & \verb|A"'| \\
-% \arb[novoc]{a"'} & \dmg{a"'} & \loc{a"'} & \verb|a"'| \\
-% \arb[novoc]{u"'} & \dmg{u"'} & \loc{u"'} & \verb|u"'| \\
-% \arb[novoc]{w"'} & \dmg{w"'} & \loc{w"'} & \verb|w"'| \\
-% \arb[novoc]{i"'} & \dmg{i"'} & \loc{i"'} & \verb|i"'| \\
-% \arb[novoc]{y"'} & \dmg{y"'} & \loc{y"'} & \verb|y"'| \\
+% \arb[novoc]{|"'} & \dmg{|"'} & \loc{|"'} & \brill{|"'} & \verb+|"'+ \\
+% \arb[novoc]{A"'} & \dmg{A"'} & \loc{A"'} & \brill{A"'} & \verb|A"'| \\
+% \arb[novoc]{a"'} & \dmg{a"'} & \loc{a"'} & \brill{a"'} & \verb|a"'| \\
+% \arb[novoc]{u"'} & \dmg{u"'} & \loc{u"'} & \brill{u"'} & \verb|u"'| \\
+% \arb[novoc]{w"'} & \dmg{w"'} & \loc{w"'} & \brill{w"'} & \verb|w"'| \\
+% \arb[novoc]{i"'} & \dmg{i"'} & \loc{i"'} & \brill{i"'} & \verb|i"'| \\
+% \arb[novoc]{y"'} & \dmg{y"'} & \loc{y"'} & \brill{y"'} & \verb|y"'| \\
% \bottomrule
% \caption*{\Cref*{tab:quoted-hamza}: \enquote{Quoted} \arb[trans]{hamzaT}}
% \end{longtable}
@@ -1843,27 +1847,27 @@ word that \cs{arbnull} is applied to.
% proposed and gradually included as \package{arabluatex} will mature.
%
% For the time being, the following is included:---
-% \begin{longtable}{llll}
+% \begin{longtable}{lllll}
% \captionlistentry{Additional Arabic codings}\\[-1em]
% \toprule
-% Letter & \multicolumn{2}{l}{Transliteration\footnotemark}
+% Letter & \multicolumn{3}{l}{Transliteration\footnotemark}
% & Arab\TeX\ notation \\
-% & \texttt{dmg} & \texttt{loc} & \\ \midrule
+% & \texttt{dmg} & \texttt{loc} & \texttt{arabica} & \\ \midrule
% \endfirsthead
% \toprule
-% Letter & \multicolumn{2}{l}{Transliteration}
+% Letter & \multicolumn{3}{l}{Transliteration}
% & Arab\TeX\ notation \\
-% & \texttt{dmg} & \texttt{loc} & \\ \midrule
+% & \texttt{dmg} & \texttt{loc} & \texttt{arabica} \\ \midrule
% \endhead \footnotetext{See below \vref{sec:transliteration}.}
% \label{tab:additional-arabic-codings}
-% \arb[novoc]{.b} & \dmg{.b} & \loc{.b} & |.b| \\
-% \arb[novoc]{^d} & \dmg{^d} & \loc{^d} & |^d| \\
-% \arb[novoc]{.f} & \dmg{.f} & \loc{.f} & |.f| \\
-% \arb[novoc]{.q} & \dmg{.q} & \loc{.q} & |.q| \\
-% \arb[novoc]{.k} & \dmg{.k} & \loc{.k} & |.k| \\
-% \arb[novoc]{.n} & \dmg{.n} & \loc{.n} & |.n| \\
-% \arb[novoc]{((} & \dmg{((} & \loc{((} & |((| \\
-% \arb[novoc]{))} & \dmg{))} & \loc{))} & |))| \\
+% \arb[novoc]{.b} & \dmg{.b} & \loc{.b} & \brill{.b} & |.b| \\
+% \arb[novoc]{^d} & \dmg{^d} & \loc{^d} & \brill{^d} & |^d| \\
+% \arb[novoc]{.f} & \dmg{.f} & \loc{.f} & \brill{.f} & |.f| \\
+% \arb[novoc]{.q} & \dmg{.q} & \loc{.q} & \brill{.q} & |.q| \\
+% \arb[novoc]{.k} & \dmg{.k} & \loc{.k} & \brill{.k} & |.k| \\
+% \arb[novoc]{.n} & \dmg{.n} & \loc{.n} & \brill{.n} & |.n| \\
+% \arb[novoc]{((} & \dmg{((} & \loc{((} & \brill{((} & |((| \\
+% \arb[novoc]{))} & \dmg{))} & \loc{))} & \brill{))} & |))| \\
% \bottomrule
% \caption*{\Cref*{tab:additional-arabic-codings}: Additional Arabic
% codings}
@@ -2228,8 +2232,8 @@ word that \cs{arbnull} is applied to.
% the \enquote{transliteration mode} may be selected globally or locally.
%
% This mode transliterates the Arab\TeX\ input into one of the
-% accepted standards. As said above \vpageref{ref:describe-trans}, two
-% standards are supported at present:
+% accepted standards. As said above \vpageref{ref:describe-trans},
+% three standards are supported at present:
% \begin{compactdesc}
% \item[dmg] \emph{Deutsche Morgenländische Gesellschaft}, which was
% adopted by the International Convention of Orientalist Scholars in
@@ -2238,10 +2242,17 @@ word that \cs{arbnull} is applied to.
% \item[loc] \emph{Library of Congress}: this standard is part of a
% large set of standards for romanization of non-roman scripts
% adopted by the American Library Association and the Library of
-% Congress.\footnote{See
+% Congress;\footnote{See
% \url{http://www.loc.gov/catdir/cpso/roman.html} for the
% \href{http://www.loc.gov/catdir/cpso/romanization/arabic.pdf}{source
% document concerning Arabic language}.}
+% \item[arabica] \NEWfeature{v1.8}
+% \changes{v1.8}{2017/03/30}{\texttt{arabica} transliteration
+% standard is now supported} \emph{Journal of Arabic and Islamic
+% Studies}/\emph{Revue d'études arabes et islamiques}: this standard
+% is most widely used by scholars in the field of Arabic
+% studies.\footnote{See
+% \url{http://www.brill.nl/files/brill.nl/specific/authors_instructions/ARAB.pdf}.}
% \end{compactdesc}
% More standards will be included in future releases of
% \package{arabluatex}.
@@ -2250,9 +2261,9 @@ word that \cs{arbnull} is applied to.
% transliteration mode, which is set to |dmg| by default, may be
% changed at any point of the document by the
% \cs{SetTranslitConvention}\marg{mode} command , where \meta{mode}
-% may be either |dmg| or |loc|. This command is also accepted in the
-% preamble should one wish to set the transliteration mode globally,
-% eg.:---%
+% may be either |dmg|, |loc| or |arabica|. This command is also
+% accepted in the preamble should one wish to set the transliteration
+% mode globally, eg.:---%
% \iffalse
%<*example>
% \fi
@@ -2470,6 +2481,22 @@ muhaddamaTaN mi'_danatu-hu}: \arb[trans]{ra'aytu
% \end{arab}
% \SetTranslitConvention{dmg}
%
+% \SetTranslitConvention{arabica}
+% \begin{arab}[trans]
+% \LR{\textbf{\emph{\enquote*{arabica}} standard}:} 'at_A .sadIquN
+% 'il_A \cap{ju.hA} ya.tlubu min-hu .himAra-hu li-yarkaba-hu fI
+% safraTiN qa.sIraTiN fa-qAla la-hu: \enquote{sawfa 'u`Idu-hu
+% 'ilay-ka fI 'l-masA'-i wa-'adfa`u la-ka 'ujraTaN.} fa-qAla
+% \cap{ju.hA}: \enquote{'anA 'AsifuN jiddaN 'annI lA 'asta.tI`u 'an
+% 'u.haqqiqa la-ka ra.gbata-ka fa-'l-.himAr-u laysa hunA 'l-yawm-a.}
+% wa-qabla 'an yutimma \cap{ju.hA} kalAma-hu bada'a 'l-.himAr-u
+% yanhaqu fI 'i.s.tabli-hi. fa-qAla la-hu .sadIqu-hu: \enquote{'innI
+% 'asma`u .himAra-ka yA \cap{ju.hA} yanhaqu.} fa-qAla la-hu
+% \cap{ju.hA}: \enquote{.garIbuN 'amru-ka yA .sadIqI 'a-tu.saddiqu
+% 'l-.himAr-a wa-tuka_d_diba-nI?}
+% \end{arab}
+% \SetTranslitConvention{dmg}
+%
% \section{Buckwalter input scheme}
% \label{sec:buckwalter-scheme}
% \NEWfeature{v1.4} Even though \package{arabluatex} is primarily
@@ -2520,71 +2547,73 @@ muhaddamaTaN mi'_danatu-hu}: \arb[trans]{ra'aytu
% characters that are defined in \vref{tab:additional-arabic-codings}
% are also available.
%
-% \begin{longtable}{lllll}
+% \begin{longtable}{llllll}
% \captionlistentry{Buckwalter scheme}\\[-1em]
% \toprule
-% Letter & \multicolumn{2}{l}{Transliteration\footnotemark}
+% Letter & \multicolumn{3}{l}{Transliteration\footnotemark}
% & \multicolumn{2}{l}{Buckwalter notation} \\
-% & \texttt{dmg} & \texttt{loc} & |base/xml| & |safe| \\ \midrule
+% & \texttt{dmg} & \texttt{loc} & \texttt{arabica} & |base/xml| &
+% |safe| \\ \midrule
% \endfirsthead
% \toprule
-% Letter & \multicolumn{2}{l}{Transliteration}
+% Letter & \multicolumn{3}{l}{Transliteration}
% & \multicolumn{2}{l}{Buckwalter notation} \\
-% & \texttt{dmg} & \texttt{loc} & |base/xml| & |safe| \\ \midrule
+% & \texttt{dmg} & \texttt{loc} & \texttt{arabica} & |base/xml| &
+% |safe| \\ \midrule
% \endhead \footnotetext{See \vref{sec:transliteration}.}
% \label{tab:buckwalter-scheme}
-% \arb[novoc]{a} & \dmg{a} & \loc{a} & |A| & |A| \\
-% \arb[novoc]{b} & \dmg{b} & \loc{b} & |b| & |b| \\
-% \arb[novoc]{t} & \dmg{t} & \loc{t} & |t| & |t| \\
-% \arb[novoc]{_t} & \dmg{_t} & \loc{_t} & |v| & |v| \\
-% \arb[novoc]{j} & \dmg{j} & \loc{j} & |j| & |j| \\
-% \arb[novoc]{.h} & \dmg{.h} & \loc{.h} & |H| & |H| \\
-% \arb[novoc]{x} & \dmg{x} & \loc{x} & |x| & |x| \\
-% \arb[novoc]{d} & \dmg{d} & \loc{d} & |d| & |d| \\
-% \arb[novoc]{_d} & \dmg{_d} & \loc{_d} & |*| & |V| \\
-% \arb[novoc]{r} & \dmg{r} & \loc{r} & |r| & |r| \\
-% \arb[novoc]{z} & \dmg{z} & \loc{z} & |z| & |z| \\
-% \arb[novoc]{s} & \dmg{s} & \loc{s} & |s| & |s| \\
-% \arb[novoc]{^s} & \dmg{^s} & \loc{^s} & |$| & |c| \\
-% \arb[novoc]{.s} & \dmg{.s} & \loc{.s} & |S| & |S| \\
-% \arb[novoc]{.d} & \dmg{.d} & \loc{.d} & |D| & |D| \\
-% \arb[novoc]{.t} & \dmg{.t} & \loc{.t} & |T| & |T| \\
-% \arb[novoc]{.z} & \dmg{.z} & \loc{.z} & |Z| & |Z| \\
-% \arb[novoc]{`} & \dmg{`} & \loc{`} & |E| & |E| \\
-% \arb[novoc]{.g} & \dmg{.g} & \loc{.g} & |g| & |g| \\
-% \arb[novoc]{f} & \dmg{f} & \loc{f} & |f| & |f| \\
-% \arb[novoc]{q} & \dmg{q} & \loc{q} & |q| & |q| \\
-% \arb[novoc]{k} & \dmg{k} & \loc{k} & |k| & |k| \\
-% \arb[novoc]{l} & \dmg{l} & \loc{l} & |l| & |l| \\
-% \arb[novoc]{m} & \dmg{m} & \loc{m} & |m| & |m| \\
-% \arb[novoc]{n} & \dmg{n} & \loc{n} & |n| & |n| \\
-% \arb[novoc]{h} & \dmg{h} & \loc{h} & |h| & |h| \\
-% \arb[novoc]{w} & \dmg{w} & \loc{w} & |w| & |w| \\
-% \arb[novoc]{y} & \dmg{y} & \loc{y} & |y| & |y| \\
-% \arb[novoc]{Y} & \dmg{Y} & \loc{Y} & |Y| & |Y| \\
-% \arb[novoc]{T} & \dmg{aT} & \loc{aT} & |p| & |p| \\
+% \arb[novoc]{a} & \dmg{a} & \loc{a} & \brill{a} & |A| & |A| \\
+% \arb[novoc]{b} & \dmg{b} & \loc{b} & \brill{b} & |b| & |b| \\
+% \arb[novoc]{t} & \dmg{t} & \loc{t} & \brill{t} & |t| & |t| \\
+% \arb[novoc]{_t} & \dmg{_t} & \loc{_t} & \brill{_t} & |v| & |v| \\
+% \arb[novoc]{j} & \dmg{j} & \loc{j} & \brill{j} & |j| & |j| \\
+% \arb[novoc]{.h} & \dmg{.h} & \loc{.h} & \brill{.h} & |H| & |H| \\
+% \arb[novoc]{x} & \dmg{x} & \loc{x} & \brill{x} & |x| & |x| \\
+% \arb[novoc]{d} & \dmg{d} & \loc{d} & \brill{d} & |d| & |d| \\
+% \arb[novoc]{_d} & \dmg{_d} & \loc{_d} & \brill{_d} & |*| & |V| \\
+% \arb[novoc]{r} & \dmg{r} & \loc{r} & \brill{r} & |r| & |r| \\
+% \arb[novoc]{z} & \dmg{z} & \loc{z} & \brill{z} & |z| & |z| \\
+% \arb[novoc]{s} & \dmg{s} & \loc{s} & \brill{s} & |s| & |s| \\
+% \arb[novoc]{^s} & \dmg{^s} & \loc{^s} & \brill{^s} & |$| & |c| \\
+% \arb[novoc]{.s} & \dmg{.s} & \loc{.s} & \brill{.s} & |S| & |S| \\
+% \arb[novoc]{.d} & \dmg{.d} & \loc{.d} & \brill{.d} & |D| & |D| \\
+% \arb[novoc]{.t} & \dmg{.t} & \loc{.t} & \brill{.t} & |T| & |T| \\
+% \arb[novoc]{.z} & \dmg{.z} & \loc{.z} & \brill{.z} & |Z| & |Z| \\
+% \arb[novoc]{`} & \dmg{`} & \loc{`} & \brill{`} & |E| & |E| \\
+% \arb[novoc]{.g} & \dmg{.g} & \loc{.g} & \brill{.g} & |g| & |g| \\
+% \arb[novoc]{f} & \dmg{f} & \loc{f} & \brill{f} & |f| & |f| \\
+% \arb[novoc]{q} & \dmg{q} & \loc{q} & \brill{q} & |q| & |q| \\
+% \arb[novoc]{k} & \dmg{k} & \loc{k} & \brill{k} & |k| & |k| \\
+% \arb[novoc]{l} & \dmg{l} & \loc{l} & \brill{l} & |l| & |l| \\
+% \arb[novoc]{m} & \dmg{m} & \loc{m} & \brill{m} & |m| & |m| \\
+% \arb[novoc]{n} & \dmg{n} & \loc{n} & \brill{n} & |n| & |n| \\
+% \arb[novoc]{h} & \dmg{h} & \loc{h} & \brill{h} & |h| & |h| \\
+% \arb[novoc]{w} & \dmg{w} & \loc{w} & \brill{w} & |w| & |w| \\
+% \arb[novoc]{y} & \dmg{y} & \loc{y} & \brill{y} & |y| & |y| \\
+% \arb[novoc]{Y} & \dmg{Y} & \loc{Y} & \brill{Y} & |Y| & |Y| \\
+% \arb[novoc]{T} & \dmg{aT} & \loc{aT} & \brill{aT} & |p| & |p| \\
% \midrule
-% \arb[novoc]{|"'} & \dmg{|"'} & \loc{|"'} & \verb|'| & |C| \\
-% \arb[novoc]{A"'} & \dmg{A"'} & \loc{A"'} & \verb+|+ & |M| \\
-% \arb[novoc]{a"'} & \dmg{a"'} & \loc{a"'} & \verb|>| & |O| \\
-% \arb[novoc]{w"'} & \dmg{w"'} & \loc{w"'} & \verb|&| & |W| \\
-% \arb[novoc]{i"'} & \dmg{i"'} & \loc{i"'} & \verb|<| & |I| \\
-% \arb[novoc]{y"'} & \dmg{y"'} & \loc{y"'} & \verb|]| & |Q| \\
+% \arb[novoc]{|"'} & \dmg{|"'} & \loc{|"'} & \brill{|"'} & \verb|'| & |C| \\
+% \arb[novoc]{A"'} & \dmg{A"'} & \loc{A"'} & \brill{A"'} & \verb+|+ & |M| \\
+% \arb[novoc]{a"'} & \dmg{a"'} & \loc{a"'} & \brill{a"'} & \verb|>| & |O| \\
+% \arb[novoc]{w"'} & \dmg{w"'} & \loc{w"'} & \brill{w"'} & \verb|&| & |W| \\
+% \arb[novoc]{i"'} & \dmg{i"'} & \loc{i"'} & \brill{i"'} & \verb|<| & |I| \\
+% \arb[novoc]{y"'} & \dmg{y"'} & \loc{y"'} & \brill{y"'} & \verb|]| & |Q| \\
% \midrule
-% \arb[novoc]{BB} & --- & --- & \verb|~| & |~| \\
-% \arb[novoc]{"a} & ' & ' & |[| & |L| \\
+% \arb[novoc]{BB} & --- & --- & --- & \verb|~| & |~| \\
+% \arb[novoc]{"a} & ' & ' & --- & |[| & |L| \\
% \midrule
-% \arb[voc]{Ba} & \dmg{Ba} & \loc{Ba} & \verb|a| & |a| \\
-% \arb[voc]{Bu} & \dmg{Bu} & \loc{Bu} & \verb|u| & |u| \\
-% \arb[voc]{Bi} & \dmg{Bi} & \loc{Bi} & \verb|i| & |i| \\
-% \arb[voc]{BaN} & \dmg{BaN} & \loc{BaN} & \verb|F| & |F| \\
-% \arb[voc]{BuN} & \dmg{BuN} & \loc{BuN} & \verb|N| & |N| \\
-% \arb[voc]{BiN} & \dmg{BiN} & \loc{BiN} & \verb|K| & |K| \\
-% \arb[voc]{B"} & --- & --- & \verb|o| & |o| \\
+% \arb[voc]{Ba} & \dmg{Ba} & \loc{Ba} & \brill{Ba} & \verb|a| & |a| \\
+% \arb[voc]{Bu} & \dmg{Bu} & \loc{Bu} & \brill{Bu} & \verb|u| & |u| \\
+% \arb[voc]{Bi} & \dmg{Bi} & \loc{Bi} & \brill{Bi} & \verb|i| & |i| \\
+% \arb[voc]{BaN} & \dmg{BaN} & \loc{BaN} & \brill{BaN} & \verb|F| & |F| \\
+% \arb[voc]{BuN} & \dmg{BuN} & \loc{BuN} & \brill{BuN} & \verb|N| & |N| \\
+% \arb[voc]{BiN} & \dmg{BiN} & \loc{BiN} & \brill{BiN} & \verb|K| & |K| \\
+% \arb[voc]{B"} & --- & --- & --- & \verb|o| & |o| \\
% \midrule
-% \arb[novoc]{B_a} & \dmg{B_a} & \loc{B_a} & |`| & |e| \\
+% \arb[novoc]{B_a} & \dmg{B_a} & \loc{B_a} & \brill{B_a} & |`| & |e| \\
% \midrule
-% \arb[novoc]{--} (\arb[trans]{ta.twIl}) & --- & --- & |_| & |_| \\
+% \arb[novoc]{--} (\arb[trans]{ta.twIl}) & --- & --- & --- & |_| & |_| \\
% \bottomrule
% \caption*{\Cref*{tab:buckwalter-scheme}: Buckwalter scheme}
% \end{longtable}
@@ -3055,7 +3084,7 @@ wa-ya.sIru ta.hta 'l-jild-i
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{arabluatex}%
-[2017/03/18 v1.7.3 An ArabTeX-like interface for LuaLaTeX]
+[2017/03/30 v1.8 An ArabTeX-like interface for LuaLaTeX]
\RequirePackage{ifluatex}
% \end{macrocode}
% \package{arabluatex} requires \LuaLaTeX\ of course. Issue a warning
diff --git a/Master/texmf-dist/tex/lualatex/arabluatex/arabluatex.lua b/Master/texmf-dist/tex/lualatex/arabluatex/arabluatex.lua
index 91932b78213..3b76376b80d 100644
--- a/Master/texmf-dist/tex/lualatex/arabluatex/arabluatex.lua
+++ b/Master/texmf-dist/tex/lualatex/arabluatex/arabluatex.lua
@@ -494,6 +494,41 @@ local function transloc(str)
return str
end
+local function transarabica(str)
+ str = string.gsub(str, "\\arb(%b{})", function(inside)
+ inside = string.sub(inside, 2, -2)
+ for i = 1,#hamzatrloc do
+ inside = string.gsub(inside, hamzatrloc[i].a, hamzatrloc[i].b)
+ end
+ for i = 1,#tanwintrloc do
+ inside = string.gsub(inside, tanwintrloc[i].a, tanwintrloc[i].b)
+ end
+ for i = 1,#trigraphstrarabica do
+ inside = string.gsub(inside, trigraphstrarabica[i].a, trigraphstrarabica[i].b)
+ end
+ for i = 1,#digraphstrarabica do
+ inside = string.gsub(inside, digraphstrarabica[i].a, digraphstrarabica[i].b)
+ end
+ for i = 1,#singletrarabica do
+ inside = string.gsub(inside, singletrarabica[i].a, singletrarabica[i].b)
+ end
+ for i = 1,#longvtrloc do
+ inside = string.gsub(inside, longvtrloc[i].a, longvtrloc[i].b)
+ end
+ for i = 1,#shortvtrloc do
+ inside = string.gsub(inside, shortvtrloc[i].a, shortvtrloc[i].b)
+ end
+ for i = 1,#punctuationtr do
+ inside = string.gsub(inside, punctuationtr[i].a, punctuationtr[i].b)
+ end
+ for i = 1,#nulltr do
+ inside = string.gsub(inside, nulltr[i].a, nulltr[i].b)
+ end
+ return string.format("\\txtrans{%s}", inside)
+ end)
+return str
+end
+
local function processbuckw(str)
str = string.gsub(str, "\\arb(%b{})", function(inside)
inside = string.sub(inside, 2, -2)
@@ -579,6 +614,8 @@ function processtrans(str, mode, rules, scheme)
str = transdmg(str, rules)
elseif mode == "loc" then
str = transloc(str)
+ elseif mode == "arabica" then
+ str = transarabica(str)
end
str = unprotectarb(str)
return str
diff --git a/Master/texmf-dist/tex/lualatex/arabluatex/arabluatex.sty b/Master/texmf-dist/tex/lualatex/arabluatex/arabluatex.sty
index 19d00ec0646..9fa2c6e1a6b 100644
--- a/Master/texmf-dist/tex/lualatex/arabluatex/arabluatex.sty
+++ b/Master/texmf-dist/tex/lualatex/arabluatex/arabluatex.sty
@@ -41,7 +41,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{arabluatex}%
-[2017/03/18 v1.7.3 An ArabTeX-like interface for LuaLaTeX]
+[2017/03/30 v1.8 An ArabTeX-like interface for LuaLaTeX]
\RequirePackage{ifluatex}
\ifluatex\else
\PackageError{arabluatex}{lualatex needed}{%
diff --git a/Master/texmf-dist/tex/lualatex/arabluatex/arabluatex_trans.lua b/Master/texmf-dist/tex/lualatex/arabluatex/arabluatex_trans.lua
index 5e7dbe5dda6..daf4c91a4fe 100644
--- a/Master/texmf-dist/tex/lualatex/arabluatex/arabluatex_trans.lua
+++ b/Master/texmf-dist/tex/lualatex/arabluatex/arabluatex_trans.lua
@@ -328,9 +328,16 @@ digraphstrdmg = {
{a="([%_]?[Uu])(%s)([%(%[%|%<]?['][%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])", b="u%2%3"},
{a="([%_]?[Ii])(%s)([%(%[%|%<]?['][%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])", b="i%2%3"},
{a="%-%-", b=""},
+ {a="iyyaT$", b="īyaT"},
+ {a="iyyaT(%W)", b="īyaT%1"},
+ {a="iyy$", b="ī"},
+ {a="iyy(%W)", b="ī%1"},
-- {a="T([^uai])", b="%1"},
+ {a="([a%'][%_%^%.]?[tdrzsln]%-)(%S-)T([%(%[%|%<%s])(a[%_%^%.]?[tdrzsln]%-)", b="%1%2h%3%4"}, --p
+ {a="T([%(%[%|%<%s])(a[%_%^%.]?[tdrzsln]%-)", b="t%1%2"}, --p
{a="T(%p?%s)", b="h%1"},
{a="T(%p?)$", b="h%1"},
+ {a="T(%p?)(%W)", b="h%1%2"},
{a="_t", b="ṯ"},
{a="%^g", b="ğ"},
{a="%.h", b="ḥ"},
@@ -479,7 +486,7 @@ tanwintrloc = {
trigraphstrloc = { -- trigraphs or more
-- 'llatI / 'llad_I
{a="^'ll(a)([%_]?[dt])", b="all%1%2"},
- {a="(%s)'ll(a)([%_]?[dt])", b="%1all%2%3"},
+ {a="([%(%[%|%<%s])'ll(a)([%_]?[dt])", b="%1all%2%3"}, --p
-- al- + lām
{a="^(a)l%-(l)", b="%1l-%2"},
{a="(%s)(a)l%-(l)", b="%1%2l-%3"},
@@ -493,7 +500,7 @@ trigraphstrloc = { -- trigraphs or more
{a="^(a)l%-([uai])", b="%1l-%2"},
{a="(%s)(a)l%-([uai])", b="%1%2l-%3"},
-- li-/la- + art. + initial unstable hamza is a special orthography
- {a="l([ai])%-l%-([uai])", b="l%1l-%2"},
+ {a="l([ai])%-l%-([uai])", b="l%1-l-%2"},
-- al- + lunar consonant (i.e. what remains)
{a="^(a)l%-", b="%1l-"},
{a="(%s)(a)l%-", b="%1%2l-"},
@@ -502,13 +509,13 @@ trigraphstrloc = { -- trigraphs or more
-- art. with waṣla + solar consonant
{a="'l%-([%_%^%.]?[tdrzsn])", b="al-%1"},
-- li-/la- + art. + lām
- {a="l([ai])%-l%-(l)", b="l%1-%2"},
+ {a="l([ai])%-l%-(l)", b="l%1-l-%2"},
-- assim. art. with waṣla + solar consonant
{a="'([%_%^%.]?[tdrzsn])%-", b="al-"},
-- li-/la- + art. + solar consonant is a special orthography
- {a="l([ai])%-l%-([%_%^%.]?[tdrzsn])", b="l%1l-%2"},
+ {a="l([ai])%-l%-([%_%^%.]?[tdrzsn])", b="l%1-l-%2"},
-- li-/la- + assim. art. + solar consonant is a special orthography
- {a="l([ai])%-([%_%^%.]?[tdrzsn])%-([%_%^%.]?[tdrzsn])", b="l%1l-%3"},
+ {a="l([ai])%-([%_%^%.]?[tdrzsn])%-([%_%^%.]?[tdrzsn])", b="l%1-l-%3"},
-- art. with waṣla + initial unstable hamza
{a="'l%-([uai])", b="al-%1"},
-- art. with waṣla + lunar consonant (i.e. what remains)
@@ -544,9 +551,13 @@ digraphstrloc = {
{a="(%s)([uai])", b="%1%2"}, -- initial alif without hamza
{a="%-%-", b=""},
{a="uww", b="ūw"},
+ {a="iyy$", b="ī"},
+ {a="iyy(%W)", b="ī%1"},
{a="iyy", b="īy"},
{a="([tkdsg])(h)", b="%1'%2"},
--- {a="T([^uai])", b="h%1"},
+ -- {a="T([^uai])", b="h%1"},
+ {a="([a%']l%-)(%S-)T([%(%[%|%<%s])(al%-)", b="%1%2h%3%4"}, --p
+ {a="T([%(%[%|%<%s])(al%-)", b="t%1%2"}, --p
{a="T$", b="h"},
{a="T(%W)", b="h%1"},
{a="_t", b="th"},
@@ -615,3 +626,130 @@ shortvtrloc = {
finaltrloc = {
{a="ʾ", b="'"},
}
+
+-- arabica
+
+trigraphstrarabica = { -- trigraphs or more
+ -- 'llatI / 'llad_I
+ {a="^'ll(a)([%_]?[dt])", b="ll%1%2"},
+ {a="([%(%[%|%<%s])'ll(a)([%_]?[dt])", b="%1ll%2%3"}, --p
+ -- al- + lām
+ {a="^(a)l%-(l)", b="%1l-%2"},
+ {a="(%s)(a)l%-(l)", b="%1%2l-%3"},
+ -- al- + solar consonant
+ {a="^(a)l%-([%_%^%.]?[tdrzsn])", b="%1l-%2"},
+ {a="(%s)(a)l%-([%_%^%.]?[tdrzsn])", b="%1%2l-%3"},
+ -- assim. art. + solar consonant
+ {a="^(a)([%_%^%.]?[tdrzsn])%-", b="%1l-"},
+ {a="(%s)(a)([%_%^%.]?[tdrzsn])%-", b="%1%2l-"},
+ -- al- + initial unstable hamza
+ {a="^(a)l%-([uai])", b="%1l-%2"},
+ {a="(%s)(a)l%-([uai])", b="%1%2l-%3"},
+ -- li-/la- + art. + initial unstable hamza is a special orthography
+ {a="l([ai])%-l%-([uai])", b="l%1-l-%2"},
+ -- al- + lunar consonant (i.e. what remains)
+ {a="^(a)l%-", b="%1l-"},
+ {a="(%s)(a)l%-", b="%1%2l-"},
+ -- art. with waṣla + lām
+ {a="'l%-(l)", b="l-%1"},
+ -- art. with waṣla + solar consonant
+ {a="'l%-([%_%^%.]?[tdrzsn])", b="l-%1"},
+ -- li-/la- + art. + lām
+ {a="l([ai])%-l%-(l)", b="l%1-l-%2"},
+ -- assim. art. with waṣla + solar consonant
+ {a="'([%_%^%.]?[tdrzsn])%-", b="l-"},
+ -- li-/la- + art. + solar consonant is a special orthography
+ {a="l([ai])%-l%-([%_%^%.]?[tdrzsn])", b="l%1-l-%2"},
+ -- li-/la- + assim. art. + solar consonant is a special orthography
+ {a="l([ai])%-([%_%^%.]?[tdrzsn])%-([%_%^%.]?[tdrzsn])", b="l%1-l-%3"},
+ -- art. with waṣla + initial unstable hamza
+ {a="'l%-([uai])", b="l-%1"},
+ -- art. with waṣla + lunar consonant (i.e. what remains)
+ {a="'l%-", b="l-"},
+ -- the silent wāw
+ {a="uU$", b="u"},
+ {a="uU(%W)", b="u%1"},
+ {a="aU$", b="a"},
+ {a="aU(%W)", b="a%1"},
+ {a="iU$", b="i"},
+ {a="iU(%W)", b="i%1"},
+ -- words ending in -āT with silent wāw/yāʾ
+ {a="(_a)UA", b="A"},
+ {a="(_a)U", b="A"},
+ {a="(_a)I", b="A"}
+}
+
+digraphstrarabica = {
+ -- discard the ʾiʿrāb hyphen (begin)
+ {a="(%-)(\"?[UI]na)(%p?%s)", b="%2%3"},
+ {a="(%-)(\"?[UI]na)(%p?)$", b="%2%3"},
+ {a="(%-)(\"?At[ui])(%p?%s)", b="%2%3"},
+ {a="(%-)(\"?At[ui])(%p?)$", b="%2%3"},
+ {a="(%-)(\"?Ani)(%p?%s)", b="%2%3"},
+ {a="(%-)(\"?Ani)(%p?)$", b="%2%3"},
+ {a="(%-)(\"?ayni)(%p?%s)", b="%2%3"},
+ {a="(%-)(\"?ayni)(%p?)$", b="%2%3"},
+ {a="(%-)([uai])(%p?%s)", b="%2%3"},
+ {a="(%-)([uai])(%p?)$", b="%2%3"},
+ -- discard the ʾiʿrāb hyphen (end)
+ {a="(%-)(\"?[uai])", b="%1%2"}, -- hyphen + initial alif without hamza
+ {a="^(\"?[uai])", b="%1"}, -- initial alif without hamza
+ {a="(%s)([uai])", b="%1%2"}, -- initial alif without hamza
+ {a="%-%-", b=""},
+ {a="iyy$", b="ī"},
+ {a="iyy(%W)", b="ī%1"},
+ -- {a="T([^uai])", b="h%1"},
+ {a="([a%']l%-)(%S-)aT([%(%[%|%<%s])(al%-)", b="%1%2a%3%4"}, --p
+ {a="aT([%(%[%|%<%s])(al%-)", b="at%1%2"}, --p
+ {a="aT$", b="a"},
+ {a="aT(%W)", b="a%1"},
+ {a="_t", b="ṯ"},
+ {a="%^g", b="ğ"},
+ {a="%.h", b="ḥ"},
+ {a="_h", b="ḫ"},
+ {a="_d", b="ḏ"},
+ {a="%^s", b="š"},
+ {a="%.s", b="ṣ"},
+ {a="%.d", b="ḍ"},
+ {a="%.t", b="ṭ"},
+ {a="%.z", b="ẓ"},
+ {a="%.g", b="ġ"},
+ {a="(U)(A)", b="ū"},
+ {a="WA", b="w"},
+ {a="(a)W", b="%1w"},
+ {a="_A", b="ā"},
+ {a="_u", b="ū"},
+ {a="_a", b="ā"},
+ {a="_i", b="ī"},
+ {a="%.b", b="b"},
+ {a="%.f", b="f"},
+ {a="%.q", b="q"},
+ {a="%.k", b="k"},
+ {a="%.n", b="n"},
+ {a="%^d", b="d"}
+}
+
+singletrarabica = {
+ {a="b", b="b"},
+ {a="t", b="t"},
+ {a="j", b="ğ"},
+ {a="x", b="ḫ"},
+ {a="d", b="d"},
+ {a="r", b="r"},
+ {a="z", b="z"},
+ {a="s", b="s"},
+ {a="`", b="ʿ"},
+ {a="f", b="f"},
+ {a="q", b="q"},
+ {a="k", b="k"},
+ {a="l", b="l"},
+ {a="m", b="m"},
+ {a="n", b="n"},
+ {a="h", b="h"},
+ {a="w", b="w"},
+ {a="y", b="y"},
+ {a="T", b="t"},
+ {a="\"", b=""},
+ {a="B", b=""}
+}
+