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

Clarify layout of large operators algorithm #276

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

icesfont
Copy link

Please see #250.

For now, if the largeop doesn't have the symmetric property, then the center of the stretchy glyph is not shifted towards the center of the target. I'm not sure how common of a case largeop without symmetric is; the operator dictionary has no such cases, and the issue linked only concerns symmetric + largeop. If this turns out to be a problem then perhaps the center should be shifted to the center of the original unstretched glyph.

This PR should be complemented by changes to MathML Full too -- c.f.:

https://www.w3.org/TR/MathML/chapter3.html#presm.table-mo
https://www.w3.org/TR/MathML/chapter3.html#presm.op.stretch
https://www.w3.org/TR/MathML/chapter3.html#id.3.2.5.8.2

Copy link
Contributor

@fred-wang fred-wang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't check the details of the math, but that looks good overall. I wonder whether we could factor out some logic that is shared with the vertical stretching? Maybe that can simplify things...

Also, I believe this is actually changing current behavior, so we would need to check whether the WG is ok with that.

spec.html Outdated Show resolved Hide resolved
@icesfont icesfont force-pushed the fix/largeop-clarification branch from d2a3cff to 0948a91 Compare January 7, 2025 14:47
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

Successfully merging this pull request may close these issues.

2 participants