a2ps-4.14
Installation of a2ps
Install a2ps by running the
following commands:
sed -i 's/+0 -1/-k 1,2/' afm/make_fonts_map.sh &&
sed -i "s|/usr/local/share|/usr/share|" configure &&
./configure --prefix=/usr \
--sysconfdir=/etc/a2ps \
--enable-shared \
--with-medium=letter &&
make
To test the results, issue: make
check. The printers.tst
test will fail, as there is no
default test printer. The styles.tst
may also fail, as the tests report some inconsistencies between the
generated postscript and the reference sets. This is caused by
version number differences between the postscript test files and
those generated by the tests — these do not affect the
operation of the program and can be ignored.
Now, as the root
user:
make install
If desired, install the downloaded i18n-fonts by running the
following commands as the root
user:
tar -xf ../i18n-fonts-0.1.tar.gz &&
cp -v i18n-fonts-0.1/fonts/* /usr/share/a2ps/fonts &&
cp -v i18n-fonts-0.1/afm/* /usr/share/a2ps/afm &&
cd /usr/share/a2ps/afm &&
./make_fonts_map.sh &&
mv fonts.map.new fonts.map
Command Explanations
sed -i 's/+0 -1/-k 1,2/'
afm/make_fonts_map.sh: The make_fonts_map.sh
script uses an option that is
invalid with the version of sort installed as part of
Coreutils-6.9. If you are using an
older version of Coreutils, skip
this step.
sed -i -e
"s|/usr/local/share|/usr/share|" configure: This
command modifies the configure script to search for
Ghostscript fonts at the location
where they were installed by the BLFS instructions.
--sysconfdir=/etc/a2ps
:
Configuration data is installed in /etc/a2ps
instead of /usr/etc
.
--enable-shared
: This
switch enables building the dynamic liba2ps
library.
--with-medium=letter
: This
switch changes the default paper format to US letter. It can either
be given here or set in /etc/a2ps/a2ps-site.cfg
after installation. The
default is A4, but there are several other options, in particular:
A4dj or letterdj are good settings for HP Deskjet and other
printers that need wider paper-handling margins. See /etc/a2ps/a2ps.cfg
after installation.
Configuring a2ps
Config Files
/etc/a2ps/a2ps.cfg
, /etc/a2ps/a2ps-site.cfg
Configuration Information
Information about configuring a2ps can be found in the comments contained
in the above files, and also by running info a2ps.
Contents
Installed Programs:
a2ps, card, composeglyphs, fixnt, fixps,
ogonkify, pdiff, psmandup, psset, and texi2dvi4a2ps
Installed Libraries:
liba2ps.{so,a} and filter data
Installed Directories:
/etc/a2ps and /usr/share/a2ps
Short Descriptions
a2ps
|
is a filter, utilized primarily by printing scripts, that
converts standard input or supported files to PostScript.
|
card
|
prints a reference card of a given program's options.
|
composeglyphs
|
creates a composite font program.
|
fixnt
|
is supposed to fix the problems in the PostScript files
generated by the Microsoft PostScript driver under
Windows NT (3.5 and 4.0).
|
fixps
|
tries to fix common PostScript problems that break
postprocessing.
|
ogonkify
|
provides international support for Postscript by
performing various munging of PostScript files related to
printing in different languages.
|
pdiff
|
produces a pretty comparison between files.
|
psmandup
|
tries to produce a version of a given PostScript file to
print in manual duplex.
|
psset
|
produces a version of a given PostScript file with a
protected call to the PostScript operator
'setpagedevice'. Typical use is making a file print
duplex, or on the manual tray, etc.
|
texi2dvi4a2ps
|
compiles Texinfo and LaTeX files to DVI or PDF
|
Last updated on 2008-05-09 08:00:42 -0500