[XeTeX] bidi and fontspec
maxwell
maxwell at umiacs.umd.edu
Fri Jun 24 23:07:47 CEST 2016
I believe I've run into a bug in the interaction of fontspec and bidi in
the 2016 TeXLive distribution. However, it appears to be so simple to
trigger that I'm wondering whether it's something I'm doing.
The WME is:
------------
\documentclass{report}
\usepackage{fontspec}
\usepackage{bidi}
\begin{document}
The number 12. The number 34.56. Some more text.
\end{document}
------------
The result of running xelatex on the above is the text:
------------
The number .12 The number .56.34 Some more text.
------------
You'll notice that the two numbers appear in reverse order across the
periods--that is, if you have
<number><period>
in the input file, you get
<period><number>
in the PDF. But the digits inside <number> are in the correct order.
Other punctuation that I've tried (including the comma) do not seem to
trigger this bug, only the period. (Hexadecimal digits A-F block the
reversal, too :-).)
Loading fontspec seems to be necessary for this bug to happen. And I'm
not actually invoking either bidi or fontspec.
Can someone reproduce this?
Mike Maxwell
More information about the XeTeX
mailing list