OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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


Subject: Re: [docbook] Fixed layout page numbers in html and epub output


It's possible. The trick is to capture the pagination information and apply it to the epub output. Each of the XSL-FO formatters has an intermediate file format that indicates page boundaries. FOP has two, described here:

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

You would have to write an XSLT to extract the page number information from the intermediate file. You could use the olink database to store the page number information associated with id values. You would use the @page attribute on each div or obj element in the olink data, as desribed here:

http://www.sagehill.net/docbookxsl/OlinkPrintOutput.html#OlinkPageRefs

Then you could customize the epub stylesheet to read and output this page number data according to the guidelines. It would be challenging to get the details right, but it seems it could be done.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net

On 3/19/2014 3:44 AM, Peter Fleck wrote:
Hi all,

Is there any way to implement page numbers in the HTML or ePub outputs?
I mean specifically if there is already a printed book equivalent or PDF created
from the Docbook file?

IDPF offer advise
http://www.idpf.org/accessibility/guidelines/content/xhtml/pagenum.php but
except for manually encoding these post-conversion is there a way to do it in
the Docbook markup?

Many thanks,

Peter
--------------------------------------------------------------------- To
unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org For additional
commands, e-mail: docbook-help@lists.oasis-open.org



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