From: Murray Sargent <murrays@exchange.microsoft.com>

Date: Thu, 23 Feb 2012 18:17:07 +0000

To: Paul Topping <pault@dessci.com>, "mathjax-dev@googlegroups.com" <mathjax-dev@googlegroups.com>, "www-math@w3.org" <www-math@w3.org>

Message-ID: <6ebe0674a661466095833ca739b2b392@DFM-CO1MBX15-01.exchange.corp.microsoft.com>

Received on Thursday, 23 February 2012 18:17:43 GMT

Date: Thu, 23 Feb 2012 18:17:07 +0000

To: Paul Topping <pault@dessci.com>, "mathjax-dev@googlegroups.com" <mathjax-dev@googlegroups.com>, "www-math@w3.org" <www-math@w3.org>

Message-ID: <6ebe0674a661466095833ca739b2b392@DFM-CO1MBX15-01.exchange.corp.microsoft.com>

FWIW, RichEdit creates the following MathML for [cid:image001.png@01CCF214.4A850100] <?xml version="1.0" standalone="no"?> <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="block"> <mml:mover accent="false"> <mml:mrow> <mml:mi>a</mml:mi> <mml:mi>b</mml:mi> <mml:mi>c</mml:mi> </mml:mrow> <mml:mo stretchy="true">¡ú</mml:mo> </mml:mover> </mml:math> The stretchy attribute can be used to control whether the arrow stretches. Murray From: Paul Topping [mailto:pault@dessci.com] Sent: Thursday, February 23, 2012 9:12 AM To: mathjax-dev@googlegroups.com; www-math@w3.org Subject: RE: [mathjax-dev] Embellished operators I think you have touched the tip of an iceberg with your observations here. Robert Miner and I had many discussions of problems like this. Presentation MathML¡¯s domain of description tries to allow precise formatting via specific dimensions and font and character choices as well as logical description of math constructs. It always seemed to me to be playing with fire. Left up to me, I would have had MathML elements and attributes map to concepts in math¡¯s visual grammar in order to allow the formatter to do a better job. Unfortunately, this places a large burden on the author to get it right, something that is a big problem for Content MathML. Paul From: mathjax-dev@googlegroups.com<mailto:mathjax-dev@googlegroups.com> [mailto:mathjax-dev@googlegroups.com]<mailto:[mailto:mathjax-dev@googlegroups.com]> On Behalf Of Fr¨¦d¨¦ric WANG Sent: Thursday, February 23, 2012 1:02 AM To: www-math@w3.org<mailto:www-math@w3.org>; mathjax-dev@googlegroups.com<mailto:mathjax-dev@googlegroups.com> Subject: [mathjax-dev] Embellished operators Hi all, I'm thinking again about the rules for embellished operators and it seems to me that some elements are particular. For example if we ask how to determine the stretching of something like: <math> <mover> <mo>→</mo> <mtext>over</mtext> </mover> </math> The obvious answer is that the arrow should stretch to cover the over script. OK. However one can also say that the <mover> is an embellished element as a whole. Since is has no siblings, the arrow should have its default size. To give slightly less trivial examples, what should be the size of the arrows (100px or 200px?) in these examples: <math> <mover> <mspace width="100px"/> <munder> <mo>→</mo> <mspace width="200px"/> </munder> </mover> </math> and <math> <mover> <mspace width="200px"/> <munder> <mo>→</mo> <mspace width="100px"/> </munder> </mover> </math> An example with vertical stretching rules: <math> <mrow> <mspace height="50px" depth="50px"/> <mrow> <mo>|</mo> <mspace height="100px" depth="100px"/> </mrow> </mrow> </math> (I wonder if an attribute like embellishedop = "false" could help to prevent this kind of ambiguity?) I noticed this because implementing the complete embellished op rules caused a regression in Mozilla with MathML code generated by MathJax: https://bugzilla.mozilla.org/show_bug.cgi?id=687807

(image/png attachment: image001.png)

*
This archive was generated by hypermail 2.2.0+W3C-0.50
: Thursday, 23 February 2012 18:17:44 GMT
*