Index


RISC World

LowerHTML

Martin Carradus

LowerHTML will examine the HTML script inside an HTML file and will convert all of it to lower case. This can be useful as it makes an HTML file easier to read and follow. It can also solve the problem of having "messy" HTML with tags being opened in upper case, for example as <B> but being closed in lower case, for example </b>. LowerHTML can also ensure that any tags you have opened are correctly closed, not closing tags properly can have very unpredictable results depending on the browser being used. In addition LowerHTML can ensure that all links and quoted strings are in lower case, which is very useful if your HTML file is going to be hosted on a Unix/Linux server. Under RISC OS and Windows a file can be referred to using either upper or lower case file names, for example Index, index and INDEX all point to the same file. However under Unix/Linux this is not the case and the names Index, index and INDEX would point to three different files. So keeping all filenames lower case makes a great deal of sense and can prevent sites "breaking" when they are uploaded.

Instructions

Find the LowerHTML program inside its archive in the software directory on this issue of RISC World and drag the Application to a suitable directory on your hard disc. Double click on the !LowerHTML icon to load it onto the icon bar.

A title banner appears when you first run of the Application in any one session on your computer. It can be immediately removed by clicking over it, but it only appears for about five seconds.

Double click on a HTML file or drag it to the bar icon to enter its file name into the main 'SetUp' panel slot. Alternatively clicking on the bar icon brings up the main 'SetUp' panel and the HTML file can be dragged to this panel, or the file name can be typed manually into the slot at the top of this panel.

Select options from the 'SetUp' panel and then click on the 'Run' icon. After a while a translated HTML Text file is offered for saving. The translated file has the same leaf name as the original, but with an upper case 'L' in front. The translated file then should duplicate the effect of the original HTML file, but with selected tags made lower case.

Additional Help is available from the bar icon menu, or by using the Acorn facility !Help, present in the 'Apps' directory. LowerHTML has now been updated in order to also check tag balance and report on tag match and mismatch. It should be noted that some tag terminators are only optional.

More programmers' tools and fractal programs can be obtained from www.martinkd.freeuk.com.

The Wimp Interface

This lists the icons in the main window and shows their functions:

Input                : Name of file to be edited
Description          : Supplies description of !LowerHTML
Verbose              : Diagnostics of process supplied
Help                 : Supplies Help Information
Cancel               : Return to previous options
Run                  : Run program with current options
Don't Lower Tag      : Stops conversion of HTML tags to lower case
Don't Change \ to /  : Stops conversion of \ char in tags to / char
Lower All Strings    : All quoted strings in tags are lowered
Lower String         : NAME    Quoted strings after NAME= are lowered
                       HREF    Quoted strings after HREF= are lowered
                       SRC     Quoted strings after  SRC= are lowered
Replace 'Newline'    : Convert to IBM format text file.
Verify & Report Tag  : Check and Report on tags matching or not.

Disclaimer and User licence agreement

Users of !LowerHTML must accept this disclaimer of warranty:

"!LowerHTML is supplied as is. The author disclaims all warranties, expressed or implied, including, without limitation, the warranties of merchantability and of fitness for any purpose. The author assumes no liability for damages, direct or consequential, which may result from the use of !LowerHTML.". !LowerHTML is a "free program" and is provided at no charge to the user for evaluation. Feel free to share it with your friends, but please do not give it away altered or as part of another system. Commercial users of !LowerHTML must register and pay for their copies of !LowerHTML within 30 days of first use or their license is withdrawn. Site-License arrangements may be made by contacting Martin Carradus. Anyone distributing !LowerHTML for any kind of remuneration must first contact Martin Carradus at the address shown in the help files for authorization.

Martin Carradus

 Index