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 "0c8e0c31b08c14f7a7198ce967eb3281">
|
---|
10 | <!ENTITY a2ps-size "1.9 MB">
|
---|
11 | <!ENTITY a2ps-buildsize "20.7 MB">
|
---|
12 | <!ENTITY a2ps-time "0.26 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 "all to PostScript".</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">Recommended</bridgehead>
|
---|
82 | <para role="recommended"><xref linkend="cups"/> or <xref linkend="LPRng"/>
|
---|
83 | (otherwise, <application>a2ps</application> will use the
|
---|
84 | <command>cat >/dev/lp0</command> command instead of <command>lpr</command>
|
---|
85 | for sending its output to the printer)</para>
|
---|
86 |
|
---|
87 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
88 | <para role="optional"><xref linkend="x-window-system"/>,
|
---|
89 | <xref linkend="psutils"/>,
|
---|
90 | <xref linkend="tetex"/>,
|
---|
91 | <xref linkend="gs"/> or <xref linkend="espgs"/>,
|
---|
92 | <ulink
|
---|
93 | url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>,
|
---|
94 | <ulink url="http://www.adobe.com/products/acrobat/readstep2.html">Adobe
|
---|
95 | Reader</ulink>, and
|
---|
96 | <ulink
|
---|
97 | url="http://www.gnu.org/software/ghostview/ghostview.html">Ghostview</ulink></para>
|
---|
98 |
|
---|
99 | <para condition="html" role="usernotes">User Notes:
|
---|
100 | <ulink url="&blfs-wiki;/A2PS"/></para>
|
---|
101 |
|
---|
102 | </sect2>
|
---|
103 |
|
---|
104 | <sect2 role="installation">
|
---|
105 | <title>Installation of a2ps</title>
|
---|
106 |
|
---|
107 | <para>Install <application>a2ps</application> by running the following
|
---|
108 | commands:</para>
|
---|
109 |
|
---|
110 | <screen><userinput>sed -i "s|emacs||" contrib/Makefile.in &&
|
---|
111 | sed -i 's/+0 -1/-k 1,2/' afm/make_fonts_map.sh &&
|
---|
112 | sed -i "s|/usr/local/share|/usr/share|" configure &&
|
---|
113 | sed -i "s|char \*malloc ();|/* & */|" \
|
---|
114 | lib/path-concat.c &&
|
---|
115 | ./configure --prefix=/usr \
|
---|
116 | --sysconfdir=/etc/a2ps --localstatedir=/var \
|
---|
117 | --enable-shared --with-medium=letter &&
|
---|
118 | make</userinput></screen>
|
---|
119 |
|
---|
120 | <para>To test the results, issue: <command>make check</command>.
|
---|
121 | The <filename>printers.tst</filename> test will fail, as there is no default
|
---|
122 | test printer.</para>
|
---|
123 |
|
---|
124 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
125 |
|
---|
126 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
127 |
|
---|
128 | <para>Install the downloaded i18n-fonts by running the following
|
---|
129 | commands as the <systemitem class="username">root</systemitem> user:</para>
|
---|
130 |
|
---|
131 | <screen role="root"><userinput>tar -xf ../i18n-fonts-&i18n-fonts-version;.tar.gz &&
|
---|
132 | cp -v i18n-fonts-&i18n-fonts-version;/fonts/* /usr/share/a2ps/fonts &&
|
---|
133 | cp -v i18n-fonts-&i18n-fonts-version;/afm/* /usr/share/a2ps/afm &&
|
---|
134 | cd /usr/share/a2ps/afm &&
|
---|
135 | ./make_fonts_map.sh &&
|
---|
136 | mv fonts.map.new fonts.map</userinput></screen>
|
---|
137 |
|
---|
138 | </sect2>
|
---|
139 |
|
---|
140 | <sect2 role="commands">
|
---|
141 | <title>Command Explanations</title>
|
---|
142 |
|
---|
143 | <para><command>sed -i -e "s|emacs||" contrib/Makefile.in</command>:
|
---|
144 | This command eliminates the compiling and installing of the
|
---|
145 | <application>Emacs</application> script files. If you have substituted
|
---|
146 | <application>Emacs</application> for <application>Vi</application> as your
|
---|
147 | primary editor, skip this step.</para>
|
---|
148 |
|
---|
149 | <para><command>sed -i 's/+0 -1/-k 1,2/' afm/make_fonts_map.sh</command>:
|
---|
150 | The make_fonts_map.sh script to uses an option that is invalid with the
|
---|
151 | version of sort installed as part of <application>Coreutils-5.93</application>.
|
---|
152 | If you are using an older version of <application>Coreutils</application>,
|
---|
153 | skip this step.</para>
|
---|
154 |
|
---|
155 | <para><command>sed -i -e "s|/usr/local/share|/usr/share|" configure</command>:
|
---|
156 | This command modifies the configure script to search for
|
---|
157 | <application>Ghostscript</application> fonts at the location where they were
|
---|
158 | installed by the BLFS instructions.</para>
|
---|
159 |
|
---|
160 | <para><command>sed -i -e "s|char \*malloc ();|/* & */|"
|
---|
161 | lib/path-concat.c</command>: This command fixes a build problem with
|
---|
162 | <application>GCC</application>-3.4.x</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
|
---|
172 | the default paper format of A4 to letter. Installations that utilize A4
|
---|
173 | would eliminate this switch.</para>
|
---|
174 |
|
---|
175 | </sect2>
|
---|
176 |
|
---|
177 | <sect2 role="configuration">
|
---|
178 | <title>Configuring a2ps</title>
|
---|
179 |
|
---|
180 | <sect3 id="a2ps-config">
|
---|
181 | <title>Config Files</title>
|
---|
182 |
|
---|
183 | <para><filename>/etc/a2ps/a2ps.cfg</filename>,
|
---|
184 | <filename>/etc/a2ps/a2ps-site.cfg</filename></para>
|
---|
185 |
|
---|
186 | <indexterm zone="a2ps a2ps-config">
|
---|
187 | <primary sortas="e-etc-a2ps-a2ps.cfg">/etc/a2ps/a2ps.cfg</primary>
|
---|
188 | </indexterm>
|
---|
189 |
|
---|
190 | <indexterm zone="a2ps a2ps-config">
|
---|
191 | <primary sortas="e-etc-a2ps-a2ps-site.cfg">/etc/a2ps/a2ps-site.cfg</primary>
|
---|
192 | </indexterm>
|
---|
193 |
|
---|
194 | </sect3>
|
---|
195 |
|
---|
196 | <sect3>
|
---|
197 | <title>Configuration Information</title>
|
---|
198 |
|
---|
199 | <para>Information about configuring <application>a2ps</application>
|
---|
200 | can be found in the comments contained in the above files, and also
|
---|
201 | by running <command>info a2ps</command>.</para>
|
---|
202 |
|
---|
203 | </sect3>
|
---|
204 |
|
---|
205 | </sect2>
|
---|
206 |
|
---|
207 | <sect2 role="content">
|
---|
208 | <title>Contents</title>
|
---|
209 |
|
---|
210 | <segmentedlist>
|
---|
211 | <segtitle>Installed Programs</segtitle>
|
---|
212 | <segtitle>Installed Libraries</segtitle>
|
---|
213 | <segtitle>Installed Directories</segtitle>
|
---|
214 |
|
---|
215 | <seglistitem>
|
---|
216 | <seg>a2ps, card, composeglyphs, fixnt, fixps, ogonkify,
|
---|
217 | pdiff, psmandup, psset, and texi2dvi4a2ps</seg>
|
---|
218 | <seg>liba2ps.{so,a} and filter data</seg>
|
---|
219 | <seg>/etc/a2ps and /usr/share/a2ps</seg>
|
---|
220 | </seglistitem>
|
---|
221 | </segmentedlist>
|
---|
222 |
|
---|
223 | <variablelist>
|
---|
224 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
225 | <?dbfo list-presentation="list"?>
|
---|
226 | <?dbhtml list-presentation="table"?>
|
---|
227 |
|
---|
228 | <varlistentry id="a2ps-prog">
|
---|
229 | <term><command>a2ps</command></term>
|
---|
230 | <listitem>
|
---|
231 | <para>is a filter, utilized primarily by printing scripts,
|
---|
232 | that converts standard input or supported files to PostScript.</para>
|
---|
233 | <indexterm zone="a2ps a2ps-prog">
|
---|
234 | <primary sortas="b-a2ps">a2ps</primary>
|
---|
235 | </indexterm>
|
---|
236 | </listitem>
|
---|
237 | </varlistentry>
|
---|
238 |
|
---|
239 | <varlistentry id="card">
|
---|
240 | <term><command>card</command></term>
|
---|
241 | <listitem>
|
---|
242 | <para>prints a reference card of a given program's options.</para>
|
---|
243 | <indexterm zone="a2ps card">
|
---|
244 | <primary sortas="b-card">card</primary>
|
---|
245 | </indexterm>
|
---|
246 | </listitem>
|
---|
247 | </varlistentry>
|
---|
248 |
|
---|
249 | <varlistentry id="composeglyphs">
|
---|
250 | <term><command>composeglyphs</command></term>
|
---|
251 | <listitem>
|
---|
252 | <para>creates a composite font program.</para>
|
---|
253 | <indexterm zone="a2ps composeglyphs">
|
---|
254 | <primary sortas="b-composeglyphs">composeglyphs</primary>
|
---|
255 | </indexterm>
|
---|
256 | </listitem>
|
---|
257 | </varlistentry>
|
---|
258 |
|
---|
259 | <varlistentry id="fixnt">
|
---|
260 | <term><command>fixnt</command></term>
|
---|
261 | <listitem>
|
---|
262 | <para>is supposed to fix the problems in the PostScript files
|
---|
263 | generated by the Microsoft PostScript driver under Windows NT
|
---|
264 | (3.5 and 4.0).</para>
|
---|
265 | <indexterm zone="a2ps fixnt">
|
---|
266 | <primary sortas="b-fixnt">fixnt</primary>
|
---|
267 | </indexterm>
|
---|
268 | </listitem>
|
---|
269 | </varlistentry>
|
---|
270 |
|
---|
271 | <varlistentry id="fixps">
|
---|
272 | <term><command>fixps</command></term>
|
---|
273 | <listitem>
|
---|
274 | <para>tries to fix common PostScript problems that break
|
---|
275 | postprocessing.</para>
|
---|
276 | <indexterm zone="a2ps fixps">
|
---|
277 | <primary sortas="b-fixps">fixps</primary>
|
---|
278 | </indexterm>
|
---|
279 | </listitem>
|
---|
280 | </varlistentry>
|
---|
281 |
|
---|
282 | <varlistentry id="ogonkify">
|
---|
283 | <term><command>ogonkify</command></term>
|
---|
284 | <listitem>
|
---|
285 | <para>provides international support for Postscript by performing
|
---|
286 | various munging of PostScript files related to printing in different
|
---|
287 | languages.</para>
|
---|
288 | <indexterm zone="a2ps ogonkify">
|
---|
289 | <primary sortas="b-ogonkify">ogonkify</primary>
|
---|
290 | </indexterm>
|
---|
291 | </listitem>
|
---|
292 | </varlistentry>
|
---|
293 |
|
---|
294 | <varlistentry id="pdiff">
|
---|
295 | <term><command>pdiff</command></term>
|
---|
296 | <listitem>
|
---|
297 | <para>produces a pretty comparison between files.</para>
|
---|
298 | <indexterm zone="a2ps pdiff">
|
---|
299 | <primary sortas="b-pdiff">pdiff</primary>
|
---|
300 | </indexterm>
|
---|
301 | </listitem>
|
---|
302 | </varlistentry>
|
---|
303 |
|
---|
304 | <varlistentry id="psmandup">
|
---|
305 | <term><command>psmandup</command></term>
|
---|
306 | <listitem>
|
---|
307 | <para>tries to produce a version of a given PostScript file to
|
---|
308 | print in manual duplex.</para>
|
---|
309 | <indexterm zone="a2ps psmandup">
|
---|
310 | <primary sortas="b-psmandup">psmandup</primary>
|
---|
311 | </indexterm>
|
---|
312 | </listitem>
|
---|
313 | </varlistentry>
|
---|
314 |
|
---|
315 | <varlistentry id="psset">
|
---|
316 | <term><command>psset</command></term>
|
---|
317 | <listitem>
|
---|
318 | <para>produces a version of a given PostScript file with a
|
---|
319 | protected call to the PostScript operator 'setpagedevice'.
|
---|
320 | Typical use is making a file print duplex, or on the manual
|
---|
321 | tray, etc.</para>
|
---|
322 | <indexterm zone="a2ps psset">
|
---|
323 | <primary sortas="b-psset">psset</primary>
|
---|
324 | </indexterm>
|
---|
325 | </listitem>
|
---|
326 | </varlistentry>
|
---|
327 |
|
---|
328 | <varlistentry id="texi2dvi4a2ps">
|
---|
329 | <term><command>texi2dvi4a2ps</command></term>
|
---|
330 | <listitem>
|
---|
331 | <para>compiles Texinfo and LaTeX files to DVI or PDF</para>
|
---|
332 | <indexterm zone="a2ps texi2dvi4a2ps">
|
---|
333 | <primary sortas="b-texi2dvi4a2ps">texi2dvi4a2ps</primary>
|
---|
334 | </indexterm>
|
---|
335 | </listitem>
|
---|
336 | </varlistentry>
|
---|
337 |
|
---|
338 | </variablelist>
|
---|
339 |
|
---|
340 | </sect2>
|
---|
341 |
|
---|
342 | </sect1>
|
---|