>> (in which case the number is just there explicitly) >> >> is it just a function of the Unicode range? > > When x >= 0x10000 (i.e. outside BMP). > >
Guessed as much, thanks. Although thinking about it a bit more it doesn't really help knowing that as I need to parse out past "number" before I know what the number is which means parsing of \meaning is going to be a bit more complicated in all cases, but I suppose it's not too bad instead of simply \def\bm@getcharcode#1 #2 {`} I think I can do \def\bm@getcharcode#1 #2 #3#4{\if u#4\expandafter\@gobblefour\else`#3#4\fi} which I think should work for luatex and xetex: \def\a{the letter z} \def\b{the letter number "10000} \count@\expandafter\bm@getcharcode\a\relax \showthe\count@ \count@\expandafter\bm@getcharcode\b\relax \showthe\count@ shows > 122. l.11 \showthe\count@ ? > 65536. l.15 \showthe\count@ David -------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex