<div dir="ltr"><font><font face="tahoma,sans-serif">My point was that some of the functionality of language-specific packages is already built-in into XeTeX. Facility for inputting the text is one such. ArabTeX has special Tex commands for representing individual Arabic letters, and for turning vocalization on or off. These are redundant in XeTeX. We can just type the text, adding vowel marks to any letter if needed. Below is a (trivial) modification of the previous (trivial) program to illustrate this (for those who are new to typesetting Arabic with TeX).</font></font><div>

<font><font face="tahoma,sans-serif"><br></font></font></div><div><font><font face="tahoma,sans-serif">Of course, for advanced editing, you are better off using special packages. Personally I am quite happy at present with the package polyglossia. It has support for several languages, including most of the languages that use the Arabic script. The nice thing is that you can mix texts from as many languages and alphabets as you need. For the text direction control, polyglossia has the bidi package loaded already.</font></font></div>

<div><font><font face="tahoma,sans-serif"><br></font></font></div><div><font><font face="tahoma,sans-serif"><div>\documentclass[12pt]{article}</div><div>\usepackage{fontspec}</div><div>\newfontfamily\A[Script=Arabic,Scale=1.4,WordSpace=2]{Amiri} % Scheherazade</div>

<div>\begin{document}</div><div>\begin{tabular}{c c c}</div><div>{\A</div><div>مُثَلَّث</div><div>}& {\A </div><div>١٢٣٤</div><div>}&</div><div>Triangle</div><div>\end{tabular}</div><div><br></div><div>\end{document}</div>

<div>=================</div></font></font>=============<br><div class="gmail_quote">On Wed, Apr 4, 2012 at 06:09, Zdenek Wagner <span dir="ltr"><<a href="mailto:zdenek.wagner@gmail.com">zdenek.wagner@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2012/4/3 Kamal Abdali <<a href="mailto:k.abdali@acm.org">k.abdali@acm.org</a>>:<br>
<div class="im">> With XeTeX, there seems less need of language-specific packages because the<br>
> characters of various alphabets can be directly typed. So this produces the<br>
> same output as Nathan's program:<br>
><br>
</div>In such a trivial case you certainly do not need other packages but<br>
for real use with an Arabic script you need at least the bidi package.<br>
<div class="HOEnZb"><div class="h5"><br>
> \documentclass[12pt]{article}<br>
> \usepackage{fontspec}<br>
> \newfontfamily\A[Script=Arabic,Scale=1.4,WordSpace=2]{Amiri} % Scheherazade<br>
><br>
> \begin{document}<br>
> \begin{tabular}{c c}<br>
> {\A<br>
> مثلث<br>
> } & {\A<br>
> ١٢٣٤<br>
> }<br>
> \end{tabular}<br>
><br>
> \end{document}<br>
> =====================<br>
><br>
> On Sun, Apr 1, 2012 at 11:15, Nathan Sidoli <<a href="mailto:nathan.sidoli@utoronto.ca">nathan.sidoli@utoronto.ca</a>><br>
> wrote:<br>
>><br>
>> This works for me:<br>
>> ------<br>
>> \documentclass[12pt,a4paper]{article}<br>
>><br>
>> \usepackage{fontspec}<br>
>><br>
>> \usepackage[novoc,fdf2noalif]{arabxetex} %<br>
>> \newfontfamily\arabicfont[Script=Arabic,Scale=1.4,WordSpace=2]{Amiri} %<br>
>> Scheherazade<br>
>> \newcommand{\A}{\textarabic} % Tag for all Arabic text<br>
>><br>
>> \begin{document}<br>
>><br>
>> \begin{tabular}{c c}<br>
>> {\A{m_tl_t}} & {\A{1234}}<br>
>> \end{tabular}<br>
>><br>
>> \end{document}<br>
>> --------<br>
>><br>
>><br>
>><br>
>> On 12/04/01 23:37, Jean-Louis Cordonnier wrote:<br>
>>><br>
>>> My tex file works properly with text only but gives an error if I want<br>
>>> to use tabular :<br>
>>><br>
>>> \begin{tabular}[l]<br>
>>> \textarab[voc]{`arabI}<br>
>>> \end{tabular}<br>
>>><br>
>>><br>
>>> Le 18/01/2012 18:55, Zdenek Wagner a écrit :<br>
>>>><br>
>>>> 2012/1/18 Jean-Louis Cordonnier<<a href="mailto:jlcord2@wanadoo.fr">jlcord2@wanadoo.fr</a>>:<br>
>>>>><br>
>>>>> I try to write a few word in arabic ;<br>
>>>>> I get this error message :<br>
>>>>> Package bidi Error: Oops! you have loaded package xunicode before bidi<br>
>>>>> packag<br>
>>>>> e. Please load package xunicode after bidi package, and then try to run<br>
>>>>> xelatex<br>
>>>>> on your document again.<br>
>>>>><br>
>>>> Load arabxetex before xltxtra. Arabxetex loads bidi, xltxtra loads<br>
>>>> xunicode.<br>
>>>><br>
>>>>> I dont understand why (where in bidi documentation ?)<br>
>>>>><br>
>>>>> My file<br>
>>>>><br>
>>>>> |\documentclass{article}<br>
>>>>> \usepackage{xltxtra}<br>
>>>>> \newfontfamily{\arabicfont}[Script=Arabic,Scale=1.5]{Traditional<br>
>>>>> Arabic}<br>
>>>>> \usepackage{arabxetex}<br>
>>>>><br>
>>>>> \begin{document}<br>
>>>>> \section{\textarab[utf]{العربية}}<br>
>>>>> \textarab[utf]{السلم عليكم و رحمت الله و بركته}<br>
>>>>><br>
>>>>> \section{Legacy syntax}<br>
>>>>> When he goes---``Salamun alaykum!''\\<br>
>>>>> She replies—“Wa alaykumus-salam, dear!”<br>
>>>>> \end{document}|<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> --------------------------------------------------<br>
>>>>> Subscriptions, Archive, and List information, etc.:<br>
>>>>>  <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
>>>><br>
>>>><br>
>>><br>
>>><br>
>>> --------------------------------------------------<br>
>>> Subscriptions, Archive, and List information, etc.:<br>
>>>   <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
>><br>
>><br>
>><br>
>><br>
>> --------------------------------------------------<br>
>> Subscriptions, Archive, and List information, etc.:<br>
>>  <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
><br>
><br>
><br>
><br>
><br>
> --------------------------------------------------<br>
> Subscriptions, Archive, and List information, etc.:<br>
>  <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
><br>
<br>
<br>
<br>
</div></div><div class="im HOEnZb">--<br>
Zdeněk Wagner<br>
<a href="http://hroch486.icpf.cas.cz/wagner/" target="_blank">http://hroch486.icpf.cas.cz/wagner/</a><br>
<a href="http://icebearsoft.euweb.cz" target="_blank">http://icebearsoft.euweb.cz</a><br>
<br>
<br>
<br>
</div><div class="HOEnZb"><div class="h5">--------------------------------------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
  <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
</div></div></blockquote></div><br></div></div>