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

fix(math): Suppress invisible operators in MathML #2177

Merged

Conversation

Omikhleia
Copy link
Member

Closes #2172

As noted in the issue, the use case is not entirely clear...

Here I went for pure suppression of these operators, while respecting lspace/rspace attributes if non-zero: at least, the test cases I've checked clearly look better, and we then are also closer to what MathJax outputs for the same MathML.

So it does seem to me that's a reasonable move...

@Omikhleia Omikhleia added the bug Software bug issue label Nov 23, 2024
@Omikhleia Omikhleia self-assigned this Nov 23, 2024
@Omikhleia Omikhleia requested a review from a team as a code owner November 23, 2024 17:49
@Omikhleia Omikhleia force-pushed the feat-mathml-invisible-operators branch 2 times, most recently from 8bffb56 to 1441922 Compare November 23, 2024 17:54
@Omikhleia
Copy link
Member Author

Omikhleia commented Nov 23, 2024

In particular, the MathML for the Schwinger-Dyson equation, from Josephus Javawaski's Browser Test -- which I mentioned in another issue at some point -- is now pitch perfect:

image

... "Achievement unlocked!" 🏅

@alerque alerque added this to the v0.15.7 milestone Nov 23, 2024
@alerque alerque force-pushed the feat-mathml-invisible-operators branch from 1441922 to 33c9fdb Compare November 23, 2024 19:09
@alerque
Copy link
Member

alerque commented Nov 23, 2024

PEG/LPEG/EPNF grammars are one place (so fat the only place?) where I don't just blindly apply stylua and allow manual formatting. I added an ignore to this bit of grammar. Also apparently the CI jub running stylua as a linter is evidently not working in PRs yet. It did work on the branches I was testing so I'm not sure what's up with that.

@alerque alerque merged commit 72faad5 into sile-typesetter:master Nov 23, 2024
19 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Software bug issue
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

MathML and Unicode invisible operators
2 participants