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

Nitpicking: periods and other punctuation characters inside math #32

Open
samimaattaCelia opened this issue Jun 13, 2024 · 4 comments
Open

Comments

@samimaattaCelia
Copy link
Collaborator

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:
kuva

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.

@samimaattaCelia
Copy link
Collaborator Author

How would this work with the altimg attribute? Would it be awkward to have the punctuation in the image? Relates to #31.

@Lisahartun
Copy link

You should have the punctuation in the image, right? Why would you use the ? (just curious)

@samimaattaCelia
Copy link
Collaborator Author

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:

Why would you use the ? (just curious)

Do you mean the question mark? Or is there a word a missing?

@Lisahartun
Copy link

@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?

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

2 participants