View Single Post
Old 08-27-2010, 11:34 AM   #4
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by erion View Post
...if I specify the xpaths for the multi-level contents, how come they are not used... seems a mystery to me...
I think the --chapter and --leveln-toc options are to be used in tandem, but the --chapter option seems to be the most important, telling calibre how to split the chapters.

For instance, (at least in the GUI) if you run your conversion with just the --chapter option set as specified and leave the --level-tocs blank then you still get all the <h1>s and <h2>s in the epub TOC, but they have a flat hierarchy instead of the <h2>s being children of the <h1>s. So it appears that the --level-tocs fine-tune the --chapter.

If I've got this completely wrong maybe someone more technical can chip in and enlighten us.
jackie_w is offline   Reply With Quote