source: pst/ps/a2ps.xml@ 7a0533ee

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 7a0533ee was 7a0533ee, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Tag a2ps and update location of international fonts.

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

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