From: Mikko Rantalainen <mikko.rantalainen@peda.net>

Date: Wed, 11 May 2005 11:35:00 +0300

Message-ID: <4281C3B4.1010700@peda.net>

To: www-math@w3.org

Date: Wed, 11 May 2005 11:35:00 +0300

Message-ID: <4281C3B4.1010700@peda.net>

To: www-math@w3.org

I'm trying to generate MathML automatically from simple text syntax and I'm wondering which is the correct markup. Given source text like b * (-a) my current implementation generates <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> <mi>b</mi> <mo>⁢</mo><!-- or ⋅ --> <mrow> <mo>(</mo> <mo>−</mo><!-- $$ --> <mi>a</mi> <mo>)</mo> </mrow> </mrow> </math> I'm wondering if the location marked with $$ is ok? Should another symbol be used for minus sign when its intent is to describe "negation of a" instead of "minus operator followed by a"? Or should the renderer use short minus sign automatically even though I use −? At least Mozilla renders long and ugly minus sign here. On the other hand b - a generates <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> <mi>b</mi> <mo>−</mo> <mi>a</mi> </mrow> </math> which looks good at least in Mozilla. -- MikkoReceived on Wednesday, 11 May 2005 08:35:05 GMT

*
This archive was generated by hypermail 2.2.0+W3C-0.50
: Saturday, 20 February 2010 06:12:57 GMT
*