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 "94b5825afab39eed91c2c449b20afd52">
|
---|
10 | <!ENTITY tidy-size "246 KB">
|
---|
11 | <!ENTITY tidy-buildsize "9.8 MB">
|
---|
12 | <!ENTITY tidy-time "0.23 SBU">
|
---|
13 |
|
---|
14 | <!ENTITY tidy-docs-download "http://tidy.sourceforge.net/docs/tidy_docs.tgz">
|
---|
15 | <!ENTITY tidy-docs-md5sum "00808694ad7cb21a7c40387423f60993">
|
---|
16 | <!ENTITY tidy-docs-size "152 KB">
|
---|
17 | ]>
|
---|
18 |
|
---|
19 | <sect1 id="html-tidy" xreflabel="HTML Tidy-&tidy-version;">
|
---|
20 | <?dbhtml filename="tidy.html"?>
|
---|
21 |
|
---|
22 | <sect1info>
|
---|
23 | <othername>$LastChangedBy$</othername>
|
---|
24 | <date>$Date$</date>
|
---|
25 | </sect1info>
|
---|
26 |
|
---|
27 | <title>HTML Tidy-&tidy-version;</title>
|
---|
28 |
|
---|
29 | <indexterm zone="html-tidy">
|
---|
30 | <primary sortas="a-HTML-Tidy">HTML Tidy</primary>
|
---|
31 | </indexterm>
|
---|
32 |
|
---|
33 | <sect2 role="package">
|
---|
34 | <title>Introduction to HTML Tidy</title>
|
---|
35 |
|
---|
36 | <para>The <application>HTML Tidy</application> package contains a
|
---|
37 | command line tool and libraries used to read HTML, XHTML and XML
|
---|
38 | files and write cleaned up markup. It detects and corrects many common coding
|
---|
39 | errors and strives to produce visually equivalent markup that is both
|
---|
40 | W3C compliant and compatible with most browsers.</para>
|
---|
41 |
|
---|
42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
43 | <itemizedlist spacing="compact">
|
---|
44 | <listitem>
|
---|
45 | <para>Download (HTTP): <ulink url="&tidy-download-http;"/></para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download (FTP): <ulink url="&tidy-download-ftp;"/></para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Download MD5 sum: &tidy-md5sum;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Download size: &tidy-size;</para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>Estimated disk space required: &tidy-buildsize;</para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>Estimated build time: &tidy-time;</para>
|
---|
61 | </listitem>
|
---|
62 | </itemizedlist>
|
---|
63 |
|
---|
64 | <note>
|
---|
65 | <para><application>HTML Tidy</application> is
|
---|
66 | updated very frequently by its maintainers, and the source package listed
|
---|
67 | above may not be available at the listed URL due to the
|
---|
68 | release of a newer version. The most current source package can be always be
|
---|
69 | downloaded from <ulink url="http://tidy.sourceforge.net/src/"/>. If this
|
---|
70 | version is newer than the version listed above, the following instructions
|
---|
71 | should work, but have not yet been tested by BLFS. If you'd rather download
|
---|
72 | the version listed above, you can find it at
|
---|
73 | <ulink url="http://tidy.sourceforge.net/src/old/"/>.</para>
|
---|
74 | </note>
|
---|
75 |
|
---|
76 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
77 |
|
---|
78 | <bridgehead renderas="sect4">Documentation</bridgehead>
|
---|
79 | <itemizedlist spacing="compact">
|
---|
80 | <listitem>
|
---|
81 | <para>Documentation: <ulink url="&tidy-docs-download;"/></para>
|
---|
82 | </listitem>
|
---|
83 | <listitem>
|
---|
84 | <para>Download MD5 sum: &tidy-docs-md5sum;</para>
|
---|
85 | </listitem>
|
---|
86 | <listitem>
|
---|
87 | <para>Download size: &tidy-docs-size;</para>
|
---|
88 | </listitem>
|
---|
89 | </itemizedlist>
|
---|
90 |
|
---|
91 | <bridgehead renderas="sect4">Patches</bridgehead>
|
---|
92 | <itemizedlist spacing="compact">
|
---|
93 | <listitem>
|
---|
94 | <para>Required patch: <ulink
|
---|
95 | url="&patch-root;/tidy-&tidy-version;-prevent_PRE_newlines-1.patch"/></para>
|
---|
96 | </listitem>
|
---|
97 | </itemizedlist>
|
---|
98 |
|
---|
99 | <bridgehead renderas="sect3">HTML Tidy Dependencies</bridgehead>
|
---|
100 |
|
---|
101 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
102 | <para><ulink url="http://dmalloc.com/">Dmalloc</ulink></para>
|
---|
103 |
|
---|
104 | </sect2>
|
---|
105 |
|
---|
106 | <sect2 role="installation">
|
---|
107 | <title>Installation of HTML Tidy</title>
|
---|
108 |
|
---|
109 | <para>The <application>HTML Tidy</application> documentation
|
---|
110 | is contained in a separate tarball. Unpack both the source and docs tarballs
|
---|
111 | before starting the build.</para>
|
---|
112 |
|
---|
113 | <para>Install <application>HTML Tidy</application> by
|
---|
114 | running the following commands:</para>
|
---|
115 |
|
---|
116 | <screen><userinput>patch -Np1 -i ../tidy-&tidy-version;-prevent_PRE_newlines-1.patch &&
|
---|
117 | sh build/gnuauto/setup.sh &&
|
---|
118 | ./configure --prefix=/usr &&
|
---|
119 | make</userinput></screen>
|
---|
120 |
|
---|
121 | <para>Now, as the root user:</para>
|
---|
122 |
|
---|
123 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
124 |
|
---|
125 | <screen role="root"><userinput>make install &&
|
---|
126 | install -v -m644 htmldoc/man_page.txt \
|
---|
127 | /usr/share/man/man1/tidy.1 &&
|
---|
128 | install -v -d -m755 /usr/share/doc/tidy &&
|
---|
129 | cp -v -R htmldoc /usr/share/doc/tidy</userinput></screen>
|
---|
130 |
|
---|
131 | </sect2>
|
---|
132 |
|
---|
133 | <sect2 role="commands">
|
---|
134 | <title>Command Explanations</title>
|
---|
135 |
|
---|
136 | <para><command>sh build/gnuauto/setup.sh</command>: This command prepares
|
---|
137 | the source tree for building using the GNU <quote>Auto</quote> tools.</para>
|
---|
138 |
|
---|
139 | </sect2>
|
---|
140 |
|
---|
141 | <sect2 role="configuration">
|
---|
142 | <title>Configuring HTML Tidy</title>
|
---|
143 |
|
---|
144 | <sect3>
|
---|
145 | <title>Config Files</title>
|
---|
146 |
|
---|
147 | <para>The absolute path of the file specified in
|
---|
148 | <envar>$HTML_TIDY</envar>.</para>
|
---|
149 |
|
---|
150 | </sect3>
|
---|
151 |
|
---|
152 | <sect3>
|
---|
153 | <title>Configuration Information</title>
|
---|
154 |
|
---|
155 | <para>The default configuration options can be set in the file defined in
|
---|
156 | <envar>$HTML_TIDY</envar>. Additional configuration options can be passed to
|
---|
157 | <command>tidy</command> via command line parameters or the
|
---|
158 | <option>-config <file></option> parameter.</para>
|
---|
159 |
|
---|
160 | </sect3>
|
---|
161 |
|
---|
162 | </sect2>
|
---|
163 |
|
---|
164 | <sect2 role="content">
|
---|
165 | <title>Contents</title>
|
---|
166 |
|
---|
167 | <segmentedlist>
|
---|
168 | <segtitle>Installed Programs</segtitle>
|
---|
169 | <segtitle>Installed Library</segtitle>
|
---|
170 | <segtitle>Installed Directory</segtitle>
|
---|
171 | <seglistitem>
|
---|
172 | <seg>tab2space and tidy</seg>
|
---|
173 | <seg>libtidy.[so,a]</seg>
|
---|
174 | <seg>/usr/share/doc/tidy</seg>
|
---|
175 | </seglistitem>
|
---|
176 | </segmentedlist>
|
---|
177 |
|
---|
178 | <variablelist>
|
---|
179 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
180 | <?dbfo list-presentation="list"?>
|
---|
181 | <?dbhtml list-presentation="table"?>
|
---|
182 |
|
---|
183 | <varlistentry id="tab2space">
|
---|
184 | <term><command>tab2space</command></term>
|
---|
185 | <listitem>
|
---|
186 | <para>is a utility to expand tabs and ensure consistent line
|
---|
187 | endings.</para>
|
---|
188 | <indexterm zone="html-tidy tab2space">
|
---|
189 | <primary sortas="b-tab2space">tab2space</primary>
|
---|
190 | </indexterm>
|
---|
191 | </listitem>
|
---|
192 | </varlistentry>
|
---|
193 |
|
---|
194 | <varlistentry id="tidy">
|
---|
195 | <term><command>tidy</command></term>
|
---|
196 | <listitem>
|
---|
197 | <para>validates, corrects, and pretty-prints HTML files.</para>
|
---|
198 | <indexterm zone="html-tidy tidy">
|
---|
199 | <primary sortas="b-tidy">tidy</primary>
|
---|
200 | </indexterm>
|
---|
201 | </listitem>
|
---|
202 | </varlistentry>
|
---|
203 |
|
---|
204 | <varlistentry id="libtidy">
|
---|
205 | <term><filename class='libraryfile'>libtidy.[so,a]</filename></term>
|
---|
206 | <listitem>
|
---|
207 | <para>libraries provide the <application>HTML Tidy</application> API
|
---|
208 | functions to <command>tidy</command> and can also be called by other
|
---|
209 | programs.</para>
|
---|
210 | <indexterm zone="html-tidy libtidy">
|
---|
211 | <primary sortas="c-libtidy">libtidy.[so,a]</primary>
|
---|
212 | </indexterm>
|
---|
213 | </listitem>
|
---|
214 | </varlistentry>
|
---|
215 |
|
---|
216 | </variablelist>
|
---|
217 |
|
---|
218 | </sect2>
|
---|
219 |
|
---|
220 | </sect1>
|
---|
221 |
|
---|