RE: Question to pMathML

Hello,

Thanks a lot for your help.

But when opening your test-page in Firefox, the &OverBar still doesn't
stretch.
It seems a bit longer in the good case (I am attaching the result in
Firefox).

Do you have any idea why this is happening?
Many thanks for your help!

Cheers,
Christine

-- 
Christine Müller
Ph.D. Student of Computer Science
Jacobs University Bremen
Research 1, Room 79
Street Address: Campus Ring 1, 28759 Bremen, Germany
Postal Address: P.O. Box 750 561, 28725 Bremen, Germany
Tel: +49-(0)421-2003168
Fax: +49-(0)421-2003103
E-Mail: c.mueller@jacobs-university.de
Web: http://www.kwarc.info/cmueller

On Tue, 2007-11-13 at 12:00 -0800, Robert Miner wrote:
> Hi.
> 
> 0xaf alias ¯ alias ‾ is the right character.  
> 
> (BTW, ‾ is an HTML entity name, and not included in the MathML DTD.  Maybe it doesn't matter in your context, but #x203E; is a lot more portable. Also, it isn't stretchy.)
> 
> Both MathPlayer and Firefox will both render 
> 
> <math xmlns="http://www.w3.org/1998/Math/MathML">
>    <mrow>
>       <mover>
>         <mrow>
>            <mi>x</mi>
>            <mo>+</mo>
>            <mi>y</mi>
>         </mrow>
>         <mo>&OverBar;</mo>
>       </mover>
>    </mrow>
> </math>
> 
> with a stretchy horizontal bar.  However, you have to be careful.  If you put in an extra mrow about the OverBar, then Firefox won't stretch it anymore.  That is
> 
> <math xmlns="http://www.w3.org/1998/Math/MathML">
>    <mrow>
>       <mover>
>         <mrow>
>            <mi>x</mi>
>            <mo>+</mo>
>            <mi>y</mi>
>         </mrow>
>         <mrow>
>           <mo>&OverBar;</mo>
>         </mrow>
>       </mover>
>    </mrow>
> </math>
> 
> will only render with the bar properly stretched in MathPlayer, and not in Firefox.  This looks like a bug in Firefox.  Specifically, the implementation of "embellished operators" is wrong, since the wrapping mrow should have no effect on the stretching of the bar, though it obviously does.
> 
> I've appended my test page below.
> 
> --Robert
> 
> Robert Miner
> Vice President, Research and Development
> 
> Design Science, Inc.
> 140 Pine Avenue, 4th Floor
> Long Beach, California  90802
> USA
> Tel:  (651) 223-2883
> Fax:  (651) 292-0014
> robertm@dessci.com
> www.dessci.com
> ~ Makers of MathType, MathFlow, MathPlayer, WebEQ, Equation Editor, TexAide ~
> 
> ==============
> 
> <?xml version="1.0"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" 
>                "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" >
> <head> 
>  <title>A MathML template</title>
> </head>
> 
> <body>
> 
> <h2>MathML Example</h2>
> 
> <p>Buggy case:</p>
> 
> <math xmlns="http://www.w3.org/1998/Math/MathML">
>    <mrow>
>       <mover>
>         <mrow>
>            <mi>x</mi>
>            <mo>+</mo>
>            <mi>y</mi>
>         </mrow>
>         <mrow>
>           <mo>&OverBar;</mo>
>         </mrow>
>       </mover>
>    </mrow>
> </math>
> 
> <p>Good case:</p>
> 
> <math xmlns="http://www.w3.org/1998/Math/MathML">
>    <mrow>
>       <mover>
>         <mrow>
>            <mi>x</mi>
>            <mo>+</mo>
>            <mi>y</mi>
>         </mrow>
>         <mo>&OverBar;</mo>
>       </mover>
>    </mrow>
> </math>
> 
> 
> </body>
> </html>
> ====================================
> 
> > -----Original Message-----
> > From: www-math-request@w3.org [mailto:www-math-request@w3.org] On Behalf
> > Of Christine Müller
> > Sent: Monday, November 12, 2007 3:21 AM
> > To: www-math@w3.org
> > Subject: Question to pMathML
> > 
> > 
> > Dear all,
> > 
> > I have a question on how to present an "overline" in the following term:
> > I have tried "&#xaf;" and "&oline;" but both only result in a single "-"
> > overline, but I am looking for an overline that automatically stretches
> > across the whole term. So right now I am simply putting a bunch of these
> > signs, but would rather have a more proper solution.
> > 
> > I appreciate your suggestions!
> > 
> > Best,
> > Christine
> > 
> > 
> >     <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
> >       <m:mrow>
> >         <m:mover>
> >           <m:mrow>
> >             <m:mo>(</m:mo>
> >             <m:mi>x123</m:mi>
> >             <m:mo>*</m:mo>
> >             <m:mi>x172</m:mi>
> >             <m:mo>)</m:mo>
> >           </m:mrow>
> > <m:mo>&oline;&oline;&oline;&oline;&oline;&oline;&oline;&oline;&oline;&ol
> > ine;&oline;&oline;&oline;</m:mo>
> >         </m:mover>
> >       </m:mrow>
> >     </m:math>
> > 
> > 
> > 
> > 
> > 
> 
> 

Received on Tuesday, 20 November 2007 09:59:52 UTC