source: pst/ps/a2ps.xml@ 86bb9db5

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 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 86bb9db5 was 86bb9db5, checked in by Andrew Benton <andy@…>, 18 years ago

fixed the a2ps afm/make_fonts_map.sh script to work with coreutils-5.93 (thanks Alexander)

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

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