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] | [List Home]


Subject: Re: [docbook-apps] Generating e-pub and html indexes


>  Locators like those in pdfs generated via FO are ideal.
 
Can you give an example of what those locators would look like in the context of HTML and ePub, which have no fixed page numbers?
 
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net

From: Pc Thoms
Sent: Thursday, July 18, 2013 5:00 PM
Subject: Re: [docbook-apps] Generating e-pub and html indexes

Thanks for the link:
http://docbook.sourceforge.net/release/xsl/current/doc/html/index.links.to.section.html

Changing the parameter to 0 links the <indexentry/> directly to the appropriate point in the text.
Can the generated index linked be changed to reflect the paragraph/line number, or something other than the chapter/section title.
Locators like those in pdfs generated via FO are ideal. 
I am aware that the index.prefer.titleabbrev can also be set to 1, or the default 0, but this is not desire-able in the documents at hand.



On Thu, Jul 18, 2013 at 6:51 PM, Pc Thoms <pcthoms@gmail.com> wrote:
Thanks Jirka
Now I know where to change a parameter.
I'll give that a go.



On Thu, Jul 18, 2013 at 12:46 PM, Jirka Kosek <jirka@kosek.cz> wrote:
On 18.7.2013 13:51, Pc Thoms wrote:

> However, rendering to e-pub and html it is not as specific, pointing to the
> beginning of a chapter/section.

As HTML doesn't use page numbers you need another anchor -- only
sensible anchor with a label is the closest section with the title.

> Is there a way to generate an index for e-pub and html that will generate
> an index like the PDF output?

Yes, just set the following parameter to 0:

http://docbook.sourceforge.net/release/xsl/current/doc/html/index.links.to.section.html

> Every <indexterm/> used is given a unique xml:id.

You don't even need to manually assign IDs for this, they can be
autogenerated.

--
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------





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