source: general/genutils/tidy-html5.xml@ 24ac3c20

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 24ac3c20 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 18 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 6.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
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 &lfs112_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 <para condition="html" role="usernotes">User Notes:
85 <ulink url="&blfs-wiki;/tidy"/></para>
86
87 </sect2>
88
89 <sect2 role="installation">
90 <title>Installation of Tidy HTML5</title>
91
92 <para>
93 Install <application>Tidy HTML5</application> by running the following
94 commands:
95 </para>
96
97<screen><userinput>cd build/cmake &amp;&amp;
98
99cmake -DCMAKE_INSTALL_PREFIX=/usr \
100 -DCMAKE_BUILD_TYPE=Release \
101 -DBUILD_TAB2SPACE=ON \
102 ../.. &amp;&amp;
103
104make</userinput></screen>
105
106 <para>
107 This package does not come with a test suite.
108 </para>
109
110 <para>
111 Now, as the <systemitem class="username">root</systemitem> user:
112 </para>
113
114<screen role="root"><userinput>make install &amp;&amp;
115rm -fv /usr/lib/libtidy.a &amp;&amp;
116install -v -m755 tab2space /usr/bin</userinput></screen>
117
118 </sect2>
119
120 <sect2 role="commands">
121 <title>Command Explanations</title>
122
123 <para>
124 <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used to
125 build the release library without any debug `assert` in the code.
126 </para>
127
128 <para>
129 <parameter>-DBUILD_TAB2SPACE=ON</parameter>: This switch is used to enable
130 building the <command>tab2space</command> utility.
131 </para>
132
133 </sect2>
134
135 <sect2 role="configuration">
136 <title>Configuring Tidy HTML5</title>
137
138 <sect3>
139 <title>Config Files</title>
140
141 <para>
142 The absolute path of the file specified in <envar>HTML_TIDY</envar>.
143 </para>
144
145 </sect3>
146
147 <sect3>
148 <title>Configuration Information</title>
149
150 <para>
151 The default configuration options can be set in the file defined in
152 <envar>HTML_TIDY</envar>. Additional configuration options can be
153 passed to <command>tidy</command> via command line parameters or the
154 <option>-config &lt;file&gt;</option> parameter.
155 </para>
156
157 </sect3>
158
159 </sect2>
160
161 <sect2 role="content">
162 <title>Contents</title>
163
164 <segmentedlist>
165 <segtitle>Installed Programs</segtitle>
166 <segtitle>Installed Library</segtitle>
167 <segtitle>Installed Directory</segtitle>
168 <seglistitem>
169 <seg>tab2space and tidy</seg>
170 <seg>libtidy.so</seg>
171 <seg>/usr/share/doc/tidy-&tidy-html5-version;</seg>
172 </seglistitem>
173 </segmentedlist>
174
175 <variablelist>
176 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
177 <?dbfo list-presentation="list"?>
178 <?dbhtml list-presentation="table"?>
179
180 <varlistentry id="tab2space">
181 <term><command>tab2space</command></term>
182 <listitem>
183 <para>
184 is a utility to expand tabs and ensure consistent line endings
185 </para>
186 <indexterm zone="tidy-html5 tab2space">
187 <primary sortas="b-tab2space">tab2space</primary>
188 </indexterm>
189 </listitem>
190 </varlistentry>
191
192 <varlistentry id="tidy">
193 <term><command>tidy</command></term>
194 <listitem>
195 <para>
196 validates, corrects, and pretty-prints HTML files
197 </para>
198 <indexterm zone="tidy-html5 tidy">
199 <primary sortas="b-tidy">tidy</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
204 <varlistentry id="libtidy">
205 <term>
206 <filename class="libraryfile">libtidy.so</filename>
207 </term>
208 <listitem>
209 <para>
210 library provides the <application>Tidy HTML5</application> API
211 functions to <command>tidy</command> and can also be called by other
212 programs
213 </para>
214 <indexterm zone="tidy-html5 libtidy">
215 <primary sortas="c-libtidy">libtidy.so</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
219
220 </variablelist>
221
222 </sect2>
223
224</sect1>
Note: See TracBrowser for help on using the repository browser.