Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52014 - Fonts for MathML support
Summary: Fonts for MathML support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Normal enhancement (vote)
Assignee: Gentoo Fonts Team
URL: http://dev.gentoo.org/~mattam/overlay...
Whiteboard:
Keywords: EBUILD
Depends on: 13808
Blocks:
  Show dependency tree
 
Reported: 2004-05-25 08:02 UTC by Matthieu Sozeau (RETIRED)
Modified: 2005-08-28 05:34 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mathematica-fonts-4.1.ebuild (mathematica-fonts-4.1.ebuild,1.28 KB, text/plain)
2004-10-19 01:23 UTC, Matthieu Sozeau (RETIRED)
Details
texcm-ttf-1.0.ebuild (texcm-ttf-1.0.ebuild,602 bytes, text/plain)
2004-10-19 01:27 UTC, Matthieu Sozeau (RETIRED)
Details
bakoma (bakoma,1.85 KB, text/plain)
2004-10-23 08:37 UTC, Matthieu Sozeau (RETIRED)
Details
Patch to the existing ebuild (mozilla_pref.patch,701 bytes, patch)
2005-05-14 20:47 UTC, Nikolas 'Atrus' Coukouma
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Sozeau (RETIRED) gentoo-dev 2004-05-25 08:02:46 UTC
I've made two ebuild for fonts needed by Mozilla to display MathML correctly (according to http://www.mozilla.org/projects/mathml/fonts/). They lack easy installation in /etc/X11/fs/config and others, but AFAICS there's no general support for this yet. I'm waiting for your comments & approval to cvs add them.
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-05-31 00:20:28 UTC
We do not add new font packages until fonts.eclass (bug #13808) is committed.
Comment 2 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-17 00:48:40 UTC
mattam, please rewrite your ebuild with font.eclass.
Comment 3 Matthieu Sozeau (RETIRED) gentoo-dev 2004-10-19 01:23:51 UTC
Created attachment 42144 [details]
mathematica-fonts-4.1.ebuild

Here's the ebuild for mathematica fonts, the type1 or truetype versions 
can be installed at users choice. It seems it is now unnecessary to indicate
to users to add the new fonts path to /etc/X11/{anything}, is that right ?
Comment 4 Matthieu Sozeau (RETIRED) gentoo-dev 2004-10-19 01:27:24 UTC
Created attachment 42146 [details]
texcm-ttf-1.0.ebuild

Here's the ebuild for tex Computer Modern fonts, a perfect instance of the
eclass :)
Maybe i should rename it to texcm ?
Comment 5 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-23 02:38:26 UTC
I think texcm is better (but that's a matter of choice). 
btw, where can I find licences for these packages?
Comment 6 Matthieu Sozeau (RETIRED) gentoo-dev 2004-10-23 08:37:36 UTC
Created attachment 42457 [details]
bakoma

The Bakoma licence for texcm. Mathematica has no downloadable licence, the EULA
has to be accepted online.
Comment 7 Mamoru KOMACHI (RETIRED) gentoo-dev 2005-05-03 08:14:38 UTC
Sorry for the delay. Added both texcm-ttf and mathematica-fonts
to CVS. Thanks for your submission.
Comment 8 Nikolas 'Atrus' Coukouma 2005-05-14 19:10:19 UTC
Is there any reason the ebuild placed in portage is for 4.2? Mozilla needs 4.1. I've opened bug 92662 about this
Comment 9 Mamoru KOMACHI (RETIRED) gentoo-dev 2005-05-14 19:45:34 UTC
That's because my browser can render MathML sample page
correctly with 4.2 ebuild. Just asking, are you sure you need
4.1 fonts to make mozilla display MathML page? Can you 
show me a sample page that you actually fail to see correctly
with 4.2? Thanks in advance.
Comment 10 Nikolas 'Atrus' Coukouma 2005-05-14 20:28:15 UTC
I get this message while viewing many pages:
To properly display the MathML on this page you need to install the following fonts:
Math1, Math2, Math4.

Here's one from the W3C test suite
http://www.w3.org/Math/testsuite/testsuite/TortureTests/Complexity/complex2.xml

It seems that the major difference is in names. For example, Mathematica1.ttf (4.2) probably corresponds to math1___.ttf (4.1)

If you read the comments to mozilla bug 128153, you'll see that the fonts used are configurable via the pref font.mathfont-family . We could add a note to the ebuild to change the pref or add aliases.
Pref solution (includes change to use Standard Symbols L per mozilla bug 236880):

pref(font.mathfont-family, "CMSY10, CMEX10, Mathematica1, Mathematica2, Mathematica4, MT Extra, Standard Symbols L")

Alias solution (example):
  <match target="pattern">
    <test name="family">
      <string>symbol</string>
    </test>
    <edit name="family" mode="append" binding="strong">
      <string>Standard Symbols L</string>
    </edit>
  </match>

See also:
/usr/lib/MozillaFirefox/res/fonts/mathfont.properties
https://bugzilla.mozilla.org/show_bug.cgi?id=128153
https://bugzilla.mozilla.org/show_bug.cgi?id=236880
Comment 11 Nikolas 'Atrus' Coukouma 2005-05-14 20:47:26 UTC
Created attachment 58931 [details, diff]
Patch to the existing ebuild

Tells the user how to make Mozilla & Co. happy with the 4.2 package.

Yes, pages render just fine with them.
Comment 12 Nikolas 'Atrus' Coukouma 2005-05-14 21:45:22 UTC
Obviously, Mozilla should be equally happy with either. I've filed a bug on their end about it. Until then, it's up to the user to handle it.

https://bugzilla.mozilla.org/show_bug.cgi?id=294224
Comment 13 Nikolas 'Atrus' Coukouma 2005-05-18 13:36:27 UTC
I've migrated "tell users to change mozilla pref" to it's own bug, 93100