[luatex] incompatible change to mathcode

Keith J. Schultz schultzk at gmx.net
Wed May 9 08:52:24 CEST 2012


Hi All,

Something must be dreadfully amiss here!!

1E 00 06 1 is not a hex code at All !!!! it is missing a digit!

It should be be at least  01 E0 00 61 !

Just an observation!

regards
	Keith.

Am 09.05.2012 um 03:55 schrieb David Carlisle:

> 
> Thanks for your reply,
> 
>> We extend other primitives as well, e.g. \char (XeTeX does, too).
> 
> \char is less problematic as it doesn't return a value unlike \mathcode.
> 
>> 
>> IMO, I think we should just extend \mathchardef in a similar way, so
>> that \mathchardef\matha\mathcode`a works again.
> 
> That would at least make the changes consistent, so would be an improvement but they would still be dreadfully incompatible with TeX.
> 
> It wouldn't for example be enough to fix the latex bug report referenced in my previous mail. It would move the error to somewhere else.
> 
> bm uses \mathchardef\matha\mathcode`a followed by \meaning\matha to get the hex mathcode which it then splits up to extract the components.
> 
> even if the \mathchardef did not generate an error the code will fail completely, and to be honest after reading the luatex reference I couldn't see how to fix it. Perhaps it's just because it is late but....
> 
> with latex
> 
> \mathcode`a gives hex 7161
> 
> so that's mathalpha, letters  char 61
> 
> with lualatex I get
> 
> 1E00061
> 
> but apart from the obvious 61 at the end I have no idea where that number comes from?
> 
> 
> David
> 
> 
> 
> 
> 
> 




More information about the luatex mailing list