|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
CSS background image missing in CHMHello,
I'm using the 1.7.20 htmlhelp stylesheets to build a .CHM (HTML Help) file. Recently I added a background image via the separate CSS file: body { ... background: #fff url(images/bg-side.png) repeat-y; ... } Even though I have the htmlhelp.enumerate.images option turned on though, the background image is not included in the either the generated hhp file nor the chm file. I suspect the css file is not searched for references to graphics files. Has anyone found a way to work around this? Perhaps some method to give an additional list of graphics files that should be included? Thanks, Ken |
|
|
Re: CSS background image missing in CHM2009/9/30 Ken Morse <kenneth.morse@...>:
> Hello, > > I'm using the 1.7.20 htmlhelp stylesheets to build a .CHM (HTML Help) file. > Recently I added a background image via the separate CSS file: > > body { > ... > background: #fff url(images/bg-side.png) repeat-y; > ... > } > > Even though I have the htmlhelp.enumerate.images option turned on though, > the background image is not included in the either the generated hhp file > nor the chm file. I suspect the css file is not searched for references to > graphics files. Has anyone found a way to work around this? Perhaps some > method to give an additional list of graphics files that should be included? > > Thanks, > Ken > > Assuming that the hhp file is in the same directory as the images directory, then you can add ... images/bg-side.png to the [Files] section of the hhp file. You can do this via the hhw.exe or by editing the plain text hhp file. Richard. -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
Re: CSS background image missing in CHMWe could do that but the I believe the hhp file is rebuilt from scratch every time the stylesheet process is run; it would be better if there was some other way to add image files.
Ken
On Wed, Sep 30, 2009 at 2:44 PM, Richard Quadling <rquadling@...> wrote: Assuming that the hhp file is in the same directory as the images |
|
|
Re: CSS background image missing in CHMThis will require a customization. You could
supply the image filename(s) with a stylesheet parameter, and then customize the
templates that generate the list. In htmlhelp/htmlhelp-common.xsl there is
a template named 'hhp.main', and starting on this line it generates the image
list:
<xsl:if
test="$htmlhelp.enumerate.images">
You'll have to trace through the process and figure
out how to add your extra images to the list by customizing that
template.
|
|
|
Re: CSS background image missing in CHM2009/9/30 Bob Stayton <bobs@...>:
> This will require a customization. You could supply the image filename(s) > with a stylesheet parameter, and then customize the templates that generate > the list. In htmlhelp/htmlhelp-common.xsl there is a template named > 'hhp.main', and starting on this line it generates the image list: > > <xsl:if test="$htmlhelp.enumerate.images"> > > You'll have to trace through the process and figure out how to add your > extra images to the list by customizing that template. > > Bob Stayton > Sagehill Enterprises > bobs@... > > > > ----- Original Message ----- > From: Ken Morse > To: DocBook Apps > Sent: Wednesday, September 30, 2009 12:54 PM > Subject: Re: [docbook-apps] CSS background image missing in CHM > We could do that but the I believe the hhp file is rebuilt from scratch > every time the stylesheet process is run; it would be better if there was > some other way to add image files. > > Ken > > > On Wed, Sep 30, 2009 at 2:44 PM, Richard Quadling <rquadling@...> > wrote: > >> >> Assuming that the hhp file is in the same directory as the images >> directory, then you can add ... >> >> images/bg-side.png >> >> to the [Files] section of the hhp file. >> >> You can do this via the hhw.exe or by editing the plain text hhp file. >> >> Richard. >> >> -- >> ----- >> Richard Quadling >> "Standing on the shoulders of some very clever giants!" >> EE : http://www.experts-exchange.com/M_248814.html >> Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 >> ZOPA : http://uk.zopa.com/member/RQuadling > > A hack option could be to add something like ... <img style="display:none" src="image/bg-side.png" /> to a page. Messy. -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
Re: CSS background image missing in CHMJust to complete this thread, I ended up following Bob's advice of using a stylesheet parameter to supply the filename and then modified the hhp-main template to use the new parameter.
Thank you! Ken On Wed, Sep 30, 2009 at 4:15 PM, Bob Stayton <bobs@...> wrote:
|
| Free embeddable forum powered by Nabble | Forum Help |