source: general/genutils/tidy.xml@ 52d50d5

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 52d50d5 was 52d50d5, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Adding automatized scripts generation related tags. Genutils chapter.

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

  • Property mode set to 100644
File size: 8.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY tidy-download-http "http://tidy.sourceforge.net/src/tidy_src_&tidy-version;.tgz">
8 <!ENTITY tidy-download-ftp " ">
9 <!ENTITY tidy-md5sum "1e39fafd6808978871346658c8da1454">
10 <!ENTITY tidy-size "256 KB">
11 <!ENTITY tidy-buildsize "10.3 MB">
12 <!ENTITY tidy-time "0.2 SBU">
13
14 <!ENTITY tidy-docs-version "051020">
15 <!ENTITY tidy-docs-download "http://tidy.sourceforge.net/docs/tidy_docs_&tidy-docs-version;.tgz">
16 <!ENTITY tidy-docs-md5sum "86de2f198e57399c063d2567b2a25628">
17 <!ENTITY tidy-docs-size "150 KB">
18]>
19
20<sect1 id="html-tidy" xreflabel="HTML Tidy-&tidy-version;">
21 <?dbhtml filename="tidy.html"?>
22
23 <sect1info>
24 <othername>$LastChangedBy$</othername>
25 <date>$Date$</date>
26 <keywordset>
27 <keyword role="package">tidy_src_&tidy-version;.tar</keyword>
28 <keyword role="ftptdir">tidy</keyword>
29 </keywordset>
30 </sect1info>
31
32 <title>HTML Tidy-&tidy-version;</title>
33
34 <indexterm zone="html-tidy">
35 <primary sortas="a-HTML-Tidy">HTML Tidy</primary>
36 </indexterm>
37
38 <sect2 role="package">
39 <title>Introduction to HTML Tidy</title>
40
41 <para>The <application>HTML Tidy</application> package contains a
42 command line tool and libraries used to read HTML, XHTML and XML files
43 and write cleaned up markup. It detects and corrects many common coding
44 errors and strives to produce visually equivalent markup that is both
45 W3C compliant and compatible with most browsers.</para>
46
47 <bridgehead renderas="sect3">Package Information</bridgehead>
48 <itemizedlist spacing="compact">
49 <listitem>
50 <para>Download (HTTP): <ulink url="&tidy-download-http;"/></para>
51 </listitem>
52 <listitem>
53 <para>Download (FTP): <ulink url="&tidy-download-ftp;"/></para>
54 </listitem>
55 <listitem>
56 <para>Download MD5 sum: &tidy-md5sum;</para>
57 </listitem>
58 <listitem>
59 <para>Download size: &tidy-size;</para>
60 </listitem>
61 <listitem>
62 <para>Estimated disk space required: &tidy-buildsize;</para>
63 </listitem>
64 <listitem>
65 <para>Estimated build time: &tidy-time;</para>
66 </listitem>
67 </itemizedlist>
68
69 <note>
70 <para><application>HTML Tidy</application> is
71 updated very frequently by its maintainers, and the source package listed
72 above may not be available at the listed URL due to the
73 release of a newer version. The most current source package can be always
74 be downloaded from <ulink url="http://tidy.sourceforge.net/src/"/>. If
75 this version is newer than the version listed above, the following
76 instructions should work, but have not yet been tested by the BLFS team.
77 If you'd rather download the version listed above, you can find it at
78 <ulink url="http://tidy.sourceforge.net/src/old/"/>.</para>
79 </note>
80
81 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
82
83 <bridgehead renderas="sect4">Documentation</bridgehead>
84 <itemizedlist spacing="compact">
85 <listitem>
86 <para>Documentation: <ulink url="&tidy-docs-download;"/></para>
87 </listitem>
88 <listitem>
89 <para>Download MD5 sum: &tidy-docs-md5sum;</para>
90 </listitem>
91 <listitem>
92 <para>Download size: &tidy-docs-size;</para>
93 </listitem>
94 </itemizedlist>
95
96 <bridgehead renderas="sect4">Patches</bridgehead>
97 <itemizedlist spacing="compact">
98 <listitem>
99 <para>Required patch: <ulink
100 url="&patch-root;/tidy-&tidy-version;-prevent_PRE_newlines-1.patch"/></para>
101 </listitem>
102 </itemizedlist>
103
104 <bridgehead renderas="sect3">HTML Tidy Dependencies</bridgehead>
105
106 <bridgehead renderas="sect4">Recommended (To Build the Man Page and Quick
107 Reference Docs)</bridgehead>
108 <para role="recommended"><xref linkend="libxslt"/></para>
109
110 <bridgehead renderas="sect4">Optional</bridgehead>
111 <para role="optional"><ulink url="http://dmalloc.com/">Dmalloc</ulink></para>
112
113 </sect2>
114
115 <sect2 role="installation">
116 <title>Installation of HTML Tidy</title>
117
118 <para>The <application>HTML Tidy</application> documentation
119 is contained in a separate tarball. Unpack both the source and docs
120 tarballs before starting the build.</para>
121
122 <para>Install <application>HTML Tidy</application> by
123 running the following commands:</para>
124
125<screen><userinput>patch -Np1 -i ../tidy-&tidy-version;-prevent_PRE_newlines-1.patch &amp;&amp;
126sh build/gnuauto/setup.sh &amp;&amp;
127./configure --prefix=/usr &amp;&amp;
128make</userinput></screen>
129
130 <para>This package does not come with a test suite.</para>
131
132 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
133
134<screen role="root"><userinput>make install</userinput></screen>
135
136 <para>If you have <xref linkend="libxslt"/> installed, issue the following
137 commands as an unprivileged user to build the man page and HTML
138 documentation:</para>
139
140<screen><userinput>cd htmldoc &amp;&amp;
141tidy -xml-help &gt; tidy-help.xml &amp;&amp;
142tidy -xml-config &gt; tidy-config.xml &amp;&amp;
143xsltproc -o tidy.1 tidy1.xsl tidy-help.xml &amp;&amp;
144xsltproc -o quickref.html quickref-html.xsl tidy-config.xml &amp;&amp;
145cd ..</userinput></screen>
146
147 <para>If you built the man page and the Quick Reference HTML file, install
148 the man page by issuing the following command as the
149 <systemitem class="username">root</systemitem> user:</para>
150
151<screen role="root"><userinput>install -v -m644 htmldoc/tidy.1 /usr/share/man/man1</userinput></screen>
152
153 <para>Now finish the installation by installing the pre-built
154 documentation as the <systemitem class="username">root</systemitem>
155 user:</para>
156
157<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/tidy-&tidy-docs-version; &amp;&amp;
158cp -v -R htmldoc/* /usr/share/doc/tidy-&tidy-docs-version;</userinput></screen>
159
160 </sect2>
161
162 <sect2 role="commands">
163 <title>Command Explanations</title>
164
165 <para><command>sh build/gnuauto/setup.sh</command>: This command prepares
166 the source tree for building using the GNU <quote>Auto</quote>
167 tools.</para>
168
169 </sect2>
170
171 <sect2 role="configuration">
172 <title>Configuring HTML Tidy</title>
173
174 <sect3>
175 <title>Config Files</title>
176
177 <para>The absolute path of the file specified in
178 <envar>$HTML_TIDY</envar>.</para>
179
180 </sect3>
181
182 <sect3>
183 <title>Configuration Information</title>
184
185 <para>The default configuration options can be set in the file defined in
186 <envar>$HTML_TIDY</envar>. Additional configuration options can be passed
187 to <command>tidy</command> via command line parameters or the
188 <option>-config &lt;file&gt;</option> parameter.</para>
189
190 </sect3>
191
192 </sect2>
193
194 <sect2 role="content">
195 <title>Contents</title>
196
197 <segmentedlist>
198 <segtitle>Installed Programs</segtitle>
199 <segtitle>Installed Library</segtitle>
200 <segtitle>Installed Directory</segtitle>
201 <seglistitem>
202 <seg>tab2space and tidy</seg>
203 <seg>libtidy.[so,a]</seg>
204 <seg>/usr/share/doc/tidy-&tidy-docs-version;</seg>
205 </seglistitem>
206 </segmentedlist>
207
208 <variablelist>
209 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
210 <?dbfo list-presentation="list"?>
211 <?dbhtml list-presentation="table"?>
212
213 <varlistentry id="tab2space">
214 <term><command>tab2space</command></term>
215 <listitem>
216 <para>is a utility to expand tabs and ensure consistent line
217 endings.</para>
218 <indexterm zone="html-tidy tab2space">
219 <primary sortas="b-tab2space">tab2space</primary>
220 </indexterm>
221 </listitem>
222 </varlistentry>
223
224 <varlistentry id="tidy">
225 <term><command>tidy</command></term>
226 <listitem>
227 <para>validates, corrects, and pretty-prints HTML files.</para>
228 <indexterm zone="html-tidy tidy">
229 <primary sortas="b-tidy">tidy</primary>
230 </indexterm>
231 </listitem>
232 </varlistentry>
233
234 <varlistentry id="libtidy">
235 <term><filename class='libraryfile'>libtidy.[so,a]</filename></term>
236 <listitem>
237 <para>libraries provide the <application>HTML Tidy</application> API
238 functions to <command>tidy</command> and can also be called by other
239 programs.</para>
240 <indexterm zone="html-tidy libtidy">
241 <primary sortas="c-libtidy">libtidy.[so,a]</primary>
242 </indexterm>
243 </listitem>
244 </varlistentry>
245
246 </variablelist>
247
248 </sect2>
249
250</sect1>
Note: See TracBrowser for help on using the repository browser.