source: archive/a2ps.xml

trunk
Last change on this file was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 17 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

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