source: pst/ps/a2ps.xml@ d6891f5

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 d6891f5 was d6891f5, checked in by Igor Živković <igor@…>, 11 years ago

return to cwd after generating fonts.map for a2ps

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

  • Property mode set to 100644
File size: 12.9 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 &lfs74_checked;
40
41 <caution>
42 <para><application>a2ps</application> cannot convert UTF-8 encoded
43 text to PostScript. The issue is discussed in detail in the
44 <xref linkend="locale-not-valid-option"/> section of the
45 <xref linkend="locale-issues"/> page.
46 The solution is to use <xref linkend="paps"/> instead of
47 <application>a2ps</application> for converting
48 UTF-8 encoded text to PostScript.</para>
49 </caution>
50
51 <bridgehead renderas="sect3">Package Information</bridgehead>
52 <itemizedlist spacing="compact">
53 <listitem>
54 <para>Download (HTTP): <ulink url="&a2ps-download-http;"/></para>
55 </listitem>
56 <listitem>
57 <para>Download (FTP): <ulink url="&a2ps-download-ftp;"/></para>
58 </listitem>
59 <listitem>
60 <para>Download MD5 sum: &a2ps-md5sum;</para>
61 </listitem>
62 <listitem>
63 <para>Download size: &a2ps-size;</para>
64 </listitem>
65 <listitem>
66 <para>Estimated disk space required: &a2ps-buildsize;</para>
67 </listitem>
68 <listitem>
69 <para>Estimated build time: &a2ps-time;</para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
74 <itemizedlist spacing='compact'>
75 <listitem>
76 <para>International fonts: <ulink
77 url="http://anduin.linuxfromscratch.org/sources/BLFS/conglomeration/i18n-fonts/i18n-fonts-&i18n-fonts-version;.tar.bz2"/></para>
78 </listitem>
79 </itemizedlist>
80
81 <bridgehead renderas="sect3">a2ps Dependencies</bridgehead>
82
83 <bridgehead renderas="sect4">Required</bridgehead>
84 <para role="required"><xref linkend="gperf"/></para>
85
86 <bridgehead renderas="sect4">Recommended</bridgehead>
87 <para role="recommended">
88 <xref linkend="psutils"/>, and
89 <xref linkend="cups"/>
90 (otherwise, <application>a2ps</application> will use the
91 <command>cat &gt;/dev/lp0</command> command instead of <command>lpr</command>
92 for sending its output to the printer)
93 </para>
94
95 <bridgehead renderas="sect4">Optional</bridgehead>
96 <para role="optional">
97 <xref linkend="x-window-system"/>,
98 <xref linkend="texlive"/>,
99 <xref linkend="gs"/>,
100 <ulink url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>,
101 <ulink url="http://www.adobe.com/products/acrobat/readstep2.html">Adobe Reader</ulink>, and
102 <ulink url="http://www.gnu.org/software/ghostview/ghostview.html">Ghostview</ulink>
103 </para>
104
105 <para condition="html" role="usernotes">User Notes:
106 <ulink url="&blfs-wiki;/A2PS"/></para>
107
108 </sect2>
109
110 <sect2 role="installation">
111 <title>Installation of a2ps</title>
112
113 <para>Install <application>a2ps</application> by running the following
114 commands:</para>
115
116<screen><userinput>autoconf &amp;&amp;
117sed -i -e "s/GPERF --version |/&amp; head -n 1 |/" \
118 -e "s|/usr/local/share|/usr/share|" configure &amp;&amp;
119
120./configure --prefix=/usr \
121 --sysconfdir=/etc/a2ps \
122 --enable-shared \
123 --with-medium=letter &amp;&amp;
124make &amp;&amp;
125touch doc/*.info</userinput></screen>
126
127 <para>To test the results, issue: <command>make check</command>.
128 The <filename>printers.tst</filename> test will fail, as there is no default
129 test printer. The <filename>styles.tst</filename> may also fail, as the
130 tests report some inconsistencies between the generated postscript and the
131 reference sets. This is caused by version number differences between the
132 postscript test files and those generated by the tests &mdash; these do not
133 affect the operation of the program and can be ignored.</para>
134
135 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
136
137<screen role="root"><userinput>make install</userinput></screen>
138
139 <para>If desired, install the downloaded i18n-fonts by running the following
140 commands as the <systemitem class="username">root</systemitem> user:</para>
141
142<screen role="root"><userinput>tar -xf ../i18n-fonts-&i18n-fonts-version;.tar.bz2 &amp;&amp;
143cp -v i18n-fonts-&i18n-fonts-version;/fonts/* /usr/share/a2ps/fonts &amp;&amp;
144cp -v i18n-fonts-&i18n-fonts-version;/afm/* /usr/share/a2ps/afm &amp;&amp;
145pushd /usr/share/a2ps/afm &amp;&amp;
146./make_fonts_map.sh &amp;&amp;
147mv fonts.map.new fonts.map &amp;&amp;
148popd</userinput></screen>
149
150 </sect2>
151
152 <sect2 role="commands">
153 <title>Command Explanations</title>
154
155 <para><command>autoconf</command>: This command is used to recreate the
156 <command>configure</command> script. This is required because there is
157 an issue in the mktime test which causes the
158 <command>configure</command> script to hang for 60 seconds and then report
159 that there is no working mktime function.</para>
160
161 <para><command>sed -i "s/GPERF --version |/&amp; head -n 1 |/" configure</command>:
162 This fixes a bug in the handling of the version output of
163 <command>gperf</command>.</para>
164
165 <para><command>sed -i "s|/usr/local/share|/usr/share|" configure</command>:
166 This command modifies the <command>configure</command> script to search for
167 <application>Ghostscript</application> fonts at the location where they were
168 installed by the BLFS instructions.</para>
169
170 <para><parameter>--sysconfdir=/etc/a2ps</parameter>: Configuration data
171 is installed in <filename class="directory">/etc/a2ps</filename> instead of
172 <filename class="directory">/usr/etc</filename>.</para>
173
174 <para><parameter>--enable-shared</parameter>: This switch enables building
175 the dynamic <filename class='libraryfile'>liba2ps</filename> library.</para>
176
177 <para><parameter>--with-medium=letter</parameter>: This switch changes the
178 default paper format to US letter. It can either be given here or set
179 in <filename>/etc/a2ps/a2ps-site.cfg</filename> after installation. The
180 default is A4, but there are several other options, in particular: A4dj or
181 letterdj are good settings for HP Deskjet and other printers that need
182 wider paper-handling margins. See <filename>/etc/a2ps/a2ps.cfg</filename>
183 after installation.</para>
184
185 <para><command>touch doc/*.info</command>: This command avoids trying to
186 regenerate the info files. This is an older package and the current
187 .texi files will produce errors preventing <command>make install</command>
188 from working properly.</para>
189
190 </sect2>
191
192 <sect2 role="configuration">
193 <title>Configuring a2ps</title>
194
195 <sect3 id="a2ps-config">
196 <title>Config Files</title>
197
198 <para><filename>/etc/a2ps/a2ps.cfg</filename>,
199 <filename>/etc/a2ps/a2ps-site.cfg</filename></para>
200
201 <indexterm zone="a2ps a2ps-config">
202 <primary sortas="e-etc-a2ps-a2ps.cfg">/etc/a2ps/a2ps.cfg</primary>
203 </indexterm>
204
205 <indexterm zone="a2ps a2ps-config">
206 <primary sortas="e-etc-a2ps-a2ps-site.cfg">/etc/a2ps/a2ps-site.cfg</primary>
207 </indexterm>
208
209 </sect3>
210
211 <sect3>
212 <title>Configuration Information</title>
213
214 <para>Information about configuring <application>a2ps</application>
215 can be found in the comments contained in the above files, and also
216 by running <command>info a2ps</command>.</para>
217
218 </sect3>
219
220 </sect2>
221
222 <sect2 role="content">
223 <title>Contents</title>
224
225 <segmentedlist>
226 <segtitle>Installed Programs</segtitle>
227 <segtitle>Installed Libraries</segtitle>
228 <segtitle>Installed Directories</segtitle>
229
230 <seglistitem>
231 <seg>a2ps, card, composeglyphs, fixnt, fixps, ogonkify,
232 pdiff, psmandup, psset, and texi2dvi4a2ps</seg>
233 <seg>liba2ps.{so,a} and filter data</seg>
234 <seg>/etc/a2ps and /usr/share/a2ps</seg>
235 </seglistitem>
236 </segmentedlist>
237
238 <variablelist>
239 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
240 <?dbfo list-presentation="list"?>
241 <?dbhtml list-presentation="table"?>
242
243 <varlistentry id="a2ps-prog">
244 <term><command>a2ps</command></term>
245 <listitem>
246 <para>is a filter, utilized primarily by printing scripts,
247 that converts standard input or supported files to PostScript.</para>
248 <indexterm zone="a2ps a2ps-prog">
249 <primary sortas="b-a2ps">a2ps</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 <varlistentry id="card">
255 <term><command>card</command></term>
256 <listitem>
257 <para>prints a reference card of a given program's options.</para>
258 <indexterm zone="a2ps card">
259 <primary sortas="b-card">card</primary>
260 </indexterm>
261 </listitem>
262 </varlistentry>
263
264 <varlistentry id="composeglyphs">
265 <term><command>composeglyphs</command></term>
266 <listitem>
267 <para>creates a composite font program.</para>
268 <indexterm zone="a2ps composeglyphs">
269 <primary sortas="b-composeglyphs">composeglyphs</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273
274 <varlistentry id="fixnt">
275 <term><command>fixnt</command></term>
276 <listitem>
277 <para>is supposed to fix the problems in the PostScript files
278 generated by the Microsoft PostScript driver under Windows NT
279 (3.5 and 4.0).</para>
280 <indexterm zone="a2ps fixnt">
281 <primary sortas="b-fixnt">fixnt</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 <varlistentry id="fixps">
287 <term><command>fixps</command></term>
288 <listitem>
289 <para>tries to fix common PostScript problems that break
290 postprocessing.</para>
291 <indexterm zone="a2ps fixps">
292 <primary sortas="b-fixps">fixps</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 <varlistentry id="ogonkify">
298 <term><command>ogonkify</command></term>
299 <listitem>
300 <para>provides international support for Postscript by performing
301 various munging of PostScript files related to printing in different
302 languages.</para>
303 <indexterm zone="a2ps ogonkify">
304 <primary sortas="b-ogonkify">ogonkify</primary>
305 </indexterm>
306 </listitem>
307 </varlistentry>
308
309 <varlistentry id="pdiff">
310 <term><command>pdiff</command></term>
311 <listitem>
312 <para>produces a pretty comparison between files.</para>
313 <indexterm zone="a2ps pdiff">
314 <primary sortas="b-pdiff">pdiff</primary>
315 </indexterm>
316 </listitem>
317 </varlistentry>
318
319 <varlistentry id="psmandup">
320 <term><command>psmandup</command></term>
321 <listitem>
322 <para>tries to produce a version of a given PostScript file to
323 print in manual duplex.</para>
324 <indexterm zone="a2ps psmandup">
325 <primary sortas="b-psmandup">psmandup</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
330 <varlistentry id="psset">
331 <term><command>psset</command></term>
332 <listitem>
333 <para>produces a version of a given PostScript file with a
334 protected call to the PostScript operator 'setpagedevice'.
335 Typical use is making a file print duplex, or on the manual
336 tray, etc.</para>
337 <indexterm zone="a2ps psset">
338 <primary sortas="b-psset">psset</primary>
339 </indexterm>
340 </listitem>
341 </varlistentry>
342
343 <varlistentry id="texi2dvi4a2ps">
344 <term><command>texi2dvi4a2ps</command></term>
345 <listitem>
346 <para>compiles Texinfo and LaTeX files to DVI or PDF</para>
347 <indexterm zone="a2ps texi2dvi4a2ps">
348 <primary sortas="b-texi2dvi4a2ps">texi2dvi4a2ps</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
353 </variablelist>
354
355 </sect2>
356
357</sect1>
Note: See TracBrowser for help on using the repository browser.