[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">
|
---|
[bb317ce1] | 9 | <!ENTITY a2ps-md5sum "781ac3d9b213fa3e1ed0d79f986dc8c7">
|
---|
| 10 | <!ENTITY a2ps-size "2.6 MB">
|
---|
[32d0e29] | 11 | <!ENTITY a2ps-buildsize "22 MB">
|
---|
| 12 | <!ENTITY a2ps-time "0.3 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
|
---|
[32d0e29] | 37 | expands appropriately to <quote>all to PostScript</quote>.</para>
|
---|
[fd7e0ed6] | 38 |
|
---|
[a4b9cd7] | 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.
|
---|
[32d0e29] | 44 | The solution is to use <xref linkend="paps"/> instead of
|
---|
| 45 | <application>a2ps</application> for converting
|
---|
[a4b9cd7] | 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 |
|
---|
[30d39a5b] | 81 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 82 | <para role="required"><xref linkend="gperf"/></para>
|
---|
[f011dbb] | 83 |
|
---|
[a4b9cd7] | 84 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[32d0e29] | 85 | <para role="recommended"><xref linkend="psutils"/>, and
|
---|
| 86 | <xref linkend="cups"/> or <xref linkend="LPRng"/>
|
---|
[a4b9cd7] | 87 | (otherwise, <application>a2ps</application> will use the
|
---|
| 88 | <command>cat >/dev/lp0</command> command instead of <command>lpr</command>
|
---|
| 89 | for sending its output to the printer)</para>
|
---|
[fd7e0ed6] | 90 |
|
---|
[db35990d] | 91 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[e77976f] | 92 | <para role="optional"><xref linkend="x-window-system"/>,
|
---|
[27d0323] | 93 | <!--<xref linkend="tetex"/> or--> <xref linkend="texlive"/>,
|
---|
[aa8ef3bc] | 94 | <xref linkend="gs"/><!-- or <xref linkend="espgs"/> -->,
|
---|
[db35990d] | 95 | <ulink
|
---|
| 96 | url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>,
|
---|
| 97 | <ulink url="http://www.adobe.com/products/acrobat/readstep2.html">Adobe
|
---|
[e77976f] | 98 | Reader</ulink>, and
|
---|
[db35990d] | 99 | <ulink
|
---|
[bb317ce1] | 100 | url="http://www.gnu.org/software/ghostview/ghostview.html">Ghostview</ulink>
|
---|
| 101 | </para>
|
---|
[db35990d] | 102 |
|
---|
[977061b0] | 103 | <para condition="html" role="usernotes">User Notes:
|
---|
[6c42d4e] | 104 | <ulink url="&blfs-wiki;/A2PS"/></para>
|
---|
[977061b0] | 105 |
|
---|
[db35990d] | 106 | </sect2>
|
---|
| 107 |
|
---|
| 108 | <sect2 role="installation">
|
---|
| 109 | <title>Installation of a2ps</title>
|
---|
| 110 |
|
---|
| 111 | <para>Install <application>a2ps</application> by running the following
|
---|
| 112 | commands:</para>
|
---|
| 113 |
|
---|
[f011dbb] | 114 | <screen><userinput>autoconf &&
|
---|
| 115 | sed -i "s/GPERF --version |/& head -n 1 |/" configure &&
|
---|
| 116 | sed -i "s|/usr/local/share|/usr/share|" configure &&
|
---|
[959f944] | 117 | ./configure --prefix=/usr \
|
---|
[bb317ce1] | 118 | --sysconfdir=/etc/a2ps \
|
---|
| 119 | --enable-shared \
|
---|
| 120 | --with-medium=letter &&
|
---|
[deddaa7] | 121 | make</userinput></screen>
|
---|
| 122 |
|
---|
| 123 | <para>To test the results, issue: <command>make check</command>.
|
---|
[df80d76] | 124 | The <filename>printers.tst</filename> test will fail, as there is no default
|
---|
[32d0e29] | 125 | test printer. The <filename>styles.tst</filename> may also fail, as the
|
---|
| 126 | tests report some inconsistencies between the generated postscript and the
|
---|
| 127 | reference sets. This is caused by version number differences between the
|
---|
| 128 | postscript test files and those generated by the tests — these do not
|
---|
| 129 | affect the operation of the program and can be ignored.</para>
|
---|
[deddaa7] | 130 |
|
---|
| 131 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 132 |
|
---|
| 133 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 134 |
|
---|
[32d0e29] | 135 | <para>If desired, install the downloaded i18n-fonts by running the following
|
---|
[470d3786] | 136 | commands as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[deddaa7] | 137 |
|
---|
[bccbd219] | 138 | <screen role="root"><userinput>tar -xf ../i18n-fonts-&i18n-fonts-version;.tar.gz &&
|
---|
| 139 | cp -v i18n-fonts-&i18n-fonts-version;/fonts/* /usr/share/a2ps/fonts &&
|
---|
| 140 | cp -v i18n-fonts-&i18n-fonts-version;/afm/* /usr/share/a2ps/afm &&
|
---|
[deddaa7] | 141 | cd /usr/share/a2ps/afm &&
|
---|
| 142 | ./make_fonts_map.sh &&
|
---|
| 143 | mv fonts.map.new fonts.map</userinput></screen>
|
---|
[959f944] | 144 |
|
---|
[db35990d] | 145 | </sect2>
|
---|
| 146 |
|
---|
| 147 | <sect2 role="commands">
|
---|
| 148 | <title>Command Explanations</title>
|
---|
[959f944] | 149 |
|
---|
[4284d4ff] | 150 | <para><command>autoconf</command>: This command is used to recreate the
|
---|
| 151 | <command>configure</command> script. This is required because there is
|
---|
| 152 | an issue in the mktime test which causes the
|
---|
| 153 | <command>configure</command> script to hang for 60 seconds and then report
|
---|
| 154 | that there is no working mktime function.</para>
|
---|
[f011dbb] | 155 |
|
---|
[a41f643] | 156 | <para><command>sed -i "s/GPERF --version |/& head -n 1 |/" configure</command>:
|
---|
[4284d4ff] | 157 | This fixes a bug in the handling of the version output of
|
---|
[f011dbb] | 158 | <command>gperf</command>.</para>
|
---|
[86bb9db5] | 159 |
|
---|
[4284d4ff] | 160 | <para><command>sed -i "s|/usr/local/share|/usr/share|" configure</command>:
|
---|
[32d0e29] | 161 | This command modifies the <command>configure</command> script to search for
|
---|
[db35990d] | 162 | <application>Ghostscript</application> fonts at the location where they were
|
---|
| 163 | installed by the BLFS instructions.</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 |
|
---|
[410e228b] | 172 | <para><parameter>--with-medium=letter</parameter>: This switch changes the
|
---|
| 173 | default paper format to US letter. It can either be given here or set
|
---|
[bb317ce1] | 174 | in <filename>/etc/a2ps/a2ps-site.cfg</filename> after installation. The
|
---|
[32d0e29] | 175 | default is A4, but there are several other options, in particular: A4dj or
|
---|
[4284d4ff] | 176 | letterdj are good settings for HP Deskjet and other printers that need
|
---|
| 177 | wider paper-handling margins. See <filename>/etc/a2ps/a2ps.cfg</filename>
|
---|
| 178 | after installation.</para>
|
---|
[db35990d] | 179 |
|
---|
| 180 | </sect2>
|
---|
| 181 |
|
---|
| 182 | <sect2 role="configuration">
|
---|
| 183 | <title>Configuring a2ps</title>
|
---|
| 184 |
|
---|
| 185 | <sect3 id="a2ps-config">
|
---|
| 186 | <title>Config Files</title>
|
---|
| 187 |
|
---|
| 188 | <para><filename>/etc/a2ps/a2ps.cfg</filename>,
|
---|
| 189 | <filename>/etc/a2ps/a2ps-site.cfg</filename></para>
|
---|
| 190 |
|
---|
| 191 | <indexterm zone="a2ps a2ps-config">
|
---|
| 192 | <primary sortas="e-etc-a2ps-a2ps.cfg">/etc/a2ps/a2ps.cfg</primary>
|
---|
| 193 | </indexterm>
|
---|
| 194 |
|
---|
| 195 | <indexterm zone="a2ps a2ps-config">
|
---|
| 196 | <primary sortas="e-etc-a2ps-a2ps-site.cfg">/etc/a2ps/a2ps-site.cfg</primary>
|
---|
| 197 | </indexterm>
|
---|
| 198 |
|
---|
| 199 | </sect3>
|
---|
| 200 |
|
---|
| 201 | <sect3>
|
---|
| 202 | <title>Configuration Information</title>
|
---|
| 203 |
|
---|
| 204 | <para>Information about configuring <application>a2ps</application>
|
---|
| 205 | can be found in the comments contained in the above files, and also
|
---|
| 206 | by running <command>info a2ps</command>.</para>
|
---|
| 207 |
|
---|
| 208 | </sect3>
|
---|
| 209 |
|
---|
| 210 | </sect2>
|
---|
| 211 |
|
---|
| 212 | <sect2 role="content">
|
---|
| 213 | <title>Contents</title>
|
---|
| 214 |
|
---|
| 215 | <segmentedlist>
|
---|
| 216 | <segtitle>Installed Programs</segtitle>
|
---|
| 217 | <segtitle>Installed Libraries</segtitle>
|
---|
| 218 | <segtitle>Installed Directories</segtitle>
|
---|
| 219 |
|
---|
| 220 | <seglistitem>
|
---|
| 221 | <seg>a2ps, card, composeglyphs, fixnt, fixps, ogonkify,
|
---|
| 222 | pdiff, psmandup, psset, and texi2dvi4a2ps</seg>
|
---|
[977061b0] | 223 | <seg>liba2ps.{so,a} and filter data</seg>
|
---|
[df80d76] | 224 | <seg>/etc/a2ps and /usr/share/a2ps</seg>
|
---|
[db35990d] | 225 | </seglistitem>
|
---|
| 226 | </segmentedlist>
|
---|
| 227 |
|
---|
| 228 | <variablelist>
|
---|
| 229 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 230 | <?dbfo list-presentation="list"?>
|
---|
| 231 | <?dbhtml list-presentation="table"?>
|
---|
| 232 |
|
---|
| 233 | <varlistentry id="a2ps-prog">
|
---|
| 234 | <term><command>a2ps</command></term>
|
---|
| 235 | <listitem>
|
---|
| 236 | <para>is a filter, utilized primarily by printing scripts,
|
---|
| 237 | that converts standard input or supported files to PostScript.</para>
|
---|
| 238 | <indexterm zone="a2ps a2ps-prog">
|
---|
| 239 | <primary sortas="b-a2ps">a2ps</primary>
|
---|
| 240 | </indexterm>
|
---|
| 241 | </listitem>
|
---|
| 242 | </varlistentry>
|
---|
| 243 |
|
---|
| 244 | <varlistentry id="card">
|
---|
| 245 | <term><command>card</command></term>
|
---|
| 246 | <listitem>
|
---|
| 247 | <para>prints a reference card of a given program's options.</para>
|
---|
| 248 | <indexterm zone="a2ps card">
|
---|
| 249 | <primary sortas="b-card">card</primary>
|
---|
| 250 | </indexterm>
|
---|
| 251 | </listitem>
|
---|
| 252 | </varlistentry>
|
---|
| 253 |
|
---|
| 254 | <varlistentry id="composeglyphs">
|
---|
| 255 | <term><command>composeglyphs</command></term>
|
---|
| 256 | <listitem>
|
---|
| 257 | <para>creates a composite font program.</para>
|
---|
| 258 | <indexterm zone="a2ps composeglyphs">
|
---|
| 259 | <primary sortas="b-composeglyphs">composeglyphs</primary>
|
---|
| 260 | </indexterm>
|
---|
| 261 | </listitem>
|
---|
| 262 | </varlistentry>
|
---|
| 263 |
|
---|
| 264 | <varlistentry id="fixnt">
|
---|
| 265 | <term><command>fixnt</command></term>
|
---|
| 266 | <listitem>
|
---|
| 267 | <para>is supposed to fix the problems in the PostScript files
|
---|
| 268 | generated by the Microsoft PostScript driver under Windows NT
|
---|
| 269 | (3.5 and 4.0).</para>
|
---|
| 270 | <indexterm zone="a2ps fixnt">
|
---|
| 271 | <primary sortas="b-fixnt">fixnt</primary>
|
---|
| 272 | </indexterm>
|
---|
| 273 | </listitem>
|
---|
| 274 | </varlistentry>
|
---|
| 275 |
|
---|
| 276 | <varlistentry id="fixps">
|
---|
| 277 | <term><command>fixps</command></term>
|
---|
| 278 | <listitem>
|
---|
| 279 | <para>tries to fix common PostScript problems that break
|
---|
| 280 | postprocessing.</para>
|
---|
| 281 | <indexterm zone="a2ps fixps">
|
---|
[56ab82c] | 282 | <primary sortas="b-fixps">fixps</primary>
|
---|
[db35990d] | 283 | </indexterm>
|
---|
| 284 | </listitem>
|
---|
| 285 | </varlistentry>
|
---|
| 286 |
|
---|
| 287 | <varlistentry id="ogonkify">
|
---|
| 288 | <term><command>ogonkify</command></term>
|
---|
| 289 | <listitem>
|
---|
| 290 | <para>provides international support for Postscript by performing
|
---|
| 291 | various munging of PostScript files related to printing in different
|
---|
| 292 | languages.</para>
|
---|
| 293 | <indexterm zone="a2ps ogonkify">
|
---|
| 294 | <primary sortas="b-ogonkify">ogonkify</primary>
|
---|
| 295 | </indexterm>
|
---|
| 296 | </listitem>
|
---|
| 297 | </varlistentry>
|
---|
| 298 |
|
---|
| 299 | <varlistentry id="pdiff">
|
---|
| 300 | <term><command>pdiff</command></term>
|
---|
| 301 | <listitem>
|
---|
| 302 | <para>produces a pretty comparison between files.</para>
|
---|
| 303 | <indexterm zone="a2ps pdiff">
|
---|
| 304 | <primary sortas="b-pdiff">pdiff</primary>
|
---|
| 305 | </indexterm>
|
---|
| 306 | </listitem>
|
---|
| 307 | </varlistentry>
|
---|
| 308 |
|
---|
| 309 | <varlistentry id="psmandup">
|
---|
| 310 | <term><command>psmandup</command></term>
|
---|
| 311 | <listitem>
|
---|
| 312 | <para>tries to produce a version of a given PostScript file to
|
---|
| 313 | print in manual duplex.</para>
|
---|
| 314 | <indexterm zone="a2ps psmandup">
|
---|
| 315 | <primary sortas="b-psmandup">psmandup</primary>
|
---|
| 316 | </indexterm>
|
---|
| 317 | </listitem>
|
---|
| 318 | </varlistentry>
|
---|
| 319 |
|
---|
| 320 | <varlistentry id="psset">
|
---|
| 321 | <term><command>psset</command></term>
|
---|
| 322 | <listitem>
|
---|
| 323 | <para>produces a version of a given PostScript file with a
|
---|
| 324 | protected call to the PostScript operator 'setpagedevice'.
|
---|
| 325 | Typical use is making a file print duplex, or on the manual
|
---|
| 326 | tray, etc.</para>
|
---|
| 327 | <indexterm zone="a2ps psset">
|
---|
| 328 | <primary sortas="b-psset">psset</primary>
|
---|
| 329 | </indexterm>
|
---|
| 330 | </listitem>
|
---|
| 331 | </varlistentry>
|
---|
| 332 |
|
---|
| 333 | <varlistentry id="texi2dvi4a2ps">
|
---|
| 334 | <term><command>texi2dvi4a2ps</command></term>
|
---|
| 335 | <listitem>
|
---|
| 336 | <para>compiles Texinfo and LaTeX files to DVI or PDF</para>
|
---|
| 337 | <indexterm zone="a2ps texi2dvi4a2ps">
|
---|
| 338 | <primary sortas="b-texi2dvi4a2ps">texi2dvi4a2ps</primary>
|
---|
| 339 | </indexterm>
|
---|
| 340 | </listitem>
|
---|
| 341 | </varlistentry>
|
---|
| 342 |
|
---|
| 343 | </variablelist>
|
---|
| 344 |
|
---|
| 345 | </sect2>
|
---|
[5fd03d2] | 346 |
|
---|
| 347 | </sect1>
|
---|