[XeTeX] Another Bug of XeTeX
Jonathan Kew
jonathan at jfkew.plus.com
Fri Dec 5 12:22:30 CET 2008
On 6 Dec 2008, at 00:00, VAFA KHALIGHI wrote:
> if you try the following minimal plain TeX document:
>
> %%%%%%%%%%%%%%%%%%%%%%
> This is a test.
> \leftline{Vafa Khalighi}
> \end
> %%%%%%%%%%%%%%%%%%%%%%
> You get the result that is one of my attachments. (acceptable).
It only looks OK because the lines are so short. Note that it is not
really what might have been "expected"; your name does not occur flush-
left on a line. Using \leftline (or \centerline or \rightline) within
the text of a paragraph doesn't really make sense; these commands
create an entire line, and should be used in vertical mode (between
paragraphs), not within them.
>
>
> But if you try the following example
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> \TeXXeTstate=1
> \font\body="XB Zar:script=arab" at 12pt\body
> \beginR
> این یک آزمایش است.
> \rightline{\body وفا خلیقی}
> \end
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> You get a strange behaviour from XeTeX which is shown in the other
> attachment.
Put \par or a blank line before \rightline, to end the paragraph.
Clearly Knuth didn't intend the \....line commands to be used quite
like this. You could redefine them to include an initial \par, I
suppose.
>
>
> It seems that this is a bug of XeTeX or more precisely a bug of etex.
>
> Are there any solutions in the macro level so that \rightline in
> both LTR and RTL remains in the right hand side?
> --
> ``Life is not empty,
> There is kindness, there is apple and there is faith
>
> One day will come,
> and to a mendicant I will endow a jasmine''
>
> -- Sohrab Sepehri
> <test-L..pdf><test-
> R.pdf>_______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
More information about the XeTeX
mailing list