source: general/genutils/tidy.xml@ 1039de3

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 1039de3 was 1039de3, checked in by Randy McMurchy <randy@…>, 18 years ago

Added the 'User Notes' wiki link to each package page; changed all instances of .[so,a] to .{so,a} (brackets changed to braces); changed all replaceable tags to use angle brackets instead of square brackets to encapsulate the text - commit #3

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

  • Property mode set to 100644
File size: 8.7 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="ftpdir">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 <para condition="html" role="usernotes">User Notes:
114 <ulink url="&blfs-wiki;/tidy"/></para>
115
116 </sect2>
117
118 <sect2 role="installation">
119 <title>Installation of HTML Tidy</title>
120
121 <para>The <application>HTML Tidy</application> documentation
122 is contained in a separate tarball. Unpack both the source and docs
123 tarballs before starting the build.</para>
124
125 <para>Install <application>HTML Tidy</application> by
126 running the following commands:</para>
127
128<screen><userinput>patch -Np1 -i ../tidy-&tidy-version;-prevent_PRE_newlines-1.patch &amp;&amp;
129sh build/gnuauto/setup.sh &amp;&amp;
130./configure --prefix=/usr &amp;&amp;
131make</userinput></screen>
132
133 <para>This package does not come with a test suite.</para>
134
135 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
136
137<screen role="root"><userinput>make install</userinput></screen>
138
139 <para>If you have <xref linkend="libxslt"/> installed, issue the following
140 commands as an unprivileged user to build the man page and HTML
141 documentation:</para>
142
143<screen><userinput>cd htmldoc &amp;&amp;
144tidy -xml-help &gt; tidy-help.xml &amp;&amp;
145tidy -xml-config &gt; tidy-config.xml &amp;&amp;
146xsltproc -o tidy.1 tidy1.xsl tidy-help.xml &amp;&amp;
147xsltproc -o quickref.html quickref-html.xsl tidy-config.xml &amp;&amp;
148cd ..</userinput></screen>
149
150 <para>If you built the man page and the Quick Reference HTML file, install
151 the man page by issuing the following command as the
152 <systemitem class="username">root</systemitem> user:</para>
153
154<screen role="root"><userinput>install -v -m644 htmldoc/tidy.1 /usr/share/man/man1</userinput></screen>
155
156 <para>Now finish the installation by installing the pre-built
157 documentation as the <systemitem class="username">root</systemitem>
158 user:</para>
159
160<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/tidy-&tidy-docs-version; &amp;&amp;
161cp -v -R htmldoc/* /usr/share/doc/tidy-&tidy-docs-version;</userinput></screen>
162
163 </sect2>
164
165 <sect2 role="commands">
166 <title>Command Explanations</title>
167
168 <para><command>sh build/gnuauto/setup.sh</command>: This command prepares
169 the source tree for building using the GNU <quote>Auto</quote>
170 tools.</para>
171
172 </sect2>
173
174 <sect2 role="configuration">
175 <title>Configuring HTML Tidy</title>
176
177 <sect3>
178 <title>Config Files</title>
179
180 <para>The absolute path of the file specified in
181 <envar>$HTML_TIDY</envar>.</para>
182
183 </sect3>
184
185 <sect3>
186 <title>Configuration Information</title>
187
188 <para>The default configuration options can be set in the file defined in
189 <envar>$HTML_TIDY</envar>. Additional configuration options can be passed
190 to <command>tidy</command> via command line parameters or the
191 <option>-config &lt;file&gt;</option> parameter.</para>
192
193 </sect3>
194
195 </sect2>
196
197 <sect2 role="content">
198 <title>Contents</title>
199
200 <segmentedlist>
201 <segtitle>Installed Programs</segtitle>
202 <segtitle>Installed Library</segtitle>
203 <segtitle>Installed Directory</segtitle>
204 <seglistitem>
205 <seg>tab2space and tidy</seg>
206 <seg>libtidy.{so,a}</seg>
207 <seg>/usr/share/doc/tidy-&tidy-docs-version;</seg>
208 </seglistitem>
209 </segmentedlist>
210
211 <variablelist>
212 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
213 <?dbfo list-presentation="list"?>
214 <?dbhtml list-presentation="table"?>
215
216 <varlistentry id="tab2space">
217 <term><command>tab2space</command></term>
218 <listitem>
219 <para>is a utility to expand tabs and ensure consistent line
220 endings.</para>
221 <indexterm zone="html-tidy tab2space">
222 <primary sortas="b-tab2space">tab2space</primary>
223 </indexterm>
224 </listitem>
225 </varlistentry>
226
227 <varlistentry id="tidy">
228 <term><command>tidy</command></term>
229 <listitem>
230 <para>validates, corrects, and pretty-prints HTML files.</para>
231 <indexterm zone="html-tidy tidy">
232 <primary sortas="b-tidy">tidy</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
237 <varlistentry id="libtidy">
238 <term><filename class='libraryfile'>libtidy.{so,a}</filename></term>
239 <listitem>
240 <para>libraries provide the <application>HTML Tidy</application> API
241 functions to <command>tidy</command> and can also be called by other
242 programs.</para>
243 <indexterm zone="html-tidy libtidy">
244 <primary sortas="c-libtidy">libtidy.{so,a}</primary>
245 </indexterm>
246 </listitem>
247 </varlistentry>
248
249 </variablelist>
250
251 </sect2>
252
253</sect1>
Note: See TracBrowser for help on using the repository browser.