source: pst/sgml/docbook-utils.xml@ 5f3bda7

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 5f3bda7 was ac0d66d, checked in by Douglas R. Reno <renodr@…>, 17 months ago

Tags for PHP dependencies

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