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