source: general/genutils/tidy.xml@ 98b103c

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 98b103c was 50929e8, checked in by Randy McMurchy <randy@…>, 13 years ago

Marked various packages compatible with LFS-SVN-20101029

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

  • Property mode set to 100644
File size: 9.9 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-download-http "&sources-anduin-http;/t/tidy-&tidy-version;.tar.bz2">
8 <!ENTITY tidy-download-ftp " ">
9 <!ENTITY tidy-md5sum "dd1fe109b4259ad3f364b175787ad5e9">
10 <!ENTITY tidy-size "807 KB">
11 <!ENTITY tidy-buildsize "12 MB">
12 <!ENTITY tidy-time "0.2 SBU">
13
14 <!-- <!ENTITY tidy-docs-version "051020">
15 <!ENTITY tidy-docs-download "http://tidy.sourceforge.net/docs/tidy_docs_&tidy-docs-version;.tgz">
16 <!ENTITY tidy-docs-md5sum "86de2f198e57399c063d2567b2a25628">
17 <!ENTITY tidy-docs-size "150 KB"> -->
18]>
19
20<sect1 id="html-tidy" xreflabel="HTML Tidy-&tidy-version;">
21 <?dbhtml filename="tidy.html"?>
22
23 <sect1info>
24 <othername>$LastChangedBy$</othername>
25 <date>$Date$</date>
26 </sect1info>
27
28 <title>HTML Tidy-&tidy-version;</title>
29
30 <indexterm zone="html-tidy">
31 <primary sortas="a-HTML-Tidy">HTML Tidy</primary>
32 </indexterm>
33
34 <sect2 role="package">
35 <title>Introduction to HTML Tidy</title>
36
37 <para>The <application>HTML Tidy</application> package contains a
38 command line tool and libraries used to read HTML, XHTML and XML files
39 and write cleaned up markup. It detects and corrects many common coding
40 errors and strives to produce visually equivalent markup that is both
41 W3C compliant and compatible with most browsers.</para>
42
43 <para>&lfssvn_checked;20101029&lfssvn_checked2;</para>
44
45 <bridgehead renderas="sect3">Package Information</bridgehead>
46 <itemizedlist spacing="compact">
47 <listitem>
48 <para>Download (HTTP): <ulink url="&tidy-download-http;"/></para>
49 </listitem>
50 <listitem>
51 <para>Download (FTP): <ulink url="&tidy-download-ftp;"/></para>
52 </listitem>
53 <listitem>
54 <para>Download MD5 sum: &tidy-md5sum;</para>
55 </listitem>
56 <listitem>
57 <para>Download size: &tidy-size;</para>
58 </listitem>
59 <listitem>
60 <para>Estimated disk space required: &tidy-buildsize;</para>
61 </listitem>
62 <listitem>
63 <para>Estimated build time: &tidy-time;</para>
64 </listitem>
65 </itemizedlist>
66
67 <para><application>HTML Tidy</application> tarballs are no longer generated
68 by the maintainers. To build from source, the
69 <application>HTML Tidy</application> developers recommend using current
70 CVS. The source tarball shown above was created by the BLFS team by pulling
71 a CVS version, then generating the autotool components and documentation.
72 BLFS made no changes to the existing source files.</para>
73
74 <!-- <note>
75 <para><application>HTML Tidy</application> is
76 updated very frequently by its maintainers, and the source package listed
77 above may not be available at the listed URL due to the
78 release of a newer version. The most current source package can be always
79 be downloaded from <ulink url="http://tidy.sourceforge.net/src/"/>. If
80 this version is newer than the version listed above, the following
81 instructions should work, but have not yet been tested by the BLFS team.
82 If you'd rather download the version listed above, you can find it at
83 <ulink url="http://tidy.sourceforge.net/src/old/"/>.</para>
84 </note> -->
85
86 <!-- <bridgehead renderas="sect3">Additional Downloads</bridgehead> -->
87
88 <!-- <bridgehead renderas="sect4">Documentation</bridgehead>
89 <itemizedlist spacing="compact">
90 <listitem>
91 <para>Documentation: <ulink url="&tidy-docs-download;"/></para>
92 </listitem>
93 <listitem>
94 <para>Download MD5 sum: &tidy-docs-md5sum;</para>
95 </listitem>
96 <listitem>
97 <para>Download size: &tidy-docs-size;</para>
98 </listitem>
99 </itemizedlist> -->
100
101 <!-- <bridgehead renderas="sect4">Patches</bridgehead>
102 <itemizedlist spacing="compact">
103 <listitem>
104 <para>Required patch: <ulink
105 url="&patch-root;/tidy-&tidy-version;-prevent_PRE_newlines-1.patch"/></para>
106 </listitem>
107 </itemizedlist> -->
108
109 <bridgehead renderas="sect3">HTML Tidy Dependencies</bridgehead>
110
111 <!-- <bridgehead renderas="sect4">Recommended (To Build the Man Page and Quick
112 Reference Docs)</bridgehead>
113 <para role="recommended"><xref linkend="libxslt"/></para> -->
114
115 <bridgehead renderas="sect4">Optional</bridgehead>
116 <para role="optional"><ulink url="http://dmalloc.com/">Dmalloc</ulink></para>
117
118 <para condition="html" role="usernotes">User Notes:
119 <ulink url="&blfs-wiki;/tidy"/></para>
120
121 </sect2>
122
123 <sect2 role="installation">
124 <title>Installation of HTML Tidy</title>
125
126 <!-- <para>The <application>HTML Tidy</application> documentation
127 is contained in a separate tarball. Unpack both the source and docs
128 tarballs before starting the build.</para> -->
129
130 <para>Install <application>HTML Tidy</application> by
131 running the following commands:</para>
132
133<screen><userinput>./configure --prefix=/usr &amp;&amp;
134make</userinput></screen>
135
136 <para>This package does not come with a test suite.</para>
137 <!-- <para>To test the results, issue: <command>make check</command>.</para> -->
138
139 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
140
141<screen role="root"><userinput>make install &amp;&amp;
142
143install -v -m644 -D htmldoc/tidy.1 \
144 /usr/share/man/man1/tidy.1 &amp;&amp;
145install -v -m755 -d /usr/share/doc/tidy-&tidy-version; &amp;&amp;
146install -v -m644 htmldoc/*.{html,gif,css} \
147 /usr/share/doc/tidy-&tidy-version;</userinput></screen>
148
149 <para>If you wish to install the API documentation you must have
150 <xref linkend="doxygen"/> installed, then change directories into the
151 <filename class='directory'>htmldoc</filename> of the source tree and
152 issue the command <command>doxygen</command>. Then as the
153 <systemitem class="username">root</systemitem> user copy
154 the <filename class='directory'>api</filename> directory to
155 <filename class='directory'>/usr/share/doc/tidy-&tidy-version;.</filename></para>
156
157<!-- <screen role="root"><userinput>make -C htmldoc install_apidocs</userinput></screen> -->
158
159 <!-- <para>If you have <xref linkend="libxslt"/> installed, issue the following
160 commands as an unprivileged user to build the man page and HTML
161 documentation:</para>
162
163<screen><userinput>cd htmldoc &amp;&amp;
164tidy -xml-help &gt; tidy-help.xml &amp;&amp;
165tidy -xml-config &gt; tidy-config.xml &amp;&amp;
166xsltproc -o tidy.1 tidy1.xsl tidy-help.xml &amp;&amp;
167xsltproc -o quickref.html quickref-html.xsl tidy-config.xml &amp;&amp;
168cd ..</userinput></screen>
169
170 <para>If you built the man page and the Quick Reference HTML file, install
171 the man page by issuing the following command as the
172 <systemitem class="username">root</systemitem> user:</para>
173
174<screen role="root"><userinput>install -v -m644 htmldoc/tidy.1 /usr/share/man/man1</userinput></screen>
175
176 <para>Now finish the installation by installing the pre-built
177 documentation as the <systemitem class="username">root</systemitem>
178 user:</para>
179
180<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/tidy-&tidy-docs-version; &amp;&amp;
181cp -v -R htmldoc/* /usr/share/doc/tidy-&tidy-docs-version;</userinput></screen> -->
182
183 </sect2>
184
185 <!-- <sect2 role="commands">
186 <title>Command Explanations</title>
187
188 <para><command>sh build/gnuauto/setup.sh</command>: This command prepares
189 the source tree for building using the GNU <quote>Auto</quote>
190 tools.</para>
191
192 </sect2> -->
193
194 <sect2 role="configuration">
195 <title>Configuring HTML Tidy</title>
196
197 <sect3>
198 <title>Config Files</title>
199
200 <para>The absolute path of the file specified in
201 <envar>$HTML_TIDY</envar>.</para>
202
203 </sect3>
204
205 <sect3>
206 <title>Configuration Information</title>
207
208 <para>The default configuration options can be set in the file defined in
209 <envar>$HTML_TIDY</envar>. Additional configuration options can be passed
210 to <command>tidy</command> via command line parameters or the
211 <option>-config &lt;file&gt;</option> parameter.</para>
212
213 </sect3>
214
215 </sect2>
216
217 <sect2 role="content">
218 <title>Contents</title>
219
220 <segmentedlist>
221 <segtitle>Installed Programs</segtitle>
222 <segtitle>Installed Library</segtitle>
223 <segtitle>Installed Directory</segtitle>
224 <seglistitem>
225 <seg>tab2space and tidy</seg>
226 <seg>libtidy.{so,a}</seg>
227 <seg>/usr/share/doc/tidy-&tidy-version;</seg>
228 </seglistitem>
229 </segmentedlist>
230
231 <variablelist>
232 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
233 <?dbfo list-presentation="list"?>
234 <?dbhtml list-presentation="table"?>
235
236 <varlistentry id="tab2space">
237 <term><command>tab2space</command></term>
238 <listitem>
239 <para>is a utility to expand tabs and ensure consistent line
240 endings.</para>
241 <indexterm zone="html-tidy tab2space">
242 <primary sortas="b-tab2space">tab2space</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 <varlistentry id="tidy">
248 <term><command>tidy</command></term>
249 <listitem>
250 <para>validates, corrects, and pretty-prints HTML files.</para>
251 <indexterm zone="html-tidy tidy">
252 <primary sortas="b-tidy">tidy</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry id="libtidy">
258 <term><filename class='libraryfile'>libtidy.{so,a}</filename></term>
259 <listitem>
260 <para>libraries provide the <application>HTML Tidy</application> API
261 functions to <command>tidy</command> and can also be called by other
262 programs.</para>
263 <indexterm zone="html-tidy libtidy">
264 <primary sortas="c-libtidy">libtidy.{so,a}</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 </variablelist>
270
271 </sect2>
272
273</sect1>
Note: See TracBrowser for help on using the repository browser.