diff options
Diffstat (limited to 'arabluatex.dtx')
-rw-r--r-- | arabluatex.dtx | 129 |
1 files changed, 115 insertions, 14 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx index eff2045..ce814f9 100644 --- a/arabluatex.dtx +++ b/arabluatex.dtx | |||
@@ -36,7 +36,7 @@ | |||
36 | \usepackage{dox} | 36 | \usepackage{dox} |
37 | \doxitem{Option}{option}{options} | 37 | \doxitem{Option}{option}{options} |
38 | \usepackage{fontspec,luatextra,realscripts} | 38 | \usepackage{fontspec,luatextra,realscripts} |
39 | \defaultfontfeatures{RawFeature={+liga}} | 39 | \defaultfontfeatures{RawFeature={+liga;+onum;+hlig}} |
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} |
@@ -604,21 +604,22 @@ consonants, though three of them are also used as vowels | |||
604 | % \arb[fullvoc]{ramaW} \arb[trans]{ramaW}, |banaWA| | 604 | % \arb[fullvoc]{ramaW} \arb[trans]{ramaW}, |banaWA| |
605 | % \arb[fullvoc]{banaWA}, \arb[trans]{banaWA}. | 605 | % \arb[fullvoc]{banaWA}, \arb[trans]{banaWA}. |
606 | % \end{quote} | 606 | % \end{quote} |
607 | % | 607 | % |
608 | % \paragraph{\arb[trans]{'alif ma.h_dUfaT} and defective | 608 | % \paragraph{\arb[trans]{'alif ma.h_dUfaT}and defective \arb[trans]{U, |
609 | % \arb[trans]{U, I}} they are written \meta{\_a, \_i \_u}: | 609 | % I}} They are written \meta{\_a, \_i \_u}: |
610 | % \begin{quote} | 610 | % \begin{quote} |
611 | % |al-l_ahu| \arb[voc]{al-l_ahu} \arb[trans]{al-l_ahu}, |'il_ahuN| | 611 | % |al-l_ahu| \arb[voc]{al-l_ahu} \arb[trans]{al-l_ahu}, |'il_ahuN| |
612 | % \arb[voc]{'il_ahuN} \arb[trans]{'il_ahuN}, |al-ra.hm_anu| | 612 | % \arb[voc]{'il_ahuN} \arb[trans]{'il_ahuN}. |
613 | % \arb[voc]{al-ra.hm_anu} \arb[trans]{al-ra.hm_anu}, |l_akin| | 613 | % |
614 | % \arb[voc]{l_akin} \arb[trans]{l_akin}, |h_ahunA| | 614 | % |al-ra.hm_anu| \arb[voc]{al-ra.hm_anu} \arb[trans]{al-ra.hm_anu}, |
615 | % \arb[voc]{h_ahunA} \arb[trans]{h_ahunA}, | 615 | % |l_akin| \arb[voc]{l_akin} \arb[trans]{l_akin}, |h_ahunA| |
616 | % |.hunaynu| |bnu| |'is.h_aqa| | 616 | % \arb[voc]{h_ahunA} \arb[trans]{h_ahunA}, |.hunaynu| |bnu| |
617 | % \arb[voc]{.hunaynu bnu 'is.h_aqa} \arb[trans]{\cap{.hunaynu} bnu | 617 | % |'is.h_aqa| \arb[voc]{.hunaynu bnu 'is.h_aqa} |
618 | % \cap{'is.h_aqa}}, |rabb_i| \arb[voc]{rabb_i} \arb[trans]{rabb_i}, | 618 | % \arb[trans]{\cap{.hunaynu} bnu \cap{'is.h_aqa}}, |rabb_i| |
619 | % |al-`A.s_i| \arb[voc]{al-`A.s_i} \arb[trans]{al-\cap{`A.s_i}}. | 619 | % \arb[voc]{rabb_i} \arb[trans]{rabb_i}, |al-`A.s_i| |
620 | % \arb[voc]{al-`A.s_i} \arb[trans]{al-\cap{`A.s_i}}. | ||
620 | % \end{quote} | 621 | % \end{quote} |
621 | % | 622 | % |
622 | % \paragraph{Silent \arb[novoc]{U}/\arb[novoc]{I}} | 623 | % \paragraph{Silent \arb[novoc]{U}/\arb[novoc]{I}} |
623 | % Some words ending with \arb[voc]{BAT} are usually written | 624 | % Some words ending with \arb[voc]{BAT} are usually written |
624 | % \arb[voc]{BawT} or \arb[voc]{B_aUT} instead of \arb[voc]{BAT}: see | 625 | % \arb[voc]{BawT} or \arb[voc]{B_aUT} instead of \arb[voc]{BAT}: see |
@@ -1107,6 +1108,106 @@ consonants, though three of them are also used as vowels | |||
1107 | % speaking, it acts as a \emph{toggle switch}. If something, in a | 1108 | % speaking, it acts as a \emph{toggle switch}. If something, in a |
1108 | % given mode, is supposed to be visible, \enquote{quoting} hides it; | 1109 | % given mode, is supposed to be visible, \enquote{quoting} hides it; |
1109 | % conversely, if it is supposed not to, it makes it visible. | 1110 | % conversely, if it is supposed not to, it makes it visible. |
1111 | % | ||
1112 | % As shown above, \enquote{quoting} means inserting one straight | ||
1113 | % double quote (|"|) \emph{before} the letter that is to be acted | ||
1114 | % upon. Its effects depend on the mode which is currently selected, | ||
1115 | % either |novoc|, |voc| or |fullvoc|:--- | ||
1116 | % | ||
1117 | % \paragraph{\texttt{novoc}} In this mode, \enquote{quoting} | ||
1118 | % essentially means make visible something that ought not to be so. | ||
1119 | % \begin{enumerate}[(a)] | ||
1120 | % \item Quoting a vowel, either short or long, makes the | ||
1121 | % \arb[trans]{.dammaT}, \arb[trans]{fat.haT} or \arb[trans]{kasraT} | ||
1122 | % appear above the appropriate consonant:--- | ||
1123 | % \begin{quote} | ||
1124 | % |`"ullima| |`ilma| |'l-hay'aTi| \arb[novoc]{`"ullima `ilma | ||
1125 | % 'l-hay'aTi} \arb[trans]{`"ullima `ilma 'l-hay'aTi}, |ya.gz"UA| | ||
1126 | % \arb[novoc]{ya.gz"UA} \arb[trans]{ya.gz"UA}. | ||
1127 | % \end{quote} | ||
1128 | % \item The same applies when \enquote{quoting} the | ||
1129 | % \arb[trans]{tanwIn}:--- | ||
1130 | % \begin{quote} | ||
1131 | % |wa-'innA| |sawfa| |tudriku-nA| |'l-manAyA| |muqadd"araT"aN| | ||
1132 | % \arb[novoc]{wa-'innA sawfa tudriku-nA 'l-manAyA muqadd"araT"aN}, | ||
1133 | % \arb[trans]{wa-'innA sawfa tudriku-nA 'l-manAyA muqadd"araT"aN}. | ||
1134 | % \end{quote} | ||
1135 | % \item If no vowel follows the straight double quote, then a | ||
1136 | % \arb[trans]{sukUn} is put above the preceding consonant:--- | ||
1137 | % \begin{quote} | ||
1138 | % |qAla isma`"| \arb[novoc]{qAla isma`"} \arb[trans]{qAla isma`"}, | ||
1139 | % |jA'at"| |hinduN| \arb[voc]{jA'at" hinduN} \arb[trans]{jA'at" | ||
1140 | % hinduN}, |^sabIhuN| |bi-man| |q"u.ti`at"| |qadamA-hu| | ||
1141 | % \arb[novoc]{^sabIhuN bi-man q"u.ti`at" qadamA-hu} | ||
1142 | % \arb[trans]{^sabIhuN bi-man q"u.ti`at" qadamA-hu}. | ||
1143 | % \end{quote} | ||
1144 | % \item At the commencement of a word, the straight double quote is | ||
1145 | % interpreted as \arb[trans]{'alifu 'l-wa.sli}:--- | ||
1146 | % \begin{quote} | ||
1147 | % |wa-"ust"u`mila| \arb[novoc]{wa-"ust"u`mila} | ||
1148 | % \arb[trans]{wa-"ust"u`mila}, |huwa| |"inhazama| \arb[novoc]{huwa | ||
1149 | % "inhazama} \arb[trans]{huwa "inhazama}, |al-"intiqA.du| | ||
1150 | % \arb[novoc]{al-"intiqA.du} \arb[trans]{al-"intiqA.du}. | ||
1151 | % \end{quote} | ||
1152 | % \end{enumerate} | ||
1153 | % | ||
1154 | % \paragraph{\texttt{voc}} | ||
1155 | % In accordance with the general rule, in this mode, \enquote{quoting} | ||
1156 | % makes the vowels and the \arb[trans]{tanwIn} disappear, should this | ||
1157 | % feature be required for some reason:--- | ||
1158 | % \begin{enumerate}[(a)] | ||
1159 | % \item Short and long vowels:--- | ||
1160 | % \begin{quote} | ||
1161 | % |q"Ala q"A'iluN| \arb[voc]{q"Ala q"A'iluN} \arb[trans]{q"Ala | ||
1162 | % q"A'iluN}, |ibnu 'abI 'u.saybi`aT"a| \arb[voc]{ibnu 'abI | ||
1163 | % 'u.saybi`aT"a} \arb[trans]{\cap{ibnu} \cap{'abI} | ||
1164 | % \cap{'u.saybi`aT"a}}. | ||
1165 | % \end{quote} | ||
1166 | % \item \arb[trans]{tanwIn}:--- | ||
1167 | % \begin{quote} | ||
1168 | % |madInaT"aN| \arb[voc]{madInaT"aN} \arb[trans]{madInaT"aN}, | ||
1169 | % |bAb"aN| \arb[voc]{bAb"aN} \arb[trans]{bAb"aN}, |hud"aN_A| | ||
1170 | % \arb[voc]{hud"aN_A} \arb[trans]{hud"aN_A}, |^say'"iN| | ||
1171 | % \arb[voc]{^say'"iN} \arb[trans]{^say'"iN}. | ||
1172 | % \end{quote} | ||
1173 | % \end{enumerate} | ||
1174 | % One may more usefully \enquote{quote} the initial vowels to write | ||
1175 | % the \arb[trans]{hamzaT} above the \arb[trans]{'alif} or insert a | ||
1176 | % straight double quote after a consonant not followed by a vowel to | ||
1177 | % make the \arb[trans]{sukUn} appear:--- | ||
1178 | % \begin{enumerate}[(a)] | ||
1179 | % \item \arb[trans]{'alifu 'l-wa.sli}:--- | ||
1180 | % \begin{quote} | ||
1181 | % |fI "istisqA'a| \arb[voc]{fI "istisqA'a} \arb[trans]{fI | ||
1182 | % "istisqA'a}, |wa-"istisqA'u| \arb[voc]{wa-"istisqA'u} | ||
1183 | % \arb[trans]{wa-"istisqA'u}, |qAla| |"uhrub| |fa-lan| |tuqtala| | ||
1184 | % \arb[voc]{qAla "uhrub fa-lan tuqtala} \arb[trans]{qAla "uhrub | ||
1185 | % fa-lan tuqtala}. | ||
1186 | % \end{quote} | ||
1187 | % \item \arb[trans]{sukUn}:--- | ||
1188 | % \begin{quote} | ||
1189 | % |qAla| |uqtul"| |fa-lan| |tuqtala| \arb[voc]{qAla uqtul" fa-lan | ||
1190 | % tuqtala} \arb[trans]{qAla uqtul" fa-lan tuqtala}, |mA| |jA'at"| | ||
1191 | % |mini| |imra'aTiN| \arb[voc]{mA jA'at" mini imra'aTiN} | ||
1192 | % \arb[trans]{mA jA'at" mini imra'aTiN}, |kam"| |qad"| |ma.dat"| | ||
1193 | % |min"| |laylaTiN| \arb[voc]{kam" qad" ma.dat" min" laylaTiN} | ||
1194 | % \arb[trans]{kam" qad" ma.dat" min" laylaTiN}. | ||
1195 | % \end{quote} | ||
1196 | % \end{enumerate} | ||
1197 | % | ||
1198 | % \paragraph{\texttt{fullvoc}} | ||
1199 | % In this mode, \enquote{quoting} may be used to take away any short | ||
1200 | % vowel (or \arb[trans]{tanwIn}, as seen above) or any | ||
1201 | % \arb[trans]{sukUn}:--- | ||
1202 | % \begin{quote} | ||
1203 | % |al-jamru| |'l-.sayfiyyu| |'lla_dI| |kAna| \verb+bi-q"rAn"|nUna+ | ||
1204 | % \arb[fullvoc]{al-jamru 'l-.sayfiyyu 'lla_dI kAna | ||
1205 | % \cap{bi-q"rAn"|nUna}} \arb[trans]{al-jamru 'l-.sayfiyyu 'lla_dI | ||
1206 | % kAna \cap{bi-q"rAn"|nUna}}. | ||
1207 | % \end{quote} | ||
1208 | % | ||
1209 | % \subsubsection{Quoting the \arb[trans]{hamzaT}} | ||
1210 | % \label{sec:quoting-hamza} | ||
1110 | % | 1211 | % |
1111 | % | 1212 | % |
1112 | % \StopEventually{} | 1213 | % \StopEventually{} |