docbook-apps

  • 1.  Generating a page list for epub

    Posted 02-10-2015 18:36
    Has anyone on the list tackled the challenge of generating a page list for ePub output?

    A page list is a mapping of print page numbers to locations in the ePub.

    I don't see any easy way to do it; I suspect it would take some kind of parsing of a PDF version of the book, and post-processing of the ePub based on that parsing.

    But, before I decide whether it's worth even trying, I thought I'd ask the group whether anyone has thought about approaches to the problem.

    Best regards,
    Dick Hamilton
    -------
    XML Press
    XML for Technical Communicators
    http://xmlpress.net
    hamilton@xmlpress.net






  • 2.  Re: [docbook-apps] Generating a page list for epub

    Posted 02-10-2015 21:51
    On 2/10/15 1:36 PM, Richard Hamilton wrote:
    > Has anyone on the list tackled the challenge of generating a page list for ePub output?
    >
    > A page list is a mapping of print page numbers to locations in the ePub.

    Doesn't the page count depend on the size of the rendering device?




  • 3.  Re: [docbook-apps] Generating a page list for epub

    Posted 02-10-2015 22:16
    Hi Dick,
    I have not actually done it, but I think you should look at using the
    intermediate file format that most XSL-FO processors can output. For
    example, FOP has:

    https://xmlgraphics.apache.org/fop/1.1/intermediate.html

    That format is an XML rendering of the area tree as pages. It contains
    page numbers and ids, so I think you could use it to post process the
    epub by matching up ids and inserting page numbers.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net

    On 2/10/2015 10:36 AM, Richard Hamilton wrote:
    > Has anyone on the list tackled the challenge of generating a page list for ePub output?
    >
    > A page list is a mapping of print page numbers to locations in the ePub.
    >
    > I don't see any easy way to do it; I suspect it would take some kind of parsing of a PDF version of the book, and post-processing of the ePub based on that parsing.
    >
    > But, before I decide whether it's worth even trying, I thought I'd ask the group whether anyone has thought about approaches to the problem.
    >
    > Best regards,
    > Dick Hamilton
    > -------
    > XML Press
    > XML for Technical Communicators
    > http://xmlpress.net
    > hamilton@xmlpress.net
    >
    >
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >
    >