wiki-mathjax icon indicating copy to clipboard operation
wiki-mathjax copied to clipboard

Some Text Rendering Errors

Open meatflavourdev opened this issue 7 years ago • 2 comments

Is the problem with the Wikipedia page, Wikipedia's code, wiki-mathjax, or MathJax?

Take a look: https://www.wikiwand.com/en/Kepler%27s_laws_of_planetary_motion#/Newton.27s_law_of_gravitation

After the line "In the special case where there are only two bodies in the world, Earth and Sun, the acceleration becomes" several formulas show unrendered portions of the formula which shows up as a garble which look like this:

r¨Earth=GmSunr((Earth)),{\text{Sun}}−2r^((Earth)),{\text{Sun}}r¨Earth=GmSunr((Earth)),{\text{Sun}}−2r^((Earth)),{\text{Sun}}

Here is the unrendered formula for the equation above:

{\displaystyle \mathbf {\ddot {r}} {\text{Earth}}=Gm{\text{Sun}}r_((\text{Earth)),{\text{Sun}}}^{-2}{\hat {\mathbf {r} }}_((\text{Earth)),{\text{Sun}}}}

Is wiki-mathjax to blame? Is there a mistake in the way the formula is entered into Wikipedia? Or...? This Wikipedia page has several such examples which seem to show up in the same section... leading me to believe that either the formulas are entered improperly (yet function correctly with Wikipedia's backend renderer) or that wiki-mathjax is failing to render well-formed formula code...

meatflavourdev avatar Sep 29 '17 04:09 meatflavourdev

I believe the problem is still the same: there is a bug in Wikiwand's engine that breaks the parity of the braces in the equation's description. On Wikipedia itself the equations are rendered properly image

As you can see in the raw TeX, there are few places in these equations where curly braces are pared with parentheses, e.g. \text{Earth) which is obviously wrong. There is no way around it, but to make Wikiwand to fix it. Unfortunately, they ignored my bug report, which I have submitted couple of years ago (sic!).

bgromov avatar Sep 29 '17 08:09 bgromov

Ahh, yes. That appears to be the case... I'll try contacting Wikiwand support-- hopefully, they can be convinced to fix this minor bug...

meatflavourdev avatar Sep 29 '17 16:09 meatflavourdev