source: pst/ps/a2ps.xml@ c67fbf64

systemd-11177
Last change on this file since c67fbf64 was c67fbf64, checked in by Krejzi <krejzi@…>, 11 years ago

Remove packages that are now in lfs systemd from blfs.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@11302 af4574ff-66df-0310-9fd7-8a98e5e911e0

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