1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/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-md5sum "6b41b18c365c01f225bc417cf632d81c">
|
---|
10 | <!ENTITY docbook-utils-size "124 KB">
|
---|
11 | <!ENTITY docbook-utils-buildsize "1.44 MB">
|
---|
12 | <!ENTITY docbook-utils-time "less than 0.1 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="docbook-utils" xreflabel="DocBook-utils-&docbook-utils-version;">
|
---|
16 | <?dbhtml filename="docbook-utils.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>DocBook-utils-&docbook-utils-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="docbook-utils">
|
---|
26 | <primary sortas="a-DocBook-utils">DocBook-utils</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to DocBook-utils</title>
|
---|
31 |
|
---|
32 | <para>The <application>DocBook-utils</application> package is a collection
|
---|
33 | of utility scripts used to convert and analyze SGML documents in general,
|
---|
34 | and DocBook files in particular. The scripts are used to convert from
|
---|
35 | DocBook or other SGML formats into <quote>classical</quote> file formats
|
---|
36 | like HTML, man, info, RTF and many more. There's also a utility to compare
|
---|
37 | two SGML files and only display the differences in markup. This is useful
|
---|
38 | for comparing documents prepared for different languages.</para>
|
---|
39 |
|
---|
40 | &lfs70_checked;
|
---|
41 |
|
---|
42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
43 | <itemizedlist spacing="compact">
|
---|
44 | <listitem>
|
---|
45 | <para>Download (HTTP): <ulink url="&docbook-utils-download-http;"/></para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download (FTP): <ulink url="&docbook-utils-download-ftp;"/></para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Download MD5 sum: &docbook-utils-md5sum;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Download size: &docbook-utils-size;</para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>Estimated disk space required: &docbook-utils-buildsize;</para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>Estimated build time: &docbook-utils-time;</para>
|
---|
61 | </listitem>
|
---|
62 | </itemizedlist>
|
---|
63 |
|
---|
64 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
65 | <itemizedlist spacing='compact'>
|
---|
66 | <listitem>
|
---|
67 | <para>Required Patch: <ulink
|
---|
68 | url="&patch-root;/docbook-utils-&docbook-utils-version;-grep_fix-1.patch"/></para>
|
---|
69 | </listitem>
|
---|
70 | </itemizedlist>
|
---|
71 |
|
---|
72 | <bridgehead renderas="sect3">DocBook-utils Dependencies</bridgehead>
|
---|
73 |
|
---|
74 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
75 | <para role="required"><xref linkend="openjade"/>,
|
---|
76 | <xref linkend="docbook-dsssl"/>, and
|
---|
77 | <xref linkend="sgml-dtd-3"/></para>
|
---|
78 |
|
---|
79 | <bridgehead renderas="sect4">Optional (Runtime Dependencies Only)</bridgehead>
|
---|
80 | <para role="optional"><xref linkend="jadetex"/> (for conversion to DVI, PS and PDF),
|
---|
81 | <xref linkend="perl-sgmlspm"/> (for conversion to man and texinfo), and
|
---|
82 | <xref linkend="lynx"/> or <xref linkend="Links"/> or <xref linkend="w3m"/>
|
---|
83 | (for conversion to ASCII text)</para>
|
---|
84 |
|
---|
85 | <para condition="html" role="usernotes">User Notes:
|
---|
86 | <ulink url="&blfs-wiki;/docbook-utils"/></para>
|
---|
87 |
|
---|
88 | </sect2>
|
---|
89 |
|
---|
90 | <sect2 role="installation">
|
---|
91 | <title>Installation of DocBook-utils</title>
|
---|
92 |
|
---|
93 | <para>Install <application>DocBook-utils</application> by running the
|
---|
94 | following commands:</para>
|
---|
95 |
|
---|
96 | <screen><userinput>patch -Np1 -i ../docbook-utils-&docbook-utils-version;-grep_fix-1.patch &&
|
---|
97 | sed -i 's:/html::' doc/HTML/Makefile.in &&
|
---|
98 | ./configure --prefix=/usr &&
|
---|
99 | make</userinput></screen>
|
---|
100 |
|
---|
101 | <para>This package does not come with a test suite.</para>
|
---|
102 |
|
---|
103 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
104 |
|
---|
105 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
106 |
|
---|
107 | <para>Many packages use an alternate name for the
|
---|
108 | <application>DocBook-utils</application> scripts. If you wish to create
|
---|
109 | these alternate names, use the following command as
|
---|
110 | the <systemitem class="username">root</systemitem> user:</para>
|
---|
111 |
|
---|
112 | <screen role="root"><userinput>for doctype in html ps dvi man pdf rtf tex texi txt
|
---|
113 | do
|
---|
114 | ln -s docbook2$doctype /usr/bin/db2$doctype
|
---|
115 | done</userinput></screen>
|
---|
116 |
|
---|
117 | <note>
|
---|
118 | <para>The <command>jw</command> script uses the <command>which</command>
|
---|
119 | command to locate required utilities. You must install
|
---|
120 | <xref linkend="which"/> before attempting to use any of the
|
---|
121 | <application>DocBook-utils</application> programs.</para>
|
---|
122 | </note>
|
---|
123 |
|
---|
124 | </sect2>
|
---|
125 |
|
---|
126 | <sect2 role="commands">
|
---|
127 | <title>Command Explanations</title>
|
---|
128 |
|
---|
129 | <para><command>patch -Np1 -i ../docbook-utils-&docbook-utils-version;-grep_fix-1.patch</command>:
|
---|
130 | This patch corrects the syntax in the jw (Jade Wrapper) script which is at
|
---|
131 | the heart of much db2* processing, so that the current version of
|
---|
132 | <application>Grep</application> will not reject it.</para>
|
---|
133 |
|
---|
134 | <para><command>sed -i 's:/html::' doc/HTML/Makefile.in</command>:
|
---|
135 | This command changes the installation directory of the HTML documents.</para>
|
---|
136 |
|
---|
137 | </sect2>
|
---|
138 |
|
---|
139 | <sect2 role="content">
|
---|
140 | <title>Contents</title>
|
---|
141 |
|
---|
142 | <segmentedlist>
|
---|
143 | <segtitle>Installed Programs</segtitle>
|
---|
144 | <segtitle>Installed Libraries</segtitle>
|
---|
145 | <segtitle>Installed Directories</segtitle>
|
---|
146 | <segtitle>Installed Symlinks</segtitle>
|
---|
147 |
|
---|
148 | <seglistitem>
|
---|
149 | <seg>docbook2dvi, docbook2html, docbook2man, docbook2pdf, docbook2ps,
|
---|
150 | docbook2rtf, docbook2tex, docbook2texi, docbook2txt, jw, and
|
---|
151 | sgmldiff</seg>
|
---|
152 | <seg>None</seg>
|
---|
153 | <seg>/usr/share/doc/docbook-utils-&docbook-utils-version; and
|
---|
154 | /usr/share/sgml/docbook/utils-&docbook-utils-version;</seg>
|
---|
155 | <seg>db2dvi, db2html, db2man, db2pdf, db2ps, db2rtf, db2tex, db2texi,
|
---|
156 | and db2txt</seg>
|
---|
157 | </seglistitem>
|
---|
158 | </segmentedlist>
|
---|
159 |
|
---|
160 | <variablelist>
|
---|
161 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
162 | <?dbfo list-presentation="list"?>
|
---|
163 | <?dbhtml list-presentation="table"?>
|
---|
164 |
|
---|
165 | <varlistentry id="docbook2">
|
---|
166 | <term><command>docbook2*</command></term>
|
---|
167 | <listitem>
|
---|
168 | <para>are simple one-line wrapper scripts to <command>jw</command>.
|
---|
169 | They are provided as easy-to-remember names used to convert DocBook or
|
---|
170 | other SGML files to the respective format.</para>
|
---|
171 | <indexterm zone="docbook-utils docbook2">
|
---|
172 | <primary sortas="b-docbook2-star">docbook2*</primary>
|
---|
173 | </indexterm>
|
---|
174 | </listitem>
|
---|
175 | </varlistentry>
|
---|
176 |
|
---|
177 | <varlistentry id="db2">
|
---|
178 | <term><command>db2*</command></term>
|
---|
179 | <listitem>
|
---|
180 | <para>are symlinks pointing at the respectively named
|
---|
181 | <command>docbook2*</command> commands, created to satisfy some
|
---|
182 | program's use of these names.</para>
|
---|
183 | <indexterm zone="docbook-utils db2">
|
---|
184 | <primary sortas="g-db2-star">db2*</primary>
|
---|
185 | </indexterm>
|
---|
186 | </listitem>
|
---|
187 | </varlistentry>
|
---|
188 |
|
---|
189 | <varlistentry id="jw">
|
---|
190 | <term><command>jw</command></term>
|
---|
191 | <listitem>
|
---|
192 | <para>is a script used to convert DocBook or other SGML files to various
|
---|
193 | output formats. It hides most of <application>OpenJade</application>'s
|
---|
194 | complexity and adds comfortable features.</para>
|
---|
195 | <indexterm zone="docbook-utils jw">
|
---|
196 | <primary sortas="b-jw">jw</primary>
|
---|
197 | </indexterm>
|
---|
198 | </listitem>
|
---|
199 | </varlistentry>
|
---|
200 |
|
---|
201 | <varlistentry id="sgmldiff">
|
---|
202 | <term><command>sgmldiff</command></term>
|
---|
203 | <listitem>
|
---|
204 | <para>is used to compare two SGML files and only return the differences
|
---|
205 | in the markup. This is especially useful to compare files that should be
|
---|
206 | identical except for language differences in the content.</para>
|
---|
207 | <indexterm zone="docbook-utils sgmldiff">
|
---|
208 | <primary sortas="b-sgmldiff">sgmldiff</primary>
|
---|
209 | </indexterm>
|
---|
210 | </listitem>
|
---|
211 | </varlistentry>
|
---|
212 |
|
---|
213 | </variablelist>
|
---|
214 |
|
---|
215 | </sect2>
|
---|
216 |
|
---|
217 | </sect1>
|
---|