... Inf-HTML v0.8b ...


Inf-HTML is a package of programs written by Peter Childs (that's me) to allow people to place the information contained within Os/2 Inf/Hlp files on the WWW (World Wide Web).

Inf-HTML is still in beta testing. I only have used Inf-HTML during it's development for limited periods on a limited set of files. Due to this there is a probability of bugs (hopefully minor). If you find something that is broken (that shouldn't be) drop me a line with *lots* of details. Preferably enough info to be able to reproduce the fault.

What is it?

The Inf-HTML "package" consists of three executables and assorted support files.

INF-HTML.EXE
is a executable that is called by a WWW server (such as the os2httpd port by Frankie Fan) with parameters containing information about a Os/2 Inf or Hlp file. It then returns the requested information in HTML format. This allows direct access to the info in Os/2 Inf/Hlp files in a "on request" conversion method.
INF-FILE.EXE
is new to the Inf-HTML package (from version 0.7 onward) and uses the same "engine" code to basically convert a Os/2 Inf or Hlp file to a set of Html files. These files can then be used independently of any executables etc. (and therefore platform independent)
DEBG.EXE
was developed primarily by me as an extension to INF-HTML.EXE to allow the display of large amounts of internal info. This is to help "see" where any problems occur. If you are interested in the file format of Inf or Hlp files, or want to know more how Inf-HTML works, try it out.

Who would want this?

Well I did... Anyone who runs a WWW server on Os/2 and wants to add links to information within Os/2 Inf or Hlp files. I wanted this capability so I could provide access through the WWW to files in Inf format. These include

What can it do, What can't it do?

Good question... My initial idea was to allow access to the information within Inf files and not worry too much about details... but I am trying to implement as much of the INF specification as possible so Inf files are displayed properly... All the file format information was taken from version 2 of a doc on IPF files initially written by Carl Hauser, and updated by Marcus Groeber. This file is on the Hobbes site.

Any really complex stuff out of Inf/Hlp files isn't going to work. There won't be any support for inline graphics, automatic multilayer windows, links to other files etc... I have implemented style support (ie normal, bold, italic, etc), interdocument links, but no colour support due to the limitations of HTML (and my knowledge of it!).

Read this (kludges)

Margin support
Inf files want to be able to control the left margin and I don't know an acceptable way to do this with HTML... tell me if you do. So what I do currently is insert a line break before 75 characters, and then insert so many blank spaces. This is a KLUDGE. As of version 0.8 all articles are displayed in <pre> mode (or monospaced) as using <pre> to insert spaces at the begining of a line didn't work with all browsers (especially lynx). If your WWW browser isn't at least 75 colums wide it will look pretty bad.
Colour support
This isn't implemented 'cause I don't know how to change colours in HTML. Any suggestions welcomed.
Links to external help files, db's etc
I don't know the decoding for this so although the links are visible they won't take you anyware. I don't plan to support this.
Certain inline links
An example of this is the EXAMPLES buttons found in the Os/2 Command Reference Inf file. This is not implemented but should be as soon as I figure some stuff out. This is fixed in 0.5b.
Graphics
Not supported at the moment except via kludge. If a graphic is found in an article then inf-html will try to load a gif with specification
/inf-html/pics/filename.inf.X.Y.gif
where X and Y should be specific to each picture in a file. Using this you could create (or capture) graphics that would be displayed.
Obviously this option is only avalible for HPFS partitions, or you might be able to kludge it with FAT using the TVFS (Toronto Virtual File System).
To determine the X and Y for each picture use the Display HTML option found on most WWW viewers.

Other important stuff...

The final say..

I wrote it and it's mine (naaaa..) but anyone can use it if they want. If it breaks you own both bits. If it breaks your computer you still own all the bits and its not my fault. Don't use it on a mission critical system 'cause I don't want some hospital computer dying (and patients etc) due to my program.

At this stage I are not releasing the source because it's still in beta testing and undergoing change. I spent a stack of time getting the engine to work and can't make it too easy for competition. I will e-mail the "structs.c" file containing most of the inf/hlp file structures to anyone who begs. You are better off getting the docs from hobbes thou!

Use and enjoy! If you want something fixed drop me a line and let me know. I'll make any easy changes if I think they are good... Version 0.8b was basically a response to mail about display problems. If you know a better way to do something that I've hacked then tell me and I'll steal your idea (thanks!).


Later, Peter Childs

INTERNET: pjchilds@apanix.apana.org.au

FIDONET : Peter Childs 3:800/352 (South Australian Country Club)