Last modified: 2014-10-16 17:44:34 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68572, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66572 - MathJax generates table markup with incorrect displaystyle
MathJax generates table markup with incorrect displaystyle
Status: RESOLVED FIXED
Product: Mathoid
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Peter Krautzberger
http://en.wikipedia.beta.wmflabs.org/...
:
Depends on:
Blocks: 65341
  Show dependency treegraph
 
Reported: 2014-06-13 06:46 UTC by Frédéric Wang
Modified: 2014-10-16 17:44 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Frédéric Wang 2014-06-13 06:46:39 UTC
MathJax currently interprets the default value for displaystyle on mtable as "inherited" instead of the value "false" specified in the MathML spec. The problem is that this affect the generated MathML output. For example for the markup

{\displaystyle {\begin{aligned}\Gamma (z)&=\int 
_{0}^{x}e^{{-t}}t^{{z-1}}\,{\frac  {{\mathrm  {d}}t}{t}}+\int 
_{x}^{\infty }e^{{-t}}t^{{z+1}}\,{\frac  {{\mathrm 
{d}}t}{t}}\\&=x^{z}e^{{-x}}\sum _{{n=0}}^{\infty }{\frac 
{x^{n}}{z(z+1)\cdots (z+n)}}+\int _{x}^{\infty }e^{{-t}}t^{{z}}\,{\frac  
{{\mathrm  {d}}t}{t}}.\end{aligned}}

on the Fourier Transform page, Mathoid generates <mtable> without explicit displaystyle="true" attribute and so the content render incorrectly in Gecko 29 and (I guess) MathPlayer.

See the discussion in http://lists.w3.org/Archives/Public/www-math/2014Jun/0001.html

An issue is opened in MathJax:

https://github.com/mathjax/MathJax/issues/839

We should cherry-pick the fix when it is ready before Math 2.0.
Comment 1 Gerrit Notification Bot 2014-10-11 16:43:06 UTC
Change 166198 had a related patch set uploaded by Frédéric Wang:
Experimental - Try to cherry-pick fix for MathJax's issue 839

https://gerrit.wikimedia.org/r/166198
Comment 2 Frédéric Wang 2014-10-11 16:44:52 UTC
As said on the commit, the code generated by Mathoid on
http://math-preview.wmflabs.org/wiki/Displaystyle is still incorrect with this patch. It seems that we'll have to wait MathJax 2.5 to see some progress here.
Comment 3 physikerwelt 2014-10-11 18:44:42 UTC
the change is merged but not deployed
Comment 4 physikerwelt 2014-10-11 18:55:57 UTC
I have the feeling that this a problem with mathjax core... maybe peter can comment on that
Comment 5 Frédéric Wang 2014-10-11 19:04:31 UTC
From discussion with Moritz:

- This is https://github.com/mathjax/MathJax/issues/839

- The scriptlevel change for https://github.com/dpvc/MathJax/commit/98e3f098bd519dabe9bf558736c5bf6438fbc217 are wrong, as confirmed by the Math WG

- https://github.com/dpvc/MathJax/commit/98e3f098bd519dabe9bf558736c5bf6438fbc217 does not work for me when applied to mathoid. Just a guess: perhaps it's because Mathoid uses the "show math source" extension rather than the NativeMML output ; or perhaps the TeX input Jax has to be fixed too.
Comment 6 Frédéric Wang 2014-10-11 19:08:10 UTC
This must be fixed in mathoid.
Comment 7 physikerwelt 2014-10-12 10:16:43 UTC
I reported that in https://github.com/mathjax/MathJax-node/issues/34
Comment 8 Gerrit Notification Bot 2014-10-12 22:46:46 UTC
Change 166358 had a related patch set uploaded by Physikerwelt:
Merge recent changes from MathJax

https://gerrit.wikimedia.org/r/166358
Comment 9 Gerrit Notification Bot 2014-10-13 16:21:54 UTC
Change 166198 abandoned by Frédéric Wang:
Experimental - Try to cherry-pick fix for MathJax's issue 839

Reason:
These changes are included in https://gerrit.wikimedia.org/r/#/c/166358/

https://gerrit.wikimedia.org/r/166198
Comment 10 Gerrit Notification Bot 2014-10-14 19:46:18 UTC
Change 166358 merged by GWicke:
Merge recent changes from MathJax

https://gerrit.wikimedia.org/r/166358

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links