[XeTeX] xunicode for maths
Jonathan Kew
jonathan_kew at sil.org
Mon Feb 20 09:55:28 CET 2006
On 20 Feb 2006, at 6:58 am, Will Robertson wrote:
>> Maybe I should extend \char so as to directly handle values up to
>> "10FFFF, generating a pair of nodes when necessary, and similarly
>> extend \XeTeXcharglyph to handle the same range.
>
> I think the unicode people would be mad at you for splitting their
> encoding into two non-equal (in the eyes of \char) halves.
Maybe, though I suppose I could try to argue that \char is an
internal detail of the implementation, and what users should work
with would be a higher-level \USV command that does the Right Thing
with whatever character code it's given. :)
However....
> It would be a good idea, I reckon, to have \char transparently deal
> with unicode scalar values, even if XeTeX uses UTF-16 codes
> internally to pass around data.
....I've just implemented this for 0.991 (coming soon): \char,
\chardef, and \XeTeXcharglyph will accept character codes up to
10FFFF. So you'll be able to throw away that \USV macro.
(Not in math mode yet, though--\mathchar is another matter.)
JK
More information about the XeTeX
mailing list