[XeTeX] Unicode Arabic inside English with XeTeX

Manuel Souto Pico m.soutopico at gmail.com
Sun Mar 11 18:15:03 CET 2007


Hi Herbert,

2007/3/11, Herbert Schulz <herbs at wideopenwest.com>:
>
>
> On Mar 10, 2007, at 6:39 PM, Manuel Souto Pico wrote:
>
> > \newcommand{\ar}[1]{\font\ar="Scheherazade-AAT" at 12 pt {\ar#1}
> > \normalfont}
> >
> > This is something that allows me to print Arabic text like \ar
> > {سلام عليكم} within Roman text.
> >
> > Before I had:
> >
> > \font\ar="Scheherazade-AAT" at 12 pt
> >
> > and then I got the Arabic text typing {\ar سلام عليكم}
> > instead.
> >
>
> Howdy,
>
> It seems silly to be defining the font over and over with each use.
> Why not something like
>
> \font\arabic="Scheherazade-AAT" at 12 pt
>
> and then
>
> \newcommand{\ar}[1]{{\arabic\selectfont#1}}


Sorry, this doesn't work for me. But don't worry, I used the \newfontfamily
command (see my other replies). Thanks anyway.

(note the nested braces). If you're not very careful (unless you're
> very lucky) having a double meaning for \ar (both a command name and
> a font) can lead to all sorts of problems.


Ok, I get the point. Different names for differnet things. Thanks.

Regards, Manuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20070311/e55b225b/attachment.html 


More information about the XeTeX mailing list