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