View Single Post
Old 10-24-2009, 03:22 PM   #1
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
Problem with --page-breaks-before

At the moment I am running Calibre 0.6.13 (I know there's a 0.6.19 out, but I can't run it as I don't have VC90 runtime installed and it refuses my attempts to install it, and in any case I can't find anything relevant in the changelog). I am having trouble with ebook-convert.exe's --page-breaks-before parameter - it just doesn't work for me. In older versions of Calibre (I guess some 0.6.7 or something like that), I used
Code:
ebook-convert.exe book.htm book.lrf --page-breaks-before=//h2
and it would indeed insert a pagebreak before every H2 tag. In 0.6.13 the parameter seems to be ignored and the only way to get a pagebreak is through --chapter-mark=pagebreak. The problem is, of course, that not all of my H2's are chapters, and vice versa.
pepak is offline   Reply With Quote