Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 344665 - x11-libs/gtkmathview should depend on media-fonts/texcm-ttf
Summary: x11-libs/gtkmathview should depend on media-fonts/texcm-ttf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: GNOME Office (OBSOLETE)
URL: http://helm.cs.unibo.it/mml-widget/qn...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-08 10:17 UTC by Denis Demidov
Modified: 2011-02-04 11:20 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Demidov 2010-11-08 10:17:25 UTC
app-office/abiword, when built with latex support, allows to insert equation as a LaTeX formula. However, to see the inserted equation properly, user needs to install media-fonts/texcm-ttf package by hand. This should be done automatically whether latex USE flag is selected.

Reproducible: Always

Steps to Reproduce:
1. USE=latex emerge app-office/abiword
2. Open abiword
3. Select menu item "Insert/Equation/From LaTeX..."
4. Enter "\sqrt{\pi}" into "LaTeX equation" field.

Actual Results:  
Some gibberish gets inserted

Expected Results:  
\sqrt{\pi}
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-11-08 15:04:04 UTC
We should probably ask texlive maintainers if this is the only package providing this. Could you provide the output of abiword when you see the problem by starting it from a terminal ?
Comment 2 Denis Demidov 2010-11-08 16:06:14 UTC
(In reply to comment #1)

First, I am sorry as I was wrong about use flag which enables inserting equations into documents. It is not "latex" but combination of "plugins" and "math". "latex" probably provides latex filter for saving documents and has nothing to do with this bug.

Second, here is the requested output:
----------------------------------------------------------------------
[MathView] *** Warning[1:1]: configuration file /usr/share/abiword-2.8/math/gtkmathview.conf.xml explicitly specified but not found
[MathView] *** Warning[1:1]: configuration file /home/demidov/.AbiSuite/math/gtkmathview.conf.xml explicitly specified but not found
[MathView] *** Info[2:2]: parsing time: 1ms
[MathView] *** Info[2:2]: parsing time: 0ms
[MathView] *** Info[2:2]: parsing time: 0ms
[MathView] *** Warning[1:2]: dictionary `/usr/share/abiword-2.8/math/dictionary.xml' does not exist
[MathView] *** Warning[1:2]: dictionary `/usr/share/abiword-2.8/math/dictionary-combining.xml' does not exist
[MathView] *** Warning[1:2]: dictionary `/usr/share/abiword-2.8/math/dictionary-local.xml' does not exist
[MathView] *** Warning[1:2]: dictionary `/home/demidov/.AbiSuite/math/dictionary.xml' does not exist
[MathView] *** Warning[1:2]: dictionary `/home/demidov/.AbiSuite/math/dictionary-combining.xml' does not exist
[MathView] *** Warning[1:2]: dictionary `/home/demidov/.AbiSuite/math/dictionary-local.xml' does not exist
[MathView] *** Info[2:2]: build time: 0ms
[MathView] *** Info[2:2]: parsing time: 0ms
[MathView] *** Info[2:2]: build time: 0ms
[MathView] *** Info[2:2]: formatting time: 15ms
[MathView] *** Info[2:2]: build time: 0ms
[MathView] *** Info[2:2]: parsing time: 0ms
[MathView] *** Info[2:2]: build time: 0ms
[MathView] *** Info[2:2]: formatting time: 0ms
[MathView] *** Info[2:2]: rendering time: 0ms
[MathView] *** Info[2:2]: rendering time: 0ms
----------------------------------------------------------------------

I don't think it has anything to do with texlive. What is needed is a font with math symbols in it. AbiWord V2.4.0 Release Notes says: "Note that while standard symbol fonts can be used to render equations, the best results are achieved when the Computer Modern fonts are installed". 

I did try installing fonts from $(eix -C media-fonts -S math), such as mathematica-fonts or stix-fonts (and explicitly specifying those for an equation), but with no results.
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-11-08 16:46:05 UTC
so there is a chance that there is more than one font that could solve this issue ? If so that'll complicate the resolution of this bug.
Comment 4 Denis Demidov 2010-11-08 17:18:10 UTC
I've looked into the abiword's source code, and it seems that abiword uses x11-libs/gtkmathview for rendering equations. The latter supports different fonts or shapers (http://helm.cs.unibo.it/mml-widget/qna.html), but it looks like only computer modern family fully supports math symbols. Also there are several headers for different shapers in abiword mathview plugin source tree.

So, computer modern fonts are not strictly required to display math (at least some simple formulas). Thus, media-fonts/texcm-ttf probably should not be installed for every user. But a friendly note in the ebuild would be a great help for those who do need to display equations with math symbols. Something along the lines: "Hey, you enabled math plugin. That is best used with media-fonts/texcm-ttf".
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-11-08 21:44:47 UTC
shouldn't that be a change in gtkmathview then ?
Comment 6 Denis Demidov 2010-11-09 07:09:04 UTC
(In reply to comment #5)

That does make sense. May be gtkmathview needs a "cm" use flag to optionally depend on texcm-ttf. Should I open new bug then?
Comment 7 Pacho Ramos gentoo-dev 2011-01-26 14:46:06 UTC
Do we agree on depending on it when USE="mathml" USE flah for gtkmathview is set?
Comment 8 Pacho Ramos gentoo-dev 2011-02-04 11:20:49 UTC
+  04 Feb 2011; Pacho Ramos <pacho@gentoo.org> gtkmathview-0.8.0.ebuild,
+  metadata.xml:
+  Install additional fonts for proper mathml support (bug #344665 by Denis
+  Demidov).
+