[XeTeX] ifcat changed?

Apostolos Syropoulos asyropoulos at yahoo.com
Sun Apr 16 17:12:34 CEST 2017

>As far as I can tell from the sources, the bug likely was there from the
>start, and only affects \span, \cr and \crcr.  Basically, their
>character code is too small.  This can be fixed by changing
>"special_char" from 65537 to 1114112 or so, to make the values of
>"span_code", "cr_code", "cr_cr_code" be above "biggest_usv".
Exactly! This is the difference between XeTeX and luaTeX. The code that follows isfrom xetex.web

@d special_char=65537 {|biggest_char+2|}@d span_code=special_char {distinct from any character}
@d cr_code=span_code+1 {distinct from |span_code| and from any character}
@d cr_cr_code=cr_code+1 {this distinguishes \.{\\crcr} from \.{\\cr}}
and this code is from luaTeX's align.h:
#  define span_code 1114114     /*  {|biggest_char+3|} */
#  define cr_code (span_code+1) /* distinct from |span_code| and from any character */
#  define cr_cr_code (cr_code+1)        /* this distinguishes \.{\\crcr} from \.{\\cr} */

Apostolos Syropoulos
Xanthi, Greece
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20170416/db9a1555/attachment-0001.html>

More information about the XeTeX mailing list