RE: What is "f'(x)" as MathML?

Thank you very much, Urs, for this reply, particularly the last paragraph.  And thanks also to David and Daniel.

I consider my question to be answered.  However, I am very interested in any other examples where the 'wrong' markup is required to get the 'correct' output in major web browsers.

Jonathan

> -----Original Message-----
> From: www-math-request@w3.org
> [mailto:www-math-request@w3.org] On Behalf Of Urs Holzer
> Sent: 21 January 2011 10:32
> To: 'www-math@w3.org'
> Subject: Re: What is "f'(x)" as MathML?
>
> Hi
>
> > Forgive me for asking a question that might already have been
> > answered, but what is the 'correct' translation of the TeX notation
> > mathematics "f'(x)" into presentation MathML?
>
> Okay, just wanted to answer but David was faster.  What he
> wrote is equivalent to what I think is correct:
>
> <math>
>   <mrow>
>     <msup>
>       <mi>f</mi>
>       <mo>&#x2032;</mo>
>     </msup>
>     <mo>&#x2061;</mo>
>     <mrow>
>       <mo>(</mo>
>       <mi>x</mi>
>       <mo>)</mo>
>     </mrow>
>   </mrow>
> </math>
>
> The invisible function application U+2032 and the prime
> U+2061 are documented here:
> http://www.unicode.org/charts/PDF/U2000.pdf
>
> Note that as far as I have seen it on this mailinglist (I am
> not part of the working group) you should use msup to place
> the accent, even if some MathML renderers make the prime too small.
>
> Greetings
> Urs
>
>

-- 
The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302).

Received on Friday, 21 January 2011 10:41:19 UTC