OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: RE: DOCBOOK-APPS: No images in HTML Help!?


Hello Jirka, all,

Thank you for your reply.

The images do show if I open the html file directly so I guess the image
path is correct.

The directory structure is:

./images
./en/htmlhelp

So the paths look like ../../images if I want to reference the images from
the ./en/htmlhelp directory.

I will investigate further,

Simon.

BTW

The following two solutions do work.

Solution 1: use base name in html file and tell HTML Help compiler where the
file actually is:

<span class="inlinemediaobject">
<img src="71000.b.0.png">
</span>

[FILES]
../../images/screen/71000.b.0.png

Problem: have to adjust the XSL stylesheets and don't know how...

Solution 2: use the following directorystructure:

./en/htmlhelp/images
./en/htmlhelp

and reference the images by ./images intead of ../../images.

<span class="inlinemediaobject">
<img src="images/screen/71000.b.0.png">
</span>

Problem: there are certain images that are shared between languages and I
would like to have to maintain only one copy of them in ../../images instead
of copying them to all language dirs.

-----Oorspronkelijk bericht-----
Van: Jirka Kosek [mailto:jirka@kosek.cz]
Verzonden: zondag 5 mei 2002 22:59
Aan: Kraa de Simon
CC: 'docbook-apps@lists.oasis-open.org'
Onderwerp: Re: DOCBOOK-APPS: No images in HTML Help!?


Kraa de Simon wrote:

> The images do not show in the HTML Help .chm file...

> When processing the following XML fragment:
> 
>         <inlinemediaobject>
>                 <imageobject>
>                         <imagedata
> fileref="../../images/screen/71000.b.0.png"/>
>                 </imageobject>
>         </inlinemediaobject>
> 
> using htmlhelp/htmlhelp.xsl I get:
> 
>         <span class="inlinemediaobject">
>                 <img src="../../images/screen/71000.b.0.png">
>         </span>
> 
> And the following entry in htmlhelp.hhp: (htmlhelp.enumerate.images == 1)
> 
>         [FILES]
>         ../../images/screen/71000.b.0.png
> 
> What I would like to get is:
> 
>         <span class="inlinemediaobject">
>                 <img src="71000.b.0.png">
>         </span>

AFAIK HTML Help compiler should include these images in CHM (you even
don't need to use enumerate.images) if they can be found. Make sure that
paths in HTML files leads really to images. People can get easily
confused, when using many ../. You can test it by opening some .html
file produced by HTML Help in browser and see, whether image is loaded.
If not, correct your paths.

There could be another reason why it doesn't work -- HTML Help cann't
process images if they are in parent directory. In that case placing
images into subdirectory of you DocBook XML files is solution. 

			Jirka

-- 
-----------------------------------------------------------------
  Jirka Kosek  	                     
  e-mail: jirka@kosek.cz
  http://www.kosek.cz


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC