-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What counts as a Unicode engine? #7
Comments
FYI, \Uchar and \Ucharcat are described in 19f0847. |
In the base latex2e code there is in most places a binary choice
during format creation latex.ltx more or less arbitrarily tests \ifx\Umathchar or \ifx\Umathcode to distinguish these, not because math handling is involved, they were just convenient markers that were in xetex and luatex, we could have picked \Uchar.. Clearly the (u)ptex variants make the split between valid input character ranges and allowable font formats somewhat different from the binary split described above, which is OK, as long as we don't accidentally break it because we don't understand it:-) In particular is it possible that uptex would need extended character codes in math and add something like \Umathcode?, if it did would the current tests in latex.ltx do the right thing or the wrong thing? The expl3 expandable upper-lower case changing functions for example assume that \Uchar is available in "unicode engines" to generate the character, or that you can do an expandable 256 character switch (in non-unicode engines where \Uchar is not available, but 256 characters is all you need) It may be that most of the tests are OK and will remain OK as \Uchar is added. We could add some tests, but speaking for myself it is not clear what the right thing is for many of the cases. |
@davidcarlisle Sorry for my late response:
I don't think \Umath... is possible in the future; we already have \omath... derived from Omega. Each math fonts can have only 256 characters (compared to 65536 of Omega) because they are defined by TFM not OFM. We don't have any plan to use JFM for math fonts, partly because JFM can define only 256 different widths (cf. Omega OFM can define 65536 different widths).
I don't think such functions should be enabled for Japanese character code. You would not be happy to deal with the strange beasts lying in Japanese encoding ;-) Supporting only 256 characters is OK enough for us.
It seems that no package in TeX Live uses \Uchar or \Ucharcat to detect Unicode-compliant engines; all of such codes are using \Umath.... Thus, I think it's safe enough. |
@aminophen thanks for the feedback |
From TeX.SX chat (after addition of \Uchar and \Ucharcat)
The text was updated successfully, but these errors were encountered: