<div dir="ltr"><br>fair enough. Is it a long hack to change that Persian case in Bidi to the Arabic case? And are your sure it is something to do with Bidi not with polyglossia? Thanks. <br><br><br><div class="gmail_quote">
On 16 March 2011 11:43, Vafa Khalighi <span dir="ltr"><<a href="mailto:vafakhlgh@gmail.com">vafakhlgh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">bidi is developed from a Persian perspective and it may not be what other languages use. In Persian sectioning is RTL. At least I know that Khaled Hosny also agrees on this.<div><div></div><div class="h5"><br>
<br><div class="gmail_quote">On Wed, Mar 16, 2011 at 3:37 PM, Abdulrahman Al-Abdusalalm <span dir="ltr"><<a href="mailto:abdulrhman.niz@cas.edu.om" target="_blank">abdulrhman.niz@cas.edu.om</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr">Hi,<br><br>Try this ...<br><br>
<p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;">\documentclass[a4paper]{article}</p><div>
<p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;">\usepackage{polyglossia}</p>
<p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;">\setmainlanguage{arabic}</p>
<p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;">\setotherlanguage{english}</p>
<p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;">\newfontfamily\arabicfont[Scale=1.5,Script=Arabic]{Scheherazade}</p>
<p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"></p>
<p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;">\begin{document}</p>
<p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"></p>
</div><p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;">\section{واحد}</p>
<p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;">\subsection{واحد . واحد}</p>
<p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;">\section{اثنان}</p>
<p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;">\subsection{اثنان . واحد}</p>
<p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;">\section{ثلاثة}</p>
<p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;">\subsection{ثلاثة . واحد}</p>
<p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;">\end{document}</p><p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><br></p><p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;">
<font face="times new roman,serif">It shows clearly that subsection numbering is typeset *right to left* as opposed to the normal direction *left to right*.</font></p><p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;">
<br></p><p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;">Regards<br></p><div><div></div><div><br><br><div class="gmail_quote">On 15 March 2011 15:03, Abdulrahman Al-Abdusalalm <span dir="ltr"><<a href="mailto:abdulrhman.niz@cas.edu.om" target="_blank">abdulrhman.niz@cas.edu.om</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr"><br><span style="font-family: courier new,monospace;">documentclass[a4paper]{article}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">\usepackage{polyglossia}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">\setmainlanguage{arabic}</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">\setotherlanguage{english}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">\newfontfamily\arabicfont[Scale=1.5,Script=Arabic]{Scheherazade}</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">\begin{document}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">...</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">\section{أسس الطباعه الحديثة}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">...</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">\subsection{الخطوط الرقمية \textenglish{(Fonts)}}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">...</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">\end{document}</span><br><br>Thanks?<div><div></div><div>
<br><br><br><div class="gmail_quote">
On 15 March 2011 14:45, Vafa Khalighi <span dir="ltr"><<a href="mailto:vafakhlgh@gmail.com" target="_blank">vafakhlgh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">What is your minimal example?<div><div></div><div><br><br><div class="gmail_quote">On Tue, Mar 15, 2011 at 9:43 PM, Abdulrahman Al-Abdusalalm <span dir="ltr"><<a href="mailto:abdulrhman.niz@cas.edu.om" target="_blank">abdulrhman.niz@cas.edu.om</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr"><br>Hello again,<br><br>Now with polyglossia I can typeset arabic in sectioning commands, however, I still have Arabic-indic numbering typeset from right to left (i.e. 3.1 is show 1.3). Is this something to do with the internal code of \section command?<div>
<div></div><div><br>
<br><div class="gmail_quote">On 15 March 2011 10:32, Abdulrahman Al-Abdusalalm <span dir="ltr"><<a href="mailto:abdulrhman.niz@cas.edu.om" target="_blank">abdulrhman.niz@cas.edu.om</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">Thank Vafa. I refrained from using Arabxetex and rather discovered polyglossia <br>which solved the problem for now. <br><div><div></div><div><br><br><br><div class="gmail_quote">On 15 March 2011 09:55, Vafa Khalighi <span dir="ltr"><<a href="mailto:vafakhlgh@gmail.com" target="_blank">vafakhlgh@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr">Do not put your sectioning commands inside RTL environment (arab).<br><br><div class="gmail_quote">
<div><div></div><div>2011/3/15 Abdulrahman Al-Abdusalalm <span dir="ltr"><<a href="mailto:abdulrhman.niz@cas.edu.om" target="_blank">abdulrhman.niz@cas.edu.om</a>></span><br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div><div dir="ltr">Hi,<br><br>I am preparing a manuscript with arabxetex and facing a problem with sectioning commands (\section,\subsec...),<br>
basically the problem is that I get Arabic digits instead of Arabic-indic and also the numbering is typeset right to<br>
left (i.e. 1.3 for 3.1) the code snippet looks as follows:<br><br><span style="font-family: courier new,monospace;">\begin{arab}</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">...</span><br style="font-family: courier new,monospace;">
<p style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;">\subsection{\textarab{الخطوط الرقمية} \textLR{(Fonts)}}</p><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">...</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">\end{arab}</span><br><br>I am also planning to include figures with captions and presume the same problem.<br>Any advice is appreciated.<br clear="all"><br>-- <br>Abdulrahman AAl Abdulsalam<br>
Assistant Lecturer - IT Department <br>College of Applied Science<br>P.O. Box 699<br>Nizwa, 611<br>Oman<br>
</div>
<br><br>
<br></div></div>
--------------------------------------------------<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></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">If some one say: "You divide ten into two parts: multiply the one by
itself; it will be equal to the other taken eighty-one times."
Computation: You say, ten less thing, multiplied by itself, is a hundred
plus a square less twenty things, and this is equal to eighty-one
things. Separate the twenty things from a hundred and a square, and add
them to eighty-one. It will then be a hundred plus a square, which is
equal to a hundred and one roots. Halve the roots; the moiety is fifty
and a half. Multiply this by itself, it is two thousand five hundred and
fifty and a quarter. Subtract from this one hundred; the remainder is
two thousand four hundred and fifty and a quarter. Extract the root from
this; it is forty-nine and a half. Subtract this from the moiety of the
roots, which is fifty and a half. There remains one, and this is one of
the two parts.<br><br><b>Muḥammad ibn Mūsā al-Khwārizmī</b></div><br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Abdulrahman AAl Abdulsalam<br>Assistant Lecturer - IT Department <br>College of Applied Science<br>P.O. Box 699<br>Nizwa, 611<br>Oman<br>
</div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Abdulrahman AAl Abdulsalam<br>Assistant Lecturer - IT Department <br>College of Applied Science<br>P.O. Box 699<br>Nizwa, 611<br>Oman<br>
</div></div></div>
<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></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">If some one say: "You divide ten into two parts: multiply the one by
itself; it will be equal to the other taken eighty-one times."
Computation: You say, ten less thing, multiplied by itself, is a hundred
plus a square less twenty things, and this is equal to eighty-one
things. Separate the twenty things from a hundred and a square, and add
them to eighty-one. It will then be a hundred plus a square, which is
equal to a hundred and one roots. Halve the roots; the moiety is fifty
and a half. Multiply this by itself, it is two thousand five hundred and
fifty and a quarter. Subtract from this one hundred; the remainder is
two thousand four hundred and fifty and a quarter. Extract the root from
this; it is forty-nine and a half. Subtract this from the moiety of the
roots, which is fifty and a half. There remains one, and this is one of
the two parts.<br><br><b>Muḥammad ibn Mūsā al-Khwārizmī</b></div><br>
</div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Abdulrahman AAl Abdulsalam<br>Assistant Lecturer - IT Department <br>College of Applied Science<br>P.O. Box 699<br>Nizwa, 611<br>Oman<br>
</div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Abdulrahman AAl Abdulsalam<br>Assistant Lecturer - IT Department <br>College of Applied Science<br>P.O. Box 699<br>Nizwa, 611<br>Oman<br>
</div></div></div>
<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></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">If some one say: "You divide ten into two parts: multiply the one by
itself; it will be equal to the other taken eighty-one times."
Computation: You say, ten less thing, multiplied by itself, is a hundred
plus a square less twenty things, and this is equal to eighty-one
things. Separate the twenty things from a hundred and a square, and add
them to eighty-one. It will then be a hundred plus a square, which is
equal to a hundred and one roots. Halve the roots; the moiety is fifty
and a half. Multiply this by itself, it is two thousand five hundred and
fifty and a quarter. Subtract from this one hundred; the remainder is
two thousand four hundred and fifty and a quarter. Extract the root from
this; it is forty-nine and a half. Subtract this from the moiety of the
roots, which is fifty and a half. There remains one, and this is one of
the two parts.<br><br><b>Muḥammad ibn Mūsā al-Khwārizmī</b></div><br>
</div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Abdulrahman AAl Abdulsalam<br>Assistant Lecturer - IT Department <br>College of Applied Science<br>P.O. Box 699<br>Nizwa, 611<br>Oman<br>
</div>