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