You are not logged in.

#1 2018-01-23 10:27:47

darenw
Member
From: Trego Montana
Registered: 2008-07-04
Posts: 106
Website

[SOLVED] Math symbols missing when viewing Postscript file.

A few months ago I was using Lout to produce Postscript (.ps) files, Evince or Atril to view them, and happily making progress. Then I got distracted with other things, upgraded my Arch machine, and now when I view the .ps files, all math symbols are missing.   I suspect something with the postscript viewers or font files or config data related to either is missing something.  It appears that only glyphs in Symbols are missing.  Dingbat shows okay, and regular body text looks fine.

When I view one of the files I made a while ago, those math symbols are missing, though the file looked fine last summer.

I was using Lout 3.40 from an external tarball, but switched to Arch's package to see if it made a difference. Nope. Still not seeing math symbols.

I heard from someone who had trouble like this after a ghostscript upgrade. A downgrade fixed it.

Daren

Last edited by darenw (2018-01-30 04:31:31)


Artist/Physicist, Herder of Pixels, Photons and Electrons

Offline

#2 2018-01-23 19:07:55

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: [SOLVED] Math symbols missing when viewing Postscript file.

I've never come across or used Lout (it looks old given that it was last updated on 2013-07-15 according to https://www.archlinux.org/packages/comm … 6_64/lout/ ), but I'd think that font substitution is no longer working for you for your .ps files. I suppose that's one good reason to convert ps files to pdf files as fonts are embedded within a pdf.

Have you had a look through the fonts page on the wiki - https://wiki.archlinux.org/index.php/Fonts - perhaps you are missing some fonts? Perhaps also think about moving to an alternative?

Offline

#3 2018-01-25 10:12:36

darenw
Member
From: Trego Montana
Registered: 2008-07-04
Posts: 106
Website

Re: [SOLVED] Math symbols missing when viewing Postscript file.

Example from a math paper I'm writing. It's so close to being done! 
https://imagebin.ca/v/3pOzS0TFEvub   screen capture of part of page five, viewed in Atril.

Below: Postscript code from the file roughly corresponding to this snippet - I hope this looks correct to Postscript experts.  If it's correct, then it's Evince/Atril/etc not finding or using certain fonts correctly.  Butif this PS code is messed up, I need to investigate why Lout isn't doing what it used to do right only a few months ago.

480 10474(Let)m 937(us)s 1281(recall)s 1945(that)s 2442(log)s 1(arithms)k
3594(were)s 4194(originally)s 5257(in)s 9(v)k 3(ented)k
6206(for)s 6624(making)s 7475(multiplication)s 8952(easy)s 15(.)k
0 10186(W)m 19(e)k 369(observ)s 3(e:)k
[ /Dest /LOUTmultlog /DEST pdfmark
240 fnt3
480 9734(x)m 240 fnt4 698 9726(\264)m 240 fnt3 938 9734(y)m
240 fnt4 1112 9726(=)m 240 fnt1 1313 9732(e)m 3(xp)k
240 fnt4 1661 9726(\()m 240 fnt1 1745 9732(ln)m 240 fnt4
1940 9726(\()m 240 fnt3 2024 9734(x)m 240 fnt4 2142 9726(\))m
2265(+)s 240 fnt1 2451 9732(ln)m 240 fnt4 2646 9726(\()m
240 fnt3 2730 9734(y)m 240 fnt4 2844 9726(\))m 2922(\))s
240 fnt1 8839 9732(\(2.14\))m 0 9229(and)m
[ /Dest /LOUT9_1541_mainbit_8 /DEST pdfmark
240 fnt3 480 8776(x)m
240 fnt4 698 8768(*)m 240 fnt3 913 8776(y)m 240 fnt4
1087 8768(=)m 240 fnt1 1288 8774(e)m 3(xp)k 240 fnt4
1636 8768(\()m 240 fnt1 1720 8774(ln)m 240 fnt4 1915 8768(\()m
240 fnt3 1999 8776(x)m 240 fnt4 2117 8768(\))m 2295(\264)s
240 fnt1 2535 8774(ln)m 240 fnt4 2730 8768(\()m 240 fnt3
2814 8776(y)m 240 fnt4 2928 8768(\))m 3006(\))s 3084(\))s
240 fnt1 8839 8774(\(2.15\))m 0 8271(and)m 404(therefore)s 1321(the)s
1669(essence)s 2455(of)s 240 fnt4 2826 8265(*)m 240 fnt1
3089 8271(may)m 3555(be)s 3837(reduced)s 4652(to)s


Artist/Physicist, Herder of Pixels, Photons and Electrons

Offline

#4 2018-01-25 10:24:28

darenw
Member
From: Trego Montana
Registered: 2008-07-04
Posts: 106
Website

Re: [SOLVED] Math symbols missing when viewing Postscript file.

I don't know if this is relevant, but looks suspicious on its own.  When I run 'gs' with no params, and at the GS> prompt enter 'loadallfonts', I get a zillion messages looking like:

Substituting font Times-Roman for Hershey-Plain-Duplex.                                                                         
Can't find (or can't open) font file hritrb.gsf.                                                                               
Can't find (or can't open) font file /usr/share/ghostscript/9.22/Resource/Font/Hershey-Gothic-Italian-Bold.                     
Can't find (or can't open) font file Hershey-Gothic-Italian-Bold.                                                               
Didn't find this font on the system!                                                   

When I look in /usr/share/ghostcript/9.22/Resource/, there's no Font directory.   
I find some .pfa files and .otf files in /usr/share/fonts/gsfonts/ and under /usr/share/groff/ (but I don't think groff has any relevance at all here)  There's no misplaced 'Font' directory in /usr/share or /usr/local.


Artist/Physicist, Herder of Pixels, Photons and Electrons

Offline

#5 2018-01-27 17:11:17

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: [SOLVED] Math symbols missing when viewing Postscript file.

darenw wrote:

When I look in /usr/share/ghostcript/9.22/Resource/, there's no Font directory.

I have a /usr/share/ghostscript/9.22/Resource/Font directory and it currently contains 37 files. Perhaps reinstall ghostscript?

Offline

#6 2018-01-28 04:26:27

darenw
Member
From: Trego Montana
Registered: 2008-07-04
Posts: 106
Website

Re: [SOLVED] Math symbols missing when viewing Postscript file.

I'll try a re-install.  Most times when I use pacman for more than just installing one thing, there are packages it asks me about replacing with other packages, or removing. I usually take the defaults.  If pacman then decides not to install anything, I answer those questions differently.  It may have been some situation like that, where some font or other files critical to Evince, Poppler, ghostscript or something they depend on, got replaced but not completely/correctly.


Artist/Physicist, Herder of Pixels, Photons and Electrons

Offline

#7 2018-01-28 09:12:32

darenw
Member
From: Trego Montana
Registered: 2008-07-04
Posts: 106
Website

Re: [SOLVED] Math symbols missing when viewing Postscript file.

Aha, 'pacman -R evince atril poppler ...' followed by 'pacman -S ..."  seems to have fixed the immediate problem.   

I had to remove more than just evince, atril, poppler, ghostview and a few related things. A bunch of apps depend on those, and not wanting to wrestle with pacman, I removed them and will re-install them later.   Now I might have an inconsistent system, and should do a proper 'pacman -Syu' soon, but not now.   

Also, I now see the /usr/share/ghostscript/9.22/Resource/Font  directory.  It's a mystery why it disappeared.


Artist/Physicist, Herder of Pixels, Photons and Electrons

Offline

#8 2018-01-29 21:51:49

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: [SOLVED] Math symbols missing when viewing Postscript file.

darenw wrote:

should do a proper 'pacman -Syu' soon, but not now.

Glad you are sorted - sooner rather than later I'd say for the -Syu ! Be careful of doing partial upgrades and don't forget to prepend [solved] to your first post...

Offline

Board footer

Powered by FluxBB