-
Notifications
You must be signed in to change notification settings - Fork 1
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
Nitpicking: periods and other punctuation characters inside math #32
Comments
How would this work with the |
You should have the punctuation in the image, right? Why would you use the ? (just curious) |
Now that I think back on this, maybe my idea was a bit nitpicky. In practice this won't have much of an effect. I say we would should include the punctuation in the image. I didn't quite catch what you meant by this:
Do you mean the question mark? Or is there a word a missing? |
@samimaattaCelia I was just too quick. I didn't check the sentence. How/Why would you use altimg? Then again, regarding the punctuation issue: In LaTeX you will always place the punctuation outside of the equation. $ \frac{a}{b} $. Is that the same with MathML? |
Relates to grammar issues that rose up in #24. Sometimes math equation (or similar) is the last "word" in a sentence. For proper math writing these also end in a period or similar punctuation characters.
My suggestion is that these punctuation characters are written with
<mtext>
elements inside the<math>
element.Visual rendering in practice
Rendered in Firefox:
The first quadratic formula is written with
<p><math>[content]<mtext>.</mtext></math></p>
and the second is<p><math>[content]</math>.</p>
For the first one the period is neatly after the equation. For the second one the period drops below the equation, which is not correct. The effect is more pronounced if there was a comma instead of a period and the sentence continued.
The text was updated successfully, but these errors were encountered: