source: pst/ps/a2ps.xml@ a41f643

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since a41f643 was a41f643, checked in by Randy McMurchy <randy@…>, 14 years ago

Globally removed all extraneous spaces

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@8412 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 12.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY a2ps-download-http "http://ftp.gnu.org/gnu/a2ps/a2ps-&a2ps-version;.tar.gz">
8 <!ENTITY a2ps-download-ftp "ftp://ftp.gnu.org/gnu/a2ps/a2ps-&a2ps-version;.tar.gz">
9 <!ENTITY a2ps-md5sum "781ac3d9b213fa3e1ed0d79f986dc8c7">
10 <!ENTITY a2ps-size "2.6 MB">
11 <!ENTITY a2ps-buildsize "22 MB">
12 <!ENTITY a2ps-time "0.3 SBU">
13
14 <!ENTITY i18n-fonts-version "0.1">
15]>
16
17<sect1 id="a2ps" xreflabel="a2ps-&a2ps-version;">
18 <?dbhtml filename="a2ps.html"?>
19
20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
23 </sect1info>
24
25 <title>a2ps-&a2ps-version;</title>
26
27 <indexterm zone="a2ps">
28 <primary sortas="a-a2ps">a2ps</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to a2ps</title>
33
34 <para><application>a2ps</application> is a filter utilized mainly
35 in the background and primarily by printing scripts to convert almost
36 every input format into PostScript output. The application's name
37 expands appropriately to <quote>all to PostScript</quote>.</para>
38
39 <caution>
40 <para><application>a2ps</application> cannot convert UTF-8 encoded
41 text to PostScript. The issue is discussed in detail in the
42 <xref linkend="locale-not-valid-option"/> section of the
43 <xref linkend="locale-issues"/> page.
44 The solution is to use <xref linkend="paps"/> instead of
45 <application>a2ps</application> for converting
46 UTF-8 encoded text to PostScript.</para>
47 </caution>
48
49 <bridgehead renderas="sect3">Package Information</bridgehead>
50 <itemizedlist spacing="compact">
51 <listitem>
52 <para>Download (HTTP): <ulink url="&a2ps-download-http;"/></para>
53 </listitem>
54 <listitem>
55 <para>Download (FTP): <ulink url="&a2ps-download-ftp;"/></para>
56 </listitem>
57 <listitem>
58 <para>Download MD5 sum: &a2ps-md5sum;</para>
59 </listitem>
60 <listitem>
61 <para>Download size: &a2ps-size;</para>
62 </listitem>
63 <listitem>
64 <para>Estimated disk space required: &a2ps-buildsize;</para>
65 </listitem>
66 <listitem>
67 <para>Estimated build time: &a2ps-time;</para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
72 <itemizedlist spacing='compact'>
73 <listitem>
74 <para>International fonts: <ulink
75 url="ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-&i18n-fonts-version;.tar.gz"/></para>
76 </listitem>
77 </itemizedlist>
78
79 <bridgehead renderas="sect3">a2ps Dependencies</bridgehead>
80
81 <bridgehead renderas="sect4">Required</bridgehead>
82 <para role="required"><xref linkend="gperf"/></para>
83
84 <bridgehead renderas="sect4">Recommended</bridgehead>
85 <para role="recommended"><xref linkend="psutils"/>, and
86 <xref linkend="cups"/> or <xref linkend="LPRng"/>
87 (otherwise, <application>a2ps</application> will use the
88 <command>cat &gt;/dev/lp0</command> command instead of <command>lpr</command>
89 for sending its output to the printer)</para>
90
91 <bridgehead renderas="sect4">Optional</bridgehead>
92 <para role="optional"><xref linkend="x-window-system"/>,
93 <xref linkend="tetex"/>,
94 <xref linkend="gs"/><!-- or <xref linkend="espgs"/> -->,
95 <ulink
96 url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>,
97 <ulink url="http://www.adobe.com/products/acrobat/readstep2.html">Adobe
98 Reader</ulink>, and
99 <ulink
100 url="http://www.gnu.org/software/ghostview/ghostview.html">Ghostview</ulink>
101 </para>
102
103 <para condition="html" role="usernotes">User Notes:
104 <ulink url="&blfs-wiki;/A2PS"/></para>
105
106 </sect2>
107
108 <sect2 role="installation">
109 <title>Installation of a2ps</title>
110
111 <para>Install <application>a2ps</application> by running the following
112 commands:</para>
113
114<screen><userinput>autoconf &amp;&amp;
115sed -i "s/GPERF --version |/&amp; head -n 1 |/" configure &amp;&amp;
116sed -i "s|/usr/local/share|/usr/share|" configure &amp;&amp;
117./configure --prefix=/usr \
118 --sysconfdir=/etc/a2ps \
119 --enable-shared \
120 --with-medium=letter &amp;&amp;
121make</userinput></screen>
122
123 <para>To test the results, issue: <command>make check</command>.
124 The <filename>printers.tst</filename> test will fail, as there is no default
125 test printer. The <filename>styles.tst</filename> may also fail, as the
126 tests report some inconsistencies between the generated postscript and the
127 reference sets. This is caused by version number differences between the
128 postscript test files and those generated by the tests &mdash; these do not
129 affect the operation of the program and can be ignored.</para>
130
131 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
132
133<screen role="root"><userinput>make install</userinput></screen>
134
135 <para>If desired, install the downloaded i18n-fonts by running the following
136 commands as the <systemitem class="username">root</systemitem> user:</para>
137
138<screen role="root"><userinput>tar -xf ../i18n-fonts-&i18n-fonts-version;.tar.gz &amp;&amp;
139cp -v i18n-fonts-&i18n-fonts-version;/fonts/* /usr/share/a2ps/fonts &amp;&amp;
140cp -v i18n-fonts-&i18n-fonts-version;/afm/* /usr/share/a2ps/afm &amp;&amp;
141cd /usr/share/a2ps/afm &amp;&amp;
142./make_fonts_map.sh &amp;&amp;
143mv fonts.map.new fonts.map</userinput></screen>
144
145 </sect2>
146
147 <sect2 role="commands">
148 <title>Command Explanations</title>
149
150 <para><command>autoconf</command>: This command is used to recreate the
151 <command>configure</command> script. This is required because there is
152 an issue in the mktime test which causes the
153 <command>configure</command> script to hang for 60 seconds and then report
154 that there is no working mktime function.</para>
155
156 <para><command>sed -i "s/GPERF --version |/&amp; head -n 1 |/" configure</command>:
157 This fixes a bug in the handling of the version output of
158 <command>gperf</command>.</para>
159
160 <para><command>sed -i "s|/usr/local/share|/usr/share|" configure</command>:
161 This command modifies the <command>configure</command> script to search for
162 <application>Ghostscript</application> fonts at the location where they were
163 installed by the BLFS instructions.</para>
164
165 <para><parameter>--sysconfdir=/etc/a2ps</parameter>: Configuration data
166 is installed in <filename class="directory">/etc/a2ps</filename> instead of
167 <filename class="directory">/usr/etc</filename>.</para>
168
169 <para><parameter>--enable-shared</parameter>: This switch enables building
170 the dynamic <filename class='libraryfile'>liba2ps</filename> library.</para>
171
172 <para><parameter>--with-medium=letter</parameter>: This switch changes the
173 default paper format to US letter. It can either be given here or set
174 in <filename>/etc/a2ps/a2ps-site.cfg</filename> after installation. The
175 default is A4, but there are several other options, in particular: A4dj or
176 letterdj are good settings for HP Deskjet and other printers that need
177 wider paper-handling margins. See <filename>/etc/a2ps/a2ps.cfg</filename>
178 after installation.</para>
179
180 </sect2>
181
182 <sect2 role="configuration">
183 <title>Configuring a2ps</title>
184
185 <sect3 id="a2ps-config">
186 <title>Config Files</title>
187
188 <para><filename>/etc/a2ps/a2ps.cfg</filename>,
189 <filename>/etc/a2ps/a2ps-site.cfg</filename></para>
190
191 <indexterm zone="a2ps a2ps-config">
192 <primary sortas="e-etc-a2ps-a2ps.cfg">/etc/a2ps/a2ps.cfg</primary>
193 </indexterm>
194
195 <indexterm zone="a2ps a2ps-config">
196 <primary sortas="e-etc-a2ps-a2ps-site.cfg">/etc/a2ps/a2ps-site.cfg</primary>
197 </indexterm>
198
199 </sect3>
200
201 <sect3>
202 <title>Configuration Information</title>
203
204 <para>Information about configuring <application>a2ps</application>
205 can be found in the comments contained in the above files, and also
206 by running <command>info a2ps</command>.</para>
207
208 </sect3>
209
210 </sect2>
211
212 <sect2 role="content">
213 <title>Contents</title>
214
215 <segmentedlist>
216 <segtitle>Installed Programs</segtitle>
217 <segtitle>Installed Libraries</segtitle>
218 <segtitle>Installed Directories</segtitle>
219
220 <seglistitem>
221 <seg>a2ps, card, composeglyphs, fixnt, fixps, ogonkify,
222 pdiff, psmandup, psset, and texi2dvi4a2ps</seg>
223 <seg>liba2ps.{so,a} and filter data</seg>
224 <seg>/etc/a2ps and /usr/share/a2ps</seg>
225 </seglistitem>
226 </segmentedlist>
227
228 <variablelist>
229 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
230 <?dbfo list-presentation="list"?>
231 <?dbhtml list-presentation="table"?>
232
233 <varlistentry id="a2ps-prog">
234 <term><command>a2ps</command></term>
235 <listitem>
236 <para>is a filter, utilized primarily by printing scripts,
237 that converts standard input or supported files to PostScript.</para>
238 <indexterm zone="a2ps a2ps-prog">
239 <primary sortas="b-a2ps">a2ps</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 <varlistentry id="card">
245 <term><command>card</command></term>
246 <listitem>
247 <para>prints a reference card of a given program's options.</para>
248 <indexterm zone="a2ps card">
249 <primary sortas="b-card">card</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 <varlistentry id="composeglyphs">
255 <term><command>composeglyphs</command></term>
256 <listitem>
257 <para>creates a composite font program.</para>
258 <indexterm zone="a2ps composeglyphs">
259 <primary sortas="b-composeglyphs">composeglyphs</primary>
260 </indexterm>
261 </listitem>
262 </varlistentry>
263
264 <varlistentry id="fixnt">
265 <term><command>fixnt</command></term>
266 <listitem>
267 <para>is supposed to fix the problems in the PostScript files
268 generated by the Microsoft PostScript driver under Windows NT
269 (3.5 and 4.0).</para>
270 <indexterm zone="a2ps fixnt">
271 <primary sortas="b-fixnt">fixnt</primary>
272 </indexterm>
273 </listitem>
274 </varlistentry>
275
276 <varlistentry id="fixps">
277 <term><command>fixps</command></term>
278 <listitem>
279 <para>tries to fix common PostScript problems that break
280 postprocessing.</para>
281 <indexterm zone="a2ps fixps">
282 <primary sortas="b-fixps">fixps</primary>
283 </indexterm>
284 </listitem>
285 </varlistentry>
286
287 <varlistentry id="ogonkify">
288 <term><command>ogonkify</command></term>
289 <listitem>
290 <para>provides international support for Postscript by performing
291 various munging of PostScript files related to printing in different
292 languages.</para>
293 <indexterm zone="a2ps ogonkify">
294 <primary sortas="b-ogonkify">ogonkify</primary>
295 </indexterm>
296 </listitem>
297 </varlistentry>
298
299 <varlistentry id="pdiff">
300 <term><command>pdiff</command></term>
301 <listitem>
302 <para>produces a pretty comparison between files.</para>
303 <indexterm zone="a2ps pdiff">
304 <primary sortas="b-pdiff">pdiff</primary>
305 </indexterm>
306 </listitem>
307 </varlistentry>
308
309 <varlistentry id="psmandup">
310 <term><command>psmandup</command></term>
311 <listitem>
312 <para>tries to produce a version of a given PostScript file to
313 print in manual duplex.</para>
314 <indexterm zone="a2ps psmandup">
315 <primary sortas="b-psmandup">psmandup</primary>
316 </indexterm>
317 </listitem>
318 </varlistentry>
319
320 <varlistentry id="psset">
321 <term><command>psset</command></term>
322 <listitem>
323 <para>produces a version of a given PostScript file with a
324 protected call to the PostScript operator 'setpagedevice'.
325 Typical use is making a file print duplex, or on the manual
326 tray, etc.</para>
327 <indexterm zone="a2ps psset">
328 <primary sortas="b-psset">psset</primary>
329 </indexterm>
330 </listitem>
331 </varlistentry>
332
333 <varlistentry id="texi2dvi4a2ps">
334 <term><command>texi2dvi4a2ps</command></term>
335 <listitem>
336 <para>compiles Texinfo and LaTeX files to DVI or PDF</para>
337 <indexterm zone="a2ps texi2dvi4a2ps">
338 <primary sortas="b-texi2dvi4a2ps">texi2dvi4a2ps</primary>
339 </indexterm>
340 </listitem>
341 </varlistentry>
342
343 </variablelist>
344
345 </sect2>
346
347</sect1>
Note: See TracBrowser for help on using the repository browser.