University of Botswana History Department

Download HTI HTML indexer

History Home Page   |   Site Index   |   Main download page

To download files, right-click on the link. Then select "Save target as" (IE) or "Save Link as" (Netscape), and save the file to disk.


Thuto.org software

Some small programs of our own. They are not at all sophisticated but they do things for which we couldn't find any obvious existing free program, so you may possibly find them of interest. The executable downloads run on Windows. Source code is available on request.

These programs are free software and may be used, copied or modified without restriction. However note that the software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors, distributors, or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

"Hti"

This is a small command-line utility to create index pages for web-sites. It is the program used to create index pages on this site including the Site Index page - have a look at that page and you will see what the HTI program does. It was written in ANSI C.

HTI scans all HTML files in either the current directory or (using the -s option) the current directory and all its subdirectories. It produces an HTML file which lists all these files, sorted by directory. For each file, it gives the title (as the link to that page), the description found in the <meta name="description"...> element (if any) and the headings (H1 to H6) in the file. The format can be altered in a number of ways with an HTI.INI file and various command-line options; see the file htihelp.txt (included in the download). A small .BAT file can be written to re-use these options every time you re-index - in our case the entire "ubh" site is indexed as the "Site Index" h-index.htm with a single command.

Download hti (as zip file) (16 kB) (ZIP includes help file)

"Pich"

This is a small command-line utility for use with image files. It creates an HTML page which includes all the images (JPEG, GIF and PNG files) in the current directory (or, using a -s option, in the current directory and subdirectories). This is useful if you have a lot of image files - rather than opening them one by one, you can create a page and then just scroll through it to see them all.

The index.html page for the "images" directory was created using this program.

Download pich (as zip file) (7 kB)


Back to top

Copyright © 2003 University of Botswana History Department
Last updated 31 March 2004