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