We want to automatically convert an entry like
EXAMPLE <<<A HREF="AU/jam1.au">jam1</A>>>
<A HREF="AU/jam1.au"><IMG SRC="GIF/jam1.gif" ALT="[GIF]"></A>
has to be added after the example to display the graphics and allow audio replay if the GIF file is clicked on.
We also have to save the name of the GIF file for the script which helps in creating the GIF files.
sed -e ascii2html.sed
Basically, you have to load all files into xwaves and dump each screen into a GIF file. createGIF.sh helps in doing this. However, this is only an example, because you might not have the programs. I could put up binaries for HP-UX on request.
createGIF.sh & examples
The (mostly) ESPS files are converted to mulaw Sun format files.
It is advantageous to copy the whole thing onto a local disk. For UNIX, I created a compressed tar file.
gtar zcvf ToBI.distribute/ToBI.tar.gz ToBI
For Mac, I created a ToBI.sit.hqx file as follows:
With fetch, I transferred the whole directory onto a Mac. I then encoded it with StuffIt Lite into a file ToBI.sit. I then transferred it back with fetch onto our UNIX machine (using binhex and changing the name to ToBI.sit.hqx).
For example, I put it onto my Mac Powerbook and access is now reasonably fast.
If you are a provider site, i.e. if you want to further distribute the compressed files (and if you use CERN httpd), you should add the following two lines to the configuration file, so that this file can be directly extracted.
AddType .hqx application/mac-binhex40 binary 1.0 AddType .sit application/x-stuffit binary 1.0
This is only important for providers.