<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>Dear Abdurrahman,</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>As mentioned by Jonathan Kew and François Charette you don't need the file "testfontavailability.tex", as long as you know whether the fonts you define in your source file are indeed available on your system. Also you can define your fonts in the standard TeX way, as you may see in the example below (which is the file you sent, slightly modified).</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>It is also possible to use ConTeXt + XeTeX in order to have the powerful features of ConTeXt.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Best regards: Otared K.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR><DIV><DIV>On 11 juil. 2007, at 6:55, Abdorrahman Manian wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Hello to all<BR><BR>I'm a completely newbie to tex and xetex typecasting system. I have installed xetex in ubuntu from texlive but when I want to compile the attached file, I get this error  "I can't find file testfontavailability'". The sample file is written in Farsi (Persian) and introduced as a <SPAN style="font-style: italic;">sample file</SPAN> for xetex. I've searched my machine and internet for "testfontavailability" file but with no success at all.<BR>Thanks in advance.<BR> <BR>-- <BR>Abdurrahman Manian<SPAN><DIV>&lt;persian-xetex.tex&gt;</DIV></SPAN><SPAN><DIV>&lt;persian-xetex.log&gt;</DIV></SPAN><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">XeTeX mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:postmaster@tug.org">postmaster@tug.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://tug.org/mailman/listinfo/xetex">http://tug.org/mailman/listinfo/xetex</A></DIV> </BLOCKQUOTE></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>%% file persian-test.tex</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>\TeXXeTstate=1</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>\nopagenumbers</DIV><DIV>\frenchspacing</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>\font\title="B Titr:script=arab" at 16pt</DIV><DIV>\font\body="Nazli:script=arab" at 12pt \body</DIV><DIV>\font\romfont="Times New Roman" at 11pt \def\rom#1{{\beginL\romfont #1\endL}}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>\parindent=0.5in \baselineskip=22pt \lineskiplimit=-1000pt</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>\def\s#1{\bigskip \rightline{\beginR\heading #1\endR}\nobreak\medskip}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>% Define the \XeTeX logo:</DIV><DIV>\def\reflect#1{{\setbox0=\hbox{#1}\rlap{\kern0.5\wd0</DIV><DIV>  \special{x:gsave}\special{x:scale -1 1}}\box0 \special{x:grestore}}}</DIV><DIV>\def\XeTeX{\leavevmode</DIV><DIV>  \setbox0=\hbox{X\lower.5ex\hbox{\kern-.15em\reflect{E}}\kern-.1667em \TeX}%</DIV><DIV>  \dp0=0pt\ht0=0pt\box0 }</DIV><DIV>\def\XeLaTeX{\leavevmode</DIV><DIV>  \setbox0=\hbox{X\lower.5ex\hbox{\kern-.15em\reflect{E}}\kern-.0833em \LaTeX}%</DIV><DIV>  \dp0=0pt\ht0=0pt\box0 }</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>\centerline{\beginR\title  فارسی نویسی در \rom{\XeTeX} \endR}</DIV><DIV>\everypar={\setbox0=\lastbox \beginR \box0 }</DIV><DIV>\bigskip</DIV><DIV>با سلام خدمت دوستان گرامی و عزیز</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>بالاخره یک نرم افزار مناسب و امروزی برای تایپ و حروف چینی فارسی در \rom{\TeX} تهیه شده. که البته حدود یک سال قدیمی است و از وجود آن با خبر نبودم. شما می توانید این برنامه را بر روی سیستم عامل لینوکس و یا مک نصب و استفاده کنید. تایپ کردن فایل سورس را می توانید در ویراشگر دلخواه خود انجام دهید و از هر فونتی که بر روی سیستم شما نصب است استفاده کنید. تمامی فایل های سورس را می توانید بر اساس استاندار های یونیکد تهیه کنید.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>سیستم را روی لینوکس دبیان نصب و آزمایش کردم و برای تهیه‌ای فایل سورس نیز از ویرایگر‌ متن \rom{ gedit} استفاده کردم.</DIV><DIV>در اسرع وقت نسبت به تهیه یک راهنمای نصب به زبان فارسی نیز اقدام خواهم کرد.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>از این سایت دریافت کنید \rom{<A href="http://scripts.sil.org/xetex}">http://scripts.sil.org/xetex}</A> </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>موفق باشید</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>کیا تیموریان</DIV><DIV>\vskip 1in</DIV><DIV>\noindent یک مثال ساده از  \rom{\TeX }:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>$$\vbox{</DIV><DIV>\eqalignno{\biggl(\int_{-\infty}^\infty e^{-x^2}\,dx\biggr)^2</DIV><DIV>  &amp;=\int_{-\infty}^\infty\int_{-\infty}^\infty</DIV><DIV>    e^{-(x^2+y^2)}\,dx\,dy\cr</DIV><DIV>  &amp;=\int_0^{2\pi}\int_0^\infty e^{-r^2}r\,dr\,d\theta\cr</DIV><DIV>  &amp;=\int_0^{2\pi}\biggl(-{e^{-r^2}\over2}</DIV><DIV>    \bigg\vert_{r=0}^{r=\infty}\,\biggr)\,d\theta\cr</DIV><DIV>  &amp;=\pi.&amp;\cr}</DIV><DIV>}$$</DIV><DIV>\hrule</DIV><DIV>\bye</DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>