source: pst/ps/a2ps.xml@ 410e228b

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 410e228b was 410e228b, checked in by Randy McMurchy <randy@…>, 16 years ago

Removed extraneous whitespace from the ends of line text

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7431 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 12.2 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 <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="psutils"/>, and
83 <xref linkend="cups"/> or <xref linkend="LPRng"/>
84 (otherwise, <application>a2ps</application> will use the
85 <command>cat &gt;/dev/lp0</command> command instead of <command>lpr</command>
86 for sending its output to the printer)</para>
87
88 <bridgehead renderas="sect4">Optional</bridgehead>
89 <para role="optional"><xref linkend="x-window-system"/>,
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>
98 </para>
99
100 <para condition="html" role="usernotes">User Notes:
101 <ulink url="&blfs-wiki;/A2PS"/></para>
102
103 </sect2>
104
105 <sect2 role="installation">
106 <title>Installation of a2ps</title>
107
108 <para>Install <application>a2ps</application> by running the following
109 commands:</para>
110
111<screen><userinput>sed -i 's/+0 -1/-k 1,2/' afm/make_fonts_map.sh &amp;&amp;
112sed -i "s|/usr/local/share|/usr/share|" configure &amp;&amp;
113./configure --prefix=/usr \
114 --sysconfdir=/etc/a2ps \
115 --enable-shared \
116 --with-medium=letter &amp;&amp;
117make</userinput></screen>
118
119 <para>To test the results, issue: <command>make check</command>.
120 The <filename>printers.tst</filename> test will fail, as there is no default
121 test printer. The <filename>styles.tst</filename> may also fail, as the
122 tests report some inconsistencies between the generated postscript and the
123 reference sets. This is caused by version number differences between the
124 postscript test files and those generated by the tests &mdash; these do not
125 affect the operation of the program and can be ignored.</para>
126
127 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
128
129<screen role="root"><userinput>make install</userinput></screen>
130
131 <para>If desired, install the downloaded i18n-fonts by running the following
132 commands as the <systemitem class="username">root</systemitem> user:</para>
133
134<screen role="root"><userinput>tar -xf ../i18n-fonts-&i18n-fonts-version;.tar.gz &amp;&amp;
135cp -v i18n-fonts-&i18n-fonts-version;/fonts/* /usr/share/a2ps/fonts &amp;&amp;
136cp -v i18n-fonts-&i18n-fonts-version;/afm/* /usr/share/a2ps/afm &amp;&amp;
137cd /usr/share/a2ps/afm &amp;&amp;
138./make_fonts_map.sh &amp;&amp;
139mv fonts.map.new fonts.map</userinput></screen>
140
141 </sect2>
142
143 <sect2 role="commands">
144 <title>Command Explanations</title>
145
146 <para><command>sed -i 's/+0 -1/-k 1,2/' afm/make_fonts_map.sh</command>:
147 The <filename>make_fonts_map.sh</filename> script uses an option that is
148 invalid with the version of <command>sort</command> installed as part of
149 <application>Coreutils-&lfs-coreutils-version;</application>.
150 If you are using an older version of <application>Coreutils</application>,
151 skip this step.</para>
152
153 <para><command>sed -i -e "s|/usr/local/share|/usr/share|" configure</command>:
154 This command modifies the <command>configure</command> script to search for
155 <application>Ghostscript</application> fonts at the location where they were
156 installed by the BLFS instructions.</para>
157
158 <para><parameter>--sysconfdir=/etc/a2ps</parameter>: Configuration data
159 is installed in <filename class="directory">/etc/a2ps</filename> instead of
160 <filename class="directory">/usr/etc</filename>.</para>
161
162 <para><parameter>--enable-shared</parameter>: This switch enables building
163 the dynamic <filename class='libraryfile'>liba2ps</filename> library.</para>
164
165 <para><parameter>--with-medium=letter</parameter>: This switch changes the
166 default paper format to US letter. It can either be given here or set
167 in <filename>/etc/a2ps/a2ps-site.cfg</filename> after installation. The
168 default is A4, but there are several other options, in particular: A4dj or
169 letterdj are good
170 settings for HP Deskjet and other printers that need wider paper-handling
171 margins. See <filename>/etc/a2ps/a2ps.cfg</filename> after installation.</para>
172
173 </sect2>
174
175 <sect2 role="configuration">
176 <title>Configuring a2ps</title>
177
178 <sect3 id="a2ps-config">
179 <title>Config Files</title>
180
181 <para><filename>/etc/a2ps/a2ps.cfg</filename>,
182 <filename>/etc/a2ps/a2ps-site.cfg</filename></para>
183
184 <indexterm zone="a2ps a2ps-config">
185 <primary sortas="e-etc-a2ps-a2ps.cfg">/etc/a2ps/a2ps.cfg</primary>
186 </indexterm>
187
188 <indexterm zone="a2ps a2ps-config">
189 <primary sortas="e-etc-a2ps-a2ps-site.cfg">/etc/a2ps/a2ps-site.cfg</primary>
190 </indexterm>
191
192 </sect3>
193
194 <sect3>
195 <title>Configuration Information</title>
196
197 <para>Information about configuring <application>a2ps</application>
198 can be found in the comments contained in the above files, and also
199 by running <command>info a2ps</command>.</para>
200
201 </sect3>
202
203 </sect2>
204
205 <sect2 role="content">
206 <title>Contents</title>
207
208 <segmentedlist>
209 <segtitle>Installed Programs</segtitle>
210 <segtitle>Installed Libraries</segtitle>
211 <segtitle>Installed Directories</segtitle>
212
213 <seglistitem>
214 <seg>a2ps, card, composeglyphs, fixnt, fixps, ogonkify,
215 pdiff, psmandup, psset, and texi2dvi4a2ps</seg>
216 <seg>liba2ps.{so,a} and filter data</seg>
217 <seg>/etc/a2ps and /usr/share/a2ps</seg>
218 </seglistitem>
219 </segmentedlist>
220
221 <variablelist>
222 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
223 <?dbfo list-presentation="list"?>
224 <?dbhtml list-presentation="table"?>
225
226 <varlistentry id="a2ps-prog">
227 <term><command>a2ps</command></term>
228 <listitem>
229 <para>is a filter, utilized primarily by printing scripts,
230 that converts standard input or supported files to PostScript.</para>
231 <indexterm zone="a2ps a2ps-prog">
232 <primary sortas="b-a2ps">a2ps</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
237 <varlistentry id="card">
238 <term><command>card</command></term>
239 <listitem>
240 <para>prints a reference card of a given program's options.</para>
241 <indexterm zone="a2ps card">
242 <primary sortas="b-card">card</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 <varlistentry id="composeglyphs">
248 <term><command>composeglyphs</command></term>
249 <listitem>
250 <para>creates a composite font program.</para>
251 <indexterm zone="a2ps composeglyphs">
252 <primary sortas="b-composeglyphs">composeglyphs</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry id="fixnt">
258 <term><command>fixnt</command></term>
259 <listitem>
260 <para>is supposed to fix the problems in the PostScript files
261 generated by the Microsoft PostScript driver under Windows NT
262 (3.5 and 4.0).</para>
263 <indexterm zone="a2ps fixnt">
264 <primary sortas="b-fixnt">fixnt</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 <varlistentry id="fixps">
270 <term><command>fixps</command></term>
271 <listitem>
272 <para>tries to fix common PostScript problems that break
273 postprocessing.</para>
274 <indexterm zone="a2ps fixps">
275 <primary sortas="b-fixps">fixps</primary>
276 </indexterm>
277 </listitem>
278 </varlistentry>
279
280 <varlistentry id="ogonkify">
281 <term><command>ogonkify</command></term>
282 <listitem>
283 <para>provides international support for Postscript by performing
284 various munging of PostScript files related to printing in different
285 languages.</para>
286 <indexterm zone="a2ps ogonkify">
287 <primary sortas="b-ogonkify">ogonkify</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
292 <varlistentry id="pdiff">
293 <term><command>pdiff</command></term>
294 <listitem>
295 <para>produces a pretty comparison between files.</para>
296 <indexterm zone="a2ps pdiff">
297 <primary sortas="b-pdiff">pdiff</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 <varlistentry id="psmandup">
303 <term><command>psmandup</command></term>
304 <listitem>
305 <para>tries to produce a version of a given PostScript file to
306 print in manual duplex.</para>
307 <indexterm zone="a2ps psmandup">
308 <primary sortas="b-psmandup">psmandup</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 <varlistentry id="psset">
314 <term><command>psset</command></term>
315 <listitem>
316 <para>produces a version of a given PostScript file with a
317 protected call to the PostScript operator 'setpagedevice'.
318 Typical use is making a file print duplex, or on the manual
319 tray, etc.</para>
320 <indexterm zone="a2ps psset">
321 <primary sortas="b-psset">psset</primary>
322 </indexterm>
323 </listitem>
324 </varlistentry>
325
326 <varlistentry id="texi2dvi4a2ps">
327 <term><command>texi2dvi4a2ps</command></term>
328 <listitem>
329 <para>compiles Texinfo and LaTeX files to DVI or PDF</para>
330 <indexterm zone="a2ps texi2dvi4a2ps">
331 <primary sortas="b-texi2dvi4a2ps">texi2dvi4a2ps</primary>
332 </indexterm>
333 </listitem>
334 </varlistentry>
335
336 </variablelist>
337
338 </sect2>
339
340</sect1>
Note: See TracBrowser for help on using the repository browser.