source: pst/ps/a2ps.xml@ f53134c

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since f53134c was afe8a934, checked in by Randy McMurchy <randy@…>, 16 years ago

Replaced hard coded Coreutils version with an entity in the a2ps instructions

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

  • Property mode set to 100644
File size: 12.2 KB
RevLine 
[db35990d]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[959f944]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[b3811e1]6
[959f944]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">
[b3811e1]9 <!ENTITY a2ps-md5sum "0c8e0c31b08c14f7a7198ce967eb3281">
[959f944]10 <!ENTITY a2ps-size "1.9 MB">
[deddaa7]11 <!ENTITY a2ps-buildsize "20.7 MB">
[b3811e1]12 <!ENTITY a2ps-time "0.26 SBU">
[bccbd219]13
14 <!ENTITY i18n-fonts-version "0.1">
[959f944]15]>
16
[5fd03d2]17<sect1 id="a2ps" xreflabel="a2ps-&a2ps-version;">
[db35990d]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
[bfb7882]34 <para><application>a2ps</application> is a filter utilized mainly
[db35990d]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>
[a4b9cd7]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>
[db35990d]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
[bccbd219]75 url="ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-&i18n-fonts-version;.tar.gz"/></para>
[db35990d]76 </listitem>
77 </itemizedlist>
78
79 <bridgehead renderas="sect3">a2ps Dependencies</bridgehead>
80
[a4b9cd7]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 &gt;/dev/lp0</command> command instead of <command>lpr</command>
85 for sending its output to the printer)</para>
86
[db35990d]87 <bridgehead renderas="sect4">Optional</bridgehead>
[e77976f]88 <para role="optional"><xref linkend="x-window-system"/>,
[db35990d]89 <xref linkend="psutils"/>,
[520f6b4f]90 <xref linkend="tetex"/>,
[db35990d]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
[e77976f]95 Reader</ulink>, and
[db35990d]96 <ulink
97 url="http://www.gnu.org/software/ghostview/ghostview.html">Ghostview</ulink></para>
98
[977061b0]99 <para condition="html" role="usernotes">User Notes:
[6c42d4e]100 <ulink url="&blfs-wiki;/A2PS"/></para>
[977061b0]101
[db35990d]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
[deddaa7]110<screen><userinput>sed -i "s|emacs||" contrib/Makefile.in &amp;&amp;
[86bb9db5]111sed -i 's/+0 -1/-k 1,2/' afm/make_fonts_map.sh &amp;&amp;
[deddaa7]112sed -i "s|/usr/local/share|/usr/share|" configure &amp;&amp;
113sed -i "s|char \*malloc ();|/* &amp; */|" \
[1eee454]114 lib/path-concat.c &amp;&amp;
[959f944]115./configure --prefix=/usr \
116 --sysconfdir=/etc/a2ps --localstatedir=/var \
[1eee454]117 --enable-shared --with-medium=letter &amp;&amp;
[deddaa7]118make</userinput></screen>
119
120 <para>To test the results, issue: <command>make check</command>.
[df80d76]121 The <filename>printers.tst</filename> test will fail, as there is no default
[470d3786]122 test printer.</para>
[deddaa7]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
[470d3786]129 commands as the <systemitem class="username">root</systemitem> user:</para>
[deddaa7]130
[bccbd219]131<screen role="root"><userinput>tar -xf ../i18n-fonts-&i18n-fonts-version;.tar.gz &amp;&amp;
132cp -v i18n-fonts-&i18n-fonts-version;/fonts/* /usr/share/a2ps/fonts &amp;&amp;
133cp -v i18n-fonts-&i18n-fonts-version;/afm/* /usr/share/a2ps/afm &amp;&amp;
[deddaa7]134cd /usr/share/a2ps/afm &amp;&amp;
135./make_fonts_map.sh &amp;&amp;
136mv fonts.map.new fonts.map</userinput></screen>
[959f944]137
[db35990d]138 </sect2>
139
140 <sect2 role="commands">
141 <title>Command Explanations</title>
[959f944]142
[db35990d]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
[86bb9db5]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
[afe8a934]151 version of sort installed as part of
152 <application>Coreutils-&lfs-coreutils-version;</application>.
[86bb9db5]153 If you are using an older version of <application>Coreutils</application>,
154 skip this step.</para>
155
[db35990d]156 <para><command>sed -i -e "s|/usr/local/share|/usr/share|" configure</command>:
157 This command modifies the configure script to search for
158 <application>Ghostscript</application> fonts at the location where they were
159 installed by the BLFS instructions.</para>
160
161 <para><command>sed -i -e "s|char \*malloc ();|/* &amp; */|"
162 lib/path-concat.c</command>: This command fixes a build problem with
163 <application>GCC</application>-3.4.x</para>
164
165 <para><parameter>--sysconfdir=/etc/a2ps</parameter>: Configuration data
166 is installed in <filename class="directory">/etc/a2ps</filename> instead of
167 <filename class="directory">/usr/etc</filename>.</para>
168
169 <para><parameter>--enable-shared</parameter>: This switch enables building
170 the dynamic <filename class='libraryfile'>liba2ps</filename> library.</para>
171
172 <para><parameter>--with-medium=letter</parameter>: This switch changes
173 the default paper format of A4 to letter. Installations that utilize A4
174 would eliminate this switch.</para>
175
176 </sect2>
177
178 <sect2 role="configuration">
179 <title>Configuring a2ps</title>
180
181 <sect3 id="a2ps-config">
182 <title>Config Files</title>
183
184 <para><filename>/etc/a2ps/a2ps.cfg</filename>,
185 <filename>/etc/a2ps/a2ps-site.cfg</filename></para>
186
187 <indexterm zone="a2ps a2ps-config">
188 <primary sortas="e-etc-a2ps-a2ps.cfg">/etc/a2ps/a2ps.cfg</primary>
189 </indexterm>
190
191 <indexterm zone="a2ps a2ps-config">
192 <primary sortas="e-etc-a2ps-a2ps-site.cfg">/etc/a2ps/a2ps-site.cfg</primary>
193 </indexterm>
194
195 </sect3>
196
197 <sect3>
198 <title>Configuration Information</title>
199
200 <para>Information about configuring <application>a2ps</application>
201 can be found in the comments contained in the above files, and also
202 by running <command>info a2ps</command>.</para>
203
204 </sect3>
205
206 </sect2>
207
208 <sect2 role="content">
209 <title>Contents</title>
210
211 <segmentedlist>
212 <segtitle>Installed Programs</segtitle>
213 <segtitle>Installed Libraries</segtitle>
214 <segtitle>Installed Directories</segtitle>
215
216 <seglistitem>
217 <seg>a2ps, card, composeglyphs, fixnt, fixps, ogonkify,
218 pdiff, psmandup, psset, and texi2dvi4a2ps</seg>
[977061b0]219 <seg>liba2ps.{so,a} and filter data</seg>
[df80d76]220 <seg>/etc/a2ps and /usr/share/a2ps</seg>
[db35990d]221 </seglistitem>
222 </segmentedlist>
223
224 <variablelist>
225 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
226 <?dbfo list-presentation="list"?>
227 <?dbhtml list-presentation="table"?>
228
229 <varlistentry id="a2ps-prog">
230 <term><command>a2ps</command></term>
231 <listitem>
232 <para>is a filter, utilized primarily by printing scripts,
233 that converts standard input or supported files to PostScript.</para>
234 <indexterm zone="a2ps a2ps-prog">
235 <primary sortas="b-a2ps">a2ps</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="card">
241 <term><command>card</command></term>
242 <listitem>
243 <para>prints a reference card of a given program's options.</para>
244 <indexterm zone="a2ps card">
245 <primary sortas="b-card">card</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry id="composeglyphs">
251 <term><command>composeglyphs</command></term>
252 <listitem>
253 <para>creates a composite font program.</para>
254 <indexterm zone="a2ps composeglyphs">
255 <primary sortas="b-composeglyphs">composeglyphs</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
260 <varlistentry id="fixnt">
261 <term><command>fixnt</command></term>
262 <listitem>
263 <para>is supposed to fix the problems in the PostScript files
264 generated by the Microsoft PostScript driver under Windows NT
265 (3.5 and 4.0).</para>
266 <indexterm zone="a2ps fixnt">
267 <primary sortas="b-fixnt">fixnt</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="fixps">
273 <term><command>fixps</command></term>
274 <listitem>
275 <para>tries to fix common PostScript problems that break
276 postprocessing.</para>
277 <indexterm zone="a2ps fixps">
[56ab82c]278 <primary sortas="b-fixps">fixps</primary>
[db35990d]279 </indexterm>
280 </listitem>
281 </varlistentry>
282
283 <varlistentry id="ogonkify">
284 <term><command>ogonkify</command></term>
285 <listitem>
286 <para>provides international support for Postscript by performing
287 various munging of PostScript files related to printing in different
288 languages.</para>
289 <indexterm zone="a2ps ogonkify">
290 <primary sortas="b-ogonkify">ogonkify</primary>
291 </indexterm>
292 </listitem>
293 </varlistentry>
294
295 <varlistentry id="pdiff">
296 <term><command>pdiff</command></term>
297 <listitem>
298 <para>produces a pretty comparison between files.</para>
299 <indexterm zone="a2ps pdiff">
300 <primary sortas="b-pdiff">pdiff</primary>
301 </indexterm>
302 </listitem>
303 </varlistentry>
304
305 <varlistentry id="psmandup">
306 <term><command>psmandup</command></term>
307 <listitem>
308 <para>tries to produce a version of a given PostScript file to
309 print in manual duplex.</para>
310 <indexterm zone="a2ps psmandup">
311 <primary sortas="b-psmandup">psmandup</primary>
312 </indexterm>
313 </listitem>
314 </varlistentry>
315
316 <varlistentry id="psset">
317 <term><command>psset</command></term>
318 <listitem>
319 <para>produces a version of a given PostScript file with a
320 protected call to the PostScript operator 'setpagedevice'.
321 Typical use is making a file print duplex, or on the manual
322 tray, etc.</para>
323 <indexterm zone="a2ps psset">
324 <primary sortas="b-psset">psset</primary>
325 </indexterm>
326 </listitem>
327 </varlistentry>
328
329 <varlistentry id="texi2dvi4a2ps">
330 <term><command>texi2dvi4a2ps</command></term>
331 <listitem>
332 <para>compiles Texinfo and LaTeX files to DVI or PDF</para>
333 <indexterm zone="a2ps texi2dvi4a2ps">
334 <primary sortas="b-texi2dvi4a2ps">texi2dvi4a2ps</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
339 </variablelist>
340
341 </sect2>
[5fd03d2]342
343</sect1>
Note: See TracBrowser for help on using the repository browser.