Tex4ht outputs a script file (`.lg') describing how the dvi file (extension `.idv') of pictures should be processed, the CSS instructions to be included for the file, and user-initiated requests from the operating system. In the default setting, the script file holds abstract commands similar to the following ones.
An abstract command of this form requests that the i'th page in the dvi file will be translated into a target file whose name is provided.
This abstract command is a identifies where the requests for pictorial characters start.
A manual brute-force execution of the abstract commands can be a tedious job for large number of pictures. The t4ht is in essence an interpreter for these abstract commands.
Another possible approach for automating the process is to request lg scripts in the form of shell scripts or batch files.
Alternatives to `--- needs --- source.idv[i] ==> target.gif ---'
The default setting is made with a request of the form `--- needs --- %%1.idv[%%2] ==> %%3.gif ---', where the parameters %%1, %%2, and %%3 respectively represent the name of the source file without its extension, a page number, and a name of the target file. Alternative patterns to these abstract commands can be requested in the following locations, with the order reflecting on the priority given to the requests.
Alternatives to `--- characters ---'
Substitutions for this abstract command can be requested in the following locations.