Thread: EPUB output
View Single Post
Old 10-02-2008, 10:18 AM   #150
=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
How about a --level1-toc and --level2-toc options? Each taking an XPath expression. This will allow you to easily create a 2 level hierarchical toc. The idea being that every level2 item will be added to the most recent previous level1 item. For more complex TOC there will be a --use-ncx option.
That would be Awesome! That is exactly what I was hoping for.

Okay level2 is straight forward. But I see level1 having a special case.
1) If no substile is found work as it does today and jump to the book location
2) If subtitle is found create a sub menu and insert itself in the ordinal location 0 and all following subtitles at ordinal 1+

=X=
=X= is offline   Reply With Quote