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

Superscript consistent baseline in rows. #255

Open
orbita2d opened this issue Aug 11, 2024 · 1 comment
Open

Superscript consistent baseline in rows. #255

orbita2d opened this issue Aug 11, 2024 · 1 comment

Comments

@orbita2d
Copy link

<math xmlns="&mathml;">
<mrow>
<msubsup>
    <mi>J</mi>
    <mrow><mi>i</mi><mi>j</mi></mrow>
    <mrow><mi>&alpha;</mi><mi>&beta;</mi></mrow>
</msubsup>
<msup>
   <mi>S</mi>
   <mi>&alpha;</mi>
</msup>
</mrow>
</math>

In this example, because of the algorithm described in
https://w3c.github.io/mathml-core/#base-with-subscript-and-superscript
the superscripts have different baselines, in a way which harms readability (in my opinion).
I would be interested to see if an alternative algorithm could try find a SuperShift (SubShift) for the row in it's entirety, and so show the scripts on consistent baselines across the row.

@orbita2d
Copy link
Author

As an aside, I'm surprised that this gap limit is reached on the above example at all. Is this something which should maybe be tweaked in the font? (https://w3c.github.io/mathml-core/#dfn-subsuperscriptgapmin)

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

1 participant