Index | Thread | Search

From:
Alexander Arkhipov <aa@manpager.org>
Subject:
Re: IPA in print/u2ps
To:
Jan Stary <hans@stare.cz>
Cc:
ports@openbsd.org
Date:
Sun, 18 Feb 2024 19:40:58 +0400

Download raw body.

Thread
  • Jan Stary:

    IPA in print/u2ps

    • Alexander Arkhipov:

      IPA in print/u2ps

Hi, Jan!

> Since last May, we have print/u2ps;
> sadly, upstream seems to have ditched it:
> 
> 	https://github.com/arsv/u2ps/
> 	This repository has been archived by the owner
> 	on Sep 1, 2023. It is now read-only. 
> 
> Is anyone aware of a continuation that is alive?
> (I forked it back then, as did a few other people,
> but none of those seems to be really maintained.)

Yes, as I recall, that happened soon after I ported it. Unfortunately, I
haven't been able to find anything better, or to learn enough postscript
to start working on a fork, or a new program.
 
> To recall: u2ps is supposed to be better at Unicode,
> which a2ps does not support at all. I am having problems
> with the rendering the Unicode IPA notation, as shown
> in the attached files.
> 
> I guess it's because the default font (which is FreeMono)
> does not actually have the glyphs for those characters.
> Trying to chnage the font as described in doc/fonts.txt
> does not work, however: having a copy of fonts/charis
> under /usr/locale/share/u2ps/fonts sill results in
> 
> 	$ u2ps -f Charis ipa.txt ipa.ps            
> 	unknown font set: Charis
> 
> Can anyone make the attached text file render correctly
> using u2ps (or any other PS package, for that matter?)

Unfortunately, I found u2ps' man page to be very misleading. Also,
fc-list(1) gives me "Charis SIL", instead of just "Charis".
Unfortunately, even the "correct" invocation fails:

	$ u2ps -f R:'Charis SIL' <text
	GPL Ghostscript 10.02.1: Unrecoverable error, exit code 1
	gs failed, aborting

It fails like this for some fonts, but not for others. Perhaps there is
a font that doesn't break u2ps, but also contains these characters. As a
short-term solution you may wish to try [paps] (it's not a port, and
personally I recall having some problems with it, but maybe it'll work
for you). I think the long-term solution would be for someone (i.e. me)
to write a program that actually works, but I don't think that'll happen
any time soon.

[paps] https://github.com/dov/paps

-- 
Alexander