|
|
#1 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
|
|
|
|
|
#2 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
|
Interesting: If I use a lot more complicated XPath instead:
Code:
--page-breaks-before="//*[re:test(name(), '^h2', 'i')]" |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,617
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
//h:h2
|
|
|
|
|
|
#4 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
|
Why is that? The tutorial says that "//h2" should match any h2's wherever in the document tree they are. What does the "h:" prefix mean?
|
|
|
|
|
|
#5 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,617
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
h: stands for html
The tutorial is out of date (needs to be updated for 0.6) |
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
|
OK. Thanks for clarification.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Page breaks in ebooks, Yes or No? | nomesque | General Discussions | 30 | 06-12-2010 07:43 AM |
| Page breaks not working | EnsignRicki | Calibre | 0 | 06-26-2009 12:47 PM |
| Page breaks | enarchay | Calibre | 18 | 05-31-2009 07:57 PM |
| losing page breaks | rholscher | Calibre | 8 | 04-16-2009 10:44 AM |
| Page breaks in Plucker? | K12 Handhelds | Reading and Management | 2 | 02-19-2005 04:05 PM |