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