source: general/genutils/tidy.xml@ e50cece

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since e50cece was 22ac237, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Typo fix. General.

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

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