Iceweasel & MathML nightmare

Kernels & Hardware, configuring network, installing services

Iceweasel & MathML nightmare

Postby maclag » 2007-06-02 06:17

Hi all!

I desesperately try to get mathml display in Iceweasel, and I am really confused by all information found on the web.
So, preliminary question:
- need the latex-xft-fonts package: is it still relevant, or should I look for some equivalent in the texlive distribution?
- need mathematica 4.1 fonts: this is probably useless, but to be sure it works, I've put them in both ~/.fonts/ and /usr/share/fonts/truetype/Mathematica/
what else??

I've uncommented the two lines in
I've tried to set math.fontmath-family to both CMx and Mathx values in about:config, still no change at all.

I've added a MOZ_DISABLE_PANGO=1 in /etc/iceweasel/iceweaselrc.

I have no error message, no warning when I try to display mathml, but the result is... let's say the characters seem completely random!

Now, I'm really going mad! I want to work again on my website, which uses MathML, and i'm not even capable of making it displaying properly :cry:


Thanks by advance

PS: Fonts management in Linux and different apps is still sooooo complicated to understand and handle, will there be a MASSIVE revision one day??
If there is no solution then don't call that a problem!!
Posts: 4
Joined: 2007-06-02 06:04
Location: Wuxi, China


Postby maclag » 2007-06-02 07:06

I answer to myself:

The key point:
Putting MOZ_DISABLE_PANGO=1 in /etc/iceweasel/iceweaselrc

You can put it in
(text file I had to create)

I still think the font management in debian (and linux in general) is a nightmare, with all the different tools (which one should we use? fontconfig? defoma? other one?) and confusion between app fonts and Xorg fonts.
If there is no solution then don't call that a problem!!
Posts: 4
Joined: 2007-06-02 06:04
Location: Wuxi, China

MathML in Iceweasel 2 (Debian) - Summary

Postby maclag » 2007-06-02 09:51

I had to fix a few other problems (due to the mess I've put before), but on the other side, I am able now to propose an up-to-date guide for MathML in Iceweasel:

Following these instructions will help you having MathML displaying properly in Iceweasel. Maybe there are other (and maybe even better) ways to do it, but at least, these one work!

- Install latex-xft-fonts and ttf-opensymbol
(but I'm still not sure about the replacement of latex-xft-fonts by another package from texlive)

- DON'T CHANGE ANY! Let the two lines about symbol commented out!

- Getting Mathematica fonts is OPTIONAL, depending on your taste ;)

- We need to disable Pango in Iceweasel. I've done it by creating:
~/.mozilla/firefox/rc (text file) and putting only one line:
Warning: Adding this line to /etc/iceweasel/iceweaselrc didn't work for me.
I don't know yet whether this should be reported as a bug or not, I'll try to figure out.

- Now, there are several cases:

1 - You've NOT got Mathematica fonts
To avoid Iceweasel complaining about missing fonts, open Iceweasel.
In the URL, type "about:config"
Right click on the main panel, and Select New->String
Name: font.mathfont-family
Value: CMSY10, CMEX10, Symbol
Then restart Iceweasel and enjoy

2 - You have installed Mathematica fonts. I suggest you to let the ttf files in ~/.fonts, they'll be found automatically!
You don't have to change anything else if you just want "things to work"
If you want Mathematica fonts to be really used (they are not by default, though Iceweasel looks for them ?!?), then do the same as in 1, but
Value: Math1, Math2, Math4, Symbol
Then restart Iceweasel

The MathML torture test will help you check everything's fine.

Finally, I just hope the STIX project will be achieved, so that maybe we can have things working "out-of-the-box"!!

Let me know if anything didn't work for you![/url]

- Solved the iceweaselrc issue:
- The above solution works only if Acrobat Reader is installed! If it's not, replace "Symbol" by "OpenSymbol" in the font.mathfont-family field of about:config.
I won't keep on editing this post, trouble is solved, I'll write a small page later on my website to explain ONE solution.
instead of the first line alone.
If there is no solution then don't call that a problem!!
Posts: 4
Joined: 2007-06-02 06:04
Location: Wuxi, China


Postby Otto Strasser » 2007-06-07 21:17

I am docbook writer and now I am math in ma preview, thank's to you.
Otto Strasser

Postby Jérôme Ortais » 2007-06-29 17:28

I followed your advices and managed to have mathml rendering. Iceweasel still complains about Symbol fonts missing but it's not a problem for now.
My problem is that the print preview is awfull. The signs (+, -) are not correctly aligned as well as the fractions bars...
Do you have the same problem or not ?
Jérôme Ortais

Postby maclag » 2007-06-30 08:07

For the Symbol fonts missing, maybe you've forgotten to add "Symbol" for Acroread or OpenSymbol in the config values? (or maybe something else... :P)

I've never tried to print any mathml page before, so I've just noticed what you were saying, but right now I have no idea for the reason. Maybe it's "normal" (meaning: not a config issue, but a mathml support issue).
If there is no solution then don't call that a problem!!
Posts: 4
Joined: 2007-06-02 06:04
Location: Wuxi, China

Return to System configuration

Who is online

Users browsing this forum: No registered users and 35 guests