W3C home > Mailing lists > Public > www-math@w3.org > July 2014

RE: Questions about Elementary Math

From: Grégory Pakosz <gpakosz@myscript.com>
Date: Thu, 3 Jul 2014 15:54:15 +0000
To: Neil Soiffer <NeilS@dessci.com>, David Carlisle <davidc@nag.co.uk>
CC: "www-math@w3.org" <www-math@w3.org>
Message-ID: <1404402855121.62283@myscript.com>
Neil,


Thanks for the information. MathFlow tools are not downloadable for evaluation.


That said, MathPlayer fails to render the following MathML, see screenshot attached.


<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mstyle displaystyle="true">
    <mstack stackalign="right">
      <mscarries>
        <none/>
        <mn> 1 </mn>
        <none/>
      </mscarries>
      <msrow>
        <mn> 241 </mn>
      </msrow>
      <msrow>
        <mo> + </mo>
        <none/>
        <mn> 29 </mn>
      </msrow>
      <msline position="0" length="3"/>
      <msrow>
        <mn> 270 </mn>
      </msrow>
    </mstack>
  </mstyle>
</math>


Gregory



________________________________
From: neil.soiffer@gmail.com <neil.soiffer@gmail.com> on behalf of Neil Soiffer <NeilS@dessci.com>
Sent: Thursday, June 26, 2014 7:03 PM
To: David Carlisle
Cc: Grégory Pakosz; www-math@w3.org
Subject: Re: Questions about Elementary Math

As noted, MathPlayer (which died at IE9 unless MS fixes a bug in enterprise mode -- enterprise mode was introduced a few months back), supports it. Along with MathPlayer, the MathFlow SDK tools (EquationComposer and DocumentComposer) also support it. That's where the rec's images came from.

    Neil



On Wed, Jun 25, 2014 at 8:10 AM, David Carlisle <davidc@nag.co.uk<mailto:davidc@nag.co.uk>> wrote:
On 24/06/2014 15:56, Grégory Pakosz wrote:

Hello,


I have two questions regarding elementary math as specified by MathML 3.0:


1) Is there a renderer out there that supports rendering additions, substractions, multiplications, and divisions with <mstack>, <mscarries>, and <mlongdiv> ? I failed to find one so far (downgrading IE to IE9 + installing a plugin isn't really future proof).


Possibly currently only MathPlayer supports it natively, and as you indicate that is not available in current IE
 however it's possible to transform the markup to mathml2 for rendering in other clients.

The MathJax "content mathml" extension and the firefox  mathml-mml3ff addon both work by using some XSLT of mine
to translate the markup to mathml2 mtable.

https://code.google.com/p/web-xslt/source/browse/trunk/ctop

Most of that content mathml to presentation transformation has also been re-encoded in javascript to avoid the XSLT stage
(which is very slow in chrome) although not currently the elementary math part, that shouldn't be hard to add, given some time.






2) Despite being XML, <mstack> relies on children order instead of named elements like <dividend>, <divisor>, <quotient>. What's the rationale behind this choice?


Positional children are used quite a lot in the mathml design: mfrac msub etc  also do not have named arguments.


Thanks you,

Gregory


David





sshot.png
(image/png attachment: sshot.png)

Received on Thursday, 3 July 2014 15:54:46 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:27:47 UTC