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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since eb091c9 was eb091c9, checked in by Randy McMurchy <randy@…>, 20 years ago

Added new package DejaGnu-1.4.4; added linkonce patch to GCC instructions; added instructions to DocBook-utils to create alternate script names

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

  • Property mode set to 100644
File size: 5.8 KB
Line 
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
23<sect2>
24<title>Introduction to <application>DocBook-utils</application></title>
25
26<para>The <application>DocBook-utils</application> package is a collection of
27utility scripts used to convert and analyze <acronym>SGML</acronym> documents
28in general, and DocBook files in particular. The scripts are used to convert
29from DocBook or other <acronym>SGML</acronym> formats into
30<quote>classical</quote> file formats like <acronym>HTML</acronym>, man, info,
31<acronym>RTF</acronym> and many more. There's also a utility to compare two
32<acronym>SGML</acronym> files and only display the differences in markup. This
33is useful for comparing documents prepared for different languages.</para>
34
35<sect3><title>Package information</title>
36<itemizedlist spacing='compact'>
37<listitem><para>Download (HTTP): <ulink url="&docbook-utils-download-http;"/></para></listitem>
38<listitem><para>Download (FTP): <ulink url="&docbook-utils-download-ftp;"/></para></listitem>
39<listitem><para>Download size: &docbook-utils-size;</para></listitem>
40<listitem><para>Estimated Disk space required: &docbook-utils-buildsize;</para></listitem>
41<listitem><para>Estimated build time: &docbook-utils-time;</para></listitem></itemizedlist>
42</sect3>
43
44<sect3><title><application>DocBook-utils</application> dependencies</title>
45
46<sect4><title>Required</title>
47<para><xref linkend="openjade"/>,
48<xref linkend="docbook-dsssl"/> and
49<xref linkend="sgml-dtd-3"/></para></sect4>
50
51<sect4><title>Optional</title>
52<para><xref linkend="jadetex"/> (for conversion to <acronym>DVI</acronym>,
53<acronym>PS</acronym> and <acronym>PDF</acronym>),
54<xref linkend="perl-modules"/>: SGMLSpm-&SGMLSpm-version; (for conversion to
55man and texinfo), and
56<xref linkend="lynx"/> or <xref linkend="Links"/> or <xref linkend="w3m"/>
57(for conversion to <acronym>ASCII</acronym> text)</para></sect4>
58</sect3>
59
60</sect2>
61
62<sect2>
63<title>Installation of <application>DocBook-utils</application></title>
64
65<para>Install <application>DocBook-utils</application> by running the
66following commands:</para>
67
68<screen><userinput><command>sed -i.orig -e "/CATALOG \/etc\/sgml\/OpenSP-1.5.1.cat/d" \
69 /etc/sgml/catalog &amp;&amp;
70sed -i.orig -e "/CATALOG \/etc\/sgml\/OpenSP-1.5.1.cat/d" \
71 /etc/sgml/sgml-docbook.cat &amp;&amp;
72./configure --prefix=/usr &amp;&amp;
73make &amp;&amp;
74make install &amp;&amp;
75cp /etc/sgml/catalog.orig /etc/sgml/catalog &amp;&amp;
76cp /etc/sgml/sgml-docbook.cat.orig /etc/sgml/sgml-docbook.cat</command></userinput></screen>
77
78<para>Many packages will use an alternate name for the
79<application>DocBook-utils</application> scripts. If you wish to create these
80alternate names, use the following command:</para>
81
82<screen><userinput><command>for doctype in html ps dvi man pdf rtf tex texi txt
83do
84 ln -s docbook2$doctype /usr/bin/db2$doctype
85done</command></userinput></screen>
86
87</sect2>
88
89<sect2>
90<title>Command explanations</title>
91
92<para><command>sed -i.orig -e ...</command>: These two <command>sed</command>'s
93remove <application>OpenSP</application> catalog definitions from the
94<acronym>SGML</acronym> catalogs because the SGMLDECL unicode.sd declaration
95creates errors when <command>openjade</command> builds the
96<application>DocBook-utils</application> documentation files. Backup copies of
97the files are made and copied back to their original place after the build is
98complete. Though these errors are harmless, and won't affect
99<application>DocBook-utils</application> functionality after the build, the
100declarations are temporarily removed to provide a clean package build.</para>
101
102</sect2>
103
104<sect2>
105<title>Contents</title>
106
107<para>The <application>DocBook-utils</application> package contains
108<command>docbook2dvi</command>, <command>docbook2html</command>,
109<command>docbook2man</command>, <command>docbook2pdf</command>,
110<command>docbook2ps</command>, <command>docbook2rtf</command>,
111<command>docbook2tex</command>, <command>docbook2texi</command>,
112<command>docbook2txt</command>, <command>jw</command> and
113<command>sgmldiff</command>.</para>
114
115</sect2>
116
117<sect2><title>Description</title>
118
119<sect3><title>docbook2{dvi,html,man,pdf,ps,rtf,tex,texi,txt}</title>
120
121<para>The <command>docbook2{format}</command> scripts are simple one-line
122wrappers to <command>jw</command>. They are provided as easy-to-remember
123names used to convert DocBook or other <acronym>SGML</acronym> files to the
124respective format.</para></sect3>
125
126<sect3><title>jw</title>
127
128<para><command>jw</command> is a script used to convert DocBook or other
129<acronym>SGML</acronym> files to various output formats. It hides most of
130<application>OpenJade</application>'s complexity and adds comfortable
131features.</para></sect3>
132
133<sect3><title>sgmldiff</title>
134
135<para><command>sgmldiff</command> is used to compare two
136<acronym>SGML</acronym> files and only return the differences in the markup.
137This is especially useful to compare files that should be identical except
138for language differences in the content.</para></sect3>
139
140</sect2>
141
142</sect1>
143
Note: See TracBrowser for help on using the repository browser.