You are not logged in.

#1 2006-06-30 20:52:51

poetofnumbers
Member
From: Kansas, United States
Registered: 2004-10-30
Posts: 106
Website

MathML on Firefox

Has anyone gotten MathML to render on Firefox?  You can test if you can get Firefox to render MathML.  I realize that MathML is enabled by default in Firefox 1.5, but I cannot get the fonts configured correctly.  I've followed the font configuration instructions on the Firefox MathML page.  If you have gotten MathML to render on Firefox, please post the instructions that you followed.


Sweet, now I can play with myself.

Offline

#2 2006-07-01 18:51:55

sh__
Member
Registered: 2005-07-19
Posts: 272

Re: MathML on Firefox

Aye, I got it working. The main problem was that firefox from [current] uses pango to render the fonts. Pango (at least the current version) does not handle MathML so well. I had to stop firefox from using pango:

export MOZ_DISABLE_PANGO=1

Also, there's some fuzz with the fonts. You probably have installed the Computer Modern and Mathematica fonts. The symbol font defaults to a bitmap font that does not scale nicely. I changed that by editing the about:config entry font.mathfont-family:

cmsy10, cmex10, Math1, Math2, Math4, Standard Symbols L

So I replaced 'symbol' with 'Standard Symbols L'. I guess that belongs to the gsfonts package.

Offline

#3 2006-09-08 00:57:11

shifteight
Member
Registered: 2005-06-25
Posts: 8

Re: MathML on Firefox

sh__ wrote:

Aye, I got it working. The main problem was that firefox from [current] uses pango to render the fonts. Pango (at least the current version) does not handle MathML so well. I had to stop firefox from using pango:

export MOZ_DISABLE_PANGO=1

Also, there's some fuzz with the fonts. You probably have installed the Computer Modern and Mathematica fonts. The symbol font defaults to a bitmap font that does not scale nicely. I changed that by editing the about:config entry font.mathfont-family:

cmsy10, cmex10, Math1, Math2, Math4, Standard Symbols L

So I replaced 'symbol' with 'Standard Symbols L'. I guess that belongs to the gsfonts package.

I did like that, and I tested the page http://www.mozilla.org/projects/mathml/ … smml.xhtml . Most symbols are showed correctly. But the symbols such as "equal or less than" can not be showed correctly. Would you like to test it again?

Offline

#4 2006-09-08 21:07:58

sh__
Member
Registered: 2005-07-19
Posts: 272

Re: MathML on Firefox

shifteight wrote:

I did like that, and I tested the page http://www.mozilla.org/projects/mathml/ … smml.xhtml . Most symbols are showed correctly. But the symbols such as "equal or less than" can not be showed correctly. Would you like to test it again?

Sure. All symbols seem to render quite ok (expect overbraces and underbraces don't have the right width).
mathml1sc6.th.png

One thing to note is that the MathML page recommends version 4.1 of Mathematica fonts (version in AUR is 5.2).

Offline

Board footer

Powered by FluxBB