Hi Mostafa<br>
Thanks. Of course, thay are different. I just meant that they are the same, regarding display and semantics of digits.<br>
<br>
Regrards<br>
Ali<br><br><div><span class="gmail_quote">2007/11/28, Mostafa Vahedi &lt;<a href="mailto:vahedi58@yahoo.com">vahedi58@yahoo.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ali,<br><br>For the macros that you look for, I agree with the previous
people who replied to your question that it is not easy (in fact very
difficult) to do that from scratch. However you can reuse much of the
macros of the Arabi package. Specially I recommend using ArabXeTeX +
BIDI + some macros from the Arabi package. Note that the Arabi package
was written to support Arabic and Persian using LaTeX and Babel.<br><br>Arabic
digits and Persian digits are different! For the Arabic digits in
Unicode we should use U+0660 to U+0669 and for the Persian digits we
SHOULD use U+06F0 to U+06F9.<br><br>Mostafa<div><span class="e" id="q_1168609f37b85871_1"><br><br><b><i>Ali Majdzadeh &lt;<a href="mailto:ali.majdzadeh@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
ali.majdzadeh@gmail.com</a>&gt;</i></b> wrote:<blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Bruno,<br> By the way, Persian numbers are axactly the same as Arabic.<br> <br>
 Regards<br> Ali<br><br><div><span class="gmail_quote">2007/11/28, Ali Majdzadeh &lt;<a href="mailto:ali.majdzadeh@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ali.majdzadeh@gmail.com</a>
&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hello Bruno<br> Thanks a lot. I am going to give it a try.<br> <br> Regards<br>
 Ali<br><br><div><span class="gmail_quote">2007/11/28, Bruno Voisin &lt;<a href="mailto:bvoisin@mac.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bvoisin@mac.com</a>&gt;:</span><div><span> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 Le 28 nov. 07 à 01:29, <a href="mailto:mjslouber@berkeley.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mjslouber@berkeley.edu</a> a écrit :<br><br>&gt;&gt; Date: Tue, 27 Nov 2007 07:37:38 -0800 (PST) 
<br>&gt;&gt; From: Apostolos Syropoulos<br>&gt;&gt;<br>&gt;&gt;&gt; Is it possible
 to produce page numbers in Persian? The same <br>&gt;&gt;&gt; question exists about &gt;footnote numbers, endnote numbers and heading<br>&gt;&gt;&gt; numbers.<br>&gt;&gt;<br>&gt;&gt; Of course it is. But either you have modify the standard commads or
<br>&gt;&gt; you have to introduce some new commands to take care of this. <br>&gt;&gt;<br>&gt;<br>&gt; I am also interested in using non-arabic numbering in my XeTeX/LEDMAC<br>&gt; edition, and I am afraid A.S.&#39;s answer is not very helpful.&nbsp;&nbsp;Is it too
<br>&gt; complicated to explain to a beginner how to change these numbering <br>&gt; commands?<br><br>IIRC LaTeX knows only about arabic and roman numbers, and also about<br>numbering using the roman alphabet and using &quot;old-fashioned&quot; non-
<br>alphanumeric characters (for footnotes) like *, §, ¶, †, ‡, ǁ <br>and the like.<br><br>LaTeX sets up the way counters appear in output by making definitions<br>(for example in article.cls) equivalent
 to<br><br>\renewcommand{\thesection} {\arabic{section}}&nbsp;&nbsp;% for sections<br>\renewcommand{\thepart}&nbsp;&nbsp;&nbsp;&nbsp;{\Roman{part}}&nbsp;&nbsp;% for parts <br>\renewcommand{\thefootnote}{\fnsymbol{footnote}}&nbsp;&nbsp;% for footnotes<br>\renewcommand{\theenumii}&nbsp;&nbsp;{\alph{enumii}}&nbsp;&nbsp;% for second-order
<br>numbered lists<br><br>where section is the section counter and \thesection the way this <br>counter is displayed, and so forth.<br><br>But then the hard work of defining the commands \arabic, \roman and so<br>forth is done in 
latex.ltx, with code equivalent to:<br><br>\newcommand{\arabic}[1]{\expandafter\@arabic\csname c@#1\endcsname} <br>\newcommand{\roman}[1]{\expandafter\@roman\csname c@#1\endcsname}<br>\newcommand{\Roman}[1]{\expandafter\@Roman\csname c@#1\endcsname}
<br>\newcommand{\alph}[1]{\expandafter\@alph\csname c@#1\endcsname}<br>\newcommand{\Alph}[1]{\expandafter\@Alph\csname c@#1\endcsname}
 <br>\newcommand{\fnsymbol}[1]{\expandafter\@fnsymbol\csname c@#1\endcsname}<br><br>\newcommand{\@arabic}[1]{\number #1}<br>\newcommand{\@roman}[1]{\romannumeral #1}<br>\newcommand{\@Roman}[1]{\expandafter\@slowromancap\romannumeral #1@} 
<br>\newcommand{\@slowromancap}[1]{\ifx @#1% then terminate<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\if i#1I\else\if v#1V\else\if x#1X\else\if l#1L\else\if<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c#1C\else\if d#1D\else \if m#1M\else#1\fi\fi\fi\fi\fi\fi\fi<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\expandafter\@slowromancap 
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\fi}<br>\newcommand{\@alph}[1]{%<br>&nbsp;&nbsp; \ifcase#1\or a\or b\or c\or d\or e\or f\or g\or h\or i\or j\or<br>&nbsp;&nbsp;&nbsp;&nbsp;k\or l\or m\or n\or o\or p\or q\or r\or s\or t\or u\or v\or w\or x<br>\or<br>&nbsp;&nbsp;&nbsp;&nbsp; y\or z\else\@ctrerr \fi}
 <br>\newcommand{\@Alph}[1]{%<br>&nbsp;&nbsp; \ifcase#1\or A\or B\or C\or D\or E\or F\or G\or H\or I\or J\or<br>&nbsp;&nbsp;&nbsp;&nbsp;K\or L\or M\or N\or O\or P\or Q\or R\or S\or T\or U\or V\or W\or X<br>\or<br>&nbsp;&nbsp;&nbsp;&nbsp; Y\or Z\else\@ctrerr\fi}<br>\newcommand{\@fnsymbol}[1]{\ensuremath{\ifcase#1\or *\or \dagger\or 
<br>\ddagger\or<br>&nbsp;&nbsp;&nbsp;&nbsp;\mathsection\or \mathparagraph\or \|\or **\or \dagger\dagger<br>&nbsp;&nbsp;&nbsp;&nbsp;\or \ddagger\ddagger \else\@ctrerr\fi}}<br><br>where \number and \romannumeral are TeX primitives (i.e., commands<br>implemented in the core TeX engine itself). 
<br><br>I don&#39;t have time to try to explain these definitions in detail, I<br>hope they&#39;re more-or-less self-explanatory.<br><br>I can&#39;t say much more not knowing anything about Persian numbers. From<br>the answer given by Mojca Miklavec and using ConTeXt, it seems Persian 
<br>numbers have the same structure as so-called &quot;arabic&quot; numbers (i.e.<br>base-10,
 right-to-left ordering of successive powers of 10). So if<br>that&#39;s indeed correct, and if the font BCompset does indeed provide <br>Persian numbers at the slots normally reserved for arabic numbers,<br>then I guess the following could do the job, in the preamble of your
<br>LaTeX file:<br><br>\usepackage{fontpec}<br>\newfontfamily\persianfont{BCompset} <br>\makeatletter<br>\newcommand{\persian}[1]{\expandafter\@persian\csname c@#1\endcsname}<br>\newcommand{\@persian}[1]{\bgroup\persianfont\number #1\egroup}
<br>\makeatother<br>\renewcommand{\thefootnote}{\persian{footnote}} <br><br>Three more things:<br><br>- The above is untested, incomplete (it&#39;s not dealing with page<br>numbers which are more complicated) and probably won&#39;t work as is. I
<br>hope it could provide a starting point for others to come up with <br>something usable.<br><br>- It&#39;s likely that there&#39;s a LaTeX package out there somewhere<br>allowing this to be done transparently. But I&#39;m lost personally in
 the<br>jungle of innumerable and largely redundant LaTeX packages. Have you <br>looked at the LaTeX Companion 2nd edition?<br><br>- Apart from the Persian font thing, it&#39;s more a generic LaTeX<br>question than a XeTeX-specific one. Accordingly, you could get luckier
<br>by asking it at a generic LaTeX forum like  comp.text.tex.<br><br>In any case, you see that changing numbering in LaTeX is not<br>straightforward at all, and yes, it&#39;s complicated to explain to a<br>beginner how to change it.
<br><br>Hope this helps though,<br> <br> Bruno Voisin<br></blockquote></span></div></div></blockquote></div></blockquote><br></span></div><span class="ad"><p> 
      </p><hr size="1">Be a better sports nut! Let your teams follow you 
with Yahoo Mobile. <a href="http://us.rd.yahoo.com/evt=51731/*http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ%0A" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Try it now.</a><p>
</p></span><br>_______________________________________________<br>XeTeX mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:postmaster@tug.org">postmaster@tug.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://tug.org/mailman/listinfo/xetex" target="_blank">
http://tug.org/mailman/listinfo/xetex</a><br><br></blockquote></div><br>