LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-10-2017, 07:13 AM   #1
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
Abiword not displaying equations correctly


I complied Abiword using the BLFS book. All of the major plugins work except equations. I also could not get the rsvg plugin to compile, so I left it out. I don't know if this is causing the problem.

Equations is an unusual plugin in that it is built on some very old external libraries that are no longer maintained. You have to compile gdome2, gmetadome, and gtkmathview in that order. To get them to compile with recent GNU C++ compilers, you have to search the internet for patches. Abiword uses LaTeX at the back end and MathML via gtkmathview to render the equations on the screen. What is not mentioned is that Abiword also uses cairo and pango, both of which I had already compiled following the book. And as a long time LaTeX user, I had already compiled Texlive using BLFS.

However, the equations are severely distorted. It replaces any object that it has trouble interpreting by the letter Z. The first attachment shows what I mean. If I export the document to a pdf file, the distortions are still there.

What is odd is that if I select "View in a browser" from the Abiword menu, it displays more or less correctly, as the second attachment shows.

Based on a lot of googling, I installed Dejavu Math Tex gyre, Latin Modern math, and STIX fonts and added them to the font cache.

If anyone has gotten Abiword to work in math mode, I would appreciate some insight. Or maybe time to switch to Libreoffice.
Attached Thumbnails
Click image for larger version

Name:	equations1.png
Views:	33
Size:	39.3 KB
ID:	24978   Click image for larger version

Name:	equations2.png
Views:	27
Size:	39.9 KB
ID:	24979  
 
Old 05-10-2017, 03:42 PM   #2
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
I don't know if this will help, but did you install the x11 legacy font libraries? libXfont, bdftopcf, etc.
 
Old 05-11-2017, 06:50 AM   #3
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Original Poster
Rep: Reputation: 69
No I didn't. I have to look into that.

In Debian, Abiword equation rendering works perfectly. The Debian folks did a great job compiling this package and its dependencies. So I looked at the Debian Sid rules file to examine their configure flags. The two major differences are that they excluded mathview plugin and they enabled gobject-introspection. They also included support for Wordperfect which I don't need. When I included gobject-introspection, I get icu57 errors. When I fix those by installing an older icu library, I get other errors.

Fixing this could be the key.
 
Old 05-11-2017, 09:54 AM   #4
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
Yea, you pretty much need to build things with the --enable-introspection flag if it's available, whether you plan to install Gnome or not. Too many things use it. I'd try the old font libraries first, they're called "x-org legacy" in the BLFS book. If those fonts aren't OTF/TTF then they may not render correctly without it.

This is one of the big grumps about Linux, lack of a stable API for very core stuff like fonts. It's a major complaint, and rightfully so, from the Wayland detractors too, as it does nothing to address the issues. What is really needed is another layer of base rendering libraries between Wayland and it's clients that handle things like fonts and basic widgets in a uniform, non-desktop/window manager specific way. Unfortunately, that stuff isn't "cool" so, most of the development is on the desktops themselves.
 
Old 05-11-2017, 12:54 PM   #5
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
One more thing... I see AbiWord uses Boost. Did you add --with-icu to the ./bootstrap line when you built Boost?

There are several packages like Boost and libxml2 that will ignore ICU unless it is specifically switched in the configure line.

...and to think someone on here told me modifying the default configure switches was pointless. Only pointless if you want to find that some features don't work or are greyed out once everything is installed. Some don't even show up at all unless all of the requirements were available at build time.

Last edited by Luridis; 05-11-2017 at 01:02 PM.
 
Old 05-11-2017, 07:14 PM   #6
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
I forgot one more thing on your introspection issue. An easy way to see if it is available as a configure option is to:

./configure --help | grep intro


Before you use the configure string from the BLFS Book, if it comes up, usually --enable-introspection=[no/auto/yes], you know what to do. There are literally dozens of packages that need this, including stuff like Cairo.
 
Old 05-12-2017, 05:33 AM   #7
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Original Poster
Rep: Reputation: 69
No I did not add --with-icu to the boost bootstrap line. Looks like I have to recompile Boost.

Or I might start using LibreOffice.

Last edited by plasmonics; 05-12-2017 at 05:36 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
plotting difference equations which are dependent on linear equations ta0kira Programming 6 11-22-2008 10:08 PM
8.10 - Keys not displaying correctly anthonysaulnier Ubuntu 3 11-16-2008 02:49 AM
VNC not displaying correctly BallsOfSteel Linux - Software 1 04-22-2008 05:29 PM
windows not displaying correctly zchoyt Linux - General 1 03-19-2005 10:37 PM
Battery not displaying correctly in KDE3 metalaid Linux - Software 3 01-22-2004 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration