[9766fba] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[9766fba] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[59e19f73] | 7 | <!ENTITY tidy-html5-download-http "https://github.com/htacg/tidy-html5/archive/&tidy-html5-version;/tidy-html5-&tidy-html5-version;.tar.gz">
|
---|
[2b65035a] | 8 | <!ENTITY tidy-html5-download-ftp " ">
|
---|
[11759d2] | 9 | <!ENTITY tidy-html5-md5sum "85c8a163d9ece6a02fe12bc9bddbc455">
|
---|
| 10 | <!ENTITY tidy-html5-size "649 KB">
|
---|
| 11 | <!ENTITY tidy-html5-buildsize "11 MB">
|
---|
[dcff87e8] | 12 | <!ENTITY tidy-html5-time "0.2 SBU">
|
---|
[9766fba] | 13 | ]>
|
---|
| 14 |
|
---|
[2b65035a] | 15 | <sect1 id="tidy-html5" xreflabel="tidy-html5-&tidy-html5-version;">
|
---|
| 16 | <?dbhtml filename="tidy-html5.html"?>
|
---|
[85965ed] | 17 |
|
---|
[c18d3b25] | 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
[85965ed] | 22 |
|
---|
[2b65035a] | 23 | <title>tidy-html5-&tidy-html5-version;</title>
|
---|
[85965ed] | 24 |
|
---|
[2b65035a] | 25 | <indexterm zone="tidy-html5">
|
---|
| 26 | <primary sortas="a-Tidy-HTML5">Tidy HTML5</primary>
|
---|
[c18d3b25] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
[523c6e95] | 30 | <title>Introduction to Tidy HTML5</title>
|
---|
[85965ed] | 31 |
|
---|
[b7a85cd9] | 32 | <para>
|
---|
| 33 | The <application>Tidy HTML5</application> package contains a
|
---|
| 34 | command line tool and libraries used to read HTML, XHTML and XML files
|
---|
| 35 | and write cleaned up markup. It detects and corrects many common coding
|
---|
| 36 | errors and strives to produce visually equivalent markup that is both
|
---|
| 37 | W3C compliant and compatible with most browsers.
|
---|
| 38 | </para>
|
---|
[85965ed] | 39 |
|
---|
[78af2ee] | 40 | &lfs10_checked;
|
---|
[50929e8] | 41 |
|
---|
[c18d3b25] | 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
[b7a85cd9] | 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url="&tidy-html5-download-http;"/>
|
---|
| 47 | </para>
|
---|
[c18d3b25] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[b7a85cd9] | 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url="&tidy-html5-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
[c18d3b25] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[b7a85cd9] | 55 | <para>
|
---|
| 56 | Download MD5 sum: &tidy-html5-md5sum;
|
---|
| 57 | </para>
|
---|
[c18d3b25] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[b7a85cd9] | 60 | <para>
|
---|
| 61 | Download size: &tidy-html5-size;
|
---|
| 62 | </para>
|
---|
[c18d3b25] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[b7a85cd9] | 65 | <para>
|
---|
| 66 | Estimated disk space required: &tidy-html5-buildsize;
|
---|
| 67 | </para>
|
---|
[c18d3b25] | 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
[b7a85cd9] | 70 | <para>
|
---|
| 71 | Estimated build time: &tidy-html5-time;
|
---|
| 72 | </para>
|
---|
[c18d3b25] | 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
[b7a85cd9] | 75 |
|
---|
[523c6e95] | 76 | <bridgehead renderas="sect3">Tidy HTML5 Dependencies</bridgehead>
|
---|
| 77 |
|
---|
| 78 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[b7a85cd9] | 79 | <para role="required">
|
---|
| 80 | <xref linkend="cmake"/>
|
---|
| 81 | </para>
|
---|
[523c6e95] | 82 |
|
---|
| 83 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[b7a85cd9] | 84 | <para role="recommended">
|
---|
| 85 | <xref linkend="libxslt"/>
|
---|
| 86 | </para>
|
---|
[85965ed] | 87 |
|
---|
[1039de3] | 88 | <para condition="html" role="usernotes">User Notes:
|
---|
| 89 | <ulink url="&blfs-wiki;/tidy"/></para>
|
---|
| 90 |
|
---|
[c18d3b25] | 91 | </sect2>
|
---|
[85965ed] | 92 |
|
---|
[c18d3b25] | 93 | <sect2 role="installation">
|
---|
[523c6e95] | 94 | <title>Installation of Tidy HTML5</title>
|
---|
| 95 |
|
---|
[b7a85cd9] | 96 | <para>
|
---|
| 97 | Install <application>Tidy HTML5</application> by running the following
|
---|
| 98 | commands:
|
---|
| 99 | </para>
|
---|
[c18d3b25] | 100 |
|
---|
[523c6e95] | 101 | <screen><userinput>cd build/cmake &&
|
---|
| 102 |
|
---|
| 103 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 104 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 105 | -DBUILD_TAB2SPACE=ON \
|
---|
| 106 | ../.. &&
|
---|
[c18d3b25] | 107 |
|
---|
| 108 | make</userinput></screen>
|
---|
[afd6889] | 109 |
|
---|
[b7a85cd9] | 110 | <para>
|
---|
| 111 | This package does not come with a test suite.
|
---|
| 112 | </para>
|
---|
[7c43113] | 113 |
|
---|
[b7a85cd9] | 114 | <para>
|
---|
| 115 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
[523c6e95] | 116 | </para>
|
---|
[85965ed] | 117 |
|
---|
[f3eefa7] | 118 | <screen role="root"><userinput>make install &&
|
---|
[523c6e95] | 119 | install -v -m755 tab2space /usr/bin</userinput></screen>
|
---|
[0124b3a] | 120 |
|
---|
[c18d3b25] | 121 | </sect2>
|
---|
[85965ed] | 122 |
|
---|
[22d9f68] | 123 | <sect2 role="commands">
|
---|
| 124 | <title>Command Explanations</title>
|
---|
| 125 |
|
---|
[523c6e95] | 126 | <para>
|
---|
| 127 | <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used to
|
---|
| 128 | build the release library without any debug `assert` in the code.
|
---|
| 129 | </para>
|
---|
| 130 |
|
---|
| 131 | <para>
|
---|
| 132 | <parameter>-DBUILD_TAB2SPACE=ON</parameter>: This switch is used to enable
|
---|
| 133 | building the <command>tab2space</command> utility.
|
---|
| 134 | </para>
|
---|
[22d9f68] | 135 |
|
---|
| 136 | </sect2>
|
---|
| 137 |
|
---|
[c18d3b25] | 138 | <sect2 role="configuration">
|
---|
[523c6e95] | 139 | <title>Configuring Tidy HTML5</title>
|
---|
[c18d3b25] | 140 |
|
---|
| 141 | <sect3>
|
---|
| 142 | <title>Config Files</title>
|
---|
[85965ed] | 143 |
|
---|
[b7a85cd9] | 144 | <para>
|
---|
| 145 | The absolute path of the file specified in <envar>HTML_TIDY</envar>.
|
---|
| 146 | </para>
|
---|
[85965ed] | 147 |
|
---|
[c18d3b25] | 148 | </sect3>
|
---|
| 149 |
|
---|
| 150 | <sect3>
|
---|
| 151 | <title>Configuration Information</title>
|
---|
[85965ed] | 152 |
|
---|
[b7a85cd9] | 153 | <para>
|
---|
| 154 | The default configuration options can be set in the file defined in
|
---|
| 155 | <envar>HTML_TIDY</envar>. Additional configuration options can be
|
---|
| 156 | passed to <command>tidy</command> via command line parameters or the
|
---|
| 157 | <option>-config <file></option> parameter.
|
---|
| 158 | </para>
|
---|
[85965ed] | 159 |
|
---|
[c18d3b25] | 160 | </sect3>
|
---|
[85965ed] | 161 |
|
---|
[c18d3b25] | 162 | </sect2>
|
---|
[85965ed] | 163 |
|
---|
[c18d3b25] | 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>
|
---|
[523c6e95] | 173 | <seg>libtidy.so and libtidys.a</seg>
|
---|
[2b65035a] | 174 | <seg>/usr/share/doc/tidy-&tidy-html5-version;</seg>
|
---|
[c18d3b25] | 175 | </seglistitem>
|
---|
| 176 | </segmentedlist>
|
---|
[85965ed] | 177 |
|
---|
[c18d3b25] | 178 | <variablelist>
|
---|
| 179 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 180 | <?dbfo list-presentation="list"?>
|
---|
| 181 | <?dbhtml list-presentation="table"?>
|
---|
[85965ed] | 182 |
|
---|
[c18d3b25] | 183 | <varlistentry id="tab2space">
|
---|
| 184 | <term><command>tab2space</command></term>
|
---|
| 185 | <listitem>
|
---|
[b7a85cd9] | 186 | <para>
|
---|
| 187 | is a utility to expand tabs and ensure consistent line endings.
|
---|
| 188 | </para>
|
---|
[2b65035a] | 189 | <indexterm zone="tidy-html5 tab2space">
|
---|
[c18d3b25] | 190 | <primary sortas="b-tab2space">tab2space</primary>
|
---|
| 191 | </indexterm>
|
---|
| 192 | </listitem>
|
---|
| 193 | </varlistentry>
|
---|
[85965ed] | 194 |
|
---|
[c18d3b25] | 195 | <varlistentry id="tidy">
|
---|
| 196 | <term><command>tidy</command></term>
|
---|
| 197 | <listitem>
|
---|
[b7a85cd9] | 198 | <para>
|
---|
| 199 | validates, corrects, and pretty-prints HTML files.
|
---|
| 200 | </para>
|
---|
[2b65035a] | 201 | <indexterm zone="tidy-html5 tidy">
|
---|
[c18d3b25] | 202 | <primary sortas="b-tidy">tidy</primary>
|
---|
| 203 | </indexterm>
|
---|
| 204 | </listitem>
|
---|
| 205 | </varlistentry>
|
---|
[85965ed] | 206 |
|
---|
[c18d3b25] | 207 | <varlistentry id="libtidy">
|
---|
[523c6e95] | 208 | <term>
|
---|
| 209 | <filename class='libraryfile'>libtidy.so and libtidys.a</filename>
|
---|
| 210 | </term>
|
---|
[c18d3b25] | 211 | <listitem>
|
---|
[b7a85cd9] | 212 | <para>
|
---|
| 213 | library provides the <application>Tidy HTML5</application> API
|
---|
| 214 | functions to <command>tidy</command> and can also be called by other
|
---|
| 215 | programs.
|
---|
| 216 | </para>
|
---|
[2b65035a] | 217 | <indexterm zone="tidy-html5 libtidy">
|
---|
[22d9f68] | 218 | <primary sortas="c-libtidy">libtidy.so</primary>
|
---|
[c18d3b25] | 219 | </indexterm>
|
---|
| 220 | </listitem>
|
---|
| 221 | </varlistentry>
|
---|
[85965ed] | 222 |
|
---|
[c18d3b25] | 223 | </variablelist>
|
---|
| 224 |
|
---|
| 225 | </sect2>
|
---|
[9766fba] | 226 |
|
---|
| 227 | </sect1>
|
---|