View Single Post
Old 03-03-2011, 05:59 AM   #1
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 2,312
Karma: 5761596
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PRS-350, Nexus S, Galaxy S, Nook Color, iPhone4, iPT4, iPad 2012
Chapter detection and pagebreak issues

I'm currently redoing a couple of my virtual machines so I figured I might as well upgrade from calibre 0.5.14 to 0.7.47 while I'm at it. I'm using calibre solely for conversion from zipped html to epub via commandline.

CLI (pretty much the same as I used for 0.5.14 html2epub):
Code:
ebook-convert file.zip file.epub --level1-toc "//*[@class='chaptertitle']|//*[@class='toctitle']|//*[@class='fictitle']" --chapter "//*[@class='chapter']" --chapter-mark "pagebreak"
My issue with the latest version is it inserts a pagebreak before all h1 and h2 tags regardless of whether they're chapters or not. I have one page which contains:
Code:
<h1>title</h1>
<h2>author</h2>
and ebook-convert inserts a pagebreak between title and author. Is there an option to change this behavior? Thanks!
ilovejedd is offline   Reply With Quote