source: general/genutils/tidy.xml@ 9a66d5f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.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 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 9a66d5f was 9a66d5f, checked in by Randy McMurchy <randy@…>, 19 years ago

Updated to HTML Tidy-0503005; added prevent_PRE_newlines patch to HTML Tidy instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3529 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.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
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 " ">
9 <!ENTITY tidy-md5sum "11f27e0b6767660911a7a2cc5c491784">
10 <!ENTITY tidy-size "245 KB">
11 <!ENTITY tidy-buildsize "9.7 MB">
12 <!ENTITY tidy-time "0.25 SBU">
13
14 <!ENTITY tidy-docs-download "http://tidy.sourceforge.net/docs/tidy_docs.tgz">
15 <!ENTITY tidy-docs-md5sum "0fc0d02335cdeb945b02c6907850ba5d">
16 <!ENTITY tidy-docs-size "153 KB">
17]>
18
19<sect1 id="html-tidy" xreflabel="HTML Tidy-&tidy-version;">
20<sect1info>
21<othername>$LastChangedBy$</othername>
22<date>$Date$</date>
23</sect1info>
24<?dbhtml filename="tidy.html"?>
25<title>HTML Tidy-&tidy-version;</title>
26<indexterm zone="html-tidy">
27<primary sortas="a-HTML-Tidy">HTML Tidy</primary></indexterm>
28
29<sect2>
30<title>Introduction to <application>HTML Tidy</application></title>
31
32<para>The <application><acronym>HTML</acronym> Tidy</application> package
33contains a command line tool and libraries used to read
34<acronym>HTML</acronym>, <acronym>XHTML</acronym> and <acronym>XML</acronym>
35files and write cleaned up markup. It detects and corrects many common coding
36errors and strives to produce visually equivalent markup that is both
37<acronym>W3C</acronym> compliant and compatible with most browsers.</para>
38
39<sect3><title>Package information</title>
40<itemizedlist spacing="compact">
41<listitem><para>Download (HTTP):
42<ulink url="&tidy-download-http;"/></para></listitem>
43<listitem><para>Download (FTP):
44<ulink url="&tidy-download-ftp;"/></para></listitem>
45<listitem><para>Download MD5 sum: &tidy-md5sum;</para></listitem>
46<listitem><para>Download size: &tidy-size;</para></listitem>
47<listitem><para>Estimated disk space required:
48&tidy-buildsize;</para></listitem>
49<listitem><para>Estimated build time: &tidy-time;</para></listitem>
50</itemizedlist>
51
52<note><para><application><acronym>HTML</acronym> Tidy</application> is
53updated very frequently by its maintainers, and the source package listed
54above may not be available at the listed <acronym>URL</acronym> due to the
55release of a newer version. The most current source package can be always be
56downloaded from <ulink url="http://tidy.sourceforge.net/src/"/>. If this
57version is newer than the version listed above, the following instructions
58should work, but have not yet been tested by BLFS. If you'd rather download
59the version listed above, you can find it at
60<ulink url="http://tidy.sourceforge.net/src/old/"/>.</para></note>
61</sect3>
62
63<sect3><title>Additional downloads</title>
64<sect4><title>Documentation</title>
65<itemizedlist spacing="compact">
66<listitem><para>Documentation: <ulink url="&tidy-docs-download;"/></para>
67</listitem>
68<listitem><para>Download MD5 sum: &tidy-docs-md5sum;</para></listitem>
69<listitem><para>Download size: &tidy-docs-size;</para></listitem>
70</itemizedlist>
71</sect4>
72
73<sect4><title>Patches</title>
74<itemizedlist spacing="compact">
75<listitem><para>Required patch: <ulink
76url="&patch-root;/tidy-&tidy-version;-prevent_PRE_newlines-1.patch"/></para>
77</listitem>
78</itemizedlist>
79</sect4>
80</sect3>
81
82<sect3><title><application><acronym>HTML</acronym> Tidy</application>
83dependencies</title>
84<sect4><title>Optional</title>
85<para><ulink url="http://dmalloc.com/">Dmalloc</ulink></para>
86</sect4>
87</sect3>
88
89</sect2>
90
91<sect2>
92<title>Installation of <application><acronym>HTML</acronym>
93Tidy</application></title>
94
95<para>The <application><acronym>HTML</acronym> Tidy</application> documentation
96is contained in a separate tarball. Unpack both the source and docs tarballs
97before starting the build.</para>
98
99<para>Install <application><acronym>HTML</acronym> Tidy</application> by
100running the following commands:</para>
101
102<screen><userinput><command>patch -Np1 -i ../tidy-&tidy-version;-prevent_PRE_newlines-1.patch &amp;&amp;
103sh build/gnuauto/setup.sh &amp;&amp;
104./configure --prefix=/usr &amp;&amp;
105make</command></userinput></screen>
106
107<para>Now, as the root user:</para>
108
109<screen><userinput role='root'><command>make install &amp;&amp;
110install -v -m644 htmldoc/man_page.txt \
111 /usr/share/man/man1/tidy.1 &amp;&amp;
112install -v -d -m755 /usr/share/doc/tidy &amp;&amp;
113cp -v -R htmldoc /usr/share/doc/tidy</command></userinput></screen>
114
115</sect2>
116
117<sect2>
118<title>Command explanations</title>
119
120<para><command>sh build/gnuauto/setup.sh</command>: This command prepares the
121source tree for building using the <acronym>GNU</acronym> <quote>Auto</quote>
122tools.</para>
123
124</sect2>
125
126<sect2>
127<title>Configuring <application><acronym>HTML</acronym>
128Tidy</application></title>
129
130<sect3><title>Config files</title>
131<para>The absolute path of the file specified in
132<envar>$HTML_TIDY</envar>.</para>
133</sect3>
134
135<sect3><title>Configuration Information</title>
136
137<para>The default configuration options can be set in the file defined in
138<envar>$HTML_TIDY</envar>. Additional configuration options can be passed to
139<command>tidy</command> via command line parameters or the
140<parameter>-config &lt;file&gt;</parameter> parameter.</para>
141</sect3>
142
143</sect2>
144
145<sect2>
146<title>Contents</title>
147
148<segmentedlist>
149<segtitle>Installed Programs</segtitle>
150<segtitle>Installed Library</segtitle>
151<segtitle>Installed Directory</segtitle>
152<seglistitem>
153<seg>tab2space and tidy</seg>
154<seg>libtidy.[so,a]</seg>
155<seg>/usr/share/doc/tidy</seg>
156</seglistitem>
157</segmentedlist>
158
159<variablelist>
160<bridgehead renderas="sect3">Short Descriptions</bridgehead>
161<?dbfo list-presentation="list"?>
162
163<varlistentry id="tab2space">
164<term><command>tab2space</command></term>
165<listitem><para>is a utility to expand tabs and ensure consistent line
166endings.</para>
167<indexterm zone="html-tidy tab2space">
168<primary sortas="b-tab2space">tab2space</primary></indexterm>
169</listitem>
170</varlistentry>
171
172<varlistentry id="tidy">
173<term><command>tidy</command></term>
174<listitem><para>validates, corrects, and pretty-prints <acronym>HTML</acronym>
175files.</para>
176<indexterm zone="html-tidy tidy">
177<primary sortas="b-tidy">tidy</primary></indexterm>
178</listitem>
179</varlistentry>
180
181<varlistentry id="libtidy">
182<term><filename class='libraryfile'>libtidy.[so,a]</filename></term>
183<listitem><para>libraries provide the
184<application><acronym>HTML</acronym> Tidy</application> <acronym>API</acronym>
185functions to <command>tidy</command> and can also be called by other
186programs.</para>
187<indexterm zone="html-tidy libtidy">
188<primary sortas="c-libtidy">libtidy.[so,a]</primary></indexterm>
189</listitem>
190</varlistentry>
191</variablelist>
192
193</sect2>
194
195</sect1>
196
Note: See TracBrowser for help on using the repository browser.