View Single Post
Old 08-25-2010, 07:26 PM   #8
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 p3aul View Post
I confess, I haven't tried your option 2 yet, only 1.
All 3 options give very similar results. The only reason I used option 2 was that it centred the chapter headings and opt 1 didn't. (Opt 3 adds the chapter name to the TOC - which I thought was a bit cluttered) but it's personal preference.

Quote:
Originally Posted by p3aul View Post
the second time I tried, with option 1 resulted in all the chapter headings but if you pressed the appropriate key on the 505, it mostly always sent you to page 3.
I cannot reproduce this problem. It works perfectly for me.

Quote:
Originally Posted by p3aul View Post
I use ebook-convert because Calibre lease so many child processes running when it exits, that it slows down my computer. I tried to just copy the epub to my external card on the 505, but it leaves the metadata behind, so I have to use the GUI to copy the epub to the 505.

I refer to the manual(ebook-convert, so much I have a link to it on my Chrome toolbar! Also using the command line, it's easier to trouble-shoot when things go wrong.

I only tried removing the "links" to the images in the html, not the images themselves. I thought if I remove the links, it might fall through to the chapter-headings.
IMPORTANT:
From the Calibre manual:
--level1-toc
XPath expression that specifies all tags that should be added to the Table of Contents at level one. If this is specified, it takes precedence over other forms of auto-detection.

Does this mean a complete xpath expression as in the "Structure Detection" in the GUI Convert books, or just a partial one like "//h1"
As I said, I don't use this method myself, but I tried this as a no-bells-or-whistles commandline approximation to opt 1 and it seems to work:
Code:
ebook-convert "Gideon's Band - George W Cable.zip" gb2.epub --chapter "//h:h2" --level1-toc "//h:h2"
where "Gideon's Band - George W Cable.zip" is the resulting file in my calibre library after drag-drop of the source html file into calibre.

Last edited by jackie_w; 08-25-2010 at 07:30 PM. Reason: more info
jackie_w is offline   Reply With Quote