[XeTeX] Problem with typesetting table with Arabic characters with TeX Live 2009 on Ubuntu Jaunty 9.04

Edin Salkovic edin.salkovic at gmail.com
Thu Aug 13 14:56:18 CEST 2009

On Wed, Aug 12, 2009 at 1:59 PM, Jonathan Kew<jfkthame at googlemail.com> wrote:
> The kind of line-end, by itself, shouldn't make a difference; AFAIK all
> current TeX implementations are line-ending-neutral, and accept either
> DOS/Windows or Unix-style line endings without fuss.
> However, your "Windows version" of the file actually seems to contain a
> somewhat broken mixture of conventions. Hex-dumping shows:
> 00000000  5c 64 6f 63 75 6d 65 6e  74 63 6c 61 73 73 7b 61
> (...)
> Looking at the data preceding the table shows that the line-endings are just
> LF (0x0A), i.e., Unix-style. But the lines of your table, which are the
> crucial part here, end with CR CR LF (look at offsets 017E..0180 and
> 019B..019D).

The reason: I just copy-pasted (in Emacs) the "crucial part" from my
generated tex file (with Python-win32) into the minimal.tex file.

> Here, there is not only a CR/LF pair (which TeX, regardless of
> platform, should read correctly as a single newline) but ALSO an extra
> preceding CR, which will be read as ANOTHER newline.

That's due to a bug in my Python code that's fixed now (with
"universal newlines" http://www.python.org/dev/peps/pep-0278/ ).


More information about the XeTeX mailing list