source: pst/ps/a2ps.xml@ bccbd219

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 bccbd219 was bccbd219, checked in by Dan Nichilson <dnicholson@…>, 17 years ago

More explicit i18n-fonts commands for a2ps

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6656 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"?>
[ff769b8c]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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
151 version of sort installed as part of <application>Coreutils-5.93</application>.
152 If you are using an older version of <application>Coreutils</application>,
153 skip this step.</para>
154
[db35990d]155 <para><command>sed -i -e "s|/usr/local/share|/usr/share|" configure</command>:
156 This command modifies the configure script to search for
157 <application>Ghostscript</application> fonts at the location where they were
158 installed by the BLFS instructions.</para>
159
160 <para><command>sed -i -e "s|char \*malloc ();|/* &amp; */|"
161 lib/path-concat.c</command>: This command fixes a build problem with
162 <application>GCC</application>-3.4.x</para>
163
164 <para><parameter>--sysconfdir=/etc/a2ps</parameter>: Configuration data
165 is installed in <filename class="directory">/etc/a2ps</filename> instead of
166 <filename class="directory">/usr/etc</filename>.</para>
167
168 <para><parameter>--enable-shared</parameter>: This switch enables building
169 the dynamic <filename class='libraryfile'>liba2ps</filename> library.</para>
170
171 <para><parameter>--with-medium=letter</parameter>: This switch changes
172 the default paper format of A4 to letter. Installations that utilize A4
173 would eliminate this switch.</para>
174
175 </sect2>
176
177 <sect2 role="configuration">
178 <title>Configuring a2ps</title>
179
180 <sect3 id="a2ps-config">
181 <title>Config Files</title>
182
183 <para><filename>/etc/a2ps/a2ps.cfg</filename>,
184 <filename>/etc/a2ps/a2ps-site.cfg</filename></para>
185
186 <indexterm zone="a2ps a2ps-config">
187 <primary sortas="e-etc-a2ps-a2ps.cfg">/etc/a2ps/a2ps.cfg</primary>
188 </indexterm>
189
190 <indexterm zone="a2ps a2ps-config">
191 <primary sortas="e-etc-a2ps-a2ps-site.cfg">/etc/a2ps/a2ps-site.cfg</primary>
192 </indexterm>
193
194 </sect3>
195
196 <sect3>
197 <title>Configuration Information</title>
198
199 <para>Information about configuring <application>a2ps</application>
200 can be found in the comments contained in the above files, and also
201 by running <command>info a2ps</command>.</para>
202
203 </sect3>
204
205 </sect2>
206
207 <sect2 role="content">
208 <title>Contents</title>
209
210 <segmentedlist>
211 <segtitle>Installed Programs</segtitle>
212 <segtitle>Installed Libraries</segtitle>
213 <segtitle>Installed Directories</segtitle>
214
215 <seglistitem>
216 <seg>a2ps, card, composeglyphs, fixnt, fixps, ogonkify,
217 pdiff, psmandup, psset, and texi2dvi4a2ps</seg>
[977061b0]218 <seg>liba2ps.{so,a} and filter data</seg>
[df80d76]219 <seg>/etc/a2ps and /usr/share/a2ps</seg>
[db35990d]220 </seglistitem>
221 </segmentedlist>
222
223 <variablelist>
224 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
225 <?dbfo list-presentation="list"?>
226 <?dbhtml list-presentation="table"?>
227
228 <varlistentry id="a2ps-prog">
229 <term><command>a2ps</command></term>
230 <listitem>
231 <para>is a filter, utilized primarily by printing scripts,
232 that converts standard input or supported files to PostScript.</para>
233 <indexterm zone="a2ps a2ps-prog">
234 <primary sortas="b-a2ps">a2ps</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry id="card">
240 <term><command>card</command></term>
241 <listitem>
242 <para>prints a reference card of a given program's options.</para>
243 <indexterm zone="a2ps card">
244 <primary sortas="b-card">card</primary>
245 </indexterm>
246 </listitem>
247 </varlistentry>
248
249 <varlistentry id="composeglyphs">
250 <term><command>composeglyphs</command></term>
251 <listitem>
252 <para>creates a composite font program.</para>
253 <indexterm zone="a2ps composeglyphs">
254 <primary sortas="b-composeglyphs">composeglyphs</primary>
255 </indexterm>
256 </listitem>
257 </varlistentry>
258
259 <varlistentry id="fixnt">
260 <term><command>fixnt</command></term>
261 <listitem>
262 <para>is supposed to fix the problems in the PostScript files
263 generated by the Microsoft PostScript driver under Windows NT
264 (3.5 and 4.0).</para>
265 <indexterm zone="a2ps fixnt">
266 <primary sortas="b-fixnt">fixnt</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 <varlistentry id="fixps">
272 <term><command>fixps</command></term>
273 <listitem>
274 <para>tries to fix common PostScript problems that break
275 postprocessing.</para>
276 <indexterm zone="a2ps fixps">
[56ab82c]277 <primary sortas="b-fixps">fixps</primary>
[db35990d]278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 <varlistentry id="ogonkify">
283 <term><command>ogonkify</command></term>
284 <listitem>
285 <para>provides international support for Postscript by performing
286 various munging of PostScript files related to printing in different
287 languages.</para>
288 <indexterm zone="a2ps ogonkify">
289 <primary sortas="b-ogonkify">ogonkify</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
294 <varlistentry id="pdiff">
295 <term><command>pdiff</command></term>
296 <listitem>
297 <para>produces a pretty comparison between files.</para>
298 <indexterm zone="a2ps pdiff">
299 <primary sortas="b-pdiff">pdiff</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
303
304 <varlistentry id="psmandup">
305 <term><command>psmandup</command></term>
306 <listitem>
307 <para>tries to produce a version of a given PostScript file to
308 print in manual duplex.</para>
309 <indexterm zone="a2ps psmandup">
310 <primary sortas="b-psmandup">psmandup</primary>
311 </indexterm>
312 </listitem>
313 </varlistentry>
314
315 <varlistentry id="psset">
316 <term><command>psset</command></term>
317 <listitem>
318 <para>produces a version of a given PostScript file with a
319 protected call to the PostScript operator 'setpagedevice'.
320 Typical use is making a file print duplex, or on the manual
321 tray, etc.</para>
322 <indexterm zone="a2ps psset">
323 <primary sortas="b-psset">psset</primary>
324 </indexterm>
325 </listitem>
326 </varlistentry>
327
328 <varlistentry id="texi2dvi4a2ps">
329 <term><command>texi2dvi4a2ps</command></term>
330 <listitem>
331 <para>compiles Texinfo and LaTeX files to DVI or PDF</para>
332 <indexterm zone="a2ps texi2dvi4a2ps">
333 <primary sortas="b-texi2dvi4a2ps">texi2dvi4a2ps</primary>
334 </indexterm>
335 </listitem>
336 </varlistentry>
337
338 </variablelist>
339
340 </sect2>
[5fd03d2]341
342</sect1>
Note: See TracBrowser for help on using the repository browser.