[liblouis-liblouisxml] Re: How does MathML handle arithmetic examples and spatial layouts?

  • From: Neil Soiffer <neil.soiffer@xxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Fri, 13 Nov 2009 08:40:49 -0800

Here's the URL to the beginning of the spec:
http://www.w3.org/TR/MathML3

I gave you one that pointed to the elementary math part:
http://www.w3.org/TR/MathML3/chapter3.html#presm.elementary

    Neil


On Fri, Nov 13, 2009 at 3:08 AM, John J. Boyer <john.boyer@xxxxxxxxxxxxxxxxx
> wrote:

> Thanks for the examples. Can you give me the url for MathML 3?
>
> Thanks,
> John
>
> On Thu, Nov 12, 2009 at 08:26:36PM -0800, Neil Soiffer wrote:
> >    MathML 2 doesn't have a good way to represent elementary math
> notations.*
> >    You could use tables, but then you have lost the numbers and they are
> very
> >    fragile, it's hard to get the lines right, etc.* MathML 3, which just
> >    ended it's last call period yesterday, adds some elements to make
> >    elementary math easier and hopefully accessible.
> >
> >    Here's an example for a simple addition (there is a space after the
> "+"):
> >
> >    <math xmlns="[1]http://www.w3.org/1998/Math/MathML";>
> >    <mstack>
> >    * <mn>424</mn>
> >    * <msrow> <mo>+</mo> <none/> <mn>33</mn> </msrow>
> >    * <msline/>
> >    </mstack>
> >    </math>
> >
> >    Here's an example of subtraction with borrows:
> >    <math xmlns="[2]http://www.w3.org/1998/Math/MathML";>
> >    <mstack>
> >    * <mscarries crossout='updiagonalstrike'>
> >    **** <mn>2</mn> <mn>12</mn> <mscarry crossout='none'> <none/>
> </mscarry>
> >    ** </mscarries>
> >    ** <mn>2,327</mn>
> >    ** <msrow> <mo>-</mo> <mn> 1,156</mn> </msrow>
> >    ** <msline/>
> >    ** <mn>1,171</mn>
> >    </mstack>
> >    </math>
> >
> >    Finally, here's a more complicated example of long division
> >
> >  <mlongdiv longdivstyle="lefttop">
> >    <mn> 3 </mn>
> >    <mn> 435.3</mn>
> >
> >
> >    <mn> 1306</mn>
> >
> >    <msgroup position="2" shift="-1">
> >      <msgroup>
> >        <mn> 12</mn>
> >        <msline length="2"/>
> >      </msgroup>
> >
> >      <msgroup>
> >        <mn> 10</mn>
> >        <mn> 9</mn>
> >        <msline length="2"/>
> >      </msgroup>
> >      <msgroup>
> >        <mn> 16</mn>
> >        <mn> 15</mn>
> >
> >        <msline length="2"/>
> >        <mn> 1.0</mn>           <!-- aligns on '.', not the right edge
> ('0') -->
> >      </msgroup>
> >      <msgroup position='-1'>   <!-- extra shift to move to the right of
> the "." -->
> >
> >         <mn> 9</mn>
> >        <msline length="3"/>
> >        <mn> 1</mn>
> >      </msgroup>
> >    </msgroup>
> >  </mlongdiv>
> >
> >    To keep things simple (one digit per column) for these important
> >    notations, they don't work for synthetic division.* For that you would
> >    have to use mtable, although there are some tricks that I think might
> let
> >    you make use of mstack -- I haven't thought them through.
> >
> >    You can read about it here:
> >    [3]http://www.w3.org/TR/MathML3/chapter3.html#presm.elementary
> >    Based on feedback during the last call, there have been a few changes,
> but
> >    that is mostly accurate.* We hope to have a "Call for Implementations"
> >    draft out before Christmas.* It would be great to get your feedback on
> >    trying to implement the elementary math in the two month(?) period for
> >    that.
> >
> >    **** Neil
> >
> >    On Thu, Nov 12, 2009 at 6:56 PM, John J. Boyer
> >    <[4]john.boyer@xxxxxxxxxxxxxxxxx> wrote:
> >
> >      Yes. I am asking about 2d addition, subtraction, division, etc.,
> where
> >      the units, tens and so on are lined up. Also about synthetic
> division
> >      and representations of fractions that are spread out for better
> viewing.
> >      I suppose mtable is used, but what are the attributes and values?
> >
> >      Thanks,
> >      John
> >      On Thu, Nov 12, 2009 at 03:06:29PM -0800, Neil Soiffer wrote:
> >      > * *I'm not quite sure what you are asking.* Are you asking about
> 2d
> >      addition,
> >      > * *subtraction, etc?* Or are you referring to something else?
> >      >
> >      > * ***** Neil
> >      >
> >      > * *On Thu, Nov 12, 2009 at 8:12 AM, John J. Boyer
> >      > * *<[1][5]john.boyer@xxxxxxxxxxxxxxxxx> wrote:
> >      >
> >      > * * *I'm trying to explain how to get liblouisxml to handle them
> in
> >      the
> >      > * * *documentation, but I haven't actullly seen them in MathML. I
> >      guess this
> >      > * * *is a question for Neil.
> >      >
> >      > * * *Thanks,
> >      > * * *John
> >      >
> >      > * * *--
> >      > * * *John J. boyer; President, Chief Software Developer
> >      > * * *Abilitiessoft, Inc.
> >      > * * *[2][6]http://www.abilitiessoft.com
> >      > * * *Madison, Wisconsin USA
> >      > * * *Developing software for people with disabilities
> >      >
> >      > * * *For a description of the software and to download it go to
> >      > * * *[3][7]http://www.jjb-software.com
> >      >
> >      > References
> >      >
> >      > * *Visible links
> >      > * *1. mailto:[8]john.boyer@xxxxxxxxxxxxxxxxx
> >      > * *2. [9]http://www.abilitiessoft.com/
> >      > * *3. [10]http://www.jjb-software.com/
> >      --
> >      John J. boyer; President, Chief Software Developer
> >      Abilitiessoft, Inc.
> >      [11]http://www.abilitiessoft.com
> >      Madison, Wisconsin USA
> >      Developing software for people with disabilities
> >
> >      For a description of the software and to download it go to
> >      [12]http://www.jjb-software.com
> >
> > References
> >
> >    Visible links
> >    1. http://www.w3.org/1998/Math/MathML
> >    2. http://www.w3.org/1998/Math/MathML
> >    3. http://www.w3.org/TR/MathML3/chapter3.html#presm.elementary
> >    4. mailto:john.boyer@xxxxxxxxxxxxxxxxx
> >    5. mailto:john.boyer@xxxxxxxxxxxxxxxxx
> >    6. http://www.abilitiessoft.com/
> >    7. http://www.jjb-software.com/
> >    8. mailto:john.boyer@xxxxxxxxxxxxxxxxx
> >    9. http://www.abilitiessoft.com/
> >   10. http://www.jjb-software.com/
> >   11. http://www.abilitiessoft.com/
> >   12. http://www.jjb-software.com/
>
> --
> John J. boyer; President, Chief Software Developer
> Abilitiessoft, Inc.
> http://www.abilitiessoft.com
> Madison, Wisconsin USA
> Developing software for people with disabilities
>
> For a description of the software and to download it go to
> http://www.jjb-software.com
>

Other related posts: