docbook-apps

  • 1.  Re: [docbook-apps] Removing HTML TOC from epub

    Posted 09-22-2011 19:49
    Hi Chris,
    Regarrding your first question, you can set the stylesheet param named 'generate.toc' to empty to turn off the TOC chunk. You will still get the NCX toc.

    I noticed the same issue with customizing the epub 2 stylesheet. If your customization consists only of parameter settings, then importing it should work. However, it is a chunking stylesheet, so any template changes require paying careful attention to import precedence for them to work. Generally that requires two separate customization files, but the epub/docbook.xsl needs to be rearranged for that to work. Based on the experience I gained from creating the epub 3 stylesheet, I plan to rearrange the files in the epub directory for EPUB 2 output to make it easier to customize.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net





  • 2.  Re: [docbook-apps] Removing HTML TOC from epub

    Posted 09-23-2011 06:30
    On 09/22/2011 08:49 PM, Bob Stayton wrote:
    > Hi Chris,
    > Regarrding your first question, you can set the stylesheet param named
    > 'generate.toc' to empty to turn off the TOC chunk. You will still get
    > the NCX toc.
    > I noticed the same issue with customizing the epub 2 stylesheet. If
    > your customization consists only of parameter settings, then importing
    > it should work. However, it is a chunking stylesheet, so any template
    > changes require paying careful attention to import precedence for them
    > to work. Generally that requires two separate customization files,
    > but the epub/docbook.xsl needs to be rearranged for that to work.
    > Based on the experience I gained from creating the epub 3 stylesheet,
    > I plan to rearrange the files in the epub directory for EPUB 2 output
    > to make it easier to customize.
    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net <mailto:bobs@sagehill.net>

    Since the toc is never needed (the ncx supplants a toc), would it make sense
    to delete the call to generate it such that annoyance is removed?

    regards DaveP


    >


  • 3.  Re: [docbook-apps] Removing HTML TOC from epub

    Posted 09-23-2011 14:01

    On 23 Sep 2011, at 07:30, davep wrote:

    > On 09/22/2011 08:49 PM, Bob Stayton wrote:
    >> Hi Chris,
    >> Regarrding your first question, you can set the stylesheet param named 'generate.toc' to empty to turn off the TOC chunk. You will still get the NCX toc.
    >> I noticed the same issue with customizing the epub 2 stylesheet. If your customization consists only of parameter settings, then importing it should work. However, it is a chunking stylesheet, so any template changes require paying careful attention to import precedence for them to work. Generally that requires two separate customization files, but the epub/docbook.xsl needs to be rearranged for that to work. Based on the experience I gained from creating the epub 3 stylesheet, I plan to rearrange the files in the epub directory for EPUB 2 output to make it easier to customize.
    >> Bob Stayton
    >> Sagehill Enterprises
    >> bobs@sagehill.net <mailto:bobs@sagehill.net>
    >
    > Since the toc is never needed (the ncx supplants a toc), would it make sense
    > to delete the call to generate it such that annoyance is removed?
    >

    It might be worth pointing out that if you are planning to convert this to Kindle, the HTML TOC is required.

    nic

    --

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





  • 4.  Re: [docbook-apps] Removing HTML TOC from epub

    Posted 09-23-2011 16:48
    Hi,

    On Thu, Sep 22, 2011 at 11:30 PM, davep <davep@dpawson.co.uk> wrote:
    > Since the toc is never needed (the ncx supplants a toc), would it make sense
    > to delete the call to generate it such that annoyance is removed?


    Many publishers deliberately include an HTML TOC in their EPUB
    documents. An HTML TOC can offer more nuanced layout and text than an
    NCX TOC and is appropriate for some titles.


    Regards,
    Keith



  • 5.  Re: [docbook-apps] Removing HTML TOC from epub

    Posted 09-27-2011 09:17


    On 22 Sep, 2011,at 08:49 PM, Bob Stayton <bobs@sagehill.net> wrote:

    > ?
    > Hi Chris,
    > Regarrding your first question, you can set the stylesheet param named 'generate.toc' to empty to turn off the TOC chunk. You will still get the NCX toc.

    I just had a chance to do that, and it worked! Thanks :-)?

    > I noticed the same issue with customizing the epub 2 stylesheet. If your customization consists only of parameter settings, then importing it should work. However, it is a chunking stylesheet, so any template changes require paying careful attention to import precedence for them to work. Generally that requires two separate customization files, but the epub/docbook.xsl needs to be rearranged for that to work. Based on the experience I gained from creating the epub 3 stylesheet, I plan to rearrange the files in the epub directory for EPUB 2 output to make it easier to customize.

    Are the epub3 stylesheets checked in anywhere, and should we be using them instead of the epub2 ones?

    Chris