Bug 132047 - Mozilla MathML displays incorrectly
Summary: Mozilla MathML displays incorrectly
Status: RESOLVED WONTFIX
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Other (show other bugs)
Version: Final
Hardware: i686 SuSE Linux 10.0
: P5 - None : Normal
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-02 18:19 UTC by Steven Hatton
Modified: 2007-02-16 14:17 UTC (History)
0 users

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Looks good here (24.81 KB, image/png)
2005-11-03 10:25 UTC, Michael Gross
Details
Seamonkey 2005110105 nightly build (41.27 KB, image/png)
2005-11-03 20:05 UTC, Steven Hatton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Hatton 2005-11-02 18:19:31 UTC
I'm having problems with Mozilla viewing MathML.  The problem I am having with 
the build from SuSE 10 is different from what happens with the mozilla 1.7.12 
from mozilla.org.  If someone would verify this, I would appreciate it.  I 
want to report one, or perhaps two bugs.  With the Mozilla that ships with 
SuSE 10, I do not see the ∄ in the xhtml below.  With the build 
from mozilla.org, there are incorrect and, downright weird fonts shown. 

If you get an error saying you need to install special fonts, you can ignore 
that in this case.  If you want the fonts, follow the links in the error 
message, and get the _4.1_ fonts. One thing I've noticed with the Mozilla 
from SuSE is that it seems to have MathML fonts built in.  I don't get the 
error telling me to get the Math fonts that I get from the mozilla.org build.

Builds of Firefox don't show the ∄ but they do show most fonts correctly.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
        "HTMLFiles/xhtml-math11-f.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <title>
                        fundamentals-of-mathematics.xml
                </title>
        </head>

        <body>
                <mml:math xmlns:mml='http://www.w3.org/1998/Math/MathML'
    xmlns='http://www.w3.org/1998/Math/MathML'
    id='peano-3'>
 <mml:mrow>
  <mml:mrow>
   <mml:mo>&NotExists;</mml:mo>
   <mml:mo>(</mml:mo>
   <mml:mrow>
    <mml:mi>&alpha;</mml:mi>
    <mml:mo>&Element;</mml:mo>
    <mml:mi mathvariant='double-struck'>N</mml:mi>
   </mml:mrow>
   <mml:mo>)</mml:mo>
  </mml:mrow>
  <mml:mo>&SuchThat;</mml:mo>
  <mml:mrow>
   <mml:msup>
    <mml:mi>&alpha;</mml:mi>
    <mml:mo>&prime;</mml:mo>
   </mml:msup>
   <mml:mo>=</mml:mo>
   <mml:mn>0</mml:mn>
  </mml:mrow>
 </mml:mrow>
</mml:math>
        </body>
</html>
Comment 1 Michael Gross 2005-11-03 10:25:02 UTC
Created attachment 56338 [details]
Looks good here
Comment 2 Michael Gross 2005-11-03 10:25:59 UTC
The screenshot shows that everything looks fine here. Please verify that or point out what's wrong. The not-exist symbol is shown, the special fonts aren't installed.
Comment 3 Steven Hatton 2005-11-03 20:05:47 UTC
Created attachment 56426 [details]
Seamonkey 2005110105 nightly build

This is the second part of what I was describing. I deleted these:
/usr/X11R6/lib/X11/fonts
/etc/X11/xorg.conf
/etc/fonts
And reinstalled all fonts and xorg rpms.  The SuSE-built Mozilla now functions as expected.  I do not receive the missing fonts error with the SuSE-built Mozilla, but I do get it with the mozilla.org build.

The only way I know of to get that error to go away is to put the fonts under the /usr/X11R6/lib/X11/fonts, for example, 
/usr/X11R6/lib/X11/fonts/wri/4.1/Type1
/usr/X11R6/lib/X11/fonts/wri/4.1/truetype
(wri = Wolfram Research Inc.), edit the /etc/X11/xorg.conf and add the paths to the FontPath.  That, I believe, invalidates the /etc/X11/xorg.conf.md5.

SUSE LINUX Documentation
Chapter 35. The X Window System / 35.3. Installing and Configuring Fonts, seems to be telling me to put these fonts in the respective
/usr/X11R6/lib/X11/fonts/Type1
/usr/X11R6/lib/X11/fonts/truetype
directories.  For obvious reasons this is not a good solution.  For my immediate purposes I only need the fonts to work for one user account, and would prefer to install them in the user's directory space.  In previous versions of SuSE Linux, that has met with varying degrees of success.  I shall attempt this again, and post an update.

I'm trying to determine if the problem with the mozilla.org builds is SuSE specific, and whether I need to file a bug report with mozilla.org.  I would also like to provide as much information as I can in such a bug report.
Comment 4 Steven Hatton 2005-11-03 20:07:58 UTC
Whoops! I meant to include this:
http://www.w3.org/Math/testsuite/testsuite/Presentation/TokenElements/mo/mo6.xml
Comment 5 Steven Hatton 2005-11-03 20:43:16 UTC
Comment on attachment 56426 [details]
Seamonkey 2005110105 nightly build

I am quite convinced the problem demonstrated by the screen capture is not related to the missing font error.  Nonetheless, I did promise an update on my effort to install the wri fonts.

Neither putting the fonts in ~/.fonts/wri/4.1/{Type1,truetype}, nor in corresponding /usr/share/fonts subdirectories solved the problem of X not loading the fonts. In the ~/.fonts.conf I put:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <dir>~/.fonts/wri/4.1/truetype</dir>
  <dir>~/.fonts/wri/4.1/Type1</dir>
</fontconfig>
Comment 6 Robert O'Callahan 2006-12-14 21:00:20 UTC
That testcase displays fine for me out-of-the-box in SUSE 10.2. So does http://www.w3.org/Math/testsuite/testsuite/Presentation/TokenElements/mo/mo6.xml.

So what is the problem here? I'm confused.
Comment 7 Matej Horvath 2007-02-16 14:17:14 UTC
No reaction on this bug for a long time. Closing as CANTFIX.