Re: Favicon in webhelp output

Hussein Shafie <[email protected]> Wed, 27 Nov 2024 10:51:40 +0100
Newsgroups gmane.editors.xxe.general
Message-ID <[email protected]>
Hello,

Bård wrote:
> Hi, I’m been trying to figure out how to add a “favicon” to the webhelp 
> output from XMLmind with docbook 5.1 assembly as source.
> 
> The only workaround I found was to add a 16x16 favicon.ico to the root 
> folder of the IIS site we use, then the browsers pick up the icon and 
> displays it in the tabs. But we would like to have a larger, more 
> scalable png file since high resolution screens and modern browsers can 
> display favicons that have higher resolution.
> 
> Is there a way to achieve this? The “header/footer” system only takes 
> the “body” of the html file as input, so it cannot be used. There should 
> be a way to insert an html line in the <head> section of the html output 
> so that something like this can be added: <link rel="icon" type="image/ 
> png" href="/images/favicon.png"/>

For now, the only way to achieve this is to modify by hand the HTML 
template used by XMLmind Web Help Compiler (whc, 
http://www.xmlmind.com/ditac/whc.shtml):

XXE_install_dir/addon/config/common/whc/whc_template/
   classic.html
   corporate.html
   simple.html

However we have nothing against making this feature a whc option. 
Something like:

-p favicon file_path_or_URL

(The favicon file would then be copied somewhere in  output_directory/_wh/).

No promises but we'll see what we can do.

--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support