<div>Otared,</div>
<div>Thanks a lot. I am going to give it a try.</div>
<div>&nbsp;</div>
<div>Kind Regards</div>
<div>Ali<br><br>&nbsp;</div>
<div><span class="gmail_quote">2007/11/29, Otared Kavian &lt;<a href="mailto:otared@gmail.com">otared@gmail.com</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">&gt; On 27 Nov 2007, at 9:10 am, Ali Majdzadeh wrote:<br>&gt;<br>&gt;&gt; Hello<br>&gt;&gt; Is it possible to produce page numbers in Persian? The same
<br>&gt;&gt; question exists about footnote numbers, endnote numbers and heading<br>&gt;&gt; numbers.<br>&gt;&gt;<br><br><br>Hi Ali,<br><br>Actually, following Mojca&#39;s answer, using ConTeXt + XeTeX, that is the<br>format called XeConTeXt, using Persian numerals is quite easy: one has
<br>only to specify how the nmbers are converted to such and such glyphs.<br>Below is a complete working example.<br>Note that there is still a problem with the alignment of sections<br>headers…<br>This also can be fixed but right now I don&#39;t remember how and I don&#39;t
<br>have time to search in my archives :-)<br><br>Best reards: OK<br><br>%%%%%%%%%%<br>%!TEX TS-program = xecontext<br><br>% following Mojca M.&#39;s suggestions:<br><br>\TeXXeTstate=1<br>\everypar={\setbox0=\lastbox \beginR \box0 }
<br><br>\font\PersianA=&quot;B Zar&quot; at 10pt<br><br>\font\PersianB=&quot;X Ferdosi&quot; at 10pt<br><br>% persian page numbers:<br>&nbsp;&nbsp; \setuppagenumbering[conversion=persiannumerals,style=\PersianA]<br><br>% persian heading numbers:
<br>&nbsp;&nbsp; \setuphead[section][conversion=persiannumerals,numberstyle=<br>\PersianA]<br>&nbsp;&nbsp; \setuphead[subsection][conversion=persiannumerals,numberstyle=<br>\PersianA]<br><br>% persian footnotes numbers:<br>&nbsp;&nbsp; \setupfootnotes[conversion=persiannumerals,style=\PersianA]
<br><br>% persian item numbers<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \setupitemize[conversion=persiannumerals,stopper=,left={(},style=<br>\PersianA]<br><br>\starttext<br><br>\PersianB<br>\beginR<br><br>\section{<br>\PersianB<br>گفتار یکم<br>}<br><br>
<br>\startitemize[n]<br>\dorecurse{5}{<br>\item<br>اين آزمايش نوشتن فارسى است بدون هيچ<br>آمادگى<br><br>۱۲۳۴۵۶۷۸۹۰<br><br>\item<br>.خانه دوست كجاست؟ در فلق بود كه پرسيد<br>سوار<br><br>۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹ ۰<br>}<br>\stopitemize
<br><br>\subsection{<br>\PersianB<br>بخش یکم<br>}<br><br>۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹ ۰<br><br><br>\subsection{<br>\PersianB<br>بخش دوم<br>}<br><br>۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹ ۰<br><br>\stoptext<br>%%%%%%%%%%<br><br><br>_______________________________________________
<br>XeTeX mailing list<br><a href="mailto:postmaster@tug.org">postmaster@tug.org</a><br><a href="http://tug.org/mailman/listinfo/xetex">http://tug.org/mailman/listinfo/xetex</a><br></blockquote></div><br>