htmlimginserthook
htmlimginserthook
Function prototype:
hook=(oid,filename)
Synopsis
Use with:
add_hook(hookname, func)
remove_hook(hookname, func)
where hookname is htmlimginserthook.
Arbortext Editor calls this hook when it encounters a graphic or equation while converting a document to HTML using the
htmldoc function. The hook passes the graphic or equation's OID and file name to the associated function
func.
|
Use this hook to convert graphics to file formats that are supported by common Web browsers, such as GIF, JPEG, and PNG.
|
Arguments
• oid is the object identifier (OID) of the graphic or equation.
• filename is the complete path and file name of the graphic or equation.
The hook function should:
◦ Verify that the graphic or equation has an appropriate file format extension.
◦ Verify that the file name being returned has not been used in the document.
◦ Prefix a relative or absolute path to the graphic or equation's file name.
The hook function should return a string that Arbortext Editor will assign to the SRC attribute for the respective IMG element in the HTML document.