source: pst/ps/a2ps.xml@ 5efe329

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 5efe329 was 5efe329, checked in by Richard Downing <richard@…>, 16 years ago

corrected explanation of test fails in just-committed a2ps-4.14 update - changelog not altered

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