aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arabluatex.dtx27
-rw-r--r--arabluatex_trans.lua2
2 files changed, 26 insertions, 3 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx
index 0e7f8db..ef1a9a6 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -282,13 +282,13 @@
282% font\footnote{\textcite{pkg:amiri}.} like so:\\ 282% font\footnote{\textcite{pkg:amiri}.} like so:\\
283% \arabluaverb{\newfontfamily\arabicfont[Script=Arabic]{Amiri}} 283% \arabluaverb{\newfontfamily\arabicfont[Script=Arabic]{Amiri}}
284% \begin{quote}\footnotesize 284% \begin{quote}\footnotesize
285% \textbf{Rem.} By default Amiri places the \arb[trans]{kasra} in 285% \textbf{Rem.} By default Amiri places the \arb[trans]{kasraT} in
286% combination with the \arb[trans]{ta^sdId} below the consonant, 286% combination with the \arb[trans]{ta^sdId} below the consonant,
287% like so: \arb{BBi}\,. This is correct, as at least in the oldest 287% like so: \arb{BBi}\,. This is correct, as at least in the oldest
288% manuscripts {\newfontfamily\arabicfont[Script=Arabic, 288% manuscripts {\newfontfamily\arabicfont[Script=Arabic,
289% RawFeature={+ss05}]{Amiri}\arb{BBi}} may stand for \arb{BBa} as 289% RawFeature={+ss05}]{Amiri}\arb{BBi}} may stand for \arb{BBa} as
290% well as \arb{BBi}\,. See \textcite[i.14.C--D]{Wright}. The placement 290% well as \arb{BBi}\,. See \textcite[i.14.C--D]{Wright}. The placement
291% of the \arb[trans]{kasra} above the consonant may be obtained by 291% of the \arb[trans]{kasraT} above the consonant may be obtained by
292% selecting the |ss05| feature of the Amiri font, like 292% selecting the |ss05| feature of the Amiri font, like
293% so:\footnote{See the documentation of \package{amiri}, 293% so:\footnote{See the documentation of \package{amiri},
294% \textcite[5]{pkg:amiri}.}\\ 294% \textcite[5]{pkg:amiri}.}\\
@@ -301,7 +301,28 @@
301% \package{arabluatex} may be loaded with four global options, each of 301% \package{arabluatex} may be loaded with four global options, each of
302% which may be overriden at any point of the document: 302% which may be overriden at any point of the document:
303% 303%
304% \DescribeOption{voc}\hfill\arabluaverb{default}\\ good for me 304% \DescribeOption{voc}\hfill\arabluaverb{default}\\ In this mode,
305% which is the one selected by default, every short vowel written
306% generates its corresponding diacritical mark: \arb[trans]{.dammaT}
307% (\arb{Bu}), \arb[trans]{fat.haT} (\arb{Ba}) and \arb[trans]{kasraT}
308% (\arb{Bi}). If a vowel is followed by \meta{N}, then the
309% corresponding \arb[trans]{tanwIn} (\arb{BuN}, \arb{BaN}\,,
310% \arb{TaN}, \arb{BaN_A} or \arb{BiN}) is generated. Finally, \meta{u,
311% a, i} at the commencement of a word indicate a \enquote{connective
312% \arb[trans]{'alif}\,} (\arb[trans]{'alifu 'l-wa.sli}), but |voc| mode
313% does not show the \arb[trans]{wa.slaT} above the \arb[trans]{'alif};
314% instead, the accompanying vowel is expressed (\arb{u a i}).
315%
316% \DescribeOption{fullvoc}\\ In addition to what the |voc| mode does,
317% |fullvoc| expresses the \arb[trans]{sukUn} and the
318% \arb[trans]{wa.slaT}.
319%
320% \DescribeOption{novoc}\\ None of the diacritics is showed in |novoc|
321% mode, unless otherwise specified.
322%
323% \DescribeOption{trans} \\
324%
325%
305% \begin{itemize} 326% \begin{itemize}
306% \item voc Vocalized Arabic 327% \item voc Vocalized Arabic
307% \item novoc Full vocalized Arabic 328% \item novoc Full vocalized Arabic
diff --git a/arabluatex_trans.lua b/arabluatex_trans.lua
index f28ebc9..23ea635 100644
--- a/arabluatex_trans.lua
+++ b/arabluatex_trans.lua
@@ -156,6 +156,8 @@ digraphstrdmg = {
156 {a="(%s)([uai])", b="%1'"}, -- initial alif without hamza 156 {a="(%s)([uai])", b="%1'"}, -- initial alif without hamza
157 {a="%-%-", b=""}, 157 {a="%-%-", b=""},
158 {a="T([^uai])", b="%1"}, 158 {a="T([^uai])", b="%1"},
159 {a="T(%s)", b="%1"},
160 {a="T$", b=""},
159 {a="_t", b="ṯ"}, 161 {a="_t", b="ṯ"},
160 {a="%^g", b="ǧ"}, 162 {a="%^g", b="ǧ"},
161 {a="%.h", b="ḥ"}, 163 {a="%.h", b="ḥ"},