[XeTeX] Math class initialization in Unicde-aware engine

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Nov 28 08:23:05 CET 2019


On 28/11/2019 01:26, Doug McKenna wrote:
> Ross wrote:
> 
>> | If by ignoring you mean removing the character entirely, then that is surely not best at all.
>> |
>> | Most N Class (Normal) characters would be simply of the default \mathord class.
> 
> The parsing code in load-unicode-math-classes.tex installs values in the \Umathcode table that comport with some rule, which without too much of a close look seems to me to be whether the character code math class read from MathClass.txt is one of the eight possibilities that parsing code pays attention to, out of the 15 possible ones in the file. Therefore it appears to me that all entries in MathClass.txt that are marked with, for instance, 'N', are ignored with respect to installing any entry in the \Umathcode table.
> 
> It may be that such characters in MatClass.txt marked with 'N' take on the \mathOrd attribute by default when TeX finds them within math mode, I'm not sure without looking at its code.
> 
> Doug McKenna

The loader is intended for use in IniTeX mode and so relies on the 
defaults. As you say, characters are already \mathord unless actively 
set to something else.

Joseph



More information about the XeTeX mailing list