Thread: EPUB output
View Single Post
Old 10-01-2008, 11:12 PM   #148
=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 kovidgoyal View Post
The only way you can have a hierarchical TOC from a single HTML file would be to create it manually in an NCX file. I can then add an option --from-ncx which will load the TOC from the NCX file. NCX is just a simple XML file that defines a TOC. For examples look at the contents of the EPUB files created by html2epub.

Note that currently if you create an OPF file that has a reference to a TOC and pass that to html2epub, html2epub will use the TOC.
I like the NCX solution. How hard would it be to have a --page-break option (option 1)?

=X=
=X= is offline   Reply With Quote