source: pst/sgml/docbook-utils.xml@ 44163b2

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 44163b2 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
RevLine 
[d7fb898e]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[d7fb898e]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[8dfc5c3]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">
[2dde015]9 <!ENTITY docbook-utils-md5sum "6b41b18c365c01f225bc417cf632d81c">
[e8b9dbf7]10 <!ENTITY docbook-utils-size "124 KB">
11 <!ENTITY docbook-utils-buildsize "1.44 MB">
[738c5f8]12 <!ENTITY docbook-utils-time "less than 0.1 SBU">
[d7fb898e]13]>
14
15<sect1 id="docbook-utils" xreflabel="DocBook-utils-&docbook-utils-version;">
[5bae145]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
[fa3edfef]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>
[5bae145]37
[ac0d66d]38 &lfs113_checked;
[00555b0f]39
[5bae145]40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
[fa3edfef]43 <para>
44 Download (HTTP): <ulink url="&docbook-utils-download-http;"/>
45 </para>
[5bae145]46 </listitem>
47 <listitem>
[fa3edfef]48 <para>
49 Download (FTP): <ulink url="&docbook-utils-download-ftp;"/>
50 </para>
[5bae145]51 </listitem>
52 <listitem>
[fa3edfef]53 <para>
54 Download MD5 sum: &docbook-utils-md5sum;
55 </para>
[5bae145]56 </listitem>
57 <listitem>
[fa3edfef]58 <para>
59 Download size: &docbook-utils-size;
60 </para>
[5bae145]61 </listitem>
62 <listitem>
[fa3edfef]63 <para>
64 Estimated disk space required: &docbook-utils-buildsize;
65 </para>
[5bae145]66 </listitem>
67 <listitem>
[fa3edfef]68 <para>
69 Estimated build time: &docbook-utils-time;
70 </para>
[5bae145]71 </listitem>
72 </itemizedlist>
73
[8a67713c]74 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
75 <itemizedlist spacing='compact'>
76 <listitem>
[fa3edfef]77 <para>
78 Required patch: <ulink url=
79 "&patch-root;/docbook-utils-&docbook-utils-version;-grep_fix-1.patch"/>
80 </para>
[8a67713c]81 </listitem>
82 </itemizedlist>
83
[5bae145]84 <bridgehead renderas="sect3">DocBook-utils Dependencies</bridgehead>
85
86 <bridgehead renderas="sect4">Required</bridgehead>
[3f8a5e2]87 <para role="required">
[dc6ba1c0]88 <xref linkend="openjade"/>,
[3f8a5e2]89 <xref linkend="docbook-dsssl"/>, and
90 <xref linkend="sgml-dtd-3"/>
91 </para>
[5bae145]92
[738c5f8]93 <bridgehead renderas="sect4">Optional (Runtime Dependencies Only)</bridgehead>
[3f8a5e2]94 <para role="optional">
[4392a40]95 <xref role="runtime" linkend="perl-sgmlspm"/> (for conversion to man and
[f5cdf41]96 texinfo), and
97 <xref role="runtime" linkend="lynx"/> or
98 <xref role="runtime" linkend="Links"/> or
[1eac9eb]99 <ulink role="runtime" url="&w3m-url;">W3m</ulink>
100 (for conversion to ASCII text)
[3f8a5e2]101 </para>
[5bae145]102
[977061b0]103 <para condition="html" role="usernotes">User Notes:
104 <ulink url="&blfs-wiki;/docbook-utils"/></para>
105
[5bae145]106 </sect2>
107
108 <sect2 role="installation">
109 <title>Installation of DocBook-utils</title>
110
[fa3edfef]111 <para>
112 Install <application>DocBook-utils</application> by running the
113 following commands:
114 </para>
[2dde015]115
[e958dbb2]116<screen><userinput>patch -Np1 -i ../docbook-utils-&docbook-utils-version;-grep_fix-1.patch &amp;&amp;
[8fc8e98]117sed -i 's:/html::' doc/HTML/Makefile.in &amp;&amp;
[512f843]118
[fc6725ee]119./configure --prefix=/usr --mandir=/usr/share/man &amp;&amp;
[5bae145]120make</userinput></screen>
[2dde015]121
[fa3edfef]122 <para>
123 This package does not come with a test suite.
124 </para>
[738c5f8]125
[fa3edfef]126 <para>
127 Now, as the <systemitem class="username">root</systemitem> user:
128 </para>
[eb091c9]129
[cf67717]130<screen role="root"><userinput>make docdir=/usr/share/doc install</userinput></screen>
[eb091c9]131
[fa3edfef]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>
[5bae145]138
139<screen role="root"><userinput>for doctype in html ps dvi man pdf rtf tex texi txt
[eb091c9]140do
[cf67717]141 ln -svf docbook2$doctype /usr/bin/db2$doctype
[5bae145]142done</userinput></screen>
143
[4570991]144 <note>
[fa3edfef]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>
[4570991]151 </note>
152
[5bae145]153 </sect2>
154
[ecb6484a]155 <sect2 role="commands">
156 <title>Command Explanations</title>
157
[fa3edfef]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>
[8a67713c]164
[fa3edfef]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>
[ecb6484a]169
[fa3edfef]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>
[cf67717]175
[ecb6484a]176 </sect2>
177
[5bae145]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>
[ecb6484a]192 <seg>/usr/share/doc/docbook-utils-&docbook-utils-version; and
[5bae145]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>
[fa3edfef]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
[4c24eb0a]210 DocBook or other SGML files to the respective format
[fa3edfef]211 </para>
[5bae145]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>
[fa3edfef]221 <para>
222 are symlinks pointing at the respectively named
223 <command>docbook2*</command> commands, created to satisfy some
[4c24eb0a]224 program's use of these names
[fa3edfef]225 </para>
[5bae145]226 <indexterm zone="docbook-utils db2">
[b960e3ec]227 <primary sortas="b-db2-star">db2*</primary>
[5bae145]228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 <varlistentry id="jw">
233 <term><command>jw</command></term>
234 <listitem>
[fa3edfef]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
[4c24eb0a]239 comfortable features
[fa3edfef]240 </para>
[5bae145]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>
[fa3edfef]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
[4c24eb0a]253 should be identical except for language differences in the content
[fa3edfef]254 </para>
[5bae145]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>
[d7fb898e]264
265</sect1>
Note: See TracBrowser for help on using the repository browser.