Thread: EPUB output
View Single Post
Old 10-01-2008, 07:16 PM   #146
=X=
Wizard
=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.
 
=X='s Avatar
 
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
Quote:
Originally Posted by Hadrien View Post
In this case it's different. He needs a multi-level TOC for a single flow, not multiple flow.
Exactly

Quote:
Originally Posted by kovidgoyal View Post
I guess I can add a --toc-from option that if specified will be used to populat the TOC, in which case the chapters will no longer be added to the TOC. Does that satisfy your use case? If so open a ticket for it.
Hadrien solution below is the best solution, if that is too complicated for the design here is what would work. It's what he does for the FeedBooks books and those TOC flow very nice.

If that is too complicated this is really all I need

There are 2 solutions:
1) Evertying works as is today except you add a --page-break=(Reg Exp | XPath)

This way on creation of an ePUB the user defines when the page break occurs not the chapter detection.


2) Add a flag --include-in-TOC have it use the same syntax as --chapter (ie regular expressions and XPath)

The --chapter switch works as is, but the --include-in-TOC just inserts the link into the TOC w/o a page break.
=X= is offline   Reply With Quote