source: general/genutils/tidy-html5.xml@ 2d0650b

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.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 2d0650b was 6030130, checked in by Douglas R. Reno <renodr@…>, 5 years ago

Update to git-2.23.0
Tag the rest of the packages I normally build before Xorg

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

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