[tidy] Tidy

- Clean up your Web pages with HTML TIDY -

Freeware protected by © 1998-2000 World Wide Web Consortium -

Ported to HPe3000 Platform by Andreas Schmidt


What is Tidy ?

Dave Raggett's HTML TIDY is a free utility for fixing mistakes in HTML pages automatically and tidy up sloppy editing into nicely layed out markup.
The official homepage of Tidy will tell you more about this in great detail. Just follow [link] this link.

For MPE/iX such tools may become more important in the future HPe3000 world. So I ported this freeware to MPE/iX and named it Tidy/iX in accordance to the other ported S/W like Samba/iX or Apache/iX - for YOUR pleasure!

Download

The compiled version of Tidy/iX, version 4th August 2000, containing the ported programs tidy (plus man page) and tab2space for HPe3000: [tar] tidy04aug00.tar.Z (ca. 273 KB) is available from here.

Installation

The installation will move Tidy/iX to /usr/local/bin.
The recommended user is MANAGER.SYS.
  1. Download the compressed tar file to your HPe3000 in binary format.
  2. Invoke the Posix shell (SH.HPBIN.SYS).
  3. Extract the files using
    tar zxvf tidy04aug00.tar.Z
  4. Change the security:
    chmod 755 /usr/local/bin/tidy
    chmod 755 /usr/local/bin/tab2space
    chmod 644 /usr/local/man/man1/tidy.1
  5. Check the result using
    ls -als /usr/local/bin/* (or adequate).
    Change the file's ownership if wanted.
  6. READY! You may leave the shell now.


Example

You can use Tidy/iX out of the shell or directly out of MPE. A simple run of Tidy/iX could look alike (I used a previous version of this page!):
/usr/local/bin/tidy "-q -wrap 80 /APACHE/PUB/htdocs/hillschmidt/gbr/tidy.htm"
line 13 column 1 - Warning: missing </font> before <center>
line 13 column 1 - Warning: trimming empty <font>
line 14 column 1 - Warning: inserting implicit <font>
line 14 column 1 - Warning: missing </font> before <h1>
line 14 column 1 - Warning: trimming empty <font>
line 14 column 5 - Warning: inserting implicit <font>
line 15 column 5 - Warning: inserting implicit <font>
line 16 column 5 - Warning: inserting implicit <font>
line 17 column 5 - Warning: inserting implicit <font>
line 20 column 5 - Warning: inserting implicit <font>
line 21 column 4 - Warning: inserting implicit <font>
line 26 column 4 - Warning: inserting implicit <font>
line 30 column 1 - Warning: inserting implicit <font>
line 30 column 1 - Warning: missing </font> before <h3>
line 30 column 1 - Warning: trimming empty <font>
line 30 column 1 - Warning: trimming empty <p>
line 30 column 5 - Warning: inserting implicit <font>
line 31 column 1 - Warning: inserting implicit <font>
line 34 column 1 - Warning: replacing element </p> by <br>
line 35 column 2 - Warning: missing </font> before <p>
line 36 column 1 - Warning: inserting implicit <font>
line 36 column 1 - Warning: missing </font> before <h3>
line 36 column 1 - Warning: trimming empty <font>
line 36 column 1 - Warning: trimming empty <p>
line 36 column 5 - Warning: inserting implicit <font>
line 37 column 1 - Warning: inserting implicit <font>
line 39 column 2 - Warning: missing </font> before <ol>
line 40 column 7 - Warning: inserting implicit <font>
line 41 column 4 - Warning: missing </font> before <li>
line 41 column 7 - Warning: inserting implicit <font>
line 42 column 4 - Warning: missing </font> before <li>
line 42 column 7 - Warning: inserting implicit <font>
line 43 column 4 - Warning: missing </font> before <li>
line 43 column 7 - Warning: inserting implicit <font>
line 44 column 4 - Warning: missing </font> before <li>
line 44 column 7 - Warning: inserting implicit <font>
line 45 column 4 - Warning: missing </font> before <li>
line 45 column 7 - Warning: inserting implicit <font>
line 47 column 1 - Warning: replacing element </p> by <br>
line 47 column 1 - Warning: inserting implicit <br>
line 48 column 1 - Warning: inserting implicit <font>
line 48 column 2 - Warning: missing </font> before <p>
line 49 column 1 - Warning: inserting implicit <font>
line 49 column 1 - Warning: missing </font> before <h3>
line 49 column 1 - Warning: trimming empty <font>
line 49 column 1 - Warning: trimming empty <p>
line 49 column 5 - Warning: inserting implicit <font>
line 50 column 1 - Warning: inserting implicit <font>
line 51 column 2 - Warning: missing </font> before <pre>
line 54 column 1 - Warning: replacing element </p> by <br>
line 54 column 1 - Warning: inserting implicit <br>
line 54 column 5 - Warning: inserting implicit <font>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org">
<title>Tidy on MPE/iX</title>
<meta name="robots" content="index,follow">
<meta name="Revisit" content="After 60 days">
<meta name="Description" lang="en" content="Tidy on HP3000 with MPE/iX">
<meta name="Keywords" lang="en" content=
"Tidy, HP3000, MPE, Data Display Engine, Graphics">
<meta name="Author" content="Andreas Schmidt">
<meta name="Creation_Date" content="May 28, 2000 12:00:00">
</head>
<body bgcolor="#c0c0c0" background="../gif/grid.gif">
<center>
<h1><font face="Arial, Helvetica"><img src="../gif/tidy.gif" alt=
"[tidy]"> Tidy</font></h1>

<h2><font face="Arial, Helvetica">- Clean up your Web pages with HTML TIDY
-</font></h2>

<h4><font face="Arial, Helvetica">Freeware protected by © 1998-2000 <a
href="http://www.w3.org" target="_blank">World Wide Web Consortium</a>
-</font></h4>

<h3><font face="Arial, Helvetica">Ported to HPe3000 Platform by Andreas
Schmidt</font></h3>
</center>

<hr>
<h3><font face="Arial, Helvetica">What is Tidy ?</font></h3>

<p><font face="Arial, Helvetica">Dave Raggett's HTML TIDY is a free utility for
fixing mistakes in HTML pages automatically and tidy up sloppy editing into
nicely layed out markup.<br>
The official homepage of Tidy will tell you more about this in great detail.
Just follow <a href="http://www.w3.org/People/Raggett/tidy/" target=
"_blank"><img src="../gif/link.gif" alt="[link]" border="0"> this
link</a>.</font></p>

<p><font face="Arial, Helvetica">For MPE/iX such tools may become more
important in the future HPe3000 world. So I ported this freeware to MPE/iX and
named it Tidy/iX in accordance to the other ported S/W like Samba/iX or
Apache/iX - for YOUR pleasure!</font></p>

<h3><font face="Arial, Helvetica">Download</font></h3>

<font face="Arial, Helvetica">The compiled version of Tidy/iX, version <b>4th
August 2000</b>, containing the ported programs <b>tidy</b> (plus <b>man
page</b>) and <b>tab2space</b> for HPe3000: <a href=
"../zip/tidy04aug00.tar.Z"><img src="../gif/tar.gif" alt="[tar]" border=
"0"> tidy04aug00.tar.Z</a> (ca. 273 KB) is available from here.<br>
</font>
<h3><font face="Arial, Helvetica">Installation</font></h3>

<font face="Arial, Helvetica">The installation will move Tidy/iX to
/usr/local/bin.<br>
The recommended user is MANAGER.SYS.</font>
<ol>
<li><font face="Arial, Helvetica">Download the compressed tar file to your
HPe3000 in binary format.</font></li>

<li><font face="Arial, Helvetica">Invoke the Posix shell
(SH.HPBIN.SYS).</font></li>

<li><font face="Arial, Helvetica">Extract the files using<br>
 tar zxvf tidy04aug00.tar.Z</font></li>

<li><font face="Arial, Helvetica">Change the security:<br>
chmod 755 /usr/local/bin/tidy<br>
chmod 755 /usr/local/bin/tab2space<br>
chmod 644 /usr/local/man/man1/tidy.1</font></li>

<li><font face="Arial, Helvetica">Check the result using<br>
ls -als /usr/local/bin/* (or adequate).<br>
Change the file's ownership if wanted.</font></li>

<li><font face="Arial, Helvetica">READY! You may leave the shell
now.</font></li>
</ol>

<br>
<br>
 <font face="Arial, Helvetica"></font>
<h3><font face="Arial, Helvetica">Example</font></h3>

<font face="Arial, Helvetica">You can use Tidy/iX out of the shell or out of
MPE directly. A simple run of Tidy/iX could look alike (I used this
page!):</font>
<pre>
<font face="Arial, Helvetica"><tt>
</tt></font>
</pre>

<br>
<br>
 <font face="Arial, Helvetica"></font>

<hr>
<a href=
"javascript:alert('File: ' + document.URL + '\nLast updated:' + document.lastMod
ified)"
 onmouseover="window.status='source info';return true"><img src=
"../gif/ball.red.gif" alt="[ball]" border="0"></a> © Andreas Schmidt
</body>
</html>

You are recommended to use CSS to specify the font and
properties such as its size and color. This will reduce
the size of HTML files and make them easier maintain
compared with using <FONT> elements.

HTML & CSS specifications are available from http://www.w3.org/
To learn more about Tidy see http://www.w3.org/People/Raggett/tidy/
Please send bug reports to Dave Raggett care of <html-tidy@w3.org>
Lobby your company to join W3C, see http://www.w3.org/Consortium


To modify the original file in place instead of showing the recommended HTML code on screen use the -m flag:
/usr/local/bin/tidy "-q -wrap 80 -m /APACHE/PUB/htdocs/hillschmidt/gbr/tidy.htm"

The final HTML code will look as suggested above!

Benefit for HPe3000

Why this port ?
As long as you develop your MPE HTML files on a PC using a Web editor like NetFusion or a simple text editor like NotePad or (my favourite) PFE32, and download the files via FTP to your HPe3000, you may already have such a tool on your PC.
Some PC editors also enable the usage of outside DLLs, e.g. [link] Ulli Meybohm's HTML Editor Phase 52 to name a German one ;-) so that a PC-based Tidy may already be present.

But if you edit the HTML files directly on your HPe3000 using vi or Qedit, you do not have such an utility so far ... and so I thought it might be a good idea to port this S/W to MPE/iX.
Remark: HP's Lars Appel already suggested that I got hit by the porting fever ;-)
Nevertheless, Tidy/iX is there, I use it, and you may want do the same ... sooner or later ...

Feedback

You're welcomed to send your feedback! Just use this link: [link] mailto:andreas@hillschmidt.de or the [link]  Feedback form. Thanks!

last changed: 29.07.2002
© 2002 Andreas Schmidt