<html><head></head><body><div style="font-family:courier new, courier, monaco, monospace, sans-serif;font-size:medium;"><div><div>>As far as I can tell from the sources, the bug likely was there from the<br clear="none">>start, and only affects \span, \cr and \crcr. Basically, their<br clear="none">>character code is too small. This can be fixed by changing<br clear="none">>"special_char" from 65537 to 1114112 or so, to make the values of<br clear="none">>"span_code", "cr_code", "cr_cr_code" be above "biggest_usv".</div><div><br></div><div>Exactly! This is the difference between XeTeX and luaTeX. The code that follows is</div><div>from xetex.web<br></div><div><br></div><div>@d special_char=65537 {|biggest_char+2|}</div><div>@d span_code=special_char {distinct from any character}<br>@d cr_code=span_code+1 {distinct from |span_code| and from any character}<br><div>@d cr_cr_code=cr_code+1 {this distinguishes \.{\\crcr} from \.{\\cr}}</div><div><br></div><div>and this code is from luaTeX's align.h:</div><div><br></div></div><div># define span_code 1114114 /* {|biggest_char+3|} */<br># define cr_code (span_code+1) /* distinct from |span_code| and from any character */<br># define cr_cr_code (cr_code+1) /* this distinguishes \.{\\crcr} from \.{\\cr} */<br></div><div><br></div><div><br></div><div>A.S.<br></div><div class="yqt1327706399" id="yqtfd02580"><span style="font-family:courier, monaco, monospace, sans-serif;">----------------------</span><br style="font-family:courier, monaco, monospace, sans-serif;"><span style="font-family:courier, monaco, monospace, sans-serif;">Apostolos Syropoulos</span><br style="font-family:courier, monaco, monospace, sans-serif;"><span style="font-family:courier, monaco, monospace, sans-serif;">Xanthi, Greece</span><br clear="none"> <br clear="none"></div></div></div></body></html>