1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY docbook-utils-download-http "http://sources-redhat.mirrors.redwire.net/docbook-tools/new-trials/SOURCES/docbook-utils-&docbook-utils-version;.tar.gz">
|
---|
8 | <!ENTITY docbook-utils-download-ftp "ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/docbook-utils-&docbook-utils-version;.tar.gz">
|
---|
9 | <!ENTITY docbook-utils-size "125 KB">
|
---|
10 | <!ENTITY docbook-utils-buildsize "1.5 MB">
|
---|
11 | <!ENTITY docbook-utils-time ".04 SBU">
|
---|
12 | ]>
|
---|
13 |
|
---|
14 | <sect1 id="docbook-utils" xreflabel="DocBook-utils-&docbook-utils-version;">
|
---|
15 | <sect1info>
|
---|
16 | <othername>$LastChangedBy$</othername>
|
---|
17 | <date>$Date$</date>
|
---|
18 | </sect1info>
|
---|
19 | <?dbhtml filename="docbook-utils.html"?>
|
---|
20 | <title>DocBook-utils-&docbook-utils-version;</title>
|
---|
21 |
|
---|
22 | <sect2>
|
---|
23 | <title>Introduction to <application>DocBook-utils</application></title>
|
---|
24 |
|
---|
25 | <para>The <application>DocBook-utils</application> package is a collection of
|
---|
26 | utility scripts used to convert and analyze <acronym>SGML</acronym> documents
|
---|
27 | in general, and DocBook files in particular. The scripts are used to convert
|
---|
28 | from DocBook or other <acronym>SGML</acronym> formats into
|
---|
29 | <quote>classical</quote> file formats like <acronym>HTML</acronym>, man, info,
|
---|
30 | <acronym>RTF</acronym> and many more. There's also a utility to compare two
|
---|
31 | <acronym>SGML</acronym> files and only display the differences in markup. This
|
---|
32 | is useful for comparing documents prepared for different languages.</para>
|
---|
33 |
|
---|
34 | <sect3><title>Package information</title>
|
---|
35 | <itemizedlist spacing='compact'>
|
---|
36 | <listitem><para>Download (HTTP): <ulink url="&docbook-utils-download-http;"/></para></listitem>
|
---|
37 | <listitem><para>Download (FTP): <ulink url="&docbook-utils-download-ftp;"/></para></listitem>
|
---|
38 | <listitem><para>Download size: &docbook-utils-size;</para></listitem>
|
---|
39 | <listitem><para>Estimated disk space required: &docbook-utils-buildsize;</para></listitem>
|
---|
40 | <listitem><para>Estimated build time: &docbook-utils-time;</para></listitem></itemizedlist>
|
---|
41 | </sect3>
|
---|
42 |
|
---|
43 | <sect3><title><application>DocBook-utils</application> dependencies</title>
|
---|
44 |
|
---|
45 | <sect4><title>Required</title>
|
---|
46 | <para><xref linkend="openjade"/>,
|
---|
47 | <xref linkend="docbook-dsssl"/> and
|
---|
48 | <xref linkend="sgml-dtd-3"/></para></sect4>
|
---|
49 |
|
---|
50 | <sect4><title>Optional</title>
|
---|
51 | <para><xref linkend="jadetex-package"/> (for conversion to
|
---|
52 | <acronym>DVI</acronym>, <acronym>PS</acronym> and <acronym>PDF</acronym>),
|
---|
53 | <xref linkend="perl-modules"/>: SGMLSpm-&SGMLSpm-version; (for conversion to
|
---|
54 | man and texinfo), and
|
---|
55 | <xref linkend="lynx"/> or <xref linkend="Links"/> or <xref linkend="w3m"/>
|
---|
56 | (for conversion to <acronym>ASCII</acronym> text)</para></sect4>
|
---|
57 | </sect3>
|
---|
58 |
|
---|
59 | </sect2>
|
---|
60 |
|
---|
61 | <sect2>
|
---|
62 | <title>Installation of <application>DocBook-utils</application></title>
|
---|
63 |
|
---|
64 | <note><para>Earlier versions of the <acronym>BLFS</acronym>
|
---|
65 | <application>OpenSP</application> instructions installed a catalog
|
---|
66 | containing an SGMLDECL <filename>unicode.sd</filename> declaration
|
---|
67 | into the system <acronym>SGML</acronym> catalogs. This declaration
|
---|
68 | causes some of the <application>OpenJade</application> programs to
|
---|
69 | fail occasionally. You'll need to remove these catalog definitions
|
---|
70 | if they exist, or the package build will fail. The following command
|
---|
71 | can determine if you need to remove these catalog definitions:</para>
|
---|
72 |
|
---|
73 | <screen><userinput><command>grep "OpenSP-1.5.1" /etc/sgml/catalog</command></userinput></screen>
|
---|
74 |
|
---|
75 | <para>If anything was returned, run the following command to remove
|
---|
76 | the catalog definitions:</para>
|
---|
77 |
|
---|
78 | <screen><userinput><command>sed -i.orig \
|
---|
79 | -e "/CATALOG \/etc\/sgml\/OpenSP-1.5.1.cat/d" \
|
---|
80 | /etc/sgml/catalog \
|
---|
81 | /etc/sgml/sgml-docbook.cat</command></userinput></screen></note>
|
---|
82 |
|
---|
83 | <para>Install <application>DocBook-utils</application> by running the
|
---|
84 | following commands:</para>
|
---|
85 |
|
---|
86 | <screen><userinput><command>./configure --prefix=/usr &&
|
---|
87 | make &&
|
---|
88 | make install</command></userinput></screen>
|
---|
89 |
|
---|
90 | <para>Many packages use an alternate name for the
|
---|
91 | <application>DocBook-utils</application> scripts. If you wish to create these
|
---|
92 | alternate names, use the following command:</para>
|
---|
93 |
|
---|
94 | <screen><userinput><command>for doctype in html ps dvi man pdf rtf tex texi txt
|
---|
95 | do
|
---|
96 | ln -s docbook2$doctype /usr/bin/db2$doctype
|
---|
97 | done</command></userinput></screen>
|
---|
98 |
|
---|
99 | </sect2>
|
---|
100 |
|
---|
101 | <sect2>
|
---|
102 | <title>Contents</title>
|
---|
103 |
|
---|
104 | <para>The <application>DocBook-utils</application> package contains
|
---|
105 | <command>docbook2dvi</command>, <command>docbook2html</command>,
|
---|
106 | <command>docbook2man</command>, <command>docbook2pdf</command>,
|
---|
107 | <command>docbook2ps</command>, <command>docbook2rtf</command>,
|
---|
108 | <command>docbook2tex</command>, <command>docbook2texi</command>,
|
---|
109 | <command>docbook2txt</command>, <command>jw</command> and
|
---|
110 | <command>sgmldiff</command>.</para>
|
---|
111 |
|
---|
112 | </sect2>
|
---|
113 |
|
---|
114 | <sect2><title>Description</title>
|
---|
115 |
|
---|
116 | <sect3><title>docbook2{dvi,html,man,pdf,ps,rtf,tex,texi,txt}</title>
|
---|
117 |
|
---|
118 | <para>The <command>docbook2{format}</command> scripts are simple one-line
|
---|
119 | wrappers to <command>jw</command>. They are provided as easy-to-remember
|
---|
120 | names used to convert DocBook or other <acronym>SGML</acronym> files to the
|
---|
121 | respective format.</para></sect3>
|
---|
122 |
|
---|
123 | <sect3><title>jw</title>
|
---|
124 |
|
---|
125 | <para><command>jw</command> is a script used to convert DocBook or other
|
---|
126 | <acronym>SGML</acronym> files to various output formats. It hides most of
|
---|
127 | <application>OpenJade</application>'s complexity and adds comfortable
|
---|
128 | features.</para></sect3>
|
---|
129 |
|
---|
130 | <sect3><title>sgmldiff</title>
|
---|
131 |
|
---|
132 | <para><command>sgmldiff</command> is used to compare two
|
---|
133 | <acronym>SGML</acronym> files and only return the differences in the markup.
|
---|
134 | This is especially useful to compare files that should be identical except
|
---|
135 | for language differences in the content.</para></sect3>
|
---|
136 |
|
---|
137 | </sect2>
|
---|
138 |
|
---|
139 | </sect1>
|
---|
140 |
|
---|