source: pst/sgml/docbook-utils.xml@ fa3edfef

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since fa3edfef was fa3edfef, checked in by Pierre Labastie <pieere@…>, 4 years ago

Format pst

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22885 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.9 KB
Line 
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 "https://sourceware.org/ftp/docbook-tools/new-trials/SOURCES/docbook-utils-&docbook-utils-version;.tar.gz">
8 <!ENTITY docbook-utils-download-ftp "ftp://sourceware.org/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>
33 The <application>DocBook-utils</application> package is a collection
34 of utility scripts used to convert and analyze SGML documents in general,
35 and DocBook files in particular. The scripts are used to convert from
36 DocBook or other SGML formats into <quote>classical</quote> file formats
37 like HTML, man, info, RTF and many more. There's also a utility to compare
38 two SGML files and only display the differences in markup. This is useful
39 for comparing documents prepared for different languages.
40 </para>
41
42 &lfs91_checked;
43
44 <bridgehead renderas="sect3">Package Information</bridgehead>
45 <itemizedlist spacing="compact">
46 <listitem>
47 <para>
48 Download (HTTP): <ulink url="&docbook-utils-download-http;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download (FTP): <ulink url="&docbook-utils-download-ftp;"/>
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download MD5 sum: &docbook-utils-md5sum;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Download size: &docbook-utils-size;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated disk space required: &docbook-utils-buildsize;
69 </para>
70 </listitem>
71 <listitem>
72 <para>
73 Estimated build time: &docbook-utils-time;
74 </para>
75 </listitem>
76 </itemizedlist>
77
78 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
79 <itemizedlist spacing='compact'>
80 <listitem>
81 <para>
82 Required patch: <ulink url=
83 "&patch-root;/docbook-utils-&docbook-utils-version;-grep_fix-1.patch"/>
84 </para>
85 </listitem>
86 </itemizedlist>
87
88 <bridgehead renderas="sect3">DocBook-utils Dependencies</bridgehead>
89
90 <bridgehead renderas="sect4">Required</bridgehead>
91 <para role="required">
92 <xref linkend="openjade"/>,
93 <xref linkend="docbook-dsssl"/>, and
94 <xref linkend="sgml-dtd-3"/>
95 </para>
96
97 <bridgehead renderas="sect4">Optional (Runtime Dependencies Only)</bridgehead>
98 <para role="optional">
99 <xref role="runtime" linkend="perl-sgmlspm"/> (for conversion to man and
100 texinfo), and
101 <xref role="runtime" linkend="lynx"/> or
102 <xref role="runtime" linkend="Links"/> or
103 <ulink role="runtime" url="&w3m-url;">W3m</ulink>
104 (for conversion to ASCII text)
105 </para>
106
107 <para condition="html" role="usernotes">User Notes:
108 <ulink url="&blfs-wiki;/docbook-utils"/></para>
109
110 </sect2>
111
112 <sect2 role="installation">
113 <title>Installation of DocBook-utils</title>
114
115 <para>
116 Install <application>DocBook-utils</application> by running the
117 following commands:
118 </para>
119
120<screen><userinput>patch -Np1 -i ../docbook-utils-&docbook-utils-version;-grep_fix-1.patch &amp;&amp;
121sed -i 's:/html::' doc/HTML/Makefile.in &amp;&amp;
122
123./configure --prefix=/usr --mandir=/usr/share/man &amp;&amp;
124make</userinput></screen>
125
126 <para>
127 This package does not come with a test suite.
128 </para>
129
130 <para>
131 Now, as the <systemitem class="username">root</systemitem> user:
132 </para>
133
134<screen role="root"><userinput>make docdir=/usr/share/doc install</userinput></screen>
135
136 <para>
137 Many packages use an alternate name for the
138 <application>DocBook-utils</application> scripts. If you wish to create
139 these alternate names, use the following command as
140 the <systemitem class="username">root</systemitem> user:
141 </para>
142
143<screen role="root"><userinput>for doctype in html ps dvi man pdf rtf tex texi txt
144do
145 ln -svf docbook2$doctype /usr/bin/db2$doctype
146done</userinput></screen>
147
148 <note>
149 <para>
150 The <command>jw</command> script uses the <command>which</command>
151 command to locate required utilities. You must install
152 <xref linkend="which"/> before attempting to use any of the
153 <application>DocBook-utils</application> programs.
154 </para>
155 </note>
156
157 </sect2>
158
159 <sect2 role="commands">
160 <title>Command Explanations</title>
161
162 <para>
163 <command>patch -Np1 -i ../docbook-utils-&docbook-utils-version;-grep_fix-1.patch</command>:
164 This patch corrects the syntax in the jw (Jade Wrapper) script which is
165 at the heart of much db2* processing, so that the current version of
166 <application>grep</application> will not reject it.
167 </para>
168
169 <para>
170 <command>sed -i 's:/html::' doc/HTML/Makefile.in</command>:
171 This command changes the installation directory of the HTML documents.
172 </para>
173
174 <para>
175 <option>docdir=/usr/share/doc</option>: This option is placed on the
176 <command>make install</command> line because is is not
177 recognized by <command>configure</command>.
178 </para>
179
180 </sect2>
181
182 <sect2 role="content">
183 <title>Contents</title>
184
185 <segmentedlist>
186 <segtitle>Installed Programs</segtitle>
187 <segtitle>Installed Libraries</segtitle>
188 <segtitle>Installed Directories</segtitle>
189 <segtitle>Installed Symlinks</segtitle>
190
191 <seglistitem>
192 <seg>docbook2dvi, docbook2html, docbook2man, docbook2pdf, docbook2ps,
193 docbook2rtf, docbook2tex, docbook2texi, docbook2txt, jw, and
194 sgmldiff</seg>
195 <seg>None</seg>
196 <seg>/usr/share/doc/docbook-utils-&docbook-utils-version; and
197 /usr/share/sgml/docbook/utils-&docbook-utils-version;</seg>
198 <seg>db2dvi, db2html, db2man, db2pdf, db2ps, db2rtf, db2tex, db2texi,
199 and db2txt</seg>
200 </seglistitem>
201 </segmentedlist>
202
203 <variablelist>
204 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
205 <?dbfo list-presentation="list"?>
206 <?dbhtml list-presentation="table"?>
207
208 <varlistentry id="docbook2">
209 <term><command>docbook2*</command></term>
210 <listitem>
211 <para>
212 are simple one-line wrapper scripts to <command>jw</command>.
213 They are provided as easy-to-remember names used to convert
214 DocBook or other SGML files to the respective format.
215 </para>
216 <indexterm zone="docbook-utils docbook2">
217 <primary sortas="b-docbook2-star">docbook2*</primary>
218 </indexterm>
219 </listitem>
220 </varlistentry>
221
222 <varlistentry id="db2">
223 <term><command>db2*</command></term>
224 <listitem>
225 <para>
226 are symlinks pointing at the respectively named
227 <command>docbook2*</command> commands, created to satisfy some
228 program's use of these names.
229 </para>
230 <indexterm zone="docbook-utils db2">
231 <primary sortas="b-db2-star">db2*</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
236 <varlistentry id="jw">
237 <term><command>jw</command></term>
238 <listitem>
239 <para>
240 is a script used to convert DocBook or other SGML files to various
241 output formats. It hides most of
242 <application>OpenJade</application>'s complexity and adds
243 comfortable features.
244 </para>
245 <indexterm zone="docbook-utils jw">
246 <primary sortas="b-jw">jw</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="sgmldiff">
252 <term><command>sgmldiff</command></term>
253 <listitem>
254 <para>
255 is used to compare two SGML files and only return the differences
256 in the markup. This is especially useful to compare files that
257 should be identical except for language differences in the content.
258 </para>
259 <indexterm zone="docbook-utils sgmldiff">
260 <primary sortas="b-sgmldiff">sgmldiff</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
265 </variablelist>
266
267 </sect2>
268
269</sect1>
Note: See TracBrowser for help on using the repository browser.