glfs/pst/sgml/docbook-utils.xml
Manuel Canales Esparcia ff769b8c61 Updated the XML sources to use DocBook XML DTD-4.4.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3656 af4574ff-66df-0310-9fd7-8a98e5e911e0
2005-04-03 20:52:42 +00:00

189 lines
7.1 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY docbook-utils-download-http "http://sources-redhat.mirrors.redwire.net/docbook-tools/new-trials/SOURCES/docbook-utils-&docbook-utils-version;.tar.gz">
<!ENTITY docbook-utils-download-ftp "ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/docbook-utils-&docbook-utils-version;.tar.gz">
<!ENTITY docbook-utils-md5sum "6b41b18c365c01f225bc417cf632d81c">
<!ENTITY docbook-utils-size "124 KB">
<!ENTITY docbook-utils-buildsize "1.44 MB">
<!ENTITY docbook-utils-time ".03 SBU">
]>
<sect1 id="docbook-utils" xreflabel="DocBook-utils-&docbook-utils-version;">
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<?dbhtml filename="docbook-utils.html"?>
<title>DocBook-utils-&docbook-utils-version;</title>
<indexterm zone="docbook-utils">
<primary sortas="a-DocBook-utils">DocBook-utils</primary></indexterm>
<sect2>
<title>Introduction to <application>DocBook-utils</application></title>
<para>The <application>DocBook-utils</application> package is a collection of
utility scripts used to convert and analyze <acronym>SGML</acronym> documents
in general, and DocBook files in particular. The scripts are used to convert
from DocBook or other <acronym>SGML</acronym> formats into
<quote>classical</quote> file formats like <acronym>HTML</acronym>, man, info,
<acronym>RTF</acronym> and many more. There's also a utility to compare two
<acronym>SGML</acronym> files and only display the differences in markup. This
is useful for comparing documents prepared for different languages.</para>
<sect3><title>Package information</title>
<itemizedlist spacing='compact'>
<listitem><para>Download (HTTP):
<ulink url="&docbook-utils-download-http;"/></para></listitem>
<listitem><para>Download (FTP):
<ulink url="&docbook-utils-download-ftp;"/></para></listitem>
<listitem><para>Download MD5 sum:
&docbook-utils-md5sum;</para></listitem>
<listitem><para>Download size:
&docbook-utils-size;</para></listitem>
<listitem><para>Estimated disk space required:
&docbook-utils-buildsize;</para></listitem>
<listitem><para>Estimated build time:
&docbook-utils-time;</para></listitem></itemizedlist>
</sect3>
<sect3><title><application>DocBook-utils</application> dependencies</title>
<sect4><title>Required</title>
<para><xref linkend="which"/>,
<xref linkend="openjade"/>,
<xref linkend="docbook-dsssl"/> and
<xref linkend="sgml-dtd-3"/></para>
</sect4>
<sect4><title>Optional</title>
<para><xref linkend="jadetex"/> (for conversion to
<acronym>DVI</acronym>, <acronym>PS</acronym> and <acronym>PDF</acronym>),
<xref linkend="perl-modules"/>: SGMLSpm-&SGMLSpm-version; (for conversion to
man and texinfo), and
<xref linkend="lynx"/> or <xref linkend="Links"/> or <xref linkend="w3m"/>
(for conversion to <acronym>ASCII</acronym> text)</para>
</sect4>
</sect3>
</sect2>
<sect2>
<title>Installation of <application>DocBook-utils</application></title>
<note><para>Earlier versions of the <acronym>BLFS</acronym>
<application>OpenSP</application> instructions installed a catalog
containing an SGMLDECL <filename>unicode.sd</filename> declaration
into the system <acronym>SGML</acronym> catalogs. This declaration
causes some of the <application>OpenJade</application> programs to
fail occasionally. You'll need to remove these catalog definitions
if they exist, or the package build will fail. The following command
can determine if you need to remove these catalog definitions:</para>
<screen><userinput><command>grep "OpenSP-1.5.1" /etc/sgml/catalog</command></userinput></screen>
<para>If anything was returned, run the following command as the root user to
remove the catalog definitions:</para>
<screen><userinput role='root'><command>sed -i.orig \
-e "/CATALOG \/etc\/sgml\/OpenSP-1.5.1.cat/d" \
/etc/sgml/catalog \
/etc/sgml/sgml-docbook.cat</command></userinput></screen></note>
<para>Install <application>DocBook-utils</application> by running the
following commands:</para>
<screen><userinput><command>./configure --prefix=/usr &amp;&amp;
make</command></userinput></screen>
<para>Now, as the root user:</para>
<screen><userinput role='root'><command>make install</command></userinput></screen>
<para>Many packages use an alternate name for the
<application>DocBook-utils</application> scripts. If you wish to create these
alternate names, use the following command:</para>
<screen><userinput role='root'><command>for doctype in html ps dvi man pdf rtf tex texi txt
do
ln -s docbook2$doctype /usr/bin/db2$doctype
done</command></userinput></screen>
</sect2>
<sect2>
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<segtitle>Installed Symlinks</segtitle>
<seglistitem>
<seg>docbook2dvi, docbook2html, docbook2man, docbook2pdf, docbook2ps,
docbook2rtf, docbook2tex, docbook2texi, docbook2txt, jw and sgmldiff</seg>
<seg>None</seg>
<seg>/usr/share/doc/html/docbook-utils-&docbook-utils-version; and
/usr/share/sgml/docbook/utils-&docbook-utils-version;</seg>
<seg>db2dvi, db2html, db2man, db2pdf, db2ps, db2rtf, db2tex, db2texi and
db2txt</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<varlistentry id="docbook2">
<term><command>docbook2*</command></term>
<listitem><para>are simple one-line wrapper scripts to <command>jw</command>.
They are provided as easy-to-remember names used to convert DocBook or
other <acronym>SGML</acronym> files to the respective format.</para>
<indexterm zone="docbook-utils docbook2">
<primary sortas="b-docbook2-star">docbook2*</primary>
</indexterm></listitem>
</varlistentry>
<varlistentry id="db2">
<term><command>db2*</command></term>
<listitem><para>are symlinks pointing at the respectively named
<command>docbook2*</command> commands, created to satisfy some program's
use of these names.</para>
<indexterm zone="docbook-utils db2">
<primary sortas="g-db2-star">db2*</primary>
</indexterm></listitem>
</varlistentry>
<varlistentry id="jw">
<term><command>jw</command></term>
<listitem><para>is a script used to convert DocBook or other
<acronym>SGML</acronym> files to various output formats. It hides most of
<application>OpenJade</application>'s complexity and adds comfortable
features.</para>
<indexterm zone="docbook-utils jw">
<primary sortas="b-jw">jw</primary>
</indexterm></listitem>
</varlistentry>
<varlistentry id="sgmldiff">
<term><command>sgmldiff</command></term>
<listitem><para>is used to compare two <acronym>SGML</acronym> files and
only return the differences in the markup. This is especially useful to
compare files that should be identical except for language differences in the
content.</para>
<indexterm zone="docbook-utils sgmldiff">
<primary sortas="b-sgmldiff">sgmldiff</primary>
</indexterm></listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>