[tex-live] Bug in \discretionary in XeLaTeX for Linux

Jonathan Kew jonathan_kew at sil.org
Mon Jun 4 11:48:07 CEST 2007

On 4 Jun 2007, at 10:07 am, Dr. Werner Fink wrote:

> On Fri, Jun 01, 2007 at 07:00:35PM +0100, Jonathan Kew wrote:
>> On 1 Jun 2007, at 3:48 pm, Zdenek Wagner wrote:
>>> Hello,
>>> after some problems with \discretionary I made a sample file which
>>> contains just path\discretionary{+}{:}{/} so that it outputs path/ 
>>> file
>>> if not hyphenated and
>>> path+
>>> :file
>>> if hyphenated. It works so in pdflatex. With XeLaTeX the same file
>>> yields path/le if not hyphenated and
>>> path+
>>> :le
>>> if hyphenated, i.e. two letters disappear.
>> Yes, this is due to a bug in XeTeX; it was identified (and fixed in
>> the XeTeX source repository) during the EuroBachoTeX conference
>> (thanks to Jano Kula for bringing it to my attention), but of course
>> the TeXLive release was well before this date.
>> If you're prepared to rebuild XeTeX from the development sources, the
>> problem should go away, otherwise you'll need to wait for a new
>> release; sorry!
> Do you have a patch around?

According to the subversion log, this was fixed at rev. 467 in the  
xetex repository. So you can get that change as a patch:


However, this won't quite apply to the sources currently in TeXLive  
(I just tried, but "2 out of 16 hunks FAILED"). I suppose it wouldn't  
be hard to back-port the fix, but it will depend on finding a little  


More information about the tex-live mailing list