Thanks Nic - you are right that this happens in several places. I have made 
some progress - I can turn off the generation of the "cover.html" chunk by 
customising   <xsl:template name="cover">.

I can also remove the itemref "cover" from the OPF spine by customising 
<xsl:template name="opf.spine">, and remove reference "cover.html" from OPF 
guide by customising <xsl:template name="opf.guide">.

However, I cannot remove <meta name="cover" content="coverimage" /> from OPF 
metadata, nor can I remove the items "cover" and "coverimage" from OPF 
manifest - customising <xsl:template name="opf"> theoretically should work, 
but customising to select or deselect <xsl:element 
namespace="http://www.idpf.org/2007/opf"; name="meta"> doesn't do anything in 
the content.opf. Perhaps this is a bug?
Cheers,

Dave Gardiner





-----Original Message-----

From: Nic Gibson <[email protected]>

To: redlettucemail <[email protected]>

Date: Sun, 24 Jul 2011 11:22:50 +0100

Subject: Re: [docbook-apps] Turning off generation of epub cover



Hi Dave

There are several places as far as I can see.  I think there's a good 
argument for refactoring the code here. There isn't a single parameter that 
allows the generation of the cover to be disabled as far as I can see. I'm 
looking to see if any of the code I wrote for a similar purpose can be 
reused. Can it wait until a weekday? I'm not working on EPUB creation again 
until Tuesday.

nic

On 24 Jul 2011, at 08:03, redlettucemail wrote:

I've thought a 
bit more about this. Is there one or more pieces of code in the epub 
docbook.xsl that controls whether a XHTML chunk is created? What I'd like is 

to add a parameter that gives users the choice of turning off a front cover. 

If I can find the code that kicks off the writing of a 'cover' chunk, I can 
customise a param to either select or ignore that piece of code. Any 
suggestions would be really helpful.
Thanks,


Dave Gardiner




-----Original Message-----

From: "redlettucemail" <[email protected] 
[mailto:[email protected]]>

To: [email protected] 
[mailto:[email protected]]

Date: Sat, 23 Jul 2011 00:47:00 +1000

Subject: [docbook-apps] Turning off generation of epub cover





Is there an easy 
way to turn off the generation of a front cover? I have set up a DB 1.76 NS 
customisation that always generates a "cover.html". I've tried various 
options in the epub titlepage (where I have a template 
name="book.titlepage.recto" similar to the FO titlepage template) by adding 
a param value that lets a user select the cover on or off, but I'm lost.
What I'd like is to write in an option that allows: no 
"cover.html" to be generated; and exclude the associated cover image info 
from toc.ncx and content.opf. I can't follow the logic of covers in 
docbook.xsl. Any ideas please?
Thanks

Dave Gardiner

Nic Gibson
Corbas Consulting
Digital Publishing Consultancy and Training
http://www.corbas.co.uk [http://www.corbas.co.uk/], +44 (0)7718 906817

Reply via email to