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