Ghostscript, a2ps, enscript, gsview, psutils, xpdf, Acrobat Reader

alex at 22-music.com alex at 22-music.com
Mon Dec 30 10:13:48 PST 2002


Hello, BLFS developers!

I just finished my work on the postscript-related programs. See the patch
attached. Sorry that I didn't split it, but this shouldn't be too hard.
My next submission should be on CUPS, foomatic, and gimp-print. I'll try 
to split these patches.

gv and lprNG should be written by someone else. I could write the Scanning
section instead (including OCR software). Btw., do digital camera software
go to the same section?

And I found a BUG! cdrdao-1.1.7 no longer depends on pccts-133mr33! You
better fix that :-)

If I don't submit that printing stuff tomorrow, happy new year!

Alex Kloss (LX)
-------------- next part --------------
diff -Naur BLFS-old/BOOK/pst/printing/gs/gs-desc.xml BLFS/BOOK/pst/printing/gs/gs-desc.xml
--- BLFS-old/BOOK/pst/printing/gs/gs-desc.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/printing/gs/gs-desc.xml	2002-12-30 17:40:54.000000000 +0100
@@ -0,0 +1,9 @@
+<sect2>
+<title>Contents</title>
+
+<para>Ghostscript comes with a lot of filters to render Postscript/PDF
+files back and forth. Please refer to the HTML documentation or try
+<userinput>man gs</userinput>.</para>
+
+</sect2>
+
diff -Naur BLFS-old/BOOK/pst/printing/gs/gs-exp.xml BLFS/BOOK/pst/printing/gs/gs-exp.xml
--- BLFS-old/BOOK/pst/printing/gs/gs-exp.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/printing/gs/gs-exp.xml	2002-12-30 17:30:59.000000000 +0100
@@ -0,0 +1,12 @@
+<sect2>
+<title>Installation command explanations</title>
+
+<para><userinput>--libexecdir=/usr/lib/gs :</userinput> executable
+libraries of Ghostscript will be installed to
+<userinput>/usr/lib/gs</userinput>.</para>
+
+<para><userinput>--sysconfdir=/etc/gs :</userinput> Configuration data
+goes to <userinput>/etc/gs</userinput> instead of 
+<userinput>/usr/etc</userinput>.</para>
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/printing/gs/gs-inst.xml BLFS/BOOK/pst/printing/gs/gs-inst.xml
--- BLFS-old/BOOK/pst/printing/gs/gs-inst.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/printing/gs/gs-inst.xml	2002-12-30 17:39:52.000000000 +0100
@@ -0,0 +1,23 @@
+<sect2>
+<title>Installation of Ghostscript</title>
+
+<para>Install Ghostscript by running the following commands:</para>
+
+<para><screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib/gs \
+    --sysconfdir=/etc/gs --enable-shared --enable-static \
+make &&
+make install</userinput></screen></para>
+
+<para>To install the shared library <filename>libgs.so</filename>, run
+the following commands additionally:</para>
+
+<para><screen><userinput>make so &&
+make soinstall</userinput></screen></para>
+
+<note><para>The shared library is only used in external programs like
+<xref linkend="gsview"/>.</para></note>
+
+<para>To finish the installation, unpack all fonts you've loaded to
+<filename>/usr/share/ghostscript</filename>.</para>
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/printing/gs/gs-intro.xml BLFS/BOOK/pst/printing/gs/gs-intro.xml
--- BLFS-old/BOOK/pst/printing/gs/gs-intro.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/printing/gs/gs-intro.xml	2002-12-30 17:39:44.000000000 +0100
@@ -0,0 +1,16 @@
+<sect2>
+<title>Introduction to Ghostscript</title>
+
+<screen>Required:
+Download location (FTP):        <ulink url="&gs-download-ftp;"/>
+Download location (HTTP):       <ulink url="&gs-download-http;"/>
+Fonts1 Download location (FTP): <ulink url="&gs-fonts-download-ftp;"/>
+Fonts2 Download location (FTP): <ulink url="&gs-fontsother-download-ftp;"/>
+Version used:                   &gs-version;
+Package size:                   &gs-size;
+Estimated Disk space required:  &gs-buildsize;</screen>
+
+<para>Ghostscript is a versatile processor for Postscript data with
+the ability to render Postscript to different targets.</para>
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/printing/gs/gs.ent BLFS/BOOK/pst/printing/gs/gs.ent
--- BLFS-old/BOOK/pst/printing/gs/gs.ent	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/printing/gs/gs.ent	2002-12-30 17:26:30.000000000 +0100
@@ -0,0 +1,12 @@
+<!ENTITY gs SYSTEM "../gs.xml">
+<!ENTITY gs-intro SYSTEM "gs-intro.xml">
+<!ENTITY gs-inst SYSTEM "gs-inst.xml">
+<!ENTITY gs-desc SYSTEM "gs-desc.xml">
+<!ENTITY gs-exp SYSTEM "gs-exp.xml">
+<!ENTITY gs-buildsize "31-40 MB (depends on if libgs.so is installed)">
+<!ENTITY gs-version "8.00">
+<!ENTITY gs-download-http "http://telia.dl.sourceforge.net/sourceforge/ghostscript/ghostscript-8.00.tar.bz2">
+<!ENTITY gs-download-ftp "ftp://ftp.sourceforge.net/pub/sourceforge/ghostscript/ghostscript-8.00.tar.bz2">
+<!ENTITY gs-fonts-download-ftp "ftp://ftp.gnu.org/gnu/ghostscript/gnu-gs-fonts-std-6.0.tar.gz">
+<!ENTITY gs-fontsother-download-ftp "ftp://ftp.gnu.org/gnu/ghostscript/gnu-gs-fonts-other-6.0.tar.gz">
+<!ENTITY gs-size "5.2 MB">
diff -Naur BLFS-old/BOOK/pst/printing/gs.xml BLFS/BOOK/pst/printing/gs.xml
--- BLFS-old/BOOK/pst/printing/gs.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/printing/gs.xml	2002-12-30 16:00:45.000000000 +0100
@@ -0,0 +1,10 @@
+<sect1 id="gs" xreflabel="GhostScript-&gs-version;">
+<?dbhtml filename="gs.html" dir="pst"?>
+<title>Ghostscript-&gs-version;</title>
+
+&gs-intro;
+&gs-inst;
+&gs-exp;
+&gs-desc;
+
+</sect1>
diff -Naur BLFS-old/BOOK/pst/printing/printing.xml BLFS/BOOK/pst/printing/printing.xml
--- BLFS-old/BOOK/pst/printing/printing.xml	2002-07-07 22:28:46.000000000 +0200
+++ BLFS/BOOK/pst/printing/printing.xml	2002-12-30 12:56:59.000000000 +0100
@@ -2,6 +2,7 @@
 <?dbhtml filename="printing.html" dir="pst"?>
 <title>Printing</title>
 
-<para>Placeholder for ghostscript, lprng and cups</para>
+<para>Placeholder for lprng, cups, foomatic and gimp-print</para>
+&gs;
 
 </chapter>
diff -Naur BLFS-old/BOOK/pst/pst.ent BLFS/BOOK/pst/pst.ent
--- BLFS-old/BOOK/pst/pst.ent	2002-12-18 21:17:56.000000000 +0100
+++ BLFS/BOOK/pst/pst.ent	2002-12-30 18:09:48.000000000 +0100
@@ -2,6 +2,8 @@
 
 <!-- Printing -->
 <!ENTITY pst-printing SYSTEM "printing/printing.xml">
+<!ENTITY % gs SYSTEM "printing/gs/gs.ent">
+%gs;
 
 <!-- Scanning -->
 <!ENTITY pst-scanning SYSTEM "scanning/scanning.xml">
@@ -26,6 +28,18 @@
 
 <!-- PS -->
 <!ENTITY pst-ps SYSTEM "typesetting/ps.xml">
+<!ENTITY % a2ps SYSTEM "typesetting/ps/a2ps/a2ps.ent">
+<!ENTITY % enscript SYSTEM "typesetting/ps/enscript/enscript.ent">
+<!ENTITY % gsview SYSTEM "typesetting/ps/gsview/gsview.ent">
+<!ENTITY % psutils SYSTEM "typesetting/ps/psutils/psutils.ent">
+<!ENTITY % xpdf SYSTEM "typesetting/ps/xpdf/xpdf.ent">
+<!ENTITY % acroread SYSTEM "typesetting/ps/acroread/acroread.ent">
+%a2ps;
+%enscript;
+%gsview;
+%psutils;
+%xpdf;
+%acroread;
 
 <!-- Typesetting -->
 <!ENTITY pst-typesetting SYSTEM "typesetting/typesetting.xml">
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/a2ps/a2ps-desc.xml BLFS/BOOK/pst/typesetting/ps/a2ps/a2ps-desc.xml
--- BLFS-old/BOOK/pst/typesetting/ps/a2ps/a2ps-desc.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/a2ps/a2ps-desc.xml	2002-12-29 14:41:42.000000000 +0100
@@ -0,0 +1,8 @@
+<sect2>
+<title>Contents</title>
+
+<para>a2ps is a filter program. The package consists of the program a2ps
+and a lot of filter data to convert nearly everything to Postscript.
+</para>
+</sect2>
+
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/a2ps/a2ps-exp.xml BLFS/BOOK/pst/typesetting/ps/a2ps/a2ps-exp.xml
--- BLFS-old/BOOK/pst/typesetting/ps/a2ps/a2ps-exp.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/a2ps/a2ps-exp.xml	2002-12-29 14:53:13.000000000 +0100
@@ -0,0 +1,15 @@
+<sect2>
+<title>Installation command explanations</title>
+
+<para><userinput>--libexecdir=/usr/lib/a2ps :</userinput> executable libraries
+of a2ps will be installed to <userinput>/usr/lib/a2ps</userinput>.</para>
+
+<para><userinput>--sysconfdir=/etc/a2ps :</userinput> Configuration data
+goes to <userinput>/etc/a2ps</userinput> instead of 
+<userinput>/usr/etc</userinput>.</para>
+
+<para><userinput>--with-medium=a4 :</userinput> DIN A4 is set as standard
+paper format (replace "a4" with "letter" if 
+necessary).</para> 
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/a2ps/a2ps-inst.xml BLFS/BOOK/pst/typesetting/ps/a2ps/a2ps-inst.xml
--- BLFS-old/BOOK/pst/typesetting/ps/a2ps/a2ps-inst.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/a2ps/a2ps-inst.xml	2002-12-30 17:36:50.000000000 +0100
@@ -0,0 +1,18 @@
+<sect2>
+<title>Installation of a2ps</title>
+
+<para>a2ps is an almost typical GNU package, but tries to install to
+uncommon directories.</para>
+
+<para>Install a2ps by running the following commands:</para>
+
+<para><screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib/a2ps \
+    --sysconfdir=/etc/a2ps --localstatedir=/var \
+    --with-medium=a4 &&
+make &&
+make install
+</userinput></screen></para>
+
+<note><para>Replace "a4" at the 3rd line with "letter" 
+if that medium format is common to you.</para></note>
+</sect2>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/a2ps/a2ps-intro.xml BLFS/BOOK/pst/typesetting/ps/a2ps/a2ps-intro.xml
--- BLFS-old/BOOK/pst/typesetting/ps/a2ps/a2ps-intro.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/a2ps/a2ps-intro.xml	2002-12-30 17:36:40.000000000 +0100
@@ -0,0 +1,15 @@
+<sect2>
+<title>Introduction to a2ps</title>
+
+<screen>Required:
+Download location (FTP):        <ulink url="&a2ps-download-ftp;"/>
+Download location (HTTP):       <ulink url="&a2ps-download-http;"/>
+Version used:                   &a2ps-version;
+Package size:                   &a2ps-size;
+Estimated Disk space required:  &a2ps-buildsize;</screen>
+
+<para>a2ps is a utility used mostly in the background to convert almost
+every input format into postscript output, hence the name "a2ps" which
+means "all to Postscript".</para>
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/a2ps/a2ps.ent BLFS/BOOK/pst/typesetting/ps/a2ps/a2ps.ent
--- BLFS-old/BOOK/pst/typesetting/ps/a2ps/a2ps.ent	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/a2ps/a2ps.ent	2002-12-29 14:01:01.000000000 +0100
@@ -0,0 +1,10 @@
+<!ENTITY a2ps SYSTEM "../a2ps.xml">
+<!ENTITY a2ps-intro SYSTEM "a2ps-intro.xml">
+<!ENTITY a2ps-inst SYSTEM "a2ps-inst.xml">
+<!ENTITY a2ps-desc SYSTEM "a2ps-desc.xml">
+<!ENTITY a2ps-exp SYSTEM "a2ps-exp.xml">
+<!ENTITY a2ps-buildsize "19 MB">
+<!ENTITY a2ps-version "4.13b">
+<!ENTITY a2ps-download-http "http://ftp.gnu.org/gnu/a2ps/a2ps-4.13b.tar.gz">
+<!ENTITY a2ps-download-ftp "ftp://ftp.gnu.org/gnu/a2ps/a2ps-4.13b.tar.gz">
+<!ENTITY a2ps-size "1.8 MB">
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/a2ps.xml BLFS/BOOK/pst/typesetting/ps/a2ps.xml
--- BLFS-old/BOOK/pst/typesetting/ps/a2ps.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/a2ps.xml	2002-12-30 15:58:00.000000000 +0100
@@ -0,0 +1,10 @@
+<sect1 id="a2ps" xreflabel="a2ps-&a2ps-version;">
+<?dbhtml filename="a2ps.html" dir="pst"?>
+<title>a2ps-&a2ps-version;</title>
+
+&a2ps-intro;
+&a2ps-inst;
+&a2ps-exp;
+&a2ps-desc;
+
+</sect1>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/acroread/acroread-desc.xml BLFS/BOOK/pst/typesetting/ps/acroread/acroread-desc.xml
--- BLFS-old/BOOK/pst/typesetting/ps/acroread/acroread-desc.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/acroread/acroread-desc.xml	2002-12-29 17:58:22.000000000 +0100
@@ -0,0 +1,12 @@
+<sect2>
+<title>Contents</title>
+
+<para>Acrobat Reader consists of the program acroread and some runtime
+libraries as well as a Netscape/Konqueror/Mozilla plugin for PDF
+viewing.</para>
+
+<note><para>Adobe and Acrobat are registered Trademarks of Adobe
+Inc.</para></note>
+
+</sect2>
+
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/acroread/acroread-inst.xml BLFS/BOOK/pst/typesetting/ps/acroread/acroread-inst.xml
--- BLFS-old/BOOK/pst/typesetting/ps/acroread/acroread-inst.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/acroread/acroread-inst.xml	2002-12-30 17:39:28.000000000 +0100
@@ -0,0 +1,14 @@
+<sect2>
+<title>Installation of Acrobat Reader</title>
+
+<para>Acrobat Reader is available only as binary.</para>
+
+<para>Install Acrobat Reader by unpacking the .tar.gz file to a
+temporary directory. There, execute <filename>./INSTALL</filename> and
+answer the questions. Starting Acrobat reader for the first time will
+make a directory meant to keep the settings in your home directory:</para>
+
+<para><screen><userinput>./acroread
+</userinput></screen></para>
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/acroread/acroread-intro.xml BLFS/BOOK/pst/typesetting/ps/acroread/acroread-intro.xml
--- BLFS-old/BOOK/pst/typesetting/ps/acroread/acroread-intro.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/acroread/acroread-intro.xml	2002-12-30 17:39:14.000000000 +0100
@@ -0,0 +1,12 @@
+<sect2>
+<title>Introduction to Acrobat Reader</title>
+
+<screen>Required:
+Download location (HTTP):       <ulink url="&acroread-download-http;"/>
+Version used:                   &acroread-version;
+Package size:                   &acroread-size;</screen>
+
+<para>Acrobat Reader is Adobe's viewer for files in their free PDF
+format.</para>
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/acroread/acroread.ent BLFS/BOOK/pst/typesetting/ps/acroread/acroread.ent
--- BLFS-old/BOOK/pst/typesetting/ps/acroread/acroread.ent	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/acroread/acroread.ent	2002-12-30 10:55:18.000000000 +0100
@@ -0,0 +1,7 @@
+<!ENTITY acroread SYSTEM "../acroread.xml">
+<!ENTITY acroread-intro SYSTEM "acroread-intro.xml">
+<!ENTITY acroread-inst SYSTEM "acroread-inst.xml">
+<!ENTITY acroread-desc SYSTEM "acroread-desc.xml">
+<!ENTITY acroread-version "5.0.6">
+<!ENTITY acroread-download-http "http://download.adobe.com/pub/adobe/acrobatreader/unix/5.0/linux-506.tar.gz">
+<!ENTITY acroread-size "8.9 MB">
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/acroread.xml BLFS/BOOK/pst/typesetting/ps/acroread.xml
--- BLFS-old/BOOK/pst/typesetting/ps/acroread.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/acroread.xml	2002-12-30 15:57:40.000000000 +0100
@@ -0,0 +1,9 @@
+<sect1 id="acroread" xreflabel="Acrobat Reader &acroread-version;">
+<?dbhtml filename="acroread.html" dir="pst"?>
+<title>Acrobat Reader &acroread-version;</title>
+
+&acroread-intro;
+&acroread-inst;
+&acroread-desc;
+
+</sect1>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/enscript/enscript-desc.xml BLFS/BOOK/pst/typesetting/ps/enscript/enscript-desc.xml
--- BLFS-old/BOOK/pst/typesetting/ps/enscript/enscript-desc.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/enscript/enscript-desc.xml	2002-12-29 17:52:09.000000000 +0100
@@ -0,0 +1,9 @@
+<sect2>
+<title>Contents</title>
+
+<para>enscript is a filter program. The package consists of the program
+enscript and some files of filter data to convert ASCII files to
+Postscript.
+</para>
+</sect2>
+
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/enscript/enscript-exp.xml BLFS/BOOK/pst/typesetting/ps/enscript/enscript-exp.xml
--- BLFS-old/BOOK/pst/typesetting/ps/enscript/enscript-exp.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/enscript/enscript-exp.xml	2002-12-30 16:48:07.000000000 +0100
@@ -0,0 +1,15 @@
+<sect2>
+<title>Installation command explanations</title>
+
+<para><userinput>--libexecdir=/usr/lib/enscript :</userinput> executable libraries
+of enscript will be installed to <userinput>/usr/lib/enscript</userinput>.</para>
+
+<para><userinput>--sysconfdir=/etc/enscript :</userinput> Configuration data
+goes to <userinput>/etc/enscript</userinput> instead of 
+<userinput>/usr/etc</userinput>.</para>
+
+<para><userinput>--localstatedir=/var :</userinput> directory for
+runtime data is set to <filename>/var</filename> instead of
+<filename>/usr/var</filename>.</para>
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/enscript/enscript-inst.xml BLFS/BOOK/pst/typesetting/ps/enscript/enscript-inst.xml
--- BLFS-old/BOOK/pst/typesetting/ps/enscript/enscript-inst.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/enscript/enscript-inst.xml	2002-12-30 17:37:21.000000000 +0100
@@ -0,0 +1,19 @@
+<sect2>
+<title>Installation of enscript</title>
+
+<para>enscript is an almost typical GNU package, but tries to install to
+uncommon directories.</para>
+
+<para>Install enscript by running the following commands:</para>
+
+<para><screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib/enscript \
+    --sysconfdir=/etc/enscript --localstatedir=/var &&
+make &&
+make install
+</userinput></screen></para>
+
+<note><para>Add "<userinput>--with-media=letter</userinput>"
+to the configure options if that medium format is common to
+you.</para></note>
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/enscript/enscript-intro.xml BLFS/BOOK/pst/typesetting/ps/enscript/enscript-intro.xml
--- BLFS-old/BOOK/pst/typesetting/ps/enscript/enscript-intro.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/enscript/enscript-intro.xml	2002-12-30 17:37:09.000000000 +0100
@@ -0,0 +1,13 @@
+<sect2>
+<title>Introduction to enscript</title>
+
+<screen>Required:
+Download location (FTP):        <ulink url="&enscript-download-ftp;"/>
+Download location (HTTP):       <ulink url="&enscript-download-http;"/>
+Version used:                   &enscript-version;
+Package size:                   &enscript-size;
+Estimated Disk space required:  &enscript-buildsize;</screen>
+
+<para>enscript converts ASCII files to Postscript.</para>
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/enscript/enscript.ent BLFS/BOOK/pst/typesetting/ps/enscript/enscript.ent
--- BLFS-old/BOOK/pst/typesetting/ps/enscript/enscript.ent	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/enscript/enscript.ent	2002-12-29 17:42:37.000000000 +0100
@@ -0,0 +1,10 @@
+<!ENTITY enscript SYSTEM "../enscript.xml">
+<!ENTITY enscript-intro SYSTEM "enscript-intro.xml">
+<!ENTITY enscript-inst SYSTEM "enscript-inst.xml">
+<!ENTITY enscript-desc SYSTEM "enscript-desc.xml">
+<!ENTITY enscript-exp SYSTEM "enscript-exp.xml">
+<!ENTITY enscript-buildsize "6.4 MB">
+<!ENTITY enscript-version "1.6.1">
+<!ENTITY enscript-download-http "http://ftp.gnu.org/gnu/enscript/enscript-1.6.1.tar.gz">
+<!ENTITY enscript-download-ftp "ftp://ftp.gnu.org/gnu/enscript/enscript-1.6.1.tar.gz">
+<!ENTITY enscript-size "631 kb">
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/enscript.xml BLFS/BOOK/pst/typesetting/ps/enscript.xml
--- BLFS-old/BOOK/pst/typesetting/ps/enscript.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/enscript.xml	2002-12-30 15:58:30.000000000 +0100
@@ -0,0 +1,10 @@
+<sect1 id="enscript" xreflabel="enscript-&enscript-version;">
+<?dbhtml filename="enscript.html" dir="pst"?>
+<title>enscript-&enscript-version;</title>
+
+&enscript-intro;
+&enscript-inst;
+&enscript-exp;
+&enscript-desc;
+
+</sect1>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/gsview/gsview-desc.xml BLFS/BOOK/pst/typesetting/ps/gsview/gsview-desc.xml
--- BLFS-old/BOOK/pst/typesetting/ps/gsview/gsview-desc.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/gsview/gsview-desc.xml	2002-12-30 16:45:21.000000000 +0100
@@ -0,0 +1,7 @@
+<sect2>
+<title>Contents</title>
+
+<para>gsview is a viewer for Postscript and PDF files.
+</para>
+</sect2>
+
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/gsview/gsview-exp.xml BLFS/BOOK/pst/typesetting/ps/gsview/gsview-exp.xml
--- BLFS-old/BOOK/pst/typesetting/ps/gsview/gsview-exp.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/gsview/gsview-exp.xml	2002-12-30 16:45:59.000000000 +0100
@@ -0,0 +1,16 @@
+<sect2>
+<title>Installation command explanations</title>
+
+<para><userinput>--libexecdir=/usr/lib/gsview :</userinput> executable
+libraries of gsview will be installed to 
+<userinput>/usr/lib/gsview</userinput>.</para>
+
+<para><userinput>--sysconfdir=/etc/gsview :</userinput> Configuration data
+goes to <userinput>/etc/gsview</userinput> instead of 
+<userinput>/usr/etc</userinput>.</para>
+
+<para><userinput>--with-medium=a4 :</userinput> DIN A4 is set as standard
+paper format (replace "a4" with "letter" if 
+necessary).</para> 
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/gsview/gsview-inst.xml BLFS/BOOK/pst/typesetting/ps/gsview/gsview-inst.xml
--- BLFS-old/BOOK/pst/typesetting/ps/gsview/gsview-inst.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/gsview/gsview-inst.xml	2002-12-30 17:35:45.000000000 +0100
@@ -0,0 +1,30 @@
+<sect2>
+<title>Installation of gsview</title>
+
+<para>gsview is an almost typical GNU package, but tries to install to
+uncommon directories.</para>
+
+<para>gsview uses netscape to browse through the online help. The usual
+LFS user doesn't want to install netscape, but uses mozilla or another
+browser. So simply edit <filename>srcunx/gvxreg.c</filename> using the
+following sed script:</para>
+
+<para><screen><userinput>mv srcunx/gvxreg.c srcunx/gvxreg.old &&
+cat srcunx/gvxreg.old | sed s/netscape/<browser>/ > srcunx/gvxreg.c
+</userinput></screen></para>
+
+<note><para>Replace <userinput><browser></userinput> with the
+executable name of the browser you intend to use.</para></note>
+
+<para>Install gsview by running the following commands:</para>
+
+<para><screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib/gsview \
+    --sysconfdir=/etc/gsview --localstatedir=/var \
+    --with-medium=a4 &&
+make &&
+make install
+</userinput></screen></para>
+
+<note><para>Replace "a4" at the 3rd line with "letter" 
+if that medium format is common to you.</para></note>
+</sect2>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/gsview/gsview-intro.xml BLFS/BOOK/pst/typesetting/ps/gsview/gsview-intro.xml
--- BLFS-old/BOOK/pst/typesetting/ps/gsview/gsview-intro.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/gsview/gsview-intro.xml	2002-12-30 17:37:38.000000000 +0100
@@ -0,0 +1,17 @@
+<sect2>
+<title>Introduction to gsview</title>
+
+<screen>Required:
+Download location (FTP):        <ulink url="&gsview-download-ftp;"/>
+Download location (HTTP):       <ulink url="&gsview-download-http;"/>
+Version used:                   &gsview-version;
+Package size:                   &gsview-size;
+Estimated Disk space required:  &gsview-buildsize;</screen>
+
+<para>gsview is a viewer for Postscript and PDF using X.</para>
+
+<screen>gsview requires:
+<xref linkend="xfree86"/>, <xref linkend="GTK"/>, 
+<xref linkend="gs"/> (requires libgs.so)</screen>
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/gsview/gsview.ent BLFS/BOOK/pst/typesetting/ps/gsview/gsview.ent
--- BLFS-old/BOOK/pst/typesetting/ps/gsview/gsview.ent	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/gsview/gsview.ent	2002-12-30 12:58:30.000000000 +0100
@@ -0,0 +1,10 @@
+<!ENTITY gsview SYSTEM "../gsview.xml">
+<!ENTITY gsview-intro SYSTEM "gsview-intro.xml">
+<!ENTITY gsview-inst SYSTEM "gsview-inst.xml">
+<!ENTITY gsview-desc SYSTEM "gsview-desc.xml">
+<!ENTITY gsview-exp SYSTEM "gsview-exp.xml">
+<!ENTITY gsview-buildsize "16 MB">
+<!ENTITY gsview-version "4.3">
+<!ENTITY gsview-download-http "http://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/gsview-4.3.tar.gz">
+<!ENTITY gsview-download-ftp "ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/gsview-4.3.tar.gz">
+<!ENTITY gsview-size "711 kb">
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/gsview.xml BLFS/BOOK/pst/typesetting/ps/gsview.xml
--- BLFS-old/BOOK/pst/typesetting/ps/gsview.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/gsview.xml	2002-12-30 15:58:56.000000000 +0100
@@ -0,0 +1,10 @@
+<sect1 id="gsview" xreflabel="gsview-&gsview-version;">
+<?dbhtml filename="gsview.html" dir="pst"?>
+<title>gsview-&gsview-version;</title>
+
+&gsview-intro;
+&gsview-inst;
+&gsview-exp;
+&gsview-desc;
+
+</sect1>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/psutils/psutils-desc.xml BLFS/BOOK/pst/typesetting/ps/psutils/psutils-desc.xml
--- BLFS-old/BOOK/pst/typesetting/ps/psutils/psutils-desc.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/psutils/psutils-desc.xml	2002-12-30 17:13:38.000000000 +0100
@@ -0,0 +1,27 @@
+<sect2>
+<title>Contents</title>
+
+<para>psutils is a set of filter programs for Postscript files:</para>
+
+<para><userinput>psbook</userinput> rearranges pages into
+signatures</para>
+<para><userinput>psselect</userinput> selects pages and page
+ranges</para>
+<para><userinput>pstops</userinput> Performs general page rearrangements
+and selection</para>
+<para><userinput>psnup</userinput> Put multiple pages per physical sheet
+of paper</para>
+<para><userinput>psresize</userinput> Alter document paper size</para>
+<para><userinput>epsffit</userinput> Fits and EPSF file to a given
+bounding box</para>
+
+<para>Additionally, psutils provide a set of scripts:</para>
+
+<para>getafm, showchar, fixdlsrps, fixfmps, fixmacps, fixpsditps,
+fixpspps, fixscribeps, fixtpps, fixwfwps, fixwpps, fixwwps, extractres,
+includeres, psmerge.</para>
+
+<para>Please refer to the manpages for further information.</para>
+
+</sect2>
+
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/psutils/psutils-exp.xml BLFS/BOOK/pst/typesetting/ps/psutils/psutils-exp.xml
--- BLFS-old/BOOK/pst/typesetting/ps/psutils/psutils-exp.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/psutils/psutils-exp.xml	2002-12-30 17:00:00.000000000 +0100
@@ -0,0 +1,9 @@
+<sect2>
+<title>Installation command explanations</title>
+
+<para><userinput>cat ... | sed ... :</userinput> creates a Makefile that
+uses the directories common to the BLFS installation. If you prefer
+other directories, edit the Makefile manually before executing the other
+commands.</para>
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/psutils/psutils-inst.xml BLFS/BOOK/pst/typesetting/ps/psutils/psutils-inst.xml
--- BLFS-old/BOOK/pst/typesetting/ps/psutils/psutils-inst.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/psutils/psutils-inst.xml	2002-12-30 17:36:15.000000000 +0100
@@ -0,0 +1,11 @@
+<sect2>
+<title>Installation of psutils</title>
+
+<para>Install psutils by running the following commands:</para>
+
+<para><screen><userinput>cat Makefile.unix | sed s/\/usr\/local/\/usr/g > Makefile &&
+make &&
+make install
+</userinput></screen></para>
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/psutils/psutils-intro.xml BLFS/BOOK/pst/typesetting/ps/psutils/psutils-intro.xml
--- BLFS-old/BOOK/pst/typesetting/ps/psutils/psutils-intro.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/psutils/psutils-intro.xml	2002-12-30 17:36:24.000000000 +0100
@@ -0,0 +1,13 @@
+<sect2>
+<title>Introduction to psutils</title>
+
+<screen>Required:
+Download location (FTP):        <ulink url="&psutils-download-ftp;"/>
+Download location (HTTP):       <ulink url="&psutils-download-http;"/>
+Version used:                   &psutils-version;
+Package size:                   &psutils-size;
+Estimated Disk space required:  &psutils-buildsize;</screen>
+
+<para>psutils is a set of utilities to manipulate Postscript files.</para>
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/psutils/psutils.ent BLFS/BOOK/pst/typesetting/ps/psutils/psutils.ent
--- BLFS-old/BOOK/pst/typesetting/ps/psutils/psutils.ent	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/psutils/psutils.ent	2002-12-30 16:57:20.000000000 +0100
@@ -0,0 +1,10 @@
+<!ENTITY psutils SYSTEM "../psutils.xml">
+<!ENTITY psutils-intro SYSTEM "psutils-intro.xml">
+<!ENTITY psutils-inst SYSTEM "psutils-inst.xml">
+<!ENTITY psutils-desc SYSTEM "psutils-desc.xml">
+<!ENTITY psutils-exp SYSTEM "psutils-exp.xml">
+<!ENTITY psutils-buildsize "688 kb">
+<!ENTITY psutils-version "p17">
+<!ENTITY psutils-download-http "http://knackered.org/angus/psutils/">
+<!ENTITY psutils-download-ftp "ftp://ftp.knackered.org/pub/psutils/psutils-p17.tar.gz">
+<!ENTITY psutils-size "62 kb">
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/psutils.xml BLFS/BOOK/pst/typesetting/ps/psutils.xml
--- BLFS-old/BOOK/pst/typesetting/ps/psutils.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/psutils.xml	2002-12-30 15:59:40.000000000 +0100
@@ -0,0 +1,10 @@
+<sect1 id="psutils" xreflabel="psutils-&psutils-version;">
+<?dbhtml filename="psutils.html" dir="pst"?>
+<title>psutils-&psutils-version;</title>
+
+&psutils-intro;
+&psutils-inst;
+&psutils-exp;
+&psutils-desc;
+
+</sect1>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/xpdf/xpdf-config.xml BLFS/BOOK/pst/typesetting/ps/xpdf/xpdf-config.xml
--- BLFS-old/BOOK/pst/typesetting/ps/xpdf/xpdf-config.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/xpdf/xpdf-config.xml	2002-12-30 17:21:05.000000000 +0100
@@ -0,0 +1,38 @@
+<sect2>
+<title>Configuring xpdf</title>
+
+<para>In the source directory you will find a sample
+<filename>xpdfrc</filename> that can be either copied to
+<filename>~/.xpdfrc</filename> or taken as example to write your own
+configuration file.</para>
+
+<sect3><title>Example .xpdfrc</title>
+<para><screen># Example .xpdfrc
+displayFontT1 Times-Roman		/usr/share/ghostscript/fonts/n021003l.pfb
+displayFontT1 Times-Italic		/usr/share/ghostscript/fonts/n021023l.pfb
+displayFontT1 Times-Bold		/usr/share/ghostscript/fonts/n021004l.pfb
+displayFontT1 Times-BoldItalic		/usr/share/ghostscript/fonts/n021024l.pfb
+displayFontT1 Helvetica			/usr/share/ghostscript/fonts/n019003l.pfb
+displayFontT1 Helvetica-Oblique		/usr/share/ghostscript/fonts/n019023l.pfb
+displayFontT1 Helvetica-Bold		/usr/share/ghostscript/fonts/n019004l.pfb
+displayFontT1 Helvetica-BoldOblique	/usr/share/ghostscript/fonts/n019024l.pfb
+displayFontT1 Courier			/usr/share/ghostscript/fonts/n022003l.pfb
+displayFontT1 Courier-Oblique		/usr/share/ghostscript/fonts/n022023l.pfb
+displayFontT1 Courier-Bold		/usr/share/ghostscript/fonts/n022004l.pfb
+displayFontT1 Courier-BoldOblique	/usr/share/ghostscript/fonts/n022024l.pfb
+displayFontT1 Symbol			/usr/share/ghostscript/fonts/s050000l.pfb
+displayFontT1 ZapfDingbats		/usr/share/ghostscript/fonts/d050000l.pfb
+
+fontDir		/usr/X11R6/lib/X11/fonts/truetype
+
+psFile			"|lpr"
+psPaperSize		a4
+textEOL		unix
+
+t1libControl		low
+freetypeControl		low
+
+urlCommand	"links -g %s"</screen></para>
+</sect3>
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/xpdf/xpdf-desc.xml BLFS/BOOK/pst/typesetting/ps/xpdf/xpdf-desc.xml
--- BLFS-old/BOOK/pst/typesetting/ps/xpdf/xpdf-desc.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/xpdf/xpdf-desc.xml	2002-12-30 12:43:43.000000000 +0100
@@ -0,0 +1,13 @@
+<sect2>
+<title>Contents</title>
+
+<para><userinput>xpdf</userinput> displays files in PDF format.</para>
+
+<para><userinput>pdftops</userinput> converts PDF files to Postscript format.</para>
+
+<para><userinput>pdftotext</userinput> parses ASCII text from PDF files.</para>
+
+<para><userinput>pdftopbm</userinput> converts PDF files to PBM (Portable BitMap) format.</para>
+
+</sect2>
+
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/xpdf/xpdf-exp.xml BLFS/BOOK/pst/typesetting/ps/xpdf/xpdf-exp.xml
--- BLFS-old/BOOK/pst/typesetting/ps/xpdf/xpdf-exp.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/xpdf/xpdf-exp.xml	2002-12-30 17:20:29.000000000 +0100
@@ -0,0 +1,11 @@
+<sect2>
+<title>Installation command explanations</title>
+
+<para><userinput>--with-gzip :</userinput> xpdf can read directly from 
+gzipped PDF files using gzip.</para>
+
+<para><userinput>--enable-a4-paper :</userinput> DIN A4 is set as
+standard paper format. Leave this switch alone if letter is common
+to you.</para> 
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/xpdf/xpdf-inst.xml BLFS/BOOK/pst/typesetting/ps/xpdf/xpdf-inst.xml
--- BLFS-old/BOOK/pst/typesetting/ps/xpdf/xpdf-inst.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/xpdf/xpdf-inst.xml	2002-12-30 12:41:31.000000000 +0100
@@ -0,0 +1,24 @@
+<sect2>
+<title>Installation of xpdf</title>
+
+<para>xpdf is an almost typical GNU package, but tries to install to
+uncommon directories.</para>
+
+<para>Install xpdf by running the following commands:</para>
+
+<para><screen><userinput>      
+./configure --prefix=/usr/X11R6 --enable-a4-paper \
+    --with-freetype-includes=/usr/include/freetype2 \
+    --with-freetype-library=/usr/lib --with-gzip \
+    --with-appdef-dir=/usr/X11R6/lib/X11/app-defaults/ &&
+make &&
+make install
+</userinput></screen></para>
+
+<note><para>If the "letter" paper format is common to you,
+leave the <userinput>--enable-a4-paper</userinput> switch out. If necessary,
+replace the path settings for freetype2 with whatever is appropriate on
+your system (if you did not follow the <xref linkend="freetype2"/> 
+Section).</para></note>
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/xpdf/xpdf-intro.xml BLFS/BOOK/pst/typesetting/ps/xpdf/xpdf-intro.xml
--- BLFS-old/BOOK/pst/typesetting/ps/xpdf/xpdf-intro.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/xpdf/xpdf-intro.xml	2002-12-30 17:40:31.000000000 +0100
@@ -0,0 +1,20 @@
+<sect2>
+<title>Introduction to xpdf</title>
+
+<screen>Required:
+Download location (FTP):        <ulink url="&xpdf-download-ftp;"/>
+Download location (HTTP):       <ulink url="&xpdf-download-http;"/>
+Version used:                   &xpdf-version;
+Package size:                   &xpdf-size;
+Estimated Disk space required:  &xpdf-buildsize;</screen>
+
+<para>xpdf is a viewer for Adobe's free Portable Document Format (PDF) which
+is considerably faster and smaller than Adobe's own <xref linkend="acroread"/>
+and comes with some useful command line utilities.</para>
+
+<screen>xpdf depends on:
+<xref linkend="xfree86"/>, <xref linkend="lesstif"/>
+xpdf will utilize:
+t1lib, (<xref linkend="gs"/> fonts), <xref linkend="freetype2"/> (truetype fonts, see 
+<xref linkend="x-installing-truetype"/>).</screen>
+</sect2>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/xpdf/xpdf.ent BLFS/BOOK/pst/typesetting/ps/xpdf/xpdf.ent
--- BLFS-old/BOOK/pst/typesetting/ps/xpdf/xpdf.ent	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/xpdf/xpdf.ent	2002-12-30 17:15:58.000000000 +0100
@@ -0,0 +1,11 @@
+<!ENTITY xpdf SYSTEM "../xpdf.xml">
+<!ENTITY xpdf-intro SYSTEM "xpdf-intro.xml">
+<!ENTITY xpdf-inst SYSTEM "xpdf-inst.xml">
+<!ENTITY xpdf-exp SYSTEM "xpdf-exp.xml">
+<!ENTITY xpdf-desc SYSTEM "xpdf-desc.xml">
+<!ENTITY xpdf-config SYSTEM "xpdf-config.xml">
+<!ENTITY xpdf-buildsize "1.2 MB">
+<!ENTITY xpdf-version "2.0.1">
+<!ENTITY xpdf-download-http "http://www.foolabs.com/xpdf/download.html">
+<!ENTITY xpdf-download-ftp "ftp://ftp.foolabs.com/pub/xpdf/xpdf-2.0.1.tar.gz">
+<!ENTITY xpdf-size "454 kb">
diff -Naur BLFS-old/BOOK/pst/typesetting/ps/xpdf.xml BLFS/BOOK/pst/typesetting/ps/xpdf.xml
--- BLFS-old/BOOK/pst/typesetting/ps/xpdf.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps/xpdf.xml	2002-12-30 16:00:00.000000000 +0100
@@ -0,0 +1,11 @@
+<sect1 id="xpdf" xreflabel="xpdf-&xpdf-version;">
+<?dbhtml filename="xpdf.html" dir="pst"?>
+<title>xpdf-&xpdf-version;</title>
+
+&xpdf-intro;
+&xpdf-inst;
+&xpdf-exp;
+&xpdf-desc;
+&xpdf-config;
+
+</sect1>
diff -Naur BLFS-old/BOOK/pst/typesetting/ps.xml BLFS/BOOK/pst/typesetting/ps.xml
--- BLFS-old/BOOK/pst/typesetting/ps.xml	2002-12-13 16:26:53.000000000 +0100
+++ BLFS/BOOK/pst/typesetting/ps.xml	2002-12-30 16:19:53.000000000 +0100
@@ -2,7 +2,11 @@
 <?dbhtml filename="ps.html" dir="pst"?>
 <title>Postscript</title>
 
-<para>Placeholder for a2ps, enscript, gsview, gv and acrobat reader.</para>
-
+&a2ps;
+&enscript;
+&gsview;
+&psutils;
+&xpdf;
+&acroread;
 
 </chapter>


More information about the blfs-book mailing list