[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 |
|
---|
[8dfc5c3] | 7 | <!ENTITY a2ps-download-http "&gnu-http;/a2ps/a2ps-&a2ps-version;.tar.gz">
|
---|
| 8 | <!ENTITY a2ps-download-ftp "&gnu-ftp;/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 |
|
---|
[81076bb6] | 39 | &lfs84_checked;
|
---|
[7a0533ee] | 40 |
|
---|
[a4b9cd7] | 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.
|
---|
[32d0e29] | 46 | The solution is to use <xref linkend="paps"/> instead of
|
---|
| 47 | <application>a2ps</application> for converting
|
---|
[a4b9cd7] | 48 | UTF-8 encoded text to PostScript.</para>
|
---|
| 49 | </caution>
|
---|
[db35990d] | 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
|
---|
[a29486e4] | 77 | url="&sources-anduin-http;/i18n-fonts/i18n-fonts-&i18n-fonts-version;.tar.bz2"/></para>
|
---|
[db35990d] | 78 | </listitem>
|
---|
| 79 | </itemizedlist>
|
---|
| 80 |
|
---|
| 81 | <bridgehead renderas="sect3">a2ps Dependencies</bridgehead>
|
---|
| 82 |
|
---|
[a4b9cd7] | 83 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[7a0533ee] | 84 | <para role="recommended">
|
---|
| 85 | <xref linkend="psutils"/>, and
|
---|
[0d7900a] | 86 | <xref linkend="cups"/>
|
---|
[7a0533ee] | 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)
|
---|
| 90 | </para>
|
---|
[fd7e0ed6] | 91 |
|
---|
[db35990d] | 92 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[7a0533ee] | 93 | <para role="optional">
|
---|
| 94 | <xref linkend="gs"/>,
|
---|
[4de3115] | 95 | <xref linkend="libpaper"/>,
|
---|
[f720ace1] | 96 | <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
|
---|
[1ecdb18] | 97 | <xref linkend="x-window-system"/>,
|
---|
[7a0533ee] | 98 | <ulink url="http://www.adobe.com/products/acrobat/readstep2.html">Adobe Reader</ulink>, and
|
---|
| 99 | <ulink url="http://www.gnu.org/software/ghostview/ghostview.html">Ghostview</ulink>
|
---|
[bb317ce1] | 100 | </para>
|
---|
[db35990d] | 101 |
|
---|
[977061b0] | 102 | <para condition="html" role="usernotes">User Notes:
|
---|
[6c42d4e] | 103 | <ulink url="&blfs-wiki;/A2PS"/></para>
|
---|
[977061b0] | 104 |
|
---|
[db35990d] | 105 | </sect2>
|
---|
| 106 |
|
---|
| 107 | <sect2 role="installation">
|
---|
| 108 | <title>Installation of a2ps</title>
|
---|
| 109 |
|
---|
| 110 | <para>Install <application>a2ps</application> by running the following
|
---|
| 111 | commands:</para>
|
---|
| 112 |
|
---|
[f011dbb] | 113 | <screen><userinput>autoconf &&
|
---|
[93343b6] | 114 | sed -i -e "s/GPERF --version |/& head -n 1 |/" \
|
---|
| 115 | -e "s|/usr/local/share|/usr/share|" configure &&
|
---|
| 116 |
|
---|
| 117 | ./configure --prefix=/usr \
|
---|
[bb317ce1] | 118 | --sysconfdir=/etc/a2ps \
|
---|
[93343b6] | 119 | --enable-shared \
|
---|
| 120 | --with-medium=letter &&
|
---|
| 121 | make &&
|
---|
| 122 | touch doc/*.info</userinput></screen>
|
---|
[deddaa7] | 123 |
|
---|
| 124 | <para>To test the results, issue: <command>make check</command>.
|
---|
[df80d76] | 125 | The <filename>printers.tst</filename> test will fail, as there is no default
|
---|
[32d0e29] | 126 | test printer. The <filename>styles.tst</filename> may also fail, as the
|
---|
| 127 | tests report some inconsistencies between the generated postscript and the
|
---|
| 128 | reference sets. This is caused by version number differences between the
|
---|
| 129 | postscript test files and those generated by the tests — these do not
|
---|
| 130 | affect the operation of the program and can be ignored.</para>
|
---|
[deddaa7] | 131 |
|
---|
| 132 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 133 |
|
---|
| 134 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 135 |
|
---|
[32d0e29] | 136 | <para>If desired, install the downloaded i18n-fonts by running the following
|
---|
[470d3786] | 137 | commands as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[deddaa7] | 138 |
|
---|
[ba9d0fc] | 139 | <screen role="root"><userinput>tar -xf ../i18n-fonts-&i18n-fonts-version;.tar.bz2 &&
|
---|
[bfe73de] | 140 | cp -v i18n-fonts-&i18n-fonts-version;/fonts/* /usr/share/a2ps/fonts &&
|
---|
| 141 | cp -v i18n-fonts-&i18n-fonts-version;/afm/* /usr/share/a2ps/afm &&
|
---|
| 142 | pushd /usr/share/a2ps/afm &&
|
---|
| 143 | ./make_fonts_map.sh &&
|
---|
| 144 | mv fonts.map.new fonts.map &&
|
---|
[d6891f5] | 145 | popd</userinput></screen>
|
---|
[959f944] | 146 |
|
---|
[db35990d] | 147 | </sect2>
|
---|
| 148 |
|
---|
| 149 | <sect2 role="commands">
|
---|
| 150 | <title>Command Explanations</title>
|
---|
[959f944] | 151 |
|
---|
[4284d4ff] | 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>
|
---|
[f011dbb] | 157 |
|
---|
[a41f643] | 158 | <para><command>sed -i "s/GPERF --version |/& head -n 1 |/" configure</command>:
|
---|
[4284d4ff] | 159 | This fixes a bug in the handling of the version output of
|
---|
[f011dbb] | 160 | <command>gperf</command>.</para>
|
---|
[86bb9db5] | 161 |
|
---|
[4284d4ff] | 162 | <para><command>sed -i "s|/usr/local/share|/usr/share|" configure</command>:
|
---|
[32d0e29] | 163 | This command modifies the <command>configure</command> script to search for
|
---|
[db35990d] | 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 |
|
---|
[410e228b] | 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
|
---|
[bb317ce1] | 176 | in <filename>/etc/a2ps/a2ps-site.cfg</filename> after installation. The
|
---|
[32d0e29] | 177 | default is A4, but there are several other options, in particular: A4dj or
|
---|
[4284d4ff] | 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>
|
---|
[db35990d] | 181 |
|
---|
[93343b6] | 182 | <para><command>touch doc/*.info</command>: This command avoids trying to
|
---|
| 183 | regenerate the info files. This is an older package and the current
|
---|
| 184 | .texi files will produce errors preventing <command>make install</command>
|
---|
| 185 | from working properly.</para>
|
---|
| 186 |
|
---|
[db35990d] | 187 | </sect2>
|
---|
| 188 |
|
---|
| 189 | <sect2 role="configuration">
|
---|
| 190 | <title>Configuring a2ps</title>
|
---|
| 191 |
|
---|
| 192 | <sect3 id="a2ps-config">
|
---|
| 193 | <title>Config Files</title>
|
---|
| 194 |
|
---|
| 195 | <para><filename>/etc/a2ps/a2ps.cfg</filename>,
|
---|
| 196 | <filename>/etc/a2ps/a2ps-site.cfg</filename></para>
|
---|
| 197 |
|
---|
| 198 | <indexterm zone="a2ps a2ps-config">
|
---|
| 199 | <primary sortas="e-etc-a2ps-a2ps.cfg">/etc/a2ps/a2ps.cfg</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 |
|
---|
| 202 | <indexterm zone="a2ps a2ps-config">
|
---|
| 203 | <primary sortas="e-etc-a2ps-a2ps-site.cfg">/etc/a2ps/a2ps-site.cfg</primary>
|
---|
| 204 | </indexterm>
|
---|
| 205 |
|
---|
| 206 | </sect3>
|
---|
| 207 |
|
---|
| 208 | <sect3>
|
---|
| 209 | <title>Configuration Information</title>
|
---|
| 210 |
|
---|
| 211 | <para>Information about configuring <application>a2ps</application>
|
---|
| 212 | can be found in the comments contained in the above files, and also
|
---|
| 213 | by running <command>info a2ps</command>.</para>
|
---|
| 214 |
|
---|
| 215 | </sect3>
|
---|
| 216 |
|
---|
| 217 | </sect2>
|
---|
| 218 |
|
---|
| 219 | <sect2 role="content">
|
---|
| 220 | <title>Contents</title>
|
---|
| 221 |
|
---|
| 222 | <segmentedlist>
|
---|
| 223 | <segtitle>Installed Programs</segtitle>
|
---|
| 224 | <segtitle>Installed Libraries</segtitle>
|
---|
| 225 | <segtitle>Installed Directories</segtitle>
|
---|
| 226 |
|
---|
| 227 | <seglistitem>
|
---|
| 228 | <seg>a2ps, card, composeglyphs, fixnt, fixps, ogonkify,
|
---|
| 229 | pdiff, psmandup, psset, and texi2dvi4a2ps</seg>
|
---|
[977061b0] | 230 | <seg>liba2ps.{so,a} and filter data</seg>
|
---|
[df80d76] | 231 | <seg>/etc/a2ps and /usr/share/a2ps</seg>
|
---|
[db35990d] | 232 | </seglistitem>
|
---|
| 233 | </segmentedlist>
|
---|
| 234 |
|
---|
| 235 | <variablelist>
|
---|
| 236 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 237 | <?dbfo list-presentation="list"?>
|
---|
| 238 | <?dbhtml list-presentation="table"?>
|
---|
| 239 |
|
---|
| 240 | <varlistentry id="a2ps-prog">
|
---|
| 241 | <term><command>a2ps</command></term>
|
---|
| 242 | <listitem>
|
---|
| 243 | <para>is a filter, utilized primarily by printing scripts,
|
---|
| 244 | that converts standard input or supported files to PostScript.</para>
|
---|
| 245 | <indexterm zone="a2ps a2ps-prog">
|
---|
| 246 | <primary sortas="b-a2ps">a2ps</primary>
|
---|
| 247 | </indexterm>
|
---|
| 248 | </listitem>
|
---|
| 249 | </varlistentry>
|
---|
| 250 |
|
---|
| 251 | <varlistentry id="card">
|
---|
| 252 | <term><command>card</command></term>
|
---|
| 253 | <listitem>
|
---|
| 254 | <para>prints a reference card of a given program's options.</para>
|
---|
| 255 | <indexterm zone="a2ps card">
|
---|
| 256 | <primary sortas="b-card">card</primary>
|
---|
| 257 | </indexterm>
|
---|
| 258 | </listitem>
|
---|
| 259 | </varlistentry>
|
---|
| 260 |
|
---|
| 261 | <varlistentry id="composeglyphs">
|
---|
| 262 | <term><command>composeglyphs</command></term>
|
---|
| 263 | <listitem>
|
---|
| 264 | <para>creates a composite font program.</para>
|
---|
| 265 | <indexterm zone="a2ps composeglyphs">
|
---|
| 266 | <primary sortas="b-composeglyphs">composeglyphs</primary>
|
---|
| 267 | </indexterm>
|
---|
| 268 | </listitem>
|
---|
| 269 | </varlistentry>
|
---|
| 270 |
|
---|
| 271 | <varlistentry id="fixnt">
|
---|
| 272 | <term><command>fixnt</command></term>
|
---|
| 273 | <listitem>
|
---|
| 274 | <para>is supposed to fix the problems in the PostScript files
|
---|
| 275 | generated by the Microsoft PostScript driver under Windows NT
|
---|
| 276 | (3.5 and 4.0).</para>
|
---|
| 277 | <indexterm zone="a2ps fixnt">
|
---|
| 278 | <primary sortas="b-fixnt">fixnt</primary>
|
---|
| 279 | </indexterm>
|
---|
| 280 | </listitem>
|
---|
| 281 | </varlistentry>
|
---|
| 282 |
|
---|
| 283 | <varlistentry id="fixps">
|
---|
| 284 | <term><command>fixps</command></term>
|
---|
| 285 | <listitem>
|
---|
| 286 | <para>tries to fix common PostScript problems that break
|
---|
| 287 | postprocessing.</para>
|
---|
| 288 | <indexterm zone="a2ps fixps">
|
---|
[56ab82c] | 289 | <primary sortas="b-fixps">fixps</primary>
|
---|
[db35990d] | 290 | </indexterm>
|
---|
| 291 | </listitem>
|
---|
| 292 | </varlistentry>
|
---|
| 293 |
|
---|
| 294 | <varlistentry id="ogonkify">
|
---|
| 295 | <term><command>ogonkify</command></term>
|
---|
| 296 | <listitem>
|
---|
| 297 | <para>provides international support for Postscript by performing
|
---|
| 298 | various munging of PostScript files related to printing in different
|
---|
| 299 | languages.</para>
|
---|
| 300 | <indexterm zone="a2ps ogonkify">
|
---|
| 301 | <primary sortas="b-ogonkify">ogonkify</primary>
|
---|
| 302 | </indexterm>
|
---|
| 303 | </listitem>
|
---|
| 304 | </varlistentry>
|
---|
| 305 |
|
---|
| 306 | <varlistentry id="pdiff">
|
---|
| 307 | <term><command>pdiff</command></term>
|
---|
| 308 | <listitem>
|
---|
| 309 | <para>produces a pretty comparison between files.</para>
|
---|
| 310 | <indexterm zone="a2ps pdiff">
|
---|
| 311 | <primary sortas="b-pdiff">pdiff</primary>
|
---|
| 312 | </indexterm>
|
---|
| 313 | </listitem>
|
---|
| 314 | </varlistentry>
|
---|
| 315 |
|
---|
| 316 | <varlistentry id="psmandup">
|
---|
| 317 | <term><command>psmandup</command></term>
|
---|
| 318 | <listitem>
|
---|
| 319 | <para>tries to produce a version of a given PostScript file to
|
---|
| 320 | print in manual duplex.</para>
|
---|
| 321 | <indexterm zone="a2ps psmandup">
|
---|
| 322 | <primary sortas="b-psmandup">psmandup</primary>
|
---|
| 323 | </indexterm>
|
---|
| 324 | </listitem>
|
---|
| 325 | </varlistentry>
|
---|
| 326 |
|
---|
| 327 | <varlistentry id="psset">
|
---|
| 328 | <term><command>psset</command></term>
|
---|
| 329 | <listitem>
|
---|
| 330 | <para>produces a version of a given PostScript file with a
|
---|
| 331 | protected call to the PostScript operator 'setpagedevice'.
|
---|
| 332 | Typical use is making a file print duplex, or on the manual
|
---|
| 333 | tray, etc.</para>
|
---|
| 334 | <indexterm zone="a2ps psset">
|
---|
| 335 | <primary sortas="b-psset">psset</primary>
|
---|
| 336 | </indexterm>
|
---|
| 337 | </listitem>
|
---|
| 338 | </varlistentry>
|
---|
| 339 |
|
---|
| 340 | <varlistentry id="texi2dvi4a2ps">
|
---|
| 341 | <term><command>texi2dvi4a2ps</command></term>
|
---|
| 342 | <listitem>
|
---|
| 343 | <para>compiles Texinfo and LaTeX files to DVI or PDF</para>
|
---|
| 344 | <indexterm zone="a2ps texi2dvi4a2ps">
|
---|
| 345 | <primary sortas="b-texi2dvi4a2ps">texi2dvi4a2ps</primary>
|
---|
| 346 | </indexterm>
|
---|
| 347 | </listitem>
|
---|
| 348 | </varlistentry>
|
---|
| 349 |
|
---|
| 350 | </variablelist>
|
---|
| 351 |
|
---|
| 352 | </sect2>
|
---|
[5fd03d2] | 353 |
|
---|
| 354 | </sect1>
|
---|