Thread: Editing toc
View Single Post
Old 10-12-2012, 08:22 AM   #2
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Yes you could have just edited the toc.ncx file. If you look closely (try it with a new "test" page book, containing only an h1 and an h2) you will see there is some fairly simple nesting of the <navpoint> elements. Just a case of "cutting" those nested <navpoint>...</navpoint> elements out to paste them after the parent's closing </navpoint> so that they are all at the same top level.

We hope to have a GUI for doing this in a future release.
kiwidude is offline   Reply With Quote