dov / paps

A text to postscript converter through pango
Other
52 stars 15 forks source link

About

paps is a command line program for converting Unicode text encoded in UTF-8 to postscript and pdf by using pango.

Installation instructions

See file:INSTALL.md

Example

Here is the output from processing the file misc/small-hello.utf8:

Example image

History

paps was written around 2005 to enable printing of plain text unicode UTF-8 files. It is named by the use of the excellent Pango library (from which it took its first two characters) and outputed postscript (ps, the last two characters). When the initial version was written, there was no simple way of translating the output of pango to postscript outlines, and therefore initially output bitmap fonts in the postscript output.

But I wanted to have resolution independent postscript, and therefore in a subsequent version Ι wrote my own font encoding library in PostScript, by making use of the fact that PostScript is a full programming language. This worked well when sending the result to a PostScript printer, but the use of this library had some serious disadvantages:

In the early 2010's the library cairo and its accompanying pangocairo library finally created an easy way of converting pango output to postscript in an idiomatic way. But it took me several years until I finally rewrote paps to make use of them.

But I finally did so and released the resulting version on github in 2015 as version 0.7.0 .

Usage

Run paps --help for getting usage help.

Run man paps for the man page