W3C home > Mailing lists > Public > www-math@w3.org > April 2003

troubles with rendering

From: (wrong string) éphan Sémirat <stephan.semirat@ac-grenoble.fr>
Date: Wed, 9 Apr 2003 17:47:12 +0100
Message-Id: <200304091547.h39FlCsi012789@tux.w3.org>
To: "mozilla-mathml@mozilla.org" <mozilla-mathml@mozilla.org>, "www-math@w3.org" <www-math@w3.org>

I had a rendering problem with &le; symbol under Mozilla which i solved putting
<style>
math {
font-family : Mathematica1, Mathematica2, Mathematica3, Mathematica4, Mathematica5,Mathematica6,Mathematica7;
}
</style>
inside the head of my document.
(see document 1 and 2 below)

But now the following statement is not correctly rendered (but is correctly rendered whithout the math-font-family statement inside the head) :

<math xmlns="http://www.w3.org/1998/Math/MathML" >
<mfenced open="[" close="]"><mo>x</mo></mfenced>
</math>

(see document 3 and 4 below)

while the folowing statement is correctly rendered :
<math xmlns="http://www.w3.org/1998/Math/MathML" >
<mfenced open="[" close="]"><msup><mo>x</mo><mn>2</mn></msup></mfenced>
</math>
(that is : bigger brackets are correctly rendered)

the first bracket is "missing" (a blank square is rendered, does this mean the symbol is not found ?).

Does anybody has a solution : that is i want &le; AND mfenced brackets to be rendered correctly inside the same document under Mozilla (i tried 1.2 and 1.3). 
Thanks for any help...i do not understand how css fonts work within mathml documents !

(i also tried : font-family: CMSY10, Symbol, Times, Lucida Sans Unicode, MT Extra, Math1, Math2, Math3, Math4, Math5, serif; which is the default under Mozilla, 
but then &le; does not render correctly).

Complete documents below :

Document 1 is not correctly rendered :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
</head>
<body>
<math xmlns="http://www.w3.org/1998/Math/MathML" >
<mo>x</mo><mo>&le;</mo><mn>1</mn>
</math>
</body></html>

Document 2 IS correctly rendered :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<style>
math {
font-family : Mathematica1, Mathematica2, Mathematica3, Mathematica4, Mathematica5,Mathematica6,Mathematica7;
}
</style>
</head>
<body>
<math xmlns="http://www.w3.org/1998/Math/MathML" >
<mo>x</mo><mo>&le;</mo><mn>1</mn>
</math>
</body></html>

Document 3 IS NOT correctly rendered :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<style>
math {
font-family : Mathematica1, Mathematica2, Mathematica3, Mathematica4, Mathematica5,Mathematica6,Mathematica7;
}
</style>
</head>
<body>
<math xmlns="http://www.w3.org/1998/Math/MathML" >
<mfenced open="[" close="]"><mo>x</mo></mfenced>
</math>
</body></html>

Document 4 IS correctly rendered :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
</head>
<body>
<math xmlns="http://www.w3.org/1998/Math/MathML" >
<mfenced open="[" close="]"><mo>x</mo></mfenced>
</math>
</body></html>
Received on Wednesday, 9 April 2003 11:47:20 GMT

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