source: general/genutils/tidy-html5.xml@ 427b46a

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 427b46a was 9029db2, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Tag most of General Libraries and dependencies

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

  • Property mode set to 100644
File size: 6.3 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 "85c8a163d9ece6a02fe12bc9bddbc455">
10 <!ENTITY tidy-html5-size "649 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 <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>
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>
39
40 &lfs101_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&tidy-html5-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download (FTP): <ulink url="&tidy-html5-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download MD5 sum: &tidy-html5-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &tidy-html5-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &tidy-html5-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &tidy-html5-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect3">Tidy HTML5 Dependencies</bridgehead>
77
78 <bridgehead renderas="sect4">Required</bridgehead>
79 <para role="required">
80 <xref linkend="cmake"/>
81 </para>
82
83 <bridgehead renderas="sect4">Recommended</bridgehead>
84 <para role="recommended">
85 <xref linkend="libxslt"/>
86 </para>
87
88 <para condition="html" role="usernotes">User Notes:
89 <ulink url="&blfs-wiki;/tidy"/></para>
90
91 </sect2>
92
93 <sect2 role="installation">
94 <title>Installation of Tidy HTML5</title>
95
96 <para>
97 Install <application>Tidy HTML5</application> by running the following
98 commands:
99 </para>
100
101<screen><userinput>cd build/cmake &amp;&amp;
102
103cmake -DCMAKE_INSTALL_PREFIX=/usr \
104 -DCMAKE_BUILD_TYPE=Release \
105 -DBUILD_TAB2SPACE=ON \
106 ../.. &amp;&amp;
107
108make</userinput></screen>
109
110 <para>
111 This package does not come with a test suite.
112 </para>
113
114 <para>
115 Now, as the <systemitem class="username">root</systemitem> user:
116 </para>
117
118<screen role="root"><userinput>make install &amp;&amp;
119install -v -m755 tab2space /usr/bin</userinput></screen>
120
121 </sect2>
122
123 <sect2 role="commands">
124 <title>Command Explanations</title>
125
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>
135
136 </sect2>
137
138 <sect2 role="configuration">
139 <title>Configuring Tidy HTML5</title>
140
141 <sect3>
142 <title>Config Files</title>
143
144 <para>
145 The absolute path of the file specified in <envar>HTML_TIDY</envar>.
146 </para>
147
148 </sect3>
149
150 <sect3>
151 <title>Configuration Information</title>
152
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 &lt;file&gt;</option> parameter.
158 </para>
159
160 </sect3>
161
162 </sect2>
163
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>
173 <seg>libtidy.so and libtidys.a</seg>
174 <seg>/usr/share/doc/tidy-&tidy-html5-version;</seg>
175 </seglistitem>
176 </segmentedlist>
177
178 <variablelist>
179 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
180 <?dbfo list-presentation="list"?>
181 <?dbhtml list-presentation="table"?>
182
183 <varlistentry id="tab2space">
184 <term><command>tab2space</command></term>
185 <listitem>
186 <para>
187 is a utility to expand tabs and ensure consistent line endings
188 </para>
189 <indexterm zone="tidy-html5 tab2space">
190 <primary sortas="b-tab2space">tab2space</primary>
191 </indexterm>
192 </listitem>
193 </varlistentry>
194
195 <varlistentry id="tidy">
196 <term><command>tidy</command></term>
197 <listitem>
198 <para>
199 validates, corrects, and pretty-prints HTML files
200 </para>
201 <indexterm zone="tidy-html5 tidy">
202 <primary sortas="b-tidy">tidy</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 <varlistentry id="libtidy">
208 <term>
209 <filename class="libraryfile">libtidy.so and libtidys.a</filename>
210 </term>
211 <listitem>
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>
217 <indexterm zone="tidy-html5 libtidy">
218 <primary sortas="c-libtidy">libtidy.so</primary>
219 </indexterm>
220 </listitem>
221 </varlistentry>
222
223 </variablelist>
224
225 </sect2>
226
227</sect1>
Note: See TracBrowser for help on using the repository browser.