[XeTeX] bidi.sty for plain XeTeX

Zdenek Wagner zdenek.wagner at gmail.com
Sat Dec 22 17:11:44 CET 2012


2012/12/22 heer <heer at u.washington.edu>:
> John,
>
>         Your suggestion worked very well.  Arabic words and letters now read
> from right to left.  However, the letters all appear as separate letters
> rather than connected as they should be.  Is there any way to correct that?
>
Have you specified Script=Arabic when defining the Arabic font?
Without this XeTeX does not know that you want to connect the Arabic
letters. (I do not know the proper "plain" syntax for specifying the
script, I know only the syntax of the fontspec package but the plain
syntax should be similar.)

> Nicholas
>
>
> On Fri, 21 Dec 2012, John Was wrote:
>
>> I'm not an Arabist but have occasionally had to typeset articles in plain
>> XeTex using Arabic, and all I have in my file header is:
>>
>> \TeXXeTstate=1 % this turns e-TeX's bidi functionality on
>> \def\intextarab#1{{\arabic {\beginR #1\endR}}}
>>
>> I define \arabic as a call to my Arabic font (the definition of \arabic
>> changes according to whether  I'm in main text, footnote text, or extract
>> text).  To achieve Arabic I just give \intextarab{ARABIC TEXT HERE}. That
>> works fine for bits of Arabic embedded in English (or other left-to-right)
>> text in the same paragraph.  For separate Arabic paragraphs you really just
>> need
>> \beginR
>>
>> and at the end
>>
>> \endR
>>
>>
>> There are no doubt slicker ways of doing things, but that gave me good
>> output first time round so I stuck with it!
>>
>>
>> John
>>
>>
>>
>> ----- Original Message ----- From: "heer" <heer at u.washington.edu>
>> To: "Unicode-based TeX for Mac OS X and other platforms" <xetex at tug.org>
>> Sent: 21 December 2012 21:52
>> Subject: [XeTeX] bidi.sty for plain XeTeX
>>
>>
>>>
>>>  Is there a bidi.sty file for plain XeTeX or only for XeLateX? I'd like
>>> to be able to use Arabic script in plain XeTeX.
>>>
>>> Nicholas
>>>
>>>
>>> --------------------------------------------------
>>> Subscriptions, Archive, and List information, etc.:
>>>  http://tug.org/mailman/listinfo/xetex
>>
>>
>>
>>
>> --------------------------------------------------
>> Subscriptions, Archive, and List information, etc.:
>> http://tug.org/mailman/listinfo/xetex
>>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>  http://tug.org/mailman/listinfo/xetex



-- 
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz



More information about the XeTeX mailing list