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

Combine unknown characters into a common <text> element. (mathjax/MathJax#2672) #903

Merged
merged 3 commits into from
Mar 11, 2023

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Feb 15, 2023

This PR groups runs of unknown characters into a single <text> element in SVG output, just as was implemented in CHTML in #734 in commit 115c542. It also makes the computation of the bounding box consistent with that, since text with combining characters will have a different width when grouped together than when handled separately. (The bounding box computations were wrong for CHTML, but since most of the CHTML doesn't depend on those computations, not wasn't caught.) For example, with \text{🇦🇩}, the output was correct but the bounding box computation was wrong.

Resolves issue mathjax/MathJax#2672.

@dpvc dpvc requested a review from zorkow February 15, 2023 15:21
@dpvc dpvc added this to the v4.0 milestone Feb 15, 2023
Copy link
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

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

lgtm with minor changes.

@dpvc dpvc deleted the branch post-linebreaks March 3, 2023 15:09
@dpvc dpvc closed this Mar 3, 2023
@dpvc dpvc reopened this Mar 11, 2023
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