[XeTeX] xetex needs testfontavailability file???

Otared Kavian otared at gmail.com
Wed Jul 11 12:27:47 CEST 2007


Dear Abdurrahman,

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).

It is also possible to use ConTeXt + XeTeX in order to have the  
powerful features of ConTeXt.

Best regards: Otared K.


On 11 juil. 2007, at 6:55, Abdorrahman Manian wrote:

> Hello to all
>
> 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 sample file for xetex. I've searched  
> my machine and internet for "testfontavailability" file but with no  
> success at all.
> Thanks in advance.
>
> -- 
> Abdurrahman Manian
> <persian-xetex.tex>
> <persian-xetex.log>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex

%% file persian-test.tex

\TeXXeTstate=1

\nopagenumbers
\frenchspacing

\font\title="B Titr:script=arab" at 16pt
\font\body="Nazli:script=arab" at 12pt \body
\font\romfont="Times New Roman" at 11pt \def\rom#1{{\beginL\romfont #1 
\endL}}

\parindent=0.5in \baselineskip=22pt \lineskiplimit=-1000pt

\def\s#1{\bigskip \rightline{\beginR\heading #1\endR}\nobreak\medskip}

% Define the \XeTeX logo:
\def\reflect#1{{\setbox0=\hbox{#1}\rlap{\kern0.5\wd0
   \special{x:gsave}\special{x:scale -1 1}}\box0 \special{x:grestore}}}
\def\XeTeX{\leavevmode
   \setbox0=\hbox{X\lower.5ex\hbox{\kern-.15em\reflect{E}}\kern-. 
1667em \TeX}%
   \dp0=0pt\ht0=0pt\box0 }
\def\XeLaTeX{\leavevmode
   \setbox0=\hbox{X\lower.5ex\hbox{\kern-.15em\reflect{E}}\kern-. 
0833em \LaTeX}%
   \dp0=0pt\ht0=0pt\box0 }


\centerline{\beginR\title  فارسی نویسی در \rom{\XeTeX}  
\endR}
\everypar={\setbox0=\lastbox \beginR \box0 }
\bigskip
با سلام خدمت دوستان گرامی و عزیز

بالاخره یک نرم افزار مناسب و امروزی  
برای تایپ و حروف چینی فارسی در \rom{\TeX}  
تهیه شده. که البته حدود یک سال قدیمی  
است و از وجود آن با خبر نبودم. شما می  
توانید این برنامه را بر روی سیستم عامل  
لینوکس و یا مک نصب و استفاده کنید. تایپ  
کردن فایل سورس را می توانید در ویراشگر  
دلخواه خود انجام دهید و از هر فونتی که  
بر روی سیستم شما نصب است استفاده کنید.  
تمامی فایل های سورس را می توانید بر  
اساس استاندار های یونیکد تهیه کنید.

سیستم را روی لینوکس دبیان نصب و آزمایش  
کردم و برای تهیه‌ای فایل سورس نیز از  
ویرایگر‌ متن \rom{ gedit} استفاده کردم.
در اسرع وقت نسبت به تهیه یک راهنمای  
نصب به زبان فارسی نیز اقدام خواهم کرد.

از این سایت دریافت کنید \rom{http://scripts.sil.org/ 
xetex}


موفق باشید

کیا تیموریان
\vskip 1in
\noindent یک مثال ساده از  \rom{\TeX }:

$$\vbox{
\eqalignno{\biggl(\int_{-\infty}^\infty e^{-x^2}\,dx\biggr)^2
   &=\int_{-\infty}^\infty\int_{-\infty}^\infty
     e^{-(x^2+y^2)}\,dx\,dy\cr
   &=\int_0^{2\pi}\int_0^\infty e^{-r^2}r\,dr\,d\theta\cr
   &=\int_0^{2\pi}\biggl(-{e^{-r^2}\over2}
     \bigg\vert_{r=0}^{r=\infty}\,\biggr)\,d\theta\cr
   &=\pi.&\cr}
}$$
\hrule
\bye

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20070711/500070dc/attachment.html 


More information about the XeTeX mailing list