Debian Codegraph @

texmf-dist/source/xelatex/arabxetex/arabxetex.dtx

raw
1 % \iffalse
2 %
3 %!TEX encoding = UTF-8 Unicode
4 %
5 % Copyright © 2007-2015 by François Charette <firmicus04 at gmail dot com>
6 %
7 % Distributable under the LaTeX Project Public License,
8 % version 1.3c or higher (your choice). The latest version of
9 % this license is at: http://www.latex-project.org/lppl.txt
10 %
11 % This work is "maintained" (as per LPPL maintenance status)
12 % by François Charette.
13 %
14 % This work consists of the file arabxetex.dtx
15 % and the derived files arabxetex.sty, arabxetex.pdf and
16 % several accompanying *.map files.
17 %
18 %
19 %<*batchfile>
20 \begingroup
21 \input docstrip.tex
22 \keepsilent
23 \preamble
24
25 ____________________________
26 The arabxetex package
27 © 2007–2015 François Charette
28 License information appended
29
30
31 \endpreamble
32 \postamble
33
34 Copyright © 2007–2015 by François Charette <firmicus04 at gmail dot com>
35
36 Distributable under the LaTeX Project Public License,
37 version 1.3c or higher (your choice). The latest version of
38 this license is at: http://www.latex-project.org/lppl.txt
39
40 This work is "maintained" (as per LPPL maintenance status)
41 by François Charette.
42
43 This work consists of the file \jobname.dtx
44 and the derived files \jobname.sty and \jobname.pdf.
45 as well as an extensive collection of TECKit files
46 (*.map, compiled as *.tec).
47
48 \endpostamble
49 \askforoverwritefalse
50 \generate{\file{\jobname.sty}{\from{\jobname.dtx}{package}}}
51 \generate{\file{\jobname.ins}{\from{\jobname.dtx}{batchfile}}}
52 \nopreamble\nopostamble
53 \generate{\file{README}{\from{\jobname.dtx}{readme}}}
54 \generate{\file{arabxetex-dtx-style.sty}{\from{\jobname.dtx}{dtx-style}}}
55 \endgroup
56 %</batchfile>
57 %
58 %<*driver>
59 \documentclass[11pt]{ltxdoc}
60 \usepackage{arabxetex-dtx-style}
61 \EnableCrossrefs
62 \CodelineIndex
63 \RecordChanges
64 %\OnlyDescription
65 \begin{document}
66 \DocInput{\jobname.dtx}
67 \end{document}
68 %</driver>
69 %
70 %<*readme>
71 --------------------------
72 THE ARABXETEX PACKAGE v1.2.1
73
74 This package provides a convenient ArabTeX-like user-interface for typesetting
75 languages using the Arabic script in XeLaTeX, with flexible access to font
76 features. Input in ArabTeX notation can be set in three different
77 vocalization modes or in roman transliteration. Direct UTF-8 input is also
78 supported. Since most of the ‘real work’ -- namely parsing and converting
79 ArabTeX input to Unicode -- is done at the level of TECkit mappings,
80 ArabXeTeX is really performant.
81
82 The TECkit fontmapping files (*.map and *.tec) should be copied to
83 <TEXMF>/fonts/misc/xetex/fontmapping/arabxetex/
84
85 -------------------------
86 François Charette
87 © 2007–2015
88 %</readme>
89 %
90 % \fi
91 %
92 % \errorcontextlines=999
93 % \makeatletter
94 %
95 % \GetFileInfo{\jobname.sty}
96 %
97 % \title{~\hfil {\color{IslamicGreen}\arabxetex}\hfil~\\
98 % An \arabtex-like interface for typesetting languages in Arabic script with \XeLaTeX}
99 % \author{François Charette}
100 % \date{\filedate \qquad \fileversion}
101 %
102 % \maketitle
103 % \tableofcontents
104 %
105 %
106 % \DeleteShortVerb{\|}
107 % \MakeShortVerb{\¦}
108 %
109 % \begin{abstract}
110 % This package provides a convenient \arabtex-like user-interface for typesetting
111 % languages using the Arabic script in \XeLaTeX, with flexible access to font
112 % features. Input in \arabtex\ notation can be set in three different vocalization
113 % modes or in roman transliteration. Direct UTF-8 input is also supported.
114 % Since most of the ‘real work’ -- namely parsing and converting \arabtex\ input to Unicode --
115 % is done at the level of TECkit mappings, \arabxetex\ is really performant.
116 % \end{abstract}
117 %
118 % \tableofcontents
119 %
120 % \section{Introduction}
121 %
122 %
123 % Since the early 1990s,\footnote{ ^^A
124 % This introduction reflects the state of things in 2007 when \arabxetex\ was initially released.}
125 % \TeX\ users who wished to typeset in Arabic script
126 % have relied on Klaus Lagally's excellent \arabtex\ system.\footnote{ ^^A
127 % \url{ftp://ftp.informatik.uni-stuttgart.de/pub/arabtex/arabtex.htm}.
128 % Version 2.00 was released in April 1992 and version 3.00 in November of
129 % the following year. The latest stable version (dated 2 July 2006) is
130 % 3.11s. Since version 3.02 the Hebrew language is also supported.}
131 % While \arabtex's overall qualities and Lagally's masterful \TeX-programming
132 % abilities are undeniable, the system can hardly hide its 15-odd years of
133 % existence. Or to state it otherwise, it is now slowly becoming an archaic
134 % piece of sofware (which as a historian who has used \arabtex\ for more than
135 % eleven years I find a sad thing to admit). First of all, it is monolithic and
136 % idiosyncratic, in the sense that everything -- from parsing the input encoding,
137 % to doing contextual analysis, to assembling all elements of the script and
138 % placing them on the page from right to left, in defiance of \TeX's natural
139 % logic -- is taken care of by means of \TeX\ macro programming. Thus before the
140 % availability of relatively fast Pentium processors, \arabtex\ was really slow,
141 % but this is less of an issue nowadays. Another disadvantage is that one is
142 % inexorably bound to use the custom Naskh font, which without being necessarily
143 % ugly does not meet the standards of fine typesetting. Finally, the collection
144 % of very sophisticated \TeX\ code that constitutes the \arabtex\ package is not
145 % documented at all, which means that even though it is now licensed under the
146 % LPPL, its internals are extremely difficult to understand in depth.
147 % (It is only fair to state, however, that Prof.~Lagally has been extremely
148 % responsive to ideas, suggestions and wishes by users in the past).
149 %
150 % After completion of the initial alpha version of \arabxetex, I came across the
151 % package \pkg{Arabi} by Youssef Jabri on CTAN.\footnote{ ^^A
152 % \url{http://www.ctan.org/tex-archive/language/arabic/arabi/}}
153 % This is a pure LaTeX/Babel approach to Arabic typesetting which makes use of
154 % TFM hackery (by means of complex sequences of ligature rules) to provide custom
155 % contextual analysis for individual fonts. Thus the \pkg{Arabi} only works in
156 % combination with the fonts for which support is built in the package.
157 %
158 % With the availability of Jonathan Kew's \XeTeX, users can now rely on a very
159 % up-to-date typesetting engine based on the integration of \eTeX, Unicode, and
160 % modern font-rendering technology, without the complex hassle of
161 % font installation.\footnote{ ^^A
162 % \url{http://xetex.sourceforge.net}.}
163 %
164 % \section{Description}
165 %
166 % The \arabxetex\ package consists of a set of \textbf{TECkit}\footnote{ ^^A
167 % \url{http://scripts.sil.org/TECkit}}
168 % mappings for converting internally from \arabtex's \ASCII\ input convention to
169 % Unicode, and a \LaTeX\ style file (\pkg{arabxetex.sty}) that provides a
170 % convenient user interface for typesetting in those languages.
171 % For details on \arabtex\ and its input convention the reader is referred to
172 % Lagally's detailed manual.\footnote{ ^^A
173 % \url{http://129.69.218.213/arabtex/doc/arabdoc.pdf}}
174 % \arabxetex\ introduces several additions, and a few minor modifications,
175 % to \arabtex's conventions. These are documented in tabular form in
176 % Section~\ref{conventiontable}. \arabxetex\ relies on the package \pkg{bidi}
177 % which contains the macros necessary for bidirectional typesetting.
178 %
179 % Languages supported at present are the same as in \arabtex, namely: Arabic,
180 % Maghribi Arabic, Farsi (Persian), Urdu, Sindhi, Kashmiri, Ottoman Turkish,
181 % Kurdish, Jawi (Malay) and Uighur. \arabxetex\ adds support for several
182 % additional Unicode characters, so that some more languages are probably
183 % supported de-facto as well (such as Western Punjabi).
184 %
185 % \subsection{The \arabtex\ input encoding}
186 %
187 % Why would one need to type those languages by means of an old-fashioned
188 % \ASCII\ \label{arabtexnotes} representation?
189 % Native speakers have access to keyboards that allow to input
190 % them directly in Unicode, while non-native scholars who need to type them
191 % can use keymaps or keyboard utilities to achieve the same, so why bother?
192 % An expert in Arabic mathematical linguistic and author of the Perl module
193 % \pkg{Encode::Arabic::ArabTeX}, Otakar Srmž, has this to say about the
194 % virtues of \arabtex\ \ASCII\ encoding:\footnote{ ^^A
195 % \url{http://search.cpan.org/~smrz/Encode-Arabic/lib/Encode/Arabic/ArabTeX.pm\#DESCRIPTION}.
196 % See also \url{http://ufal.mff.cuni.cz/~smrz/ICFP2006/icfp-encode.pdf}.}
197 % \begin{quote}
198 % “ArabTeX is an excellent extension to TeX/LaTeX designed for
199 % typesetting the right-to-left scripts of the Orient. It comes up with
200 % very intuitive and comprehensible lower \ASCII\ transliterations, the
201 % expressive power of which is even better than that of the scripts.”
202 % \end{quote}
203 % There are indeed several advantages in using \arabtex\ input convention for
204 % typesetting in the Arabic script, besides ease and legibility. First it is
205 % possible and even trivial to switch between a representation of the data in the
206 % Arabic script and its romanized transliteration, without having to modify it.
207 % Second, despite the increasing availability of good Unicode editors that
208 % support bidirectionality, editing (La)\TeX\ source files with bidirectional
209 % content can be a real pain, for it leads to confusion and distraction. Also,
210 % with complex multi-layer documents such as critical editions, where footnotes
211 % and annotations abound, the advantage of dealing with a plain \ASCII\ encoding
212 % cannot be overstated. Finally, such an input convention allows far greater
213 % control of typographical details.
214 %
215 % \section{Usage}
216 %
217 % For short insertions (say within a LR text), use ¦\text<language>[option]{...}¦
218 % \DescribeMacro{\textarab}\DescribeMacro{\textfarsi}\marginpar{\raggedleft\small etc.}
219 % where ¦<language>¦ is one of the following (alternative names are given in brackets):
220 % \begin{compactitem}[\textbf{·}]
221 % \item ¦arab¦ (¦arabic¦),\footnote{ ^^A
222 % Since the command \cmd\arabic\ is already defined in \LaTeX, we chose
223 % the environment ¦arab¦ and the command \cmd\textarab\ instead,
224 % but the equivalent environment ¦Arabic¦ and the command
225 % \cmd\textarabic\ are also available.}
226 % \item ¦farsi¦ (¦persian¦),
227 % \item ¦urdu¦,
228 % \item ¦sindhi¦,
229 % \item ¦pashto¦,
230 % \item ¦ottoman¦ (¦turk¦),
231 % \item ¦kurdish¦,
232 % \item ¦kashmiri¦,
233 % \item ¦malay¦ (¦jawi¦), and
234 % \item ¦uighur¦.
235 % \end{compactitem}
236 % For typesetting whole paragraphs in Arabic script, use
237 % \DescribeMacro{\begin\{arab\}}\DescribeMacro{\begin\{farsi\}}\marginpar{\raggedleft\small etc.}
238 % \begin{Verbatim}[gobble=2,fontsize=\normalsize]
239 % \begin{<language>}[option]
240 % ...
241 % \end{<language>}
242 % \end{Verbatim}
243 %
244 % Most languages can be typeset in one of four modes: non-vocalized, vocalized,
245 % fully-vocalized, and transliterated, exactly as in \arabtex, and these are
246 % switched by means of the options ¦novoc¦, ¦voc¦, ¦fullvoc¦ and ¦trans¦,
247 % respectively. Note that Kurdish and Uighur only have one vocalization mode.
248 % The mode can be determined either globally as an option to the \pkg{arabxetex}
249 % package, or as a local option of either the ¦\text<language>¦ commands or
250 % ¦\begin{<language>}¦ \ldots ¦\end{<language>}¦ environments.
251 % When no option is set locally, the global option is chosen.
252 % The default global option is always \textit{non-vocalized} mode.
253 %
254 % There is also an option \pkg{utf} for input in plain UTF-8 encoding. Note that
255 % it is also possible to mix \arabtex\ input convention and UTF-8 characters,
256 % since the latter will not be affected by the font-mapping (except of course in
257 % transliteration mode, unless your roman font also contains Arabic characters).
258 % There are also advantages of choosing an \arabtex\ mapping (\ie one of the
259 % ¦novoc¦, ¦voc¦ and ¦fullvoc¦ modes) even with UTF-8 encoding, as it provides
260 % easy access to special glyphs and some useful features. See further below.
261 %
262 % Left-to-right insertions in Latin script within an Arabic environment
263 % can be made by means of the \DescribeMacro{\textLR}
264 % command \cmd\textLR¦{…}¦.
265 % Emphasis in Arabic is traditionally indicated by
266 % overlining the text, and this can be achieved with the command
267 % \DescribeMacro{\aemph}
268 % \cmd\aemph:\footnote{ ^^A
269 % This macro makes use of the mathematical command \cmd\overline,
270 % which explains why \pkg{arabxetex} requires the \pkg{amsmath} package.
271 % I welcome any suggestion that would make it possible to circumvent this dependency
272 % by emulating \cmd\overline\ directly.}
273 %
274 % \parindentoff
275 % \begin{minipage}[t]{.4\textwidth}
276 % \begin{Verbatim}[gobble=2]
277 % \begin{arab}[novoc]
278 % mi_tAl: \aemph{45} darajaT
279 % \end{arab}
280 % \end{Verbatim}
281 % \end{minipage}
282 % \hfill
283 % \begin{minipage}[t]{.4\textwidth}
284 % \begin{arab}[novoc]
285 % ~ \\
286 % mi_tAl: \aemph{45} darajaT
287 % \end{arab}
288 % \end{minipage}
289 % \medskip
290 %
291 %\subsection{Font setup}
292 %
293 % \arabxetex\ requires the user to define an \cmd\arabicfont\ in the preamble.
294 % \DescribeMacro{\arabicfont}
295 % The recommended procedure, by means of \pkg{fontspec}, is to define it as follows:
296 % \begin{Verbatim}[gobble=2,fontsize=\normalsize]
297 % \newfontfamily\arabicfont[Script=Arabic]{<fontname>}
298 % \end{Verbatim}
299 % If not, then a warning is issued and \arabxetex\ will attempt to load
300 % the font \textbf{Amiri} (by Khaled Hosny).\footnote{
301 % Available from \url{http://www.amirifont.org}.
302 % Prior to version 1.2.0, the default font was \textbf{Scheherazade} (designed by Bob Halissy and
303 % Jonathan Kew of SIL International),
304 % available from \url{http://scripts.sil.org/ArabicFonts}. For
305 % typesetting Sindhi and Kashmiri, the font \textbf{Lateef}, available at
306 % the same place, is also recommended.}
307 % You can also define specific fonts for all other languages, by similarly defining
308 % ¦\<language>font¦, such as for example:
309 % \begin{Verbatim}[gobble=2,fontsize=\normalsize]
310 % \newfontfamily\urdufont[Script=Arabic]{Hussaini Nastaleeq}
311 % \end{Verbatim}
312 % So for example if the \cmd\texturdu\ command or the ¦urdu¦ environment is used,
313 % \arabxetex\ will use the \cmd\urdufont\ if it is defined,
314 % and the \cmd\arabicfont\ if not. In the same manner one can define
315 % \cmd\maghribifont, \cmd\ottomanfont, \cmd\uighurfont, etc.
316 %
317 %
318 %
319 %
320 % \subsection{Examples}
321 %
322 % \subsubsection{Contextual analysis of \textit{hamza}}
323 %
324 % As with \arabtex, a contextual analysis of the input encoding is performed
325 % (at the font-mapping level) to automatically determine the carrier of the
326 % \textit{hamza}, as illustrated by the following examples:
327 %
328 % \begin{Verbatim}[gobble=2,fontsize=\normalsize]
329 % \begin{arab}
330 % 'amruN, 'ibiluN, 'u_htuN, '"u_ht"uN, '"Uql"Id"Is, ra'suN, 'ar'asu,
331 % sa'ala, qara'a, bu'suN, 'ab'usuN, ra'ufa, ru'asA'u, bi'ruN, 'as'ilaTuN,
332 % ka'iba, qA'imuN, ri'AsaTuN, su'ila, samA'uN, barI'uN, sU'uN, bad'uN,
333 % ^say'uN, ^say'iN, ^say'aN, sA'ala, mas'alaTuN, saw'aTuN, _ha.tI'aTuN,
334 % jA'a, ridA'uN, ridA'aN, jI'a, radI'iN, sU'uN, .daw'uN, qay'iN, .zim'aN
335 % , yatasA'alUna, 'a`dA'akum, 'a`dA'ikum, 'a`dA'ukum maqrU'aT, mU'ibAt,
336 % taw'am, yas'alu, 'a.sdiq^A'uh_u, ya^g^I'u, s^U'ila
337 % \end{arab}
338 % \end{Verbatim}
339 %
340 % \begin{arab}[voc]
341 % 'amruN, 'ibiluN, 'u_htuN, '"u_ht"uN, '"Uql"Id"Is, ra'suN, 'ar'asu,
342 % sa'ala, qara'a, bu'suN, 'ab'usuN, ra'ufa, ru'asA'u, bi'ruN, 'as'ilaTuN,
343 % ka'iba, qA'imuN, ri'AsaTuN, su'ila, samA'uN, barI'uN, sU'uN, bad'uN,
344 % ^say'uN, ^say'iN, ^say'aN, sA'ala, mas'alaTuN, saw'aTuN, _ha.tI'aTuN,
345 % jA'a, ridA'uN, ridA'aN, jI'a, radI'iN, sU'uN, .daw'uN, qay'iN, .zim'aN
346 % , yatasA'alUna, 'a`dA'akum, 'a`dA'ikum, 'a`dA'ukum maqrU'aT, mU'ibAt,
347 % taw'am, yas'alu, 'a.sdiq^A'uh_u, ya^g^I'u, s^U'ila
348 % \end{arab}
349 %
350 % \subsubsection{Special orthographies}
351 %
352 % Some Arabic words, like \textit{miʾa} “hundred”, have irregular orthographies.
353 % \arabxetex\ recognizes them automatically.
354 %
355 % \begin{minipage}[t]{.4\textwidth}
356 % \begin{Verbatim}[gobble=2]
357 % \begin{arab}[voc]
358 % mi'aT , mi'at"An , sab`ami'"aT
359 % \end{arab}
360 % \end{Verbatim}
361 % \end{minipage}
362 % \hfill
363 % \begin{minipage}[t]{.4\textwidth}
364 % \begin{arab}[voc]
365 % ~ \\
366 % mi'aT , mi'at"An , sab`ami'"aT
367 % \end{arab}
368 % \end{minipage}
369 % \bigskip
370 %
371 % \textbf{NB}: For the time being only \textit{miʾa} is supported, but more irregular
372 % constructs may be added in later versions.
373 %
374 % \subsubsection{Typesetting the Holy Qurʾān}
375 %
376 % High-quality typesetting of the Holy Qurʾān (\textarab{al-qur'An al-karIm}) is a
377 % most complex and demanding task, which probably should be left to professional
378 % typesetters. Nevertheless, with Open Type fonts that cover the full Unicode range
379 % for the Arabic script, it is possible to achieve pretty decent results.
380 % The following examples represent my attempt to reproduce, with the font
381 % Amiri, the various typographic features of a typical printed edition (disregarding those that cannot be achieved
382 % by means of Unicode, such as putting the \textit{hamza} directly over the baseline).\footnote{ ^^A
383 % In the previous version of the manual, I attempted to mimic that behaviour with a \TeX\ macro \cmd\hamzaB, which happened to work more or less well with the font Scheherazade. With Amiri it does not and I have reverted to standard spellings.}
384 %
385 % ^^AIn printed Qurʾāns, one frequently encounters typographical oddities that are
386 % ^^Anot taken into account by Unicode, such as the \textit{hamza} placed directly over
387 % ^^Athe baseline instead as over the \textit{alif}.
388 % ^^ABut with a \TeX\ macro it is possible to emulate this rather well:
389 %
390 % \begin{Verbatim}[gobble=2,fontsize=\small]
391 % \begin{arab}[fullvoc]
392 % sUraTu 'l-ssajdaTi, 15--16:
393 %
394 % 'innamA yu'minu bi-'AyAtinA 'lla_dIna 'i_dA _dukkirUA bihA
395 % _harrUA sujjadaN wa-sabba.hUA bi-.hamdi rabbihim wa-hum lA yastakbirUna
396 % SAJDA [[15]] tatajAfY_a junUbuhum `ani 'l-ma.dAji`i yad`Una rabbahum
397 % _hawfaN wa-.tama`aN wa-mimmA razaqn_ahum yunfiqUna [[16]]
398 % \end{arab}
399 %
400 % \begin{arab}[fullvoc]
401 % sUraTu 'l-baqaraTi, 71--72:
402 %
403 % qAla 'innahu, yaqUlu 'innahA baqaraTuN llA _dalUluN tu_tIru 'l-'ar.da wa-lA
404 % tasq.I 'l-.har_ta musallamaTuN llA ^siyaTa fIhA|^JIM qAluW" 'l-'Ana
405 % ji'ta bi-'l-.haqqi|^JIM fa_daba.hUhA wa-mA kAdduW" yaf`alUna [[71]] wa-'i_d
406 % qataltum nafsaN fa-udda_ara|'|_i"tum fIhA|^SLY wa-al-ll_ahu mu_hrijuN mmA
407 % kun"tum taktumUna [[72]]
408 % \end{arab}
409 % \end{Verbatim}
410 % ^^A\let\stdarabicfont\arabicfont
411 % ^^A\let\arabicfont\amiriquran
412 % \begin{arab}[fullvoc]
413 % sUraTu 'l-ssajdaTi, 15--16:
414 %
415 % 'innamA yu'minu bi-'AyAtinA 'lla_dIna 'i_dA _dukkirUA bihA
416 % _harrUA sujjadaN wa-sabba.hUA bi-.hamdi rabbihim wa-hum lA yastakbirUna
417 % SAJDA [[15]] tatajAfY_a junUbuhum `ani 'l-ma.dAji`i yad`Una rabbahum
418 % _hawfaN wa-.tama`aN wa-mimmA razaqn_ahum yunfiqUna [[16]]
419 % \end{arab}
420 %
421 % \bigskip
422 % \begin{arab}[fullvoc]
423 % sUraTu 'l-baqaraTi, 71--72:
424 %
425 % qAla 'innahu, yaqUlu 'innahA baqaraTuN llA _dalUluN tu_tIru 'l-'ar.da wa-lA
426 % tasq.I 'l-.har_ta musallamaTuN llA ^siyaTa fIhA|^JIM qAluW" 'l-'Ana
427 % ji'ta bi-'l-.haqqi|^JIM fa_daba.hUhA wa-mA kAdduW" yaf`alUna [[71]] wa-'i_d
428 % qataltum nafsaN fa-udda_ara|'|_i"tum fIhA|^SLY wa-al-ll_ahu mu_hrijuN mmA
429 % kun"tum taktumUna [[72]]
430 % \end{arab}
431 % ^^A\let\arabicfont\stdarabicfont
432 % \subsubsection{Farsi}
433 %
434 % These are some of the Persian examples in the \arabtex\ documentation,
435 % typeset with the font IranNastaliq:\footnote{ ^^A
436 % \url{http://www.scict.ir/portal/File/ShowFile.aspx?ID=29bc4b98-bfd0-428d-b56b-63e36de8c9b5}}
437 % \begin{Verbatim}[gobble=2,fontsize=\normalsize]
438 % \begin{farsi}[novoc]
439 % _hwAb, xwI^s, _hwod, ^ceH, naH, yal_aH, _hAneH, _hAneHhA, _hAneH-hA,
440 % ketAb-e, U, rAh-e, t_U, nAmeH-i, man, bInI-e, An, mard, pA-i, In,
441 % zan, bAzU-i, In, zan, dAr-_i, man, _hU-_i, t_U, nAmeH-_i, sormeH-_i,
442 % gofteH-_i, ketAb-I, rAh-I, nAmeH-I, dAnA-I, pArU-I, dAnA-I-keH,
443 % pArU-I-keH, rafteH-am, rafteH-Im, AnjA-st, U-st, t_U-st, ketAb-I-st,
444 % be-man, be-t_U, be-An, be-In, be-insAn, beU, be-U, .sA.heb"|_hAneH,
445 % pas"|andAz, naw"|AmUz
446 % \end{farsi}
447 % \end{Verbatim}
448 %
449 % \begin{farsi}[novoc]
450 % _hwAb, xwI^s, _hwod, ^ceH, naH, yal_aH, _hAneH, _hAneHhA, _hAneH-hA,
451 % ketAb-e, U, rAh-e, t_U, nAmeH-i, man, bInI-e, An, mard, pA-i, In,
452 % zan, bAzU-i, In, zan, dAr-_i, man, _hU-_i, t_U, nAmeH-_i, sormeH-_i,
453 % gofteH-_i, ketAb-I, rAh-I, nAmeH-I, dAnA-I, pArU-I, dAnA-I-keH,
454 % pArU-I-keH, rafteH-am, rafteH-Im, AnjA-st, U-st, t_U-st, ketAb-I-st,
455 % be-man, be-t_U, be-An, be-In, be-insAn, beU, be-U, .sA.heb"|_hAneH,
456 % pas"|andAz, naw"|AmUz
457 % \end{farsi}
458 %
459 % \subsubsection{Urdu}
460 %
461 % An Urdu example, typeset with Hussaini Nastaleeq:\footnote{ ^^A
462 % \url{https://github.com/khaledhosny/hussaini-nastaleeq}.
463 % The example is borrowed from
464 % \url{http://tabish.freeshell.org/u-trans/urducode.html}}
465 % \begin{Verbatim}[gobble=2,fontsize=\normalsize]
466 % \begin{urdu}[novoc]
467 % ,ham `i^sq kE mArO.n kA itnA ,hI fasAna,h ,hae
468 % rOnE kO na,hI.n kO'I ,ha.nsnE kO zamAna,h ,hae
469 %
470 % ya,h kiskA ta.sawwur ,hae ya,h kiskA fasAna,h ,hae
471 % jO a^sk ,hae A.nkhO.n mE.n tasbI.h kA dAnA ,hae
472 % \end{urdu}
473 % \end{Verbatim}
474 %
475 % \begin{urdu}[novoc]
476 % ,ham `i^sq kE mArO.n kA itnA ,hI fasAna,h ,hae\\
477 % rOnE kO na,hI.n kO'I ,ha.nsnE kO zamAna,h ,hae
478 %
479 % ya,h kiskA ta.sawwur ,hae ya,h kiskA fasAna,h ,hae\\
480 % jO a^sk ,hae A.nkhO.n mE.n tasbI.h kA dAnA ,hae
481 % \end{urdu}
482 % ^^Aﮨﹷﻢ ﻋﹻﺸﻖ ﻛﮯ ﻣﺎﺭﻭﮞ ﰷ ﹺﺍﺗﻨﺎ ﮨﹻﯽ ﻓﹷﺴﺎﻧﹷﻪ ﮨﹷﮯ
483 % ^^Aﺭﻭﻧﮯ ﻛﻮ ﻧﹷﮩﹻﻴﮟ ﻛﻮﺋﹻﯽ ﮨﹷﻨﺴﻨﮯ ﻛﻮ ﺯﹶﻣﺎﻧﹷﻪ ﮨﹷﮯ
484 %
485 % ^^Aﻳﹷﻪ ﻛﹻﺴﲀ ﺗﹷﺼﹷﻮﹽﹸﺭ ﮨﹷﮯ ﻳﹷﻪ ﻛﹻﺴﲀ ﻓﹷﺴﺎﻧﹷﻪ ﮨﹷﮯ
486 % ^^Aﺟﻮ ﺍﺷﻚ ﮨﹷﮯ ﺁﻧﻜﮭﻮﮞ ﻣﻴﮟ ﺗﹷﺴﺒﹻﻴﺢ ﰷ ﺩﺍﻧﺎ ﮨﹷﮯ
487 % \renewcommand{\urdufont}{\arabicfont}
488 % \renewcommand{\farsifont}{\arabicfont}
489 %
490 % \subsection{Transliteration}
491 %
492 % At the moment transliteration mappings are provided for Arabic, Persian, Urdu,
493 % Sindhi and Pashto. The rest may be provided in a future version.
494 % As a rule the default conventions provided are those of the Library of Congress.
495 % For Arabic the alternative transliteration of the
496 % \href{http://www.orientasia.info/download/arab_trans.pdf}{Deutsche Morgenländische Gesellschaft}
497 % is also available (but should be still considered experimental).
498 % You can set it with the command \DescribeMacro{\SetTranslitConvention}
499 % ¦\SetTranslitConvention{dmg}¦.
500 % To switch back to the Library of Congress transliteration, type
501 % ¦\SetTranslitConvention{loc}¦.
502 % Additional conventions for other languages, as with \arabtex, \eg
503 % Encyclopedia of Islam, Encyclopedia Iranica, etc., might be added later.\footnote{ %
504 % It is suggested that you contact the author if you have such needs.}
505 %
506 % Transliteration is set in italics by default. This can be changed by declaring, e.g.,
507 % \DescribeMacro{\SetTranslitStyle}
508 % ¦\SetTranslitStyle{\upshape}¦.
509 % To transliterate proper nouns with capitals, prefix the words to be capitalized with \cmd\UC:
510 % \DescribeMacro{\UC}
511 % \begin{Verbatim}[gobble=2,fontsize=\normalsize]
512 % \begin{arab}[trans]
513 % al-^say_h al-`Alim \UC na.sIr \UC al-dIn \UC al-.tUsI
514 % \end{arab}
515 % \end{Verbatim}
516 % ^^A\SetTranslitStyle{\gentium\itshape}
517 % \begin{arab}[trans]
518 % \noindent al-^say_h al-`Alim \UC na.sIr \UC al-dIn \UC al-.tUsI
519 % \end{arab}
520 % Note that the article \textit{al-} is automatically skipped.
521 % Note also that since the transliteration is coded in Unicode at the level of
522 % the font-mapping, it is necessary that the font contains all required glyphs.
523 % ^^AIf your default roman font does not have the required
524 % ^^Adiacritics, you can declare for instance
525 % ^^A¦\SetTranslitStyle{\fontspec{Gentium}\itshape}¦.
526 %
527 % ^^A\section{TODO}
528 % ^^A
529 % ^^A\begin{MYitemize}
530 % ^^A \item implement romanized transliterations for kashmiri, turkish, kurdish, malay and uighur.
531 % ^^A \item perhaps at a later stage: add support for hebrew and judeo-arabic?
532 % ^^A \item syriac?
533 % ^^A\end{MYitemize}
534 % ^^A
535 %
536 % \subsection{Typesetting critical editions with \pkg{ednotes}}
537 % \unsetfootnoteRL
538 %
539 % In conjunction with \pkg{bidi}, the \pkg{ednotes} package makes it wonderfully
540 % easy to typeset critical editions of texts in Arabic script (or other RTL
541 % scripts).\footnote{
542 % The package \href{http://tug.ctan.org/tex-archive/macros/latex/contrib/ledmac/ledmac.pdf}{\pkg{ledmac}}
543 % has not been extensively tested with \pkg{bidi} yet, but our initial
544 % trials were not successful.}
545 % ^^A Be aware that -- as any package which plays with the primitive \cmd\everypar --
546 % ^^A is not compatible with \pkg{bidi}.
547 % The direction of each level of footnotes can be controlled by
548 % means of ¦\SetFootnoteHook{\setRL}¦ (or ¦\setLR¦) right before the declaration
549 % ¦\DeclareNewFootnote{X}[…]¦. Here is an example preamble that might be used
550 % for typesetting a critical edition with \pkg{ednotes} and \arabxetex.\footnote{ ^^A
551 % Of course if the edition is typed directly in UTF-8 encoding,
552 % the use of \arabxetex\ is by no means compulsory. Yet see the
553 % remarks in §~\ref{arabtexnotes} above.}
554 % See the \pkg{ednotes} documentation for more details.\footnote{ ^^A
555 % \url{http://www.ctan.org/tex-archive/macros/latex/contrib/ednotes/ednotugb.pdf}.
556 % See also \url{http://www.webdesign-bu.de/uwe_lueck/critedltx.html}.}
557 %
558 % \begin{Verbatim}[gobble=2,fontsize=\small]
559 % \usepackage[modulo,perpage,para*]{ednotes}%this calls manyfoot.sty and lineno.sty
560 % \usepackage{arabxetex}
561 %
562 % % make \footnoterule of \textwidth
563 % \makeatletter%
564 % \renewcommand{\footnoterule}{\kern-3\p@
565 % \hrule width \textwidth \kern 2.6\p@}
566 % \makeatother
567 %
568 % \modulolinenumbers[5]
569 % % this is to set linenumbering in Arabic:
570 % \renewcommand{\linenumberfont}{\arabicfont\addfontfeature{Mapping=arabicdigits}\tiny}
571 %
572 % \renewcommand{\extrafootnoterule}{}
573 % \SelectFootnoteRule[0]{extra}
574 % \SetFootnoteHook{\unsetRL}%--> must appear immediately before \DeclareNewFootnote
575 % %% For ednotes the command \PrecedeLevelWith{X}{hook} is available
576 % \DeclareNewFootnote{B}[fnsymbol]
577 % \renewcommand*{\differentlines}[2]{\linesfmt{\RL{#1$-$#2}}}%
578 % \renewcommand*{\linesfmt}[1]{\raisebox{1ex}{\linenumberfont #1}~}%
579 % \renewcommand{\lemmafmt}[1]{#1~[ }%
580 % %Custom macros to enter variants, additions, omissions, illegible passages,
581 % % text above the line, marginal notes, lacunae, and restorations:
582 % \newcommand{\VAR}[2]{\Anote{\textarab{#1}}{\textarab{#2}}}
583 % \newcommand{\ADD}{\textroman{\textbf{+}}\,}% or \textarab{zAyid fI}\
584 % \newcommand{\OM}{\textroman{\textbf{\char"2013}}\,}% or \textarab{nAqi.s fI}\
585 % \newcommand{\ILLEG}{\textarab{.gayr maqrU' fI}\ }
586 % \newcommand{\BLANK}{\textarab{bayA.d fI}\ }
587 % \newcommand{\SUPERLIN}{\textarab{ta.ht al-sa.tr fI}\ }
588 % \newcommand{\MARG}{\textarab{bi-al-hAmi^s fI}\ }
589 % \newcommand{\LACUNA}{\textroman{\textlangle~{\dots}~\textrangle}}
590 % \newcommand{\RESTOR}[1]{\textroman{\textrangle}#1\textroman{\textlangle}}
591 % % to separate lemmas in different manuscripts:
592 % \def\SEP{\enskip$\Vert$\enskip}
593 % \end{Verbatim}
594 %
595 % For a real-life example of how to use ednotes with \arabxetex, see
596 % the file ¦ednotes_example.tex¦ which comes with this package.
597 %
598 %
599 % \section{Tabular overview of \arabtex\ encoding conventions}
600 % \label{conventiontable}
601 %
602 % The table is arranged alphabetically following the most signicant letter of the
603 % \ASCII\ input code. Color convention: red means that the glyph is the default
604 % for the given input code, and that it is available in all languages except
605 % those where different glyphs are shown (in black). That default glyph is also
606 % displayed in light gray under each language in which it is featured. Glyphs in
607 % blue are archaic forms (\eg old Urdu). An asterisk after the Unicode number
608 % means that the character was not available with \arabtex. Green glyphs are
609 % special: either they are used to represent defective writing or they provide
610 % characters for other languages. Those shown in the column for Arabic are
611 % available by default. See the relevant notes at the end.
612 %
613 % \begin{center}\footnotesize
614 % \renewcommand{\arraystretch}{2}
615 % ^^A 1 2 3 4 5 6 7 8 9 10
616 % ^^A\tablefirsthead{%
617 % ^^Acode & arab & farsi & urdu & pashto & sindhi & ottoman & kurdish & kashmiri & malay & uighur \\\hline}
618 % \tablehead{^^A
619 % \hline
620 % ^^A\tiny code &\tiny arab &\tiny farsi &\tiny urdu &\tiny pashto &\tiny sindhi &\tiny ottoman &\tiny kurdish &\tiny kashmiri &\tiny malay &\tiny uighur \\\hline}
621 % ^^A next line: language codes after ISO-639-1
622 % code & ar & fa & ur & ps & sd & tr & ku & ks & ms & ug \\\hline}
623 % \tabletail{\hline}
624 % \begin{supertabular}{|c|c|c|c|c|c|c|c|c|c|c|c|}
625 % ^^A\tablelasttail{\hline}
626 % ¦a¦ & \GR{Ba}{064E}&&&&&&\GN[kurdish]{a/Ba}{}&&&\\
627 % ¦A¦ & \GR{BA}{0627}&&&&&&\GN[kurdish]{A/BA}{}&&&\\
628 % ¦.a¦ & &&&&&&&\GN[kashmiri]{B.a}{0654}&&\\
629 % ¦.A¦ & &&&&&&&\GN[kashmiri]{B.A}{0672}&&\\ ^^A(kashmiri)
630 % ¦_a¦ & \GN{B_a}{0670}&&&&&&&&&\\
631 % ¦_A¦ & \GN{B_A}{}&&&&&&&&&\\
632 % ¦:a¦ & &&&&&&&&&\GN[uighur]{:a}{} \\
633 % ¦b¦ & \GR{b}{0628}&\GG{b}&\GG{b}&\GG{b}&\GG{b}&\GG{b}&\GG{b}&\GG{b}&\GG{b}&\GG{b} \\
634 % ¦B¦ & \GR{B}{0640}&&&&&&&&&\\
635 % ¦.b¦ & \GV{.b}{066E}&&&&&&&&&\\
636 % ¦:b¦ & &&&&\GR[sindhi]{:b}{067B}&&&&&\\ ^^A(sindhi)
637 % ¦bh¦ & &&&&\GN[sindhi]{bh}{0680}&&&&&\\
638 % ¦c¦ & &&&&\GR[sindhi]{c}{0681}&\GN[turk]{c}{062C}&&&\GN[malay]{c}{0686}&\\
639 % ^^A¦.c¦ & \GN{.c}{}&&&&&&&&&\\
640 % ¦,c¦ & &&&\GR[pashto]{,c}{0685}&&\GN[turk]{,c}{0686}&\GN[kurdish]{,c}{0686}&&&\\
641 % ¦^c¦ & \GG{^c}&\GR{^c}{0686}&\GG{^c}&\GG{^c}&\GG{^c}&\GG{^c}&\GG{^c}&\GG{^c}&\GG{^c}&\GG{^c} \\
642 % ¦^ch¦ & &&&&\GN[sindhi]{^ch}{0687}&&&&&\\
643 % ¦:c¦ & &&&\GR[pashto]{:c}{0682*}&&&&&&\\
644 % ¦.^c¦ & \GV{.^c}{06BF*}&&&&&&&&&\\
645 % ¦d¦ & \GR{d}{062F}&\GG{d}&\GG{d}&\GG{d}&\GG{d}&\GG{d}&\GG{d}&\GG{d}&\GG{d}&\GG{d} \\
646 % ¦.d¦ & \GR{.d}{0636}&\GG{.d}&\GG{.d}&\GG{.d}&\GG{.d}&\GG{.d}&\GG{.d}&\GG{.d}&\GG{.d}&\GG{.d} \\
647 % ¦,d¦ & &&\GN[urdu]{,d}{0688}&\GN[pashto]{,d}{0689}&\GR[sindhi]{,d}{068A}&&&&&\\ ^^Aurdu
648 % ¦.,d¦ & &&\GV{.,d}{068B*}$^a$&&&&&&&\\ ^^AWestern Punjabi
649 % ¦^d¦ & \GV{^d}{06EE*}&&&&\GB[sindhi]{^d}{068E*}&&&&&\\
650 % ¦_d¦ & \GR{_d}{0630}&\GG{_d}&\GG{_d}&\GG{_d}&\GG{_d}&\GG{_d}&\GG{_d}&\GG{_d}&\GG{_d}&\\
651 % ¦:d¦ & &&&&\GR[sindhi]{:d}{068F}&&&&&\\ ^^A(sindhi)
652 % ¦::d¦ & &&\GB[urdu]{::d}{0690*}&&&&&&&\\
653 % ¦dh¦ & &&&&\GN[sindhi]{dh}{068C}&&&&&\\
654 % ¦,dh¦ & &&&&\GN[sindhi]{,dh}{068D}&&&&&\\
655 % ¦e¦ & &\GR{Be}{}&\GG{Be}&\GN[pashto]{Be}{0659}&\GG{Be}&&\GN[kurdish]{e/Be}{}&\GN[kashmiri]{Be}{06D2+0658}&&\GN[uighur]{Be}{06D0} \\
656 % ¦E¦ & &\GR{BE}{}&\GN[urdu]{BE}{06D2}&\GN[pashto]{BE}{06D0}&&&\GN[kurdish]{E/BE}{}&\GN[kashmiri]{BE}{06D2}&&\\
657 % ¦ee¦ & &&&\GN[pashto]{Bee}{}&&&&&&\\
658 % ¦ae¦ & \GN{Bae}{}&&\GN[urdu]{Bae}{}&\GN[pashto]{Bae}{}&\GN[sindhi]{Bae}{}&&&&&\\
659 % ¦Ee¦ & &&&\GN[pashto]{BEe}{06CD}&&&&&&\\
660 % ^^A¦.e¦ & \GN{B.e}{}&&&&&&&&&\\
661 % ^^A¦^e¦ & \GN{B^e}{}&&&&&&&&&\\
662 % ¦_e¦ & &\GR{B_e}{}&&&&&&&&\\
663 % ¦`e¦ & &&&&&&\GN[kurdish]{`e}{}&&&\\
664 % ¦'E¦ & &&\GR[urdu]{B'E}{06D3}&&&&&&&\\
665 % ^^A¦:e¦ & \GN{B:e}{}&&&&&&&&&\\
666 % ¦f¦ & \GR{f}{0641}&\GG{f}&\GG{f}&\GG{f}&\GG{f}&\GG{f}&\GG{f}&\GG{f}&\GG{f}&\GG{f} \\ ^^A maghribi: \GN[maghribi]{f}{}
667 % ¦.f¦ & \GV{.f}{06A1}&&&&&&&&&\\
668 % ¦g¦ & &\GR{g}{06AF}&\GG{g}&\GG{g}&\GG{g}&\GG{g}&\GG{g}&\GG{g}&\GN[malay]{g}{0762}&\GG{g} \\
669 % ¦G¦ & &&&\GR[pashto]{G}{06AB}&&&&&&\\
670 % ¦.g¦ & \GR{.g}{063A}&\GG{.g}&\GG{.g}&\GG{.g}&\GG{.g}&\GG{.g}&\GG{.g}&\GG{.g}&\GG{.g}&\\
671 % ¦:g¦ & &&&&\GR[sindhi]{:g}{06B3}&&&&&\\
672 % ¦.:g¦ & &&&&\GB[sindhi]{.:g}{06B4*}&&&&&\\
673 % ¦,g¦ & \GV{,g}{06AC}$^b$ &&&&&&&&&\\
674 % ¦^g¦ & \GR{^g}{062C}&\GG{j}&\GG{j}&\GG{j}&\GG{j}&\GN[turk]{^g}{06A0}&\GN[kurdish]{^g}{063A}&\GG{j}&\GN[malay]{^g}{06A0}&\GN[uighur]{^g}{063A} \\
675 % ¦gh¦ & &&&&\GN[sindhi]{gh}{}&&&&&\\
676 % ¦h¦ & \GR{h}{0647}&\GG{h}&\GN[urdu]{h}{06BE}&\GG{h}&\GG{h}&\GG{h}&\GG{h}&\GG{h}&\GG{h}&\GG{h} \\
677 % ¦H¦ & &\GN[farsi]{-H}{0647}&\GN[urdu]{-H}{06C3}&\GN[pashto]{-H}{0647}&&&&&&\\
678 % ¦.h¦ & \GR{.h}{062D}&\GG{.h}&\GG{.h}&\GG{.h}&\GG{.h}&\GG{.h}&\GG{.h}&\GG{.h}&\GG{.h}&\\
679 % ¦,h¦ & &&\GR[urdu]{,h}{06C1}&&&&&\GN[kashmiri]{,h}{}&&\\
680 % ¦_h¦ & \GR{_h}{062E}&\GG{x}&\GG{x}&\GG{x}&\GG{x}&\GG{x}&\GG{x}&\GG{x}&\GG{x}&\\
681 % ¦i¦ & \GR{Bi}{0650}&&&&&&&&&\GN[uighur]{-i-}{066E} \\
682 % ¦I¦ & \GN{BI}{064A}&\GR[farsi]{BI}{06CC}&\GG[urdu]{BI}&\GG[pashto]{BI}&\GN[sindhi]{BI}{}&\GG[turk]{BI}&\GN[kurdish]{I/BI}{}&\GG[kashmiri]{BI}&\GN[malay]{BI}{}&\\
683 % ¦.I¦ & \GR{B.I}{06CC*}&&&&&&&&&\\
684 % ^^A¦.i¦ & \GN{B.i}{}&&&&&&&&&\\
685 % ¦_i¦ & \GR{B_i}{0656}&&&&&&&&&\\
686 % ^^A¦:i¦ & \GN{B:i}{}&&&&&&&&&\\
687 % ¦j¦ & \GR{j}{062C}&\GG{j}&\GG{j}&\GG{j}&\GG{j}&\GN[turk]{j}{0698}&\GN[kurdish]{j}{0698}&\GG{j}&\GG{j}&\GG{j} \\
688 % ¦:j¦ & &&&&\GR[sindhi]{:j}{0684}&&&&&\\ ^^A(sindhi)
689 % ¦jh¦ & &&&&\GN[sindhi]{jh}{06A9}&&&&&\\
690 % ¦k¦ & \GR{k}{0643}&\GG{k}&\GG{k}&\GG{k}&\GN[sindhi]{k}{06AA}&\GG{k}&\GG{k}&\GG{k}&\GG{k}&\GG{k} \\
691 % ^^A¦K¦ & \GN{K}{}&&&&&&&&&\\
692 % ¦.k¦ & \GV{.k}{06A9}&&&&&\GN[turk]{.k}{0642}&&&&\\
693 % ¦_k¦ & \GR{_k}{063A}&&&&&&&&&\\
694 % ¦kh¦ & &&&&\GN[sindhi]{kh}{}&&&&&\\
695 % ¦l¦ & \GR{l}{0644}&\GG{l}&\GG{l}&\GG{l}&\GG{l}&\GG{l}&\GG{l}&\GG{l}&\GG{l}&\GG{l} \\
696 % ¦.l¦ & &&&&&&\GR[kurdish]{.l}{06B6*}&&&\\
697 % ¦^l¦ & &&&&&&\GR[kurdish]{^l}{06B5}&&&\\^^A(kurdish)
698 % ¦m¦ & \GR{m}{0645}&\GG{m}&\GG{m}&\GG{m}&\GG{m}&\GG{m}&\GG{m}&\GG{m}&\GG{m}&\GG{m} \\
699 % ^^A¦M¦ & \GN{M}{}&&&&&&&&\GN[malay]{M}{}&\\
700 % {\tiny ¦.mIN¦} & &&&&\GN[sindhi]{.mIN}{06FE}&&&&&\\
701 % {\tiny ¦'|IN¦} & &&&&\GN[sindhi]{'|IN}{06FD}&&&&&\\
702 % ¦n¦ & \GR{n}{0646}&\GG{n}&\GG{n}&\GG{n}&\GG{n}&\GG{n}&\GG{n}&\GG{n}&\GG{n}&\GG{n} \\
703 % ¦aN¦ & \GR{BaN}{064B}&&&&&&&&&\\
704 % ¦uN¦ & \GR{BuN}{064C}&&&&&&&&&\\
705 % ¦iN¦ & \GR{BiN}{064D}&&&&&&&&&\\
706 % ¦.n¦ & &&\GR{.n}{06BA}&&&&&&&\\
707 % ¦..n¦ & &&&&\GB[sindhi]{..n}{06B2*}&&&&&\\
708 % ¦,n¦ & &&&\GR[pashto]{,n}{06BC}&\GN[sindhi]{,n}{06BB}&&&&&\\
709 % ¦^n¦ & &&&&\GN[sindhi]{^n}{0683}&&&&\GN[malay]{^n}{06BD}&\GR[uighur]{^n}{06AD} \\
710 % ¦:n¦ & &&&&\GR[sindhi]{:n}{06B1}&&&&&\\
711 % ¦o¦ & &\GR[farsi]{Bo}{}&&\GN[pashto]{Bo}{0657}&&&\GN[kurdish]{o/Bo}{}&\GN[kashmiri]{Bo}{06C6}&&\GN[uighur]{Bo}{} \\
712 % ¦O¦ & &\GN[farsi]{BO}{}&\GN[urdu]{BO}{}&\GN[pashto]{BO}{}&\GN[sindhi]{BO}{}&&\GN[kurdish]{O/BO}{}&\GN[kashmiri]{BO}{}&&\\
713 % ¦ao¦ & &&\GR[urdu]{Bao}{}&&\GR[sindhi]{Bao}{}&&&&&\\
714 % ¦.o¦ & &&&&&&&\GN[kashmiri]{B.o}{06C4}&&\\
715 % ¦.O¦ & &&&&&&&\GN[kashmiri]{B.O}{}&&\\
716 % ¦_o¦ & &\GR{B_o}{}&&&&&&&&\\
717 % ¦_O¦ & &\GR{B_O}{}&&&&&&&&\\
718 % ¦:o¦ & &&&&&&&&&\GN[uighur]{:o/B:o}{06C6} \\
719 % ¦:O¦ & \GV{:O}{06FC}&&&&&&&&&\\
720 % ¦p¦ & &\GR{p}{067E}&\GG{p}&\GG{p}&\GG{p}&\GG{p}&\GG{p}&\GG{p}&\GN[malay]{p}{06A8}&\GG{p} \\
721 % ^^A¦.p¦ & \GN{.p}{} &&&&&&&&&\\
722 % ¦ph¦ & &&&&\GN[sindhi]{ph}{06A6}&&&&&\\
723 % ¦q¦ & \GR{q}{0642}&\GG{q}&\GG{q}&\GG{q}&\GG{q}&\GG{q}&\GG{q}&\GG{q}&\GG{q}&\GG{q} \\ ^^A\GN[maghribi]{q}{}
724 % ¦.q¦ & \GV{.q}{066F}&&&&&&&&&\\
725 % ¦r¦ & \GR{r}{0631}&\GG{r}&\GG{r}&\GG{r}&\GG{r}&\GG{r}&\GG{r}&\GG{r}&\GG{r}&\GG{r} \\
726 % ¦.r¦ & \GV{.r}{0694*}&&&&&&\GN[kurdish]{.r}{0695}&&&\\
727 % ¦,r¦ & &&\GR[urdu]{,r}{0691}&\GN[pashto]{,r}{0693}&\GN[sindhi]{,r}{0699}&&\GN[kurdish]{,r}{0694*}&&&\\
728 % ¦^r¦ & \GV{^r}{06EF*}&&&&&&\GN[kurdish]{^r}{0692*}&&&\\
729 % ¦:r¦ & \GV{:r}{0697*}$^c$&&&&&&&&&\\ ^^ADargwa in Dagestan
730 % ¦s¦ & \GR{s}{0633}&\GG{s}&\GG{s}&\GG{s}&\GG{s}&\GG{s}&\GG{s}&\GG{s}&\GG{s}&\GG{s} \\
731 % ^^A¦S¦ & \GN{S}{}&&&&&&&&&\\
732 % ¦.s¦ & \GR{.s}{0635}&\GG{.s}&\GG{.s}&\GG{.s}&\GG{.s}&\GG{.s}&\GG{.s}&\GG{.s}&\GG{.s}&\\
733 % ¦,s¦ & &&&\GR[pashto]{,s}{069A}&&\GN[turk]{,s}{0634}&&&&\\
734 % ¦^s¦ & \GR{^s}{0634}&\GG{^s}&\GG{^s}&\GG{^s}&\GG{^s}&\GG{^s}&\GG{^s}&\GG{^s}&\GG{^s}&\GG{^s} \\
735 % ¦_s¦ & &&&&\GR{_s}{062B}&&&&&\\
736 % ¦:s¦ & \GV{:s}{069B}&&&&&&&&&\\
737 % ¦t¦ & \GR{t}{062A}&\GG{t}&\GG{t}&\GG{t}&\GG{t}&\GG{t}&\GG{t}&\GG{t}&\GG{t}&\GG{t} \\
738 % ¦T¦ & \GR{T}{062A}&&&&&&&\GG{T}&&\\
739 % ¦.t¦ & \GR{.t}{0637}&\GG{.t}&\GG{.t}&\GG{.t}&\GG{.t}&\GG{.t}&\GG{.t}&\GG{.t}&\GG{.t}&\\
740 % ^^A¦.T¦ & \GN{.T}{}&&&&&&&&&\\
741 % ¦,t¦ & &&\GR[urdu]{,t}{0679}&\GN[pashto]{,t}{067C}&\GN[sindhi]{,t}{067D}&&&&&\\
742 % ¦_t¦ & \GR{_t}{062B}&\GG{_t}&\GG{_t}&&\GG{_t}&\GG{_t}&\GG{_t}&\GG{_t}&\GG{_t}&\\
743 % ^^A¦:t¦ & \GN{:t}{}&&&&&&&&&\\
744 % ¦th¦ & &&&&\GN[sindhi]{th}{067F}&&&&&\\
745 % ¦,th¦ & &&&&\GN[sindhi]{,th}{067A}&&&&&\\
746 % ¦u¦ & \GR{Bu}{064F}&\GG{Bu}&\GG{Bu}&\GG{Bu}&\GG{Bu}&\GG{Bu}&\GN[kurdish]{u/Bu}{}&\GG{Bu}&\GG{Bu}&\GN[uighur]{u/Bu}{06C7} \\
747 % ¦U¦ & \GR{BU}{}&\GG{BU}&\GG{BU}&\GG{BU}&\GG{BU}&\GG{BU}&\GN[kurdish]{U/BU}{}&\GN[kashmiri]{BU}{0648+0657}&\GG{BU}&\\
748 % ¦.u¦ & &&&&&&&\GN[kashmiri]{B.u}{0655}&&\\
749 % ¦.U¦ & &&&&&&&\GN[kashmiri]{B.U}{0673}&&\\
750 % ^^A¦^u¦ & \GN{B^u}{}&&&&&&&&&\\
751 % ¦_u¦ & \GR{B_u}{0657}&&&&&&&&&\\
752 % ^^A¦_U¦ & \GN{B_U}{}&&&&&&&&&\\
753 % ¦:u¦ & &&&&&&&&&\GN[uighur]{:u/B:u}{06C8} \\
754 % ¦:U¦ & \GV{:U}{06C7}$^d$&&&&&&&&&\\
755 % ¦v¦ & \GR{v}{06A4}$^e$&&&&&&&&\GN[malay]{v}{06CF}&\\ ^^A\GN[maghribi]{v}{06A5}
756 % ^^A¦V¦ & \GN{V}{}&&&&&&&&&\\
757 % ^^A¦.v¦ & \GN{.v}{}&&&&&&&&&\\
758 % ¦w¦ & \GR{w}{0648}&\GG{w}&\GG{w}&\GG{w}&\GG{w}&\GG{w}&\GG{w}&\GG{w}&\GG{w}&\GN[uighur]{w}{06CB} \\
759 % ¦W¦ & \GR{W}{}&&&&&&&&&\\
760 % ¦^w¦ & \GV{^w}{06C9*}&&&&&&&&&\\
761 % ¦:w¦ & \GV{:w}{06CA*}&&&&&&&&&\\
762 % ¦x¦ & \GR{x}{062E}&\GG{x}&\GG{x}&\GG{x}&\GG{x}&\GG{x}&\GG{x}&\GG{x}&\GG{x}&\GN[uighur]{x}{} \\
763 % ¦y¦ & \GR{y}{064A}&\GN[farsi]{y}{06CC}&\GG[urdu]{y}&\GG[pashto]{y}&\GG{y}&\GG[turk]{y}&\GG{y}&\GG[kashmiri]{y}&\GG{y}&\GG{y} \\
764 % ¦Y¦ & \GR{"Y}{0649}&&&&&&&&&\\
765 % ¦.y¦ & &&&&&&&\GN[kashmiri]{B.yB}{}&&\\
766 % ¦z¦ & \GR{z}{0632}&\GG{z}&\GG{z}&\GG{z}&\GG{z}&\GG{z}&\GG{z}&\GG{z}&\GG{z}&\GG{z} \\
767 % ¦.z¦ & \GR{.z}{0638}&\GG{.z}&\GG{.z}&\GG{.z}&\GG{.z}&\GG{.z}&\GG{.z}&\GG{.z}&\GG{.z}&\\
768 % ¦,z¦ & &&&\GR[pashto]{,z}{0696}&&\GN[turk]{,z}{0636}&&&&\\
769 % ¦^z¦ & &\GR{^z}{0698}&\GG{^z}&\GG{^z}&&&&\GG{^z}&&\GG{^z} \\
770 % ¦_z¦ & \GR{_z}{0630}$^f$&&&&&&&&&\\
771 % ¦:z¦ & &&&&&&&\GN[kashmiri]{:z}{0636}&&\\
772 % ¦'¦ & \GR{'}{0621}&\GG{'}&\GG{'}&\GG{'}&\GG{'}&\GG{'}&\GG{'}&\GG{'}&\GG{'}&\GG{ئ-} \\
773 % ¦`¦ & \GR{`}{0639}&\GG{`}&\GG{`}&\GG{`}&\GG{`}&\GG{`}&\GG{`}&\GG{`}&\GG{`}&\\
774 % &&&&&&&&&& \\
775 % \end{supertabular}
776 % \end{center}
777 % \footnotesize
778 %
779 % $^a$ For Western Punjabi (Lahnda).\\
780 % $^b$ Alternative form of \textmalay{g} in Malay.\\
781 % $^c$ For Dargwa (language of Dagestan).\\
782 % $^d$ For Kirgiz (and Uighur).\\
783 % $^e$ To transliterate dialects and foreign words.\\
784 % $^f$ Alternative to ¦_d¦.\\
785 % \normalsize\bigskip
786 %
787 % Maghribi Arabic is identical to Arabic except for the three letters ¦f¦, ¦q¦
788 % and ¦v¦ which yield the glyphs \textmaghribi{f} (\textsf{U+06A2}), \textmaghribi{q}
789 % (\textsf{U+06A7}), and \textmaghribi{v} (\textsf{U+06A5}), respectively.
790 %
791 % ^^A TODO : implement the following ??
792 % ^^A perhaps unnecessary coz it can be coded by means of Urdu
793 % ^^A yet it might be nice to code pashto in a standard way and
794 % ^^A be able to switch the representation to Pakistani
795 % ^^A Differences between standard Pashto and Pakistani Pashto (from inspection of the Omega OTP files)
796 % ^^A064A -> 06D2
797 % ^^A069A -> 062E ??
798 % ^^A06A9 -> 0643
799 % ^^A06AF -> 06AB
800 % ^^A06CD -> 06D2
801 % ^^A06D0 -> 06D2
802 % ^^A0626 -> 06D2
803 % ^^A0649 -> 06D2
804 % ^^A067C -> 0679
805 % ^^A0693 -> 0691
806 % ^^A0696 -> 06AF
807 % ^^A06BC -> 0646 0631
808 % ^^A0689 -> 0688
809 % ^^A
810 % \newpage
811 % \section{Unicode-Encoding concordance}
812 % \parindent 0pt
813 % \let\oldbaselineskip=\baselineskip
814 % \baselineskip=20pt
815 % \begin{multicols}{2}
816 % \begin{tabbing}
817 % \textsf{060B} \qquad \= {\arabicfont\char"060B} \qquad \= \kill
818 % \textsf{060B} \> {\arabicfont\char"060B} \\
819 % \textsf{060C} \> {\arabicfont\char"060C} \> ¦,¦ \\
820 % \textsf{060D} \> {\arabicfont\char"060D} \\
821 % \textsf{060E} \> {\arabicfont\char"060E} \\
822 % \textsf{060F} \> {\arabicfont\char"060F} \\
823 % \textsf{0610} \> {\arabicfont\char"0610} \\
824 % \textsf{0611} \> {\arabicfont\char"0611} \\
825 % \textsf{0612} \> {\arabicfont\char"0612} \\
826 % \textsf{0613} \> {\arabicfont\char"0613} \\
827 % \textsf{0614} \> {\arabicfont\char"0614} \\
828 % \textsf{0615} \> {\arabicfont\char"0615} \\
829 % ^^AU+0616\\ %\textarab{\char"0616} \\
830 % ^^AU+0617\\ %\textarab{\char"0617} \\
831 % ^^AU+0618\\ %\textarab{\char"0618} \\
832 % ^^AU+0619\\ %\textarab{\char"0619} \\
833 % ^^AU+061A\\ %\textarab{\char"061A} \\
834 % \textsf{061B} \> {\arabicfont\char"061B} \> ¦;¦ \\ ^^A\textarab{ ; } \\
835 % ^^AU+061C\\ %\textarab{\char"061C} \\
836 % ^^AU+061D\\ %\textarab{\char"061D} \\
837 % \textsf{061E} \> {\arabicfont\char"061E} \> ¦::¦/¦DOTS¦ \\
838 % \textsf{061F} \> {\arabicfont\char"061F} \> ¦?¦ \\ ^^A\textarab{ ? } \\
839 % ^^AU+0620\\ %\textarab{\char"0620} \\
840 % \textsf{0621} \> {\arabicfont\char"0621} \> ¦|"'¦ \textit{or context} \\ ^^A\textverb{ '| } \\
841 % \textsf{0622} \> {\arabicfont\char"0622} \> ¦A"'¦ \textit{or context} \\ ^^A\textverb{ 'A } \\
842 % \textsf{0623} \> {\arabicfont\char"0623} \> ¦a"'¦ \textit{or context} \\ ^^A\textverb{ 'a } \\
843 % \textsf{0624} \> {\arabicfont\char"0624} \> ¦w"'¦ \textit{or context} \\ ^^A\textverb{ 'w } \\
844 % \textsf{0625} \> {\arabicfont\char"0625} \> ¦i"'¦ \textit{or context} \\ ^^A\textverb{ 'i } \\
845 % \textsf{0626} \> {\arabicfont\char"0626} \> ¦y"'¦ \textit{or context} \\ ^^A\textverb{ 'y } \\
846 % \textsf{0627} \> {\arabicfont\char"0627} \> ¦A¦ \\ ^^A\textarab{ A } \\
847 % \textsf{0628} \> {\arabicfont\char"0628} \> ¦b¦ \\ ^^A\textarab{ b } \\
848 % \textsf{0629} \> {\arabicfont\char"0629} \> ¦T¦ \\ ^^A\textarab{ T } \\
849 % \textsf{062A} \> {\arabicfont\char"062A} \> ¦t¦ \\ ^^A\textarab{ t } \\
850 % \textsf{062B} \> {\arabicfont\char"062B} \> ¦_t¦ \\ ^^A\textarab{ _t } \\
851 % \textsf{062C} \> {\arabicfont\char"062C} \> ¦^g¦/¦j¦ \\ ^^A\textarab{ j } \\
852 % \textsf{062D} \> {\arabicfont\char"062D} \> ¦.h¦ \\ ^^A\textarab{ .h } \\
853 % \textsf{062E} \> {\arabicfont\char"062E} \> ¦_h¦/¦x¦ \\ ^^A\textarab{ x } \\
854 % \textsf{062F} \> {\arabicfont\char"062F} \> ¦d¦ \\ ^^A\textarab{ d } \\
855 % \textsf{0630} \> {\arabicfont\char"0630} \> ¦_d¦ \\ ^^A\textarab{ _d } \\
856 % \textsf{0631} \> {\arabicfont\char"0631} \> ¦r¦ \\ ^^A\textarab{ r } \\
857 % \textsf{0632} \> {\arabicfont\char"0632} \> ¦z¦ \\ ^^A\textarab{ z } \\
858 % \textsf{0633} \> {\arabicfont\char"0633} \> ¦s¦ \\ ^^A\textarab{ s } \\
859 % \textsf{0634} \> {\arabicfont\char"0634} \> ¦^s¦ \\ ^^A\textarab{ ^s } \\
860 % \textsf{0635} \> {\arabicfont\char"0635} \> ¦.s¦ \\ ^^A\textarab{ .s } \\
861 % \textsf{0636} \> {\arabicfont\char"0636} \> ¦.d¦ \\ ^^A\textarab{ .d } \\
862 % \textsf{0637} \> {\arabicfont\char"0637} \> ¦.t¦ \\ ^^A\textarab{ .t } \\
863 % \textsf{0638} \> {\arabicfont\char"0638} \> ¦.z¦ \\ ^^A\textarab{ .z } \\
864 % \textsf{0639} \> {\arabicfont\char"0639} \> ¦`¦ \\ ^^A\textarab{ ` } \\
865 % \textsf{063A} \> {\arabicfont\char"063A} \> ¦.g¦ \\ ^^A\textarab{ .g } \\
866 % \textsf{0640} \> {\arabicfont\char"0640} \> ¦B¦ \\ ^^A\textarab{ B } \\
867 % \textsf{0641} \> {\arabicfont\char"0641} \> ¦f¦ \\ ^^A\textarab{ f } \\
868 % \textsf{0642} \> {\arabicfont\char"0642} \> ¦q¦ \\ ^^A\textarab{ q } \\
869 % \textsf{0643} \> {\arabicfont\char"0643} \> ¦k¦ \\ ^^A\textarab{ k } \\
870 % \textsf{0644} \> {\arabicfont\char"0644} \> ¦l¦ \\ ^^A\textarab{ l } \\
871 % \textsf{0645} \> {\arabicfont\char"0645} \> ¦m¦ \\ ^^A\textarab{ m } \\
872 % \textsf{0646} \> {\arabicfont\char"0646} \> ¦n¦ \\ ^^A\textarab{ n } \\
873 % \textsf{0647} \> {\arabicfont\char"0647} \> ¦h¦ \\ ^^A\textarab{ h } \\
874 % \textsf{0648} \> {\arabicfont\char"0648} \> ¦w¦ \\ ^^A\textarab{ w } \\
875 % \textsf{0649} \> {\arabicfont\char"0649} \> ¦Y¦ \\ ^^A\textarab{ Y } \\
876 % \textsf{064A} \> {\arabicfont\char"064A} \> ¦y¦ \\ ^^A\textarab{ y } \\
877 % \textsf{064B} \> {\arabicfont\char"064B} \> ¦aN¦ \\ ^^A\textarab{ |BaN } \\
878 % \textsf{064C} \> {\arabicfont\char"064C} \> ¦uN¦ \\ ^^A\textarab{ |BuN } \\
879 % \textsf{064D} \> {\arabicfont\char"064D} \> ¦iN¦ \\ ^^A\textarab{ |BiN } \\
880 % \textsf{064E} \> {\arabicfont\char"064E} \> ¦a¦ \\ ^^A\textarab{ |Ba } \\
881 % \textsf{064F} \> {\arabicfont\char"064F} \> ¦u¦ \\ ^^A\textarab{ |Bu } \\
882 % \textsf{0650} \> {\arabicfont\char"0650} \> ¦i¦ \\ ^^A\textarab{ |Bi } \\
883 % \textsf{0651} \> {\arabicfont\char"0651}\\ ^^A\textarab{ |BB }\\
884 % \textsf{0652} \> {\arabicfont\char"0652} \> ¦"¦ \textit{after a consonant or} ¦°¦ \\
885 % \textsf{0653} \> {\arabicfont\char"0653} \> ¦^U¦ \\
886 % \textsf{0654} \> {\arabicfont\char"0654} \> ¦'B¦ \\ ^^A\textverb{ 'B } \\
887 % \textsf{0655} \> {\arabicfont\char"0655} \> ¦.u¦ \textit{kashmiri} \\
888 % \textsf{0656} \> {\arabicfont\char"0656} \> ¦I¦ \textit{kashmiri} \\
889 % \textsf{0657} \> {\arabicfont\char"0657} \> ¦o¦ \textit{pashto} \\ ^^A\textpashto{ Bo } \\
890 % \textsf{0658} \> {\arabicfont\char"0658} \> \textit{see kashmiri} ¦e¦ \\
891 % \textsf{0659} \> {\arabicfont\char"0659} \> ¦e¦ \textit{pashto} \\
892 % \textsf{065A} \> {\arabicfont\char"065A} \\
893 % \textsf{065B} \> {\arabicfont\char"065B} \\
894 % \textsf{065C} \> {\arabicfont\char"065C} \\
895 % \textsf{065D} \> {\arabicfont\char"065D} \\
896 % \textsf{065E} \> {\arabicfont\char"065E} \\
897 % \textsf{0660} \> {\arabicfont\char"0660} \> ¦0¦ \\ ^^A\textarab{ 0 } \\
898 % \textsf{0661} \> {\arabicfont\char"0661} \> ¦1¦ \\ ^^A\textarab{ 1 } \\
899 % \textsf{0662} \> {\arabicfont\char"0662} \> ¦2¦ \\ ^^A\textarab{ 2 } \\
900 % \textsf{0663} \> {\arabicfont\char"0663} \> ¦3¦ \\ ^^A\textarab{ 3 } \\
901 % \textsf{0664} \> {\arabicfont\char"0664} \> ¦4¦ \\ ^^A\textarab{ 4 } \\
902 % \textsf{0665} \> {\arabicfont\char"0665} \> ¦5¦ \\ ^^A\textarab{ 5 } \\
903 % \textsf{0666} \> {\arabicfont\char"0666} \> ¦6¦ \\ ^^A\textarab{ 6 } \\
904 % \textsf{0667} \> {\arabicfont\char"0667} \> ¦7¦ \\ ^^A\textarab{ 7 } \\
905 % \textsf{0668} \> {\arabicfont\char"0668} \> ¦8¦ \\ ^^A\textarab{ 8 } \\
906 % \textsf{0669} \> {\arabicfont\char"0669} \> ¦9¦ \\ ^^A\textarab{ 9 } \\
907 % \textsf{066A} \> {\arabicfont\char"066A} \> ¦\^^A¦ \\ %\textarab{ \% } \\
908 % \textsf{066B} \> {\arabicfont\char"066B} \> \\ ^^A\textarab{ , } \\
909 % \textsf{066C} \> {\arabicfont\char"066C} \> ¦,¦ \\ ^^A\textarab{ , } \\
910 % \textsf{066D} \> {\arabicfont\char"066D} \> ¦*¦ \\ ^^A\textarab{ * } \\
911 % \textsf{066E} \> {\arabicfont\char"066E} \> ¦.b¦, \quad ¦i¦ \textit{uighur} \\ ^^A\textarab{ .b } \\
912 % \textsf{066F} \> {\arabicfont\char"066F} \> ¦.f¦ \\ ^^A\textarab{ .f } \\
913 % \textsf{0670} \> {\arabicfont\char"0670} \> ¦_a¦ \\ ^^A\textarab{ B_a } \\
914 % \textsf{0671} \> {\arabicfont\char"0671} \> \textit{automatic} \\
915 % \textsf{0672} \> {\arabicfont\char"0672} \> ¦.A¦ \textit{kashmiri} \\
916 % \textsf{0673} \> {\arabicfont\char"0673} \> ¦.U¦ \textit{kashmiri} \\
917 % \textsf{0674} \> {\arabicfont\char"0674} \\
918 % \textsf{0675} \> {\arabicfont\char"0675} \\
919 % \textsf{0676} \> {\arabicfont\char"0676} \\
920 % \textsf{0677} \> {\arabicfont\char"0677} \\
921 % \textsf{0678} \> {\arabicfont\char"0678} \\
922 % \textsf{0679} \> {\arabicfont\char"0679} \> ¦,t¦ \\ ^^A\textarab{ ,t } \\
923 % \textsf{067A} \> {\arabicfont\char"067A} \> ¦,th¦ \\ ^^A\textsindhi{ ,th } \\
924 % \textsf{067B} \> {\arabicfont\char"067B} \> ¦:b¦ \\ ^^A\textsindhi{ :b } \\
925 % \textsf{067C} \> {\arabicfont\char"067C} \> ¦,t¦ \\ ^^A\textpashto{ ,t } \\
926 % \textsf{067D} \> {\arabicfont\char"067D} \> ¦,t¦ \\ ^^A\textsindhi{ ,t } \\
927 % \textsf{067E} \> {\arabicfont\char"067E} \> ¦p¦ \\ ^^A\textarab{ p } \\
928 % \textsf{067F} \> {\arabicfont\char"067F} \> ¦th¦ \\ ^^A\textsindhi{ th } \\
929 % \textsf{0680} \> {\arabicfont\char"0680} \> ¦bh¦ \\ ^^A\textsindhi{ bh } \\
930 % \textsf{0681} \> {\arabicfont\char"0681} \> ¦c¦ \\ ^^A\textarab{ c } \\
931 % \textsf{0682} \> {\arabicfont\char"0682} \> ¦:c¦ \\ ^^A (old pashto)
932 % \textsf{0683} \> {\arabicfont\char"0683} \> ¦^n¦ \\ ^^A\textsindhi{ ^n } \\
933 % \textsf{0684} \> {\arabicfont\char"0684} \> ¦:j¦ \\ ^^A\textarab{ :j } %sindhi\\
934 % \textsf{0685} \> {\arabicfont\char"0685} \> ¦,c¦ \\ ^^A\textarab{ ,c } %pashto\\
935 % \textsf{0686} \> {\arabicfont\char"0686} \> ¦^c¦, \quad ¦c¦ \textit{malay} \\ ^^A\textarab{ ^c } %farsi+\\
936 % \textsf{0687} \> {\arabicfont\char"0687} \> ¦^ch¦ \textit{sindhi} \\ ^^A\textsindhi{ ^ch } \\
937 % \textsf{0688} \> {\arabicfont\char"0688} \> ¦,d¦ \\ ^^A\textarab{ ,d } %urdu\\
938 % \textsf{0689} \> {\arabicfont\char"0689} \> ¦,d¦ \textit{pashto} \\ ^^A\textpashto{ ,d } \\
939 % \textsf{068A} \> {\arabicfont\char"068A} \> ¦,d¦ \textit{sindhi} \\ ^^A\textsindhi{ ,d } \\
940 % \textsf{068B} \> {\arabicfont\char"068B} \> ¦.,d¦ \\ ^^A(Western punjabi)
941 % \textsf{068C} \> {\arabicfont\char"068C} \> ¦dh¦ \textit{sindhi} \\ ^^A\textsindhi{ dh } \\
942 % \textsf{068D} \> {\arabicfont\char"068D} \> ¦,dh¦ \textit{sindhi} \\ ^^A\textsindhi{ ,dh } \\
943 % \textsf{068E} \> {\arabicfont\char"068E} \> ¦^d¦ \textit{sindhi} \\
944 % \textsf{068F} \> {\arabicfont\char"068F} \> ¦:d¦ \\ ^^A\textarab{ :d } \\
945 % \textsf{0690} \> {\arabicfont\char"0690} \> ¦::d¦ \textit{urdu} \\
946 % \textsf{0691} \> {\arabicfont\char"0691} \> ¦,r¦ \\ ^^A\textarab{ ,r } \\
947 % \textsf{0692} \> {\arabicfont\char"0692} \> ¦^r¦ \textit{kurdish} \\ ^^ANEW-> ^r\\
948 % \textsf{0693} \> {\arabicfont\char"0693} \> ¦,r¦ \textit{pashto} \\ ^^A\textpashto{ ,r } \\
949 % \textsf{0694} \> {\arabicfont\char"0694} \> ¦.r¦, \quad ¦,r¦ \textit{kurdish} \\ ^^ANEW-> kurdish ,r\\
950 % \textsf{0695} \> {\arabicfont\char"0695} \> ¦.r¦ \textit{kurdish} \\ ^^A\textarab{ .r} \\
951 % \textsf{0696} \> {\arabicfont\char"0696} \> ¦,z¦ \\ ^^A\textarab{ ,z } \\
952 % \textsf{0697} \> {\arabicfont\char"0697} \> ¦:r¦ \\
953 % \textsf{0698} \> {\arabicfont\char"0698} \> ¦^z¦, \quad ¦j¦ \textit{ottoman} \\ ^^A\textarab{ ^z } \\
954 % \textsf{0699} \> {\arabicfont\char"0699} \> ¦:s¦ \\ ^^A\textarab{ :s } \\
955 % \textsf{069A} \> {\arabicfont\char"069A} \> ¦,s¦ \\
956 % \textsf{069B} \> {\arabicfont\char"069B} \> ¦:s¦ \\
957 % \textsf{069C} \> {\arabicfont\char"069C} \\
958 % \textsf{069D} \> {\arabicfont\char"069D} \\
959 % \textsf{069E} \> {\arabicfont\char"069E} \\
960 % \textsf{069F} \> {\arabicfont\char"069F} \\
961 % \textsf{06A0} \> {\arabicfont\char"06A0} \> ¦^g¦ \textit{ottoman+malay} \\ ^^A\textmalay{ ^g } \\
962 % \textsf{06A1} \> {\arabicfont\char"06A1} \> ¦.f¦ \\ ^^A\textarab{ .f } \\
963 % \textsf{06A2} \> {\arabicfont\char"06A2} \> ¦f¦ \\ ^^A\textarab{ f } \\
964 % \textsf{06A3} \> {\arabicfont\char"06A3} \\
965 % \textsf{06A4} \> {\arabicfont\char"06A4} \> ¦v¦, \quad ¦p¦ \textit{malay} \\ ^^A\textarab{ V } \\
966 % \textsf{06A5} \> {\arabicfont\char"06A5} \> ¦v¦ \textit{maghribi} \\ ^^A\textarab{ v } \\
967 % \textsf{06A6} \> {\arabicfont\char"06A6} \> ¦ph¦ \textit{sindhi} \\ ^^A\textarab{ ph } \\
968 % \textsf{06A7} \> {\arabicfont\char"06A7} \> ¦q¦ \\ ^^A\textarab{ q } \\
969 % \textsf{06A8} \> {\arabicfont\char"06A8} \> ¦p¦ \\ ^^A\textarab{ p } \\
970 % \textsf{06A9} \> {\arabicfont\char"06A9} \> ¦.k¦ \\ ^^A\textarab{ .k } % also M\\
971 % \textsf{06AA} \> {\arabicfont\char"06AA} \> ¦k¦ \\ ^^A\textarab{ k } \\
972 % \textsf{06AB} \> {\arabicfont\char"06AB} \> ¦G¦ \\ ^^A\textarab{ G } \\
973 % \textsf{06AC} \> {\arabicfont\char"06AC} \> ¦,g¦ \\ ^^A\textarab{ ,g } \\
974 % \textsf{06AD} \> {\arabicfont\char"06AD} \> ¦^n¦ \\ ^^A\textarab{ ^n } % also K\\
975 % \textsf{06AE} \> {\arabicfont\char"06AE} \\
976 % \textsf{06AF} \> {\arabicfont\char"06AF} \> ¦g¦ \\ ^^A\textarab{ g } \\
977 % \textsf{06B0} \> {\arabicfont\char"06B0} \\
978 % \textsf{06B1} \> {\arabicfont\char"06B1} \> ¦:n¦ \\ ^^A\textarab{ :n } \\
979 % \textsf{06B2} \> {\arabicfont\char"06B2} \> ¦..n¦ \textit{sindhi} \\
980 % \textsf{06B3} \> {\arabicfont\char"06B3} \> ¦:g¦ \\ ^^A\textarab{ :g } \\
981 % \textsf{06B4} \> {\arabicfont\char"06B4} \> ¦.:g¦ \textit{sindhi} \\
982 % \textsf{06B5} \> {\arabicfont\char"06B5} \> ¦^l¦ \\ ^^A\textarab{ ^l } % also .l -> prob a bug for the next glyph\\
983 % \textsf{06B6} \> {\arabicfont\char"06B6} \> ¦.l¦ \\ ^^ANEW -> .l\\
984 % \textsf{06B7} \> {\arabicfont\char"06B7} \\ ^^ANEW - \\ %NEW -> :l U+0651 ;;SHADDA\\
985 % \textsf{06B8} \> {\arabicfont\char"06B8} \\
986 % \textsf{06B9} \> {\arabicfont\char"06B9} \\
987 % \textsf{06BA} \> {\arabicfont\char"06BA} \> ¦.n¦ \\ ^^A\textarab{ .n } \\
988 % \textsf{06BB} \> {\arabicfont\char"06BB} \> ¦,n¦ \textit{sindhi} \\ ^^A\textsindhi{ .n } \\
989 % \textsf{06BC} \> {\arabicfont\char"06BC} \> ¦,n¦ \\ ^^A\textpashto{ .n } \\
990 % \textsf{06BD} \> {\arabicfont\char"06BD} \> ¦^n¦ \textit{malay} \\ ^^A\textmalay{ ny } %??? with \setmalay ^n ArabTeX produces nun with 3 dots below, but this is not in Unicode\\
991 % \textsf{06BE} \> {\arabicfont\char"06BE} \> ¦h¦ \textit{urdu} \\ ^^A\texturdu{ h } \\
992 % \textsf{06BF} \> {\arabicfont\char"06BF} \> ¦.^c¦ \\ ^^ANEW -> .^c\\
993 % \textsf{06C0} \> {\arabicfont\char"06C0} \> ¦h"'¦ \textit{or context} \\ ^^A\textverb{ 'h } %verbatim ???\\
994 % \textsf{06C1} \> {\arabicfont\char"06C1} \> ¦,h¦ \\
995 % \textsf{06C2} \> {\arabicfont\char"06C2} \> ¦H-¦ (\textit{+ ezafe})\footnote{ Or is it ¦,h¦+ezafe?} \textit{urdu} \\
996 % \textsf{06C3} \> {\arabicfont\char"06C3} \> ¦H¦ \textit{urdu} \\ ^^A\texturdu{ T } %???\\
997 % \textsf{06C4} \> {\arabicfont\char"06C4} \> ¦.o¦ \textit{kashmiri} \\ ^^A\textkashmiri{ |.o } \\
998 % \textsf{06C5} \> {\arabicfont\char"06C5} \\
999 % \textsf{06C6} \> {\arabicfont\char"06C6} \> ¦o¦ \textit{kashmiri} ,\quad ¦:o¦ \textit{uighur} \\ ^^A\textkashmiri{ |o } \\
1000 % \textsf{06C7} \> {\arabicfont\char"06C7} \> ¦:U¦, \quad ¦u¦ \textit{uighur} \\ ^^A\textuighur{ u } \\
1001 % \textsf{06C8} \> {\arabicfont\char"06C8} \> ¦:u¦ \textit{uighur} \\ ^^A\textuighur{ |:u } \\
1002 % \textsf{06C9} \> {\arabicfont\char"06C9} \> ¦^w¦ \\ ^^AArabTeX internals \a@roof\\
1003 % \textsf{06CA} \> {\arabicfont\char"06CA} \> ¦:w¦ \\ ^^ANEW
1004 % \textsf{06CB} \> {\arabicfont\char"06CB} \> ¦w¦ \textit{uighur} \\ ^^A\textuighur{ w } \\
1005 % \textsf{06CC} \> {\arabicfont\char"06CC} \> ¦y¦/¦I¦ \textit{farsi, etc.},\\
1006 % \> \> ¦.I¦ \textit{arabic, sindhi, malay} \\
1007 % \textsf{06CD} \> {\arabicfont\char"06CD} \> ¦Ee¦ \textit{pashto} \\ ^^A\textpashto{\novocalize BEe } \\
1008 % \textsf{06CE} \> {\arabicfont\char"06CE} \\
1009 % \textsf{06CF} \> {\arabicfont\char"06CF} \> ¦v¦ \textit{malay} \\ ^^A\textmalay{ v } \\
1010 % \textsf{06D0} \> {\arabicfont\char"06D0} \> ¦E¦ \textit{pashto}, \quad ¦e¦ \textit{uighur} \\ ^^A\textuighur{ |e } \\
1011 % \textsf{06D1} \> {\arabicfont\char"06D1} \\
1012 % \textsf{06D2} \> {\arabicfont\char"06D2} \> ¦E¦ \textit{urdu+kashmiri} \\ ^^A\texturdu{ |E } \\
1013 % \textsf{06D3} \> {\arabicfont\char"06D3} \> ¦'E¦ \textit{urdu} \\ ^^A\texturdu{ |'E } \\
1014 % \textsf{06D4} \> {\arabicfont\char"06D4} \> ¦..¦ \textit{urdu} \\
1015 % \textsf{06D5} \> {\arabicfont\char"06D5} \\
1016 % \textsf{06D6} \> {\arabicfont\char"06D6} \> ¦^SLY¦ \\
1017 % \textsf{06D7} \> {\arabicfont\char"06D7} \> ¦^QLY¦ \\
1018 % \textsf{06D8} \> {\arabicfont\char"06D8} \> ¦^MIM¦ \\
1019 % \textsf{06D9} \> {\arabicfont\char"06D9} \> ¦^LA¦ \\
1020 % \textsf{06DA} \> {\arabicfont\char"06DA} \> ¦^JIM¦ \\
1021 % \textsf{06DB} \> {\arabicfont\char"06DB} \> ¦^DOTS¦ \\
1022 % \textsf{06DC} \> {\arabicfont\char"06DC} \> ¦^SIN¦ \\
1023 % \textsf{06DD} \> {\arabicfont\char"06DD} \> ¦[[<digits>]]¦ \\
1024 % \textsf{06DE} \> {\arabicfont\char"06DE} \> ¦HIZB¦ \\
1025 % \textsf{06DF} \> {\arabicfont\char"06DF} \> ¦CIRCZERO¦ \\
1026 % \textsf{06E0} \> {\arabicfont\char"06E0} \> ¦RECTZERO¦ \\
1027 % \textsf{06E1} \> {\arabicfont\char"06E1} \> ¦^JAZM¦ \\
1028 % \textsf{06E2} \> {\arabicfont\char"06E2} \> ¦^MIM¦ \\
1029 % \textsf{06E3} \> {\arabicfont\char"06E3} \> ¦_SIN¦ \\
1030 % \textsf{06E4} \> {\arabicfont\char"06E4} \> ¦^MADDA¦ \\
1031 % \textsf{06E5} \> {\arabicfont\char"06E5} \> ¦WAW¦ \\
1032 % \textsf{06E6} \> {\arabicfont\char"06E6} \> ¦YEH¦ \\
1033 % \textsf{06E7} \> {\arabicfont\char"06E7} \> ¦^YEH¦ \\
1034 % \textsf{06E8} \> {\arabicfont\char"06E8} \> ¦^NUN¦ \\
1035 % \textsf{06E9} \> {\arabicfont\char"06E9} \> ¦SAJDA¦ \\
1036 % \textsf{06EA} \> {\arabicfont\char"06EA} \> ¦_STOP¦ \\
1037 % \textsf{06EB} \> {\arabicfont\char"06EB} \> ¦^STOP¦ \\
1038 % \textsf{06EC} \> {\arabicfont\char"06EC} \> ¦^RSTOP¦ \\
1039 % \textsf{06ED} \> {\arabicfont\char"06ED} \> ¦_MIM¦ \\
1040 % \textsf{06EE} \> {\arabicfont\char"06EE} \> ¦^d¦ \\
1041 % \textsf{06EF} \> {\arabicfont\char"06EF} \> ¦^r¦ \\
1042 % \textsf{06F0} \> {\arabicfont\char"06F0} \> ¦0¦ \textit{persian, urdu, etc.} \\
1043 % \textsf{06F1} \> {\arabicfont\char"06F1} \> ¦1¦ \textit{persian, urdu, etc.} \\
1044 % \textsf{06F2} \> {\arabicfont\char"06F2} \> ¦2¦ \textit{persian, urdu, etc.} \\
1045 % \textsf{06F3} \> {\arabicfont\char"06F3} \> ¦3¦ \textit{persian, urdu, etc.} \\
1046 % \textsf{06F4} \> {\arabicfont\char"06F4} \> ¦4¦ \textit{persian, urdu, etc.} \\
1047 % \textsf{06F5} \> {\arabicfont\char"06F5} \> ¦5¦ \textit{persian, urdu, etc.} \\
1048 % \textsf{06F6} \> {\arabicfont\char"06F6} \> ¦6¦ \textit{persian, urdu, etc.} \\
1049 % \textsf{06F7} \> {\arabicfont\char"06F7} \> ¦7¦ \textit{persian, urdu, etc.} \\
1050 % \textsf{06F8} \> {\arabicfont\char"06F8} \> ¦8¦ \textit{persian, urdu, etc.} \\
1051 % \textsf{06F9} \> {\arabicfont\char"06F9} \> ¦9¦ \textit{persian, urdu, etc.} \\
1052 % \textsf{06FA} \> {\arabicfont\char"06FA} \\
1053 % \textsf{06FB} \> {\arabicfont\char"06FB} \\
1054 % \textsf{06FC} \> {\arabicfont\char"06FC} \> ¦:O¦ \\
1055 % \textsf{06FD} \> {\arabicfont\char"06FD} \> ¦.|IN¦ \textit{sindhi} \\ ^^AArabTeX internal \a@bars\\
1056 % \textsf{06FE} \> {\arabicfont\char"06FE} \> ¦.MIN¦ \textit{sindhi} \\
1057 % \textsf{06FF} \> {\arabicfont\char"06FF} \\
1058 % \textbf{Arabic Supplement} \\
1059 % \textsf{0750} \> {\arabicfont\char"0750} \\
1060 % \textsf{0751} \> {\arabicfont\char"0751} \\
1061 % \textsf{0752} \> {\arabicfont\char"0752} \\
1062 % \textsf{0753} \> {\arabicfont\char"0753} \\
1063 % \textsf{0754} \> {\arabicfont\char"0754} \\
1064 % \textsf{0755} \> {\arabicfont\char"0755} \\
1065 % \textsf{0756} \> {\arabicfont\char"0756} \\
1066 % \textsf{0757} \> {\arabicfont\char"0757} \\
1067 % \textsf{0758} \> {\arabicfont\char"0758} \\
1068 % \textsf{0759} \> {\arabicfont\char"0759} \\
1069 % \textsf{075A} \> {\arabicfont\char"075A} \\
1070 % \textsf{075B} \> {\arabicfont\char"075B} \\
1071 % \textsf{075C} \> {\arabicfont\char"075C} \\
1072 % \textsf{075D} \> {\arabicfont\char"075D} \\
1073 % \textsf{075E} \> {\arabicfont\char"075E} \\
1074 % \textsf{075F} \> {\arabicfont\char"075F} \\
1075 % \textsf{0760} \> {\arabicfont\char"0760} \\
1076 % \textsf{0761} \> {\arabicfont\char"0761} \\
1077 % \textsf{0762} \> {\arabicfont\char"0762} \> ¦g¦ \textit{malay} \\ ^^A\textmalay{ g } \\
1078 % \textsf{0763} \> {\arabicfont\char"0763} \\
1079 % \textsf{0764} \> {\arabicfont\char"0764} \\
1080 % \textsf{0765} \> {\arabicfont\char"0765} \\
1081 % \textsf{0766} \> {\arabicfont\char"0766} \\
1082 % \textsf{0767} \> {\arabicfont\char"0767} \\
1083 % \textsf{0768} \> {\arabicfont\char"0768} \\
1084 % \textsf{0769} \> {\arabicfont\char"0769} \\
1085 % \textsf{076A} \> {\arabicfont\char"076A} \\
1086 % \textsf{076B} \> {\arabicfont\char"076B} \\
1087 % \textsf{076C} \> {\arabicfont\char"076C} \\
1088 % \textsf{076D} \> {\arabicfont\char"076D} \\
1089 % ~~~ \> ~~~  \\
1090 % \textbf{Presentation Forms} \\
1091 % \textsf{FD3E} \> {\arabicfont\char"FD3E} \> ¦))¦ \\
1092 % \textsf{FD3F} \> {\arabicfont\char"FD3F} \> ¦((¦ \\
1093 % \textsf{FDF0} \> {\arabicfont\char"FDF0} \> ¦SALLASTOP¦ \\
1094 % \textsf{FDF1} \> {\arabicfont\char"FDF1} \> ¦QALA¦ \\
1095 % \textsf{FDF3} \> {\arabicfont\char"FDF3} \> ¦AKBAR¦ \\
1096 % \textsf{FDF4} \> {\arabicfont\char"FDF4} \> ¦MUHAMMAD¦ \\
1097 % \textsf{FDF5} \> {\arabicfont\char"FDF5} \> ¦SALAM¦ \\
1098 % \textsf{FDF6} \> {\arabicfont\char"FDF6} \> ¦RASUL¦ or ¦RASOUL¦ \\
1099 % \textsf{FDF7} \> {\arabicfont\char"FDF7} \> ¦ALAYHI¦ or ¦ALAYHE¦ \\
1100 % \textsf{FDF8} \> {\arabicfont\char"FDF8} \> ¦WASALLAM¦ \\
1101 % \textsf{FDF9} \> {\arabicfont\char"FDF9} \> ¦SALLA¦ \\
1102 % \textsf{FDFA} \> {\arabicfont\char"FDFA} \> ¦SLM¦ \\
1103 % \textsf{FDFB} \> {\arialuni\char"FDFB} \> ¦JALLA¦ \\ ^^A fixme not available in Amiri
1104 % \textsf{FDFC} \> {\arabicfont\char"FDFC} \> ¦RIYAL¦ \\
1105 % \textsf{FDFD} \> {\arabicfont\char"FDFD} \>\hspace*{100pt} ¦BASMALA¦ \\
1106 % \textbf{Special Combinations} \\
1107 % \> {\arabicfont الله} \> ¦al-ll_ah¦ or ¦ALLAH¦ \\
1108 % \> {\arabicfont لله} \> ¦ll_ah¦ or ¦LLAH¦ or ¦LLH¦ \\
1109 % \> {\arabicfont فَلِله} \> ¦FALILLAH¦
1110 % \end{tabbing}
1111 % \end{multicols}
1112 % \parindentoff
1113 %
1114 %
1115 % \section{Implementation}
1116 %\iffalse
1117 %<*package>
1118 %\fi
1119 % \begin{macrocode}
1120 \NeedsTeXFormat{LaTeX2e}
1121 \ProvidesPackage{arabxetex}
1122 [2015/09/04 v1.2.1 ArabTeX-like interface for XeLaTeX]
1123 %
1124 \DeclareOption{fullvoc}{\def\ax@mode{fullvoc}}
1125 \DeclareOption{voc}{\def\ax@mode{voc}}
1126 \DeclareOption{novoc}{\def\ax@mode{novoc}}
1127 \DeclareOption{trans}{\def\ax@mode{trans}}
1128 \DeclareOption{utf}{\def\ax@mode{utf}}
1129 \DeclareOption{fdf2alif}{} % deprecated
1130 \DeclareOption{fdf2noalif}{} % deprecated
1131 \newif\ifmirror@punct\mirror@punctfalse
1132 \DeclareOption{mirrorpunct}{\mirror@puncttrue}
1133 \ExecuteOptions{novoc}
1134 \ProcessOptions
1135 \def\ax@mode@fullvoc{fullvoc}
1136 \def\ax@mode@voc{voc}
1137 \def\ax@mode@novoc{novoc}
1138 \def\ax@mode@trans{trans}
1139 \def\ax@mode@utf{utf}
1140 \newif\ifax@mode@defined
1141 \def\ax@ismode@defined#1{%
1142 \ifcsname ax@mode@#1\endcsname%
1143 \ax@mode@definedtrue%
1144 \else
1145 \ax@mode@definedfalse%
1146 \fi}
1147 \def\ax@lang{arab}%default language (for macros like \aemph)
1148 \RequirePackage{amsmath}%because of macro \overline used in \aemph
1149 \RequirePackage{fontspec}
1150 \RequirePackage{bidi}
1151 \AtBeginDocument{\ifdefined\arabicfont\relax\else
1152 \PackageWarning{arabxetex}{\string\arabicfont\ is not defined!^^JI will try to load Amiri}%
1153 \newfontfamily\arabicfont[Script=Arabic]{Amiri}\fi}%
1154 \def\ax@trans@style{\itshape}%
1155 \newcommand{\SetTranslitStyle}[1]{\def\ax@trans@style{#1}}
1156 \newcommand{\SetTranslitConvention}[1]{\def\ax@trans@convention{#1}}
1157 \def\ax@trans@convention{loc}% Library of Congress is default
1158 \newcommand{\SetAllahWithAlif}{} % deprecated
1159 \newcommand{\SetAllahWithoutAlif}{} % deprecated
1160 \def\utf@fontfeature{\ifmirror@punct\addfontfeature{Mapping=mirrorpunct}\else\relax\fi}
1161 \def\arabtex@codes{\catcode`^=11\relax\catcode`_=11\relax}
1162 \def\UC{\char"E000} % This is used to capitalize the following letter (ignoring
1163 % article al-) in transliteration mode
1164 %%%Font setup
1165 \def\ax@farsi@font{\ifdefined\farsifont\farsifont\else\arabicfont\fi}
1166 \def\ax@urdu@font{\ifdefined\urdufont\urdufont\else\arabicfont\fi}
1167 \def\ax@pashto@font{\ifdefined\pashtofont\pashtofont\else\arabicfont\fi}
1168 \def\ax@maghribi@font{\ifdefined\maghribifont\maghribifont\else\arabicfont\fi}
1169 \def\ax@sindhi@font{\ifdefined\sindhifont\sindhifont\else\arabicfont\fi}
1170 \def\ax@kashmiri@font{\ifdefined\kashmirifont\kashmirifont\else\arabicfont\fi}
1171 \def\ax@ottoman@font{\ifdefined\ottomanfont\ottomanfont\else\arabicfont\fi}
1172 \def\ax@kurdish@font{\ifdefined\kurdishfont\kurdishfont\else\arabicfont\fi}
1173 \def\ax@malay@font{\ifdefined\malayfont\malayfont\else\arabicfont\fi}
1174 \def\ax@uighur@font{\ifdefined\uighurfont\uighurfont\else\arabicfont\fi}
1175 \def\ax@urdu@font{\ifdefined\urdufont\urdufont\else\arabicfont\fi}
1176
1177 \newenvironment{arab}[1][\ax@mode]%
1178 {\edef\@tempa{#1}%
1179 \def\ax@lang{arab}%
1180 \ax@ismode@defined{\@tempa}%
1181 \ifax@mode@defined%
1182 \ifx\@tempa\ax@mode@trans%
1183 \par\arabtex@codes\ax@trans@style%
1184 \addfontfeature{Mapping=arabtex-trans-\ax@trans@convention}%
1185 \else
1186 \ifx\@tempa\ax@mode@utf%
1187 \par\setRL\arabicfont\utf@fontfeature%
1188 \else
1189 \par\setRL\arabicfont\arabtex@codes%
1190 \addfontfeature{Mapping=arabtex-\@tempa}%
1191 \fi\fi
1192 \else
1193 \PackageWarning{arabxetex}{Mode \@tempa\ not defined, defaulting to \@ax@mode}%
1194 \par\setRL\arabicfont\arabtex@codes%
1195 \addfontfeature{Mapping=arabtex-\ax@mode}%
1196 \fi}
1197 {\ifx\@tempa\ax@mode@trans\relax\else\unsetRL\fi\par}
1198 \let\Arabic=\arab%
1199 %%%
1200 \newenvironment{maghribi}[1][\ax@mode]%
1201 {\edef\@tempa{#1}%
1202 \def\ax@lang{maghribi}%
1203 \ax@ismode@defined{\@tempa}%
1204 \ifax@mode@defined%
1205 \ifx\@tempa\ax@mode@trans%
1206 \par\arabtex@codes\ax@trans@style%
1207 \addfontfeature{Mapping=arabtex-trans-\ax@trans@convention}%
1208 \else
1209 \ifx\@tempa\ax@mode@utf%
1210 \par\setRL\ax@maghribi@font\utf@fontfeature%
1211 \else
1212 \par\setRL\ax@maghribi@font\arabtex@codes%
1213 \addfontfeature{Mapping=arabtex-maghribi-\@tempa}%
1214 \fi\fi
1215 \else
1216 \PackageWarning{arabxetex}{Mode \@tempa\ not defined, defaulting to \@ax@mode}%
1217 \par\setRL\ax@maghribi@font\arabtex@codes%
1218 \addfontfeature{Mapping=arabtex-maghribi-\ax@mode}%
1219 \fi}
1220 {\ifx\@tempa\ax@mode@trans\relax\else\unsetRL\fi\par}
1221 %%%
1222 \newenvironment{farsi}[1][\ax@mode]%
1223 {\edef\@tempa{#1}%
1224 \def\ax@lang{farsi}%
1225 \ax@ismode@defined{\@tempa}%
1226 \ifax@mode@defined%
1227 \ifx\@tempa\ax@mode@trans%
1228 \par\arabtex@codes\ax@trans@style%
1229 \addfontfeature{Mapping=arabtex-farsi-trans-\ax@trans@convention}%
1230 \else
1231 \ifx\@tempa\ax@mode@utf%
1232 \par\setRL\ax@farsi@font\utf@fontfeature%
1233 \else
1234 \par\setRL\ax@farsi@font\arabtex@codes%
1235 \addfontfeature{Mapping=arabtex-farsi-\@tempa}%
1236 \fi\fi
1237 \else
1238 \PackageWarning{arabxetex}{Mode \@tempa\ not defined, defaulting to \@ax@mode}%
1239 \par\setRL\ax@farsi@font\arabtex@codes%
1240 \addfontfeature{Mapping=arabtex-farsi-\ax@mode}%
1241 \fi}
1242 {\ifx\@tempa\ax@mode@trans\relax\else\unsetRL\fi\par}
1243 \let\persian=\farsi
1244 %%%
1245 \newenvironment{urdu}[1][\ax@mode]%
1246 {\edef\@tempa{#1}%
1247 \def\ax@lang{urdu}%
1248 \ax@ismode@defined{\@tempa}%
1249 \ifax@mode@defined%
1250 \ifx\@tempa\ax@mode@trans%
1251 \par\arabtex@codes\ax@trans@style%
1252 \addfontfeature{Mapping=arabtex-urdu-trans-\ax@trans@convention}%
1253 \else
1254 \ifx\@tempa\ax@mode@utf%
1255 \par\setRL\ax@urdu@font\addfontfeature{Language=Urdu}%Mapping=arabtex-utf}%
1256 \else
1257 \par\setRL\ax@urdu@font\arabtex@codes%
1258 \addfontfeature{Mapping=arabtex-urdu-\@tempa}%
1259 \fi\fi
1260 \else
1261 \PackageWarning{arabxetex}{Mode \@tempa\ not defined, defaulting to \@ax@mode}%
1262 \par\setRL\ax@urdu@font\arabtex@codes%
1263 \addfontfeature{Mapping=arabtex-urdu-\ax@mode}%
1264 \fi}
1265 {\ifx\@tempa\ax@mode@trans\relax\else\unsetRL\fi\par}
1266 %%%
1267 \newenvironment{pashto}[1][\ax@mode]%
1268 {\edef\@tempa{#1}%
1269 \def\ax@lang{pashto}%
1270 \ax@ismode@defined{\@tempa}%
1271 \ifax@mode@defined%
1272 \ifx\@tempa\ax@mode@trans%
1273 \par\arabtex@codes\ax@trans@style%
1274 \addfontfeature{Mapping=arabtex-pashto-trans-\ax@trans@convention}%
1275 \else
1276 \ifx\@tempa\ax@mode@utf%
1277 \par\setRL\ax@pashto@font\utf@fontfeature%
1278 \else
1279 \par\setRL\ax@pashto@font\arabtex@codes%
1280 \addfontfeature{Mapping=arabtex-pashto-\@tempa}%
1281 \fi\fi
1282 \else
1283 \PackageWarning{arabxetex}{Mode \@tempa\ not defined, defaulting to \@ax@mode}%
1284 \par\setRL\ax@pashto@font\arabtex@codes%
1285 \addfontfeature{Mapping=arabtex-pashto-\ax@mode}%
1286 \fi}
1287 {\ifx\@tempa\ax@mode@trans\relax\else\unsetRL\fi\par}
1288 %%%
1289 \newenvironment{sindhi}[1][\ax@mode]%
1290 {\edef\@tempa{#1}%
1291 \def\ax@lang{sindhi}%
1292 \ax@ismode@defined{\@tempa}%
1293 \ifax@mode@defined%
1294 \ifx\@tempa\ax@mode@trans%
1295 \par\arabtex@codes\ax@trans@style%
1296 \addfontfeature{Mapping=arabtex-sindhi-trans-\ax@trans@convention}%
1297 \else
1298 \ifx\@tempa\ax@mode@utf%
1299 \par\setRL\ax@sindhi@font\addfontfeature{Language=Sindhi}%Mapping=arabtex-utf}%
1300 \else
1301 \par\setRL\ax@sindhi@font\arabtex@codes%
1302 \addfontfeature{Mapping=arabtex-sindhi-\@tempa,Language=Sindhi}%
1303 \fi\fi
1304 \else
1305 \PackageWarning{arabxetex}{Mode \@tempa\ not defined, defaulting to \@ax@mode}%
1306 \par\setRL\ax@sindhi@font\arabtex@codes%
1307 \addfontfeature{Mapping=arabtex-sindhi-\ax@mode,Language=Sindhi}%
1308 \fi}
1309 {\ifx\@tempa\ax@mode@trans\relax\else\unsetRL\fi\par}
1310 %%%
1311 \newenvironment{ottoman}[1][\ax@mode]%
1312 {\edef\@tempa{#1}%
1313 \def\ax@lang{ottoman}%
1314 \ax@ismode@defined{\@tempa}%
1315 \ifax@mode@defined%
1316 %\ifx\@tempa\ax@mode@trans%
1317 % \par\arabtex@codes\ax@trans@style%
1318 % \addfontfeature{Mapping=arabtex-turk-trans-\ax@trans@convention}%
1319 %\else
1320 \ifx\@tempa\ax@mode@utf%
1321 \par\setRL\ax@ottoman@font\utf@fontfeature%
1322 \else
1323 \par\setRL\ax@ottoman@font\arabtex@codes%
1324 \addfontfeature{Mapping=arabtex-turk-\@tempa}%
1325 \fi%\fi
1326 \else
1327 \PackageWarning{arabxetex}{Mode \@tempa\ not defined, defaulting to \@ax@mode}%
1328 \par\setRL\ax@ottoman@font\arabtex@codes%
1329 \addfontfeature{Mapping=arabtex-turk-\ax@mode}%
1330 \fi}
1331 {%\ifx\@tempa\ax@mode@trans\relax\else
1332 \unsetRL%\fi
1333 \par}
1334 \let\turk=\ottoman
1335 %%%
1336 \newenvironment{kurdish}[1][]%
1337 {\def\ax@lang{kurdish}%
1338 %\edef\@tempa{#1}%
1339 %\ifx\@tempa\ax@mode@trans%
1340 % \par\arabtex@codes\ax@trans@style%
1341 % \addfontfeature{Mapping=arabtex-kurdish-trans-\ax@trans@convention}%
1342 %\else
1343 \ifx\@tempa\ax@mode@utf%
1344 \par\setRL\ax@kurdish@font\addfontfeature{Language=Kurdish}%Mapping=arabtex-utf}%
1345 \else
1346 \par\setRL\ax@kurdish@font\arabtex@codes%
1347 \addfontfeature{Mapping=arabtex-kurdish,Language=Kurdish}%
1348 \fi}
1349 {%\ifx\@tempa\ax@mode@trans\relax\else
1350 \unsetRL%\fi
1351 \par}
1352 %%%
1353 \newenvironment{kashmiri}[1][\ax@mode]%
1354 {\edef\@tempa{#1}%
1355 \def\ax@lang{kashmiri}%
1356 \ax@ismode@defined{\@tempa}%
1357 \ifax@mode@defined%
1358 %\ifx\@tempa\ax@mode@trans%
1359 % \par\arabtex@codes\ax@trans@style%
1360 % \addfontfeature{Mapping=arabtex-kashmiri-trans-\ax@trans@convention}%
1361 %\else
1362 \ifx\@tempa\ax@mode@utf%
1363 \par\setRL\ax@kashmiri@font\utf@fontfeature%
1364 \else
1365 \par\setRL\ax@kashmiri@font\arabtex@codes%
1366 \addfontfeature{Mapping=arabtex-kashmiri-\@tempa}%
1367 \fi%\fi
1368 \else
1369 \PackageWarning{arabxetex}{Mode \@tempa\ not defined, defaulting to \@ax@mode}%
1370 \par\setRL\ax@kashmiri@font\arabtex@codes%
1371 \addfontfeature{Mapping=arabtex-kashmiri-\ax@mode}%
1372 \fi}
1373 {%\ifx\@tempa\ax@mode@trans\relax\else
1374 \unsetRL%\fi
1375 \par}
1376 %%%
1377 \newenvironment{malay}[1][\ax@mode]%
1378 {\edef\@tempa{#1}%
1379 \def\ax@lang{malay}%
1380 \ax@ismode@defined{\@tempa}%
1381 \ifax@mode@defined%
1382 %\ifx\@tempa\ax@mode@trans%
1383 % \par\arabtex@codes\ax@trans@style%
1384 % \addfontfeature{Mapping=arabtex-malay-trans-\ax@trans@convention}%
1385 %\else
1386 \ifx\@tempa\ax@mode@utf%
1387 \par\setRL\ax@malay@font\utf@fontfeature%
1388 \else
1389 \par\setRL\ax@malay@font\arabtex@codes%
1390 \addfontfeature{Mapping=arabtex-malay-\@tempa}%
1391 \fi%\fi
1392 \else
1393 \PackageWarning{arabxetex}{Mode \@tempa\ not defined, defaulting to \@ax@mode}%
1394 \par\setRL\ax@malay@font\arabtex@codes%
1395 \addfontfeature{Mapping=arabtex-malay-\ax@mode}%
1396 \fi}
1397 {%\ifx\@tempa\ax@mode@trans\relax\else
1398 \unsetRL%\fi
1399 \par}
1400 \let\jawi=\malay
1401 %%%
1402 \newenvironment{uighur}[1]%
1403 {%\edef\@tempa{#1}%
1404 \def\ax@lang{uighur}%
1405 %\ifx\@tempa\ax@mode@trans%
1406 % \par\arabtex@codes\ax@trans@style%
1407 % \addfontfeature{Mapping=arabtex-uighur-trans-\ax@trans@convention}%
1408 %\else
1409 \ifx\@tempa\ax@mode@utf%
1410 \par\setRL\ax@uighur@font\utf@fontfeature%
1411 \else
1412 \par\setRL\ax@uighur@font\arabtex@codes%
1413 \addfontfeature{Mapping=arabtex-uighur}%
1414 \fi}
1415 {%\ifx\@tempa\ax@mode@trans\relax\else
1416 \unsetRL%\fi
1417 \par}
1418 %%%
1419 \def\textarab{\bgroup\arabtex@codes\text@arab}
1420 \let\textarabic=\textarab
1421 \def\textmaghribi{\bgroup\arabtex@codes\text@maghribi}
1422 \def\textfarsi{\bgroup\arabtex@codes\text@farsi}
1423 \let\textpersian=\textfarsi
1424 \def\texturdu{\bgroup\arabtex@codes\text@urdu}
1425 \def\textsindhi{\bgroup\arabtex@codes\text@sindhi}
1426 \def\textpashto{\bgroup\arabtex@codes\text@pashto}
1427 \def\textottoman{\bgroup\arabtex@codes\text@ottoman}
1428 \let\textturk=\textottoman
1429 \def\textkurdish{\bgroup\arabtex@codes\text@kurdish}
1430 \def\textkashmiri{\bgroup\arabtex@codes\text@kashmiri}
1431 \def\textmalay{\bgroup\arabtex@codes\text@malay}
1432 \let\textjawi=\textmalay
1433 \def\textuighur{\bgroup\arabtex@codes\text@uighur}
1434 \newcommand\text@arab[2][\ax@mode]{%
1435 \edef\@tempa{#1}%
1436 \def\ax@lang{arab}%
1437 \ax@ismode@defined{\@tempa}%
1438 \ifax@mode@defined%
1439 \ifx\@tempa\ax@mode@trans%
1440 {\ax@trans@style\addfontfeature{Mapping=arabtex-trans-\ax@trans@convention}\scantokens{#2\noexpand}}%
1441 \else
1442 \ifx\@tempa\ax@mode@utf%
1443 \RL{\arabicfont\utf@fontfeature #2}%
1444 \else
1445 \RL{\arabicfont\addfontfeature{Mapping=arabtex-\@tempa}\scantokens{#2\noexpand}}%
1446 \fi\fi
1447 \else
1448 \PackageWarning{arabxetex}{Mode \@tempa\ not defined, defaulting to \@ax@mode}%
1449 \RL{\arabicfont\addfontfeature{Mapping=arabtex-\ax@mode}\scantokens{#2\noexpand}}%
1450 \fi\egroup}
1451 \newcommand\text@maghribi[2][\ax@mode]{%
1452 \edef\@tempa{#1}%
1453 \def\ax@lang{maghribi}%
1454 \ax@ismode@defined{\@tempa}%
1455 \ifax@mode@defined%
1456 \ifx\@tempa\ax@mode@trans%
1457 {\ax@trans@style\addfontfeature{Mapping=arabtex-trans-\ax@trans@convention}#2}%
1458 \else
1459 \ifx\@tempa\ax@mode@utf%
1460 \RL{\ax@maghribi@font\utf@fontfeature #2}%
1461 \else
1462 \RL{\ax@maghribi@font%
1463 \addfontfeature{Mapping=arabtex-maghribi-\@tempa}#2}%
1464 \fi\fi
1465 \else
1466 \PackageWarning{arabxetex}{Mode \@tempa\ not defined, defaulting to \@ax@mode}%
1467 \RL{\ax@maghribi@font\addfontfeature{Mapping=arabtex-maghribi-\ax@mode}#2}%
1468 \fi\egroup}
1469 \newcommand\text@farsi[2][\ax@mode]{%
1470 \edef\@tempa{#1}%
1471 \def\ax@lang{farsi}%
1472 \ax@ismode@defined{\@tempa}%
1473 \ifax@mode@defined%
1474 \ifx\@tempa\ax@mode@trans%
1475 {\ax@trans@style\addfontfeature{Mapping=arabtex-farsi-trans-\ax@trans@convention}#2}%
1476 \else
1477 \ifx\@tempa\ax@mode@utf%
1478 \RL{\ax@farsi@font\utf@fontfeature #2}%
1479 \else
1480 \RL{\ax@farsi@font%
1481 \addfontfeature{Mapping=arabtex-farsi-\@tempa}#2}%
1482 \fi\fi
1483 \else
1484 \PackageWarning{arabxetex}{Mode \@tempa\ not defined, defaulting to \@ax@mode}%
1485 \RL{\ax@farsi@font\addfontfeature{Mapping=arabtex-farsi-\ax@mode}#2}%
1486 \fi\egroup}
1487 \newcommand\text@urdu[2][\ax@mode]{%
1488 \edef\@tempa{#1}%
1489 \def\ax@lang{urdu}%
1490 \ax@ismode@defined{\@tempa}%
1491 \ifax@mode@defined%
1492 \ifx\@tempa\ax@mode@trans%
1493 {\ax@trans@style\addfontfeature{Mapping=arabtex-urdu-trans-\ax@trans@convention}#2}%
1494 \else
1495 \ifx\@tempa\ax@mode@utf%
1496 \RL{\ax@urdu@font\addfontfeature{Language=Urdu}#2}%eventually Mapping=arabtex-utf
1497 \else
1498 \RL{\ax@urdu@font%
1499 \addfontfeature{Mapping=arabtex-urdu-\@tempa,Language=Urdu}#2}%
1500 \fi\fi
1501 \else
1502 \PackageWarning{arabxetex}{Mode \@tempa\ not defined, defaulting to \@ax@mode}%
1503 \RL{\ax@urdu@font\addfontfeature{Mapping=arabtex-urdu-\ax@mode,Language=Urdu}#2}%
1504 \fi\egroup}
1505 \newcommand\text@sindhi[2][\ax@mode]{%
1506 \edef\@tempa{#1}%
1507 \def\ax@lang{sindhi}%
1508 \ax@ismode@defined{\@tempa}%
1509 \ifax@mode@defined%
1510 \ifx\@tempa\ax@mode@trans%
1511 {\ax@trans@style\addfontfeature{Mapping=arabtex-sindhi-trans-\ax@trans@convention}#2}%
1512 \else
1513 \ifx\@tempa\ax@mode@utf%
1514 \RL{\ax@sindhi@font\addfontfeature{Language=Sindhi} #2}%eventually Mapping=arabtex-utf
1515 \else
1516 \RL{\ax@sindhi@font%
1517 \addfontfeature{Mapping=arabtex-sindhi-\@tempa,Language=Sindhi}#2}%
1518 \fi\fi
1519 \else
1520 \PackageWarning{arabxetex}{Mode \@tempa\ not defined, defaulting to \@ax@mode}%
1521 \RL{\ax@sindhi@font\addfontfeature{Mapping=arabtex-sindhi-\ax@mode,Language=Sindhi}#2}%
1522 \fi\egroup}
1523 \newcommand\text@pashto[2][\ax@mode]{%
1524 \edef\@tempa{#1}%
1525 \def\ax@lang{pashto}%
1526 \ax@ismode@defined{\@tempa}%
1527 \ifax@mode@defined%
1528 \ifx\@tempa\ax@mode@trans%
1529 {\ax@trans@style\addfontfeature{Mapping=arabtex-pashto-trans-\ax@trans@convention}#2}%
1530 \else
1531 \ifx\@tempa\ax@mode@utf%
1532 \RL{\ax@pashto@font\utf@fontfeature #2}%
1533 \else
1534 \RL{\ax@pashto@font%
1535 \addfontfeature{Mapping=arabtex-pashto-\@tempa}#2}%
1536 \fi\fi
1537 \else
1538 \PackageWarning{arabxetex}{Mode \@tempa\ not defined, defaulting to \@ax@mode}%
1539 \RL{\ax@pashto@font\addfontfeature{Mapping=arabtex-pashto-\ax@mode}#2}%
1540 \fi\egroup}
1541 \newcommand\text@ottoman[2][\ax@mode]{%
1542 \edef\@tempa{#1}%
1543 \def\ax@lang{ottoman}%
1544 \ax@ismode@defined{\@tempa}%
1545 \ifax@mode@defined%
1546 % UNCOMMENT when transliteration mapping is done
1547 %\ifx\@tempa\ax@mode@trans%
1548 % {\ax@trans@style\addfontfeature{Mapping=arabtex-turk-trans-\ax@trans@convention}#2}%
1549 %\else
1550 \ifx\@tempa\ax@mode@utf%
1551 \RL{\ax@ottoman@font\utf@fontfeature #2}%
1552 \else
1553 \RL{\ax@ottoman@font%
1554 \addfontfeature{Mapping=arabtex-turk-\@tempa}#2}%
1555 \fi%\fi
1556 \else
1557 \PackageWarning{arabxetex}{Mode \@tempa\ not defined, defaulting to \@ax@mode}%
1558 \RL{\ax@ottoman@font\addfontfeature{Mapping=arabtex-turk-\ax@mode}#2}%
1559 \fi\egroup}
1560 \newcommand\text@kurdish[2][]{%
1561 \edef\@tempa{#1}%
1562 \def\ax@lang{kurdish}%
1563 % UNCOMMENT when transliteration mapping is done
1564 %\ifx\@tempa\ax@mode@trans%
1565 % {\ax@trans@style\addfontfeature{Mapping=arabtex-kurdish-trans-\ax@trans@convention}#2}%
1566 %\else
1567 \ifx\@tempa\ax@mode@utf%
1568 \RL{\ax@kurdish@font\utf@fontfeature #2}%
1569 \else
1570 \RL{\ax@kurdish@font%
1571 \addfontfeature{Mapping=arabtex-kurdish,Language=Kurdish}#2}%
1572 \fi%\fi
1573 \egroup}
1574 \newcommand\text@kashmiri[2][\ax@mode]{%
1575 \edef\@tempa{#1}%
1576 \def\ax@lang{kashmiri}%
1577 \ax@ismode@defined{\@tempa}%
1578 \ifax@mode@defined%
1579 % UNCOMMENT when transliteration mapping is done
1580 %\ifx\@tempa\ax@mode@trans%
1581 % {\ax@trans@style\addfontfeature{Mapping=arabtex-kashmiri-trans-\ax@trans@convention}#2}%
1582 %\else
1583 \ifx\@tempa\ax@mode@utf%
1584 \RL{\ax@kashmiri@font\utf@fontfeature #2}%
1585 \else
1586 \RL{\ax@kashmiri@font%
1587 \addfontfeature{Mapping=arabtex-kashmiri-\@tempa}#2}%
1588 \fi%\fi
1589 \else
1590 \PackageWarning{arabxetex}{Mode \@tempa\ not defined, defaulting to \@ax@mode}%
1591 \RL{\ax@kashmiri@font\addfontfeature{Mapping=arabtex-kashmiri-\ax@mode}#2}%
1592 \fi\egroup}
1593 \newcommand\text@malay[2][\ax@mode]{%
1594 \edef\@tempa{#1}%
1595 \def\ax@lang{malay}%
1596 \ax@ismode@defined{\@tempa}%
1597 \ifax@mode@defined%
1598 % UNCOMMENT when transliteration mapping is done
1599 %\ifx\@tempa\ax@mode@trans%
1600 % {\ax@trans@style\addfontfeature{Mapping=arabtex-malay-trans-\ax@trans@convention}#2}%
1601 %\else
1602 \ifx\@tempa\ax@mode@utf%
1603 \RL{\ax@malay@font\utf@fontfeature #2}%
1604 \else
1605 \RL{\ax@malay@font%
1606 \addfontfeature{Mapping=arabtex-malay-\@tempa}#2}%
1607 \fi%\fi
1608 \else
1609 \PackageWarning{arabxetex}{Mode \@tempa\ not defined, defaulting to \ax@mode}%
1610 \RL{\ax@malay@font\addfontfeature{Mapping=arabtex-malay-\ax@mode}#2}%
1611 \fi\egroup}
1612 \newcommand\text@uighur[2][]{%
1613 \edef\@tempa{#1}%
1614 \def\ax@lang{uighur}%
1615 % UNCOMMENT when transliteration mapping is done
1616 %\ifx\@tempa\ax@mode@trans%
1617 % {\ax@trans@style\addfontfeature{Mapping=arabtex-uighur-trans-\ax@trans@convention}#2}%
1618 %\else
1619 \ifx\@tempa\ax@mode@utf%
1620 \RL{\ax@uighur@font\utf@fontfeature #2}%
1621 \else
1622 \RL{\ax@uighur@font%
1623 \addfontfeature{Mapping=arabtex-uighur}#2}%
1624 \fi%\fi
1625 \egroup}
1626 %
1627 \newcommand{\textLR}[1]{\LR{\rmfamily #1}}
1628 \providecommand*{\aemph}[1]{%
1629 \edef\@tempb{\expandafter\noexpand\csname text\ax@lang\endcsname}%
1630 $\overline{\text{\@tempb{#1}}}$}
1631 % \end{macrocode}
1632 %
1633 %\iffalse
1634 %</package>
1635 %\fi
1636 %
1637 % ^^A\section{Unicode Matters}
1638 % ^^A
1639 % ^^ASome glyphs are missing in Unicode:
1640 % ^^A
1641 % ^^A- wavy Hamza below as combining diacritic (for Kashmiri)
1642 % ^^A
1643 % ^^A- .b with ring below (for Kashmiri) (NB: can be poorly rendered by U+066E U+06EA)
1644 % ^^A
1645 % ^^A- hamza directly above baseline (for Qur'an) : 0654 is too high!
1646 % ^^A \def\hamzaB{\raisebox[-1ex]{\char"0654} is ok
1647 % ^^A
1648 %
1649 % ^^A\clearpage
1650 % ^^A\PrintChanges
1651 %
1652 % ^^A\clearpage
1653 % ^^A\PrintIndex
1654 %
1655 % \Finale
1656 %
1657 %\iffalse
1658 %<*dtx-style>
1659 % \begin{macrocode}
1660 \ProvidesPackage{arabxetex-dtx-style}
1661 \usepackage[silent]{fontspec}
1662 \usepackage{hologo}
1663 \usepackage{array,supertabular,xspace,multicol,fancyvrb,paralist}
1664 \usepackage{color}
1665 \definecolor{myblue}{rgb}{0.02,0.04,0.48}
1666 \definecolor{myred}{rgb}{0.65,0.04,0.07}
1667 \definecolor{darkgray}{gray}{0.3}
1668 \definecolor{lightgray}{gray}{0.6}
1669 \definecolor{IslamicGreen}{rgb}{0,.43,0}
1670 \usepackage[
1671 bookmarks=true,
1672 colorlinks=true,
1673 linkcolor=myblue,
1674 urlcolor=myblue,
1675 citecolor=myblue,
1676 hyperindex=false,
1677 hyperfootnotes=false,
1678 pdftitle={The ArabXeTeX package},
1679 pdfauthor={F Charette <[email protected]>},
1680 pdfsubject={An ArabTeX-like interface for typesetting languages in Arabic script with XeLaTeX},
1681 pdfkeywords={ArabTeX, XeTeX, XeLaTeX, Arabic, Maghribi, Persian, Farsi, Urdu, Sindhi,
1682 Pashto, Turkish, Ottoman, Kurdish, Kashmiri, Malay, Jawi, Uighur}
1683 ]{hyperref}
1684 \usepackage[voc]{arabxetex}
1685 % NB some of this preamble is taken or adapted from fontspec-doc-style.sty
1686 \newcommand*\pkg[1]{\textsf{#1}}
1687 \def\eg{\textit{e.g.,}\xspace}
1688 \def\ie{\textit{i.e.,}\xspace}
1689 \def\ca{\textit{ca.}\@\xspace}
1690 \def\Eg{\textit{E.g.,}\xspace}
1691 \def\Ie{\textit{I.e.,}\xspace}
1692 \def\etc{\@ifnextchar.{\textit{etc}}{\textit{etc.}\@\xspace}}
1693 \def\eTeX{\hologo{eTeX}}
1694 \newlength{\oldparindent}
1695 \newcommand{\parindentoff}{\setlength{\oldparindent}{\parindent} \setlength{\parindent}{0pt}}
1696 \newcommand{\parindenton}{\setlength{\parindent}{\oldparindent}}
1697
1698 \def\arabxetex{Arab\XeTeX}
1699 \def\arabtex{Arab\TeX}
1700 \def\MacOSX{Mac~OS~X}
1701 \def\ASCII{\textsc{ascii}} % ii small caps does not work with Junicode!
1702
1703 %% Sidenotes << copied from fontspec.dtx
1704 \newcommand\warn[2]{%
1705 \edef\thisversion{#1}%
1706 \ifhmode\unskip~\fi{\ifx\thisversion\fileversion\color{red}\fi
1707 $\leftarrow$}%
1708 \marginpar{\raggedleft
1709 \small%
1710 {\ifx\thisversion\fileversion\color{red}\fi$\rightarrow$}%
1711 \,{\notefont #1:~#2}}}
1712
1713 \newcommand\new[1]{%
1714 \edef\thisversion{#1}%
1715 \ifhmode\unskip~\fi{\ifx\thisversion\fileversion\color{blue}\else\color[gray]{0.5}\fi
1716 $\leftarrow$}%
1717 \marginpar{\raggedleft
1718 \small\ifx\thisversion\fileversion\color{blue}\else\color[gray]{0.5}\fi
1719 $\rightarrow$\,{\notefont #1:~New!}}}
1720
1721 %% Sidenote font
1722 \newfontfamily\notefont[Scale=MatchLowercase]{Lucida Sans Unicode}
1723
1724 %%%
1725
1726 %% fontspec declarations:
1727 \setmainfont[Ligatures=TeX]{Junicode}
1728 \defaultfontfeatures{Scale=MatchLowercase}
1729 \setmonofont{Consolas}%{Inconsolata}
1730 \setsansfont{Lucida Sans Unicode}
1731 \newfontfamily\arabicfont[Script=Arabic,Scale=1]{Amiri}
1732 \newfontfamily\amiriquran[Script=Arabic,Scale=1]{Amiri Quran}
1733 \newfontfamily\arialuni[Script=Arabic,Scale=1]{Arial Unicode MS}
1734 \newfontfamily\urdufont[Script=Arabic,Scale=1.2]{Hussaini Nastaleeq}
1735 \newfontfamily\farsifont[Script=Arabic,Scale=1.33]{IranNastaliq}
1736
1737 \linespread{1.05}
1738 \frenchspacing
1739 %%%
1740 \def\GN{\bgroup\catcode`\_=11\relax\catcode`\^=11\relax\GNX}
1741 \def\GR{\bgroup\catcode`\_=11\relax\catcode`\^=11\relax\GRX}
1742 \def\GB{\bgroup\catcode`\_=11\relax\catcode`\^=11\relax\GBX}
1743 \def\GG{\bgroup\catcode`\_=11\relax\catcode`\^=11\relax\GGX}
1744 \def\GV{\bgroup\catcode`\_=11\relax\catcode`\^=11\relax\GVX}
1745 \newcommand{\GNX}[3][arab]{%
1746 \edef\@tempa{\expandafter\noexpand\csname text#1\endcsname}
1747 \parbox[c]{7.5mm}{\centering{\@tempa{#2}}\\[1pt]\ttfamily\fontsize{5}{5}\selectfont{#3}}\egroup}
1748 \newcommand{\GRX}[3][arab]{%
1749 \edef\@tempa{\expandafter\noexpand\csname text#1\endcsname}
1750 \parbox[c]{7.5mm}{\centering{\textcolor{myred}{\@tempa{#2}}}\\[1pt]\ttfamily\fontsize{5}{5}\selectfont{#3}}\egroup}
1751 \newcommand{\GBX}[3][arab]{%
1752 \edef\@tempa{\expandafter\noexpand\csname text#1\endcsname}
1753 \parbox[c]{7.5mm}{\centering{\textcolor{myblue}{\@tempa{#2}}}\\[1pt]\ttfamily\fontsize{5}{5}\selectfont{#3}}\egroup}
1754 \newcommand{\GVX}[3][arab]{%
1755 \edef\@tempa{\expandafter\noexpand\csname text#1\endcsname}
1756 \parbox[c]{7.5mm}{\centering{\textcolor{IslamicGreen}{\@tempa{#2}}}\\[1pt]\ttfamily\fontsize{5}{5}\selectfont{#3}}\egroup}
1757 \newcommand{\GGX}[2][arab]{%
1758 \edef\@tempa{\expandafter\noexpand\csname text#1\endcsname}
1759 \parbox[c]{7.5mm}{\centering{\textcolor{lightgray}{\@tempa{#2}}}}\egroup}
1760
1761 \newcommand{\hamzaB}{\char"200D\char"0640\raise-.95ex\hbox{\char"0654}\char"200D}
1762 % \end{macrocode}
1763 %</dtx-style>
1764 %\fi
1765 %
1766 %
1767 % \typeout{*************************************************************}
1768 % \typeout{*}
1769 % \typeout{* To finish the installation you have to move the following}
1770 % \typeout{* file into a directory searched by XeTeX:}
1771 % \typeout{*}
1772 % \typeout{* \space\space\space arabxetex.sty}
1773 % \typeout{*}
1774 % \typeout{* and move all *.tec and *.map files to}
1775 % \typeout{* .../fonts/misc/xetex/fontmapping/arabxetex/}
1776 % \typeout{*************************************************************}
1777 %
1778 \endinput
1779