source: general/genutils/tidy-html5.xml@ 89f706b2

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 89f706b2 was 89f706b2, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Tags

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18310 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.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;.tar.gz">
8 <!ENTITY tidy-html5-download-ftp " ">
9 <!ENTITY tidy-html5-md5sum "ffbe6e8471eff90877b4d74bb714e22f">
10 <!ENTITY tidy-html5-size "517 KB">
11 <!ENTITY tidy-html5-buildsize "16 MB">
12 <!ENTITY tidy-html5-time "0.1 SBU">
13]>
14
15<sect1 id="tidy-html5" xreflabel="tidy-html5-&tidy-html5-version;">
16 <?dbhtml filename="tidy-html5.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>tidy-html5-&tidy-html5-version;</title>
24
25 <indexterm zone="tidy-html5">
26 <primary sortas="a-Tidy-HTML5">Tidy HTML5</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Tidy HTML5</title>
31
32 <para>The <application>Tidy HTML5</application> package contains a
33 command line tool and libraries used to read HTML, XHTML and XML files
34 and write cleaned up markup. It detects and corrects many common coding
35 errors and strives to produce visually equivalent markup that is both
36 W3C compliant and compatible with most browsers.</para>
37
38 &lfs80_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>Download (HTTP): <ulink url="&tidy-html5-download-http;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download (FTP): <ulink url="&tidy-html5-download-ftp;"/></para>
47 </listitem>
48 <listitem>
49 <para>Download MD5 sum: &tidy-html5-md5sum;</para>
50 </listitem>
51 <listitem>
52 <para>Download size: &tidy-html5-size;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated disk space required: &tidy-html5-buildsize;</para>
56 </listitem>
57 <listitem>
58 <para>Estimated build time: &tidy-html5-time;</para>
59 </listitem>
60 </itemizedlist>
61
62 <note>
63 <para>
64 The <application>Tidy HTML5</application> source tarball shown above
65 downloads with the correct name, tidy-html5-&tidy-html5-version;.tar.gz, if
66 using a browser such as Firefox. If you prefer to use a command line
67 program such as wget, you normally would obtain &tidy-html5-version;.tar.gz.
68 To obtain this package with the proper filename, run:
69
70<screen><userinput>wget -c https://github.com/htacg/tidy-html5/archive/&tidy-html5-version;.tar.gz \
71 -O tidy-html5-&tidy-html5-version;.tar.gz</userinput></screen>
72 </para>
73 </note>
74
75 <bridgehead renderas="sect3">Tidy HTML5 Dependencies</bridgehead>
76
77 <bridgehead renderas="sect4">Required</bridgehead>
78 <para role="required"><xref linkend="cmake"/></para>
79
80 <bridgehead renderas="sect4">Recommended</bridgehead>
81 <para role="recommended"><xref linkend="libxslt"/></para>
82
83 <bridgehead renderas="sect4">Optional</bridgehead>
84 <para role="optional"><xref linkend="doxygen"/></para>
85
86 <para condition="html" role="usernotes">User Notes:
87 <ulink url="&blfs-wiki;/tidy"/></para>
88
89 </sect2>
90
91 <sect2 role="installation">
92 <title>Installation of Tidy HTML5</title>
93
94 <para>Install <application>Tidy HTML5</application> by running the following
95 commands:</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>This package does not come with a test suite.</para>
107
108 <para>Now, as the <systemitem class="username">root</systemitem> user:
109 </para>
110
111<screen role="root"><userinput>make install &amp;&amp;
112install -v -m755 tab2space /usr/bin</userinput></screen>
113
114 <para>If you wish to install the API documentation you must have <xref
115 linkend="doxygen"/> installed, then change directories into the <filename
116 class='directory'>documentation</filename> directory of the source tree and
117 issue the command <command>doxygen doxygen.cfg</command>. Then as the
118 <systemitem class="username">root</systemitem> user copy the <filename
119 class='directory'>documentation/temp/tidylib_api</filename> directory to
120 <filename
121 class='directory'>/usr/share/doc/tidy-&tidy-html5-version;.</filename></para>
122
123 </sect2>
124
125 <sect2 role="commands">
126 <title>Command Explanations</title>
127
128 <para>
129 <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used to
130 build the release library without any debug `assert` in the code.
131 </para>
132
133 <para>
134 <parameter>-DBUILD_TAB2SPACE=ON</parameter>: This switch is used to enable
135 building the <command>tab2space</command> utility.
136 </para>
137
138 </sect2>
139
140 <sect2 role="configuration">
141 <title>Configuring Tidy HTML5</title>
142
143 <sect3>
144 <title>Config Files</title>
145
146 <para>The absolute path of the file specified in
147 <envar>$HTML_TIDY</envar>.</para>
148
149 </sect3>
150
151 <sect3>
152 <title>Configuration Information</title>
153
154 <para>The default configuration options can be set in the file defined in
155 <envar>$HTML_TIDY</envar>. Additional configuration options can be passed
156 to <command>tidy</command> via command line parameters or the
157 <option>-config &lt;file&gt;</option> parameter.</para>
158
159 </sect3>
160
161 </sect2>
162
163 <sect2 role="content">
164 <title>Contents</title>
165
166 <segmentedlist>
167 <segtitle>Installed Programs</segtitle>
168 <segtitle>Installed Library</segtitle>
169 <segtitle>Installed Directory</segtitle>
170 <seglistitem>
171 <seg>tab2space and tidy</seg>
172 <seg>libtidy.so and libtidys.a</seg>
173 <seg>/usr/share/doc/tidy-&tidy-html5-version;</seg>
174 </seglistitem>
175 </segmentedlist>
176
177 <variablelist>
178 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
179 <?dbfo list-presentation="list"?>
180 <?dbhtml list-presentation="table"?>
181
182 <varlistentry id="tab2space">
183 <term><command>tab2space</command></term>
184 <listitem>
185 <para>is a utility to expand tabs and ensure consistent line
186 endings.</para>
187 <indexterm zone="tidy-html5 tab2space">
188 <primary sortas="b-tab2space">tab2space</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 <varlistentry id="tidy">
194 <term><command>tidy</command></term>
195 <listitem>
196 <para>validates, corrects, and pretty-prints HTML files.</para>
197 <indexterm zone="tidy-html5 tidy">
198 <primary sortas="b-tidy">tidy</primary>
199 </indexterm>
200 </listitem>
201 </varlistentry>
202
203 <varlistentry id="libtidy">
204 <term>
205 <filename class='libraryfile'>libtidy.so and libtidys.a</filename>
206 </term>
207 <listitem>
208 <para>library provides the <application>Tidy HTML5</application> API
209 functions to <command>tidy</command> and can also be called by other
210 programs.</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>
Note: See TracBrowser for help on using the repository browser.