Skip to content
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

Variation Selectors? #14

Open
hckiang opened this issue Jun 11, 2021 · 2 comments
Open

Variation Selectors? #14

hckiang opened this issue Jun 11, 2021 · 2 comments

Comments

@hckiang
Copy link

hckiang commented Jun 11, 2021

Have you considered Variation Selectors might be a solution to this? Currently subscript/superscript can be done in OpenType GSUB look up table (in a non-mathematical setting, I am not talking about the OpenType math table, which is an entirely different thing than GSUB) - this has a disadvantage that the editor/wordprocessors must support OpenType and there is no unicode code point allocated to the subscripts. But the slashed zero might be an example of how stylistic variants can be compatible with both GSUB and Unicode...

If we look up the Wikipedia page of slashed zero, we can see that U+FE00 followed by zero should give us the slashed zero. So there are (at least) two ways to type the slashed zero: either using the OpenType stylistic alternate feature ('ss01', or 'zero'), which requires the application to directly support enabling/disabling these features, or simply having a ligature on 'U+FE00 U+0030' (using 'liga'). The letter approach is more widely compatible because 'liga' feature is enabled by many font rendering engines, so the IDE/GUI developers doesn't need to take care of that, and it will 'just work'.

Now going back to superscripts/subscripts, I can imagine having 'U+FExx U+0065' mapped to 'e subscript', and this solution only requires two additional code points, namely the 'superscript variational selector' and 'subscript variational selector'... What do you think about this?

@stevengj
Copy link
Owner

stevengj commented Jun 11, 2021

The mechanism is intended for variant forms where, generally, if the variant form is unavailable, displaying the base character does not change the meaning of the text, and may not even be noticeable by many readers.

This doesn't seem to apply to mathematical sub/superscripts.

and this solution only requires two additional code points, namely the 'superscript variational selector' and 'subscript variational selector'

Our current proposal is also for two additional codepoints, just interpreted as "modifier" characters rather than variation selectors.

@hckiang
Copy link
Author

hckiang commented Jun 11, 2021

Good Point! Another thing is that do you think '\in' should also has subscript, or do you think this is too much? It'd be nice to have a variable name like '\sum_{i\in I} x_i'... I'd really want to see this getting approved soon :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants