|
|
#1 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 594
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-505
|
Problem with --page-breaks-before
Code:
ebook-convert.exe book.htm book.lrf --page-breaks-before=//h2 |
|
|
|
|
|
#2 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 594
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-505
|
Interesting: If I use a lot more complicated XPath instead:
Code:
--page-breaks-before="//*[re:test(name(), '^h2', 'i')]" |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,660
Karma: 3473290
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
//h:h2
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#4 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 594
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-505
|
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: 22,660
Karma: 3473290
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)
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#6 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 594
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-505
|
OK. Thanks for clarification.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Page breaks in ebooks, Yes or No? | nomesque | General Discussions | 30 | 06-12-2010 06:43 AM |
| Page breaks not working | EnsignRicki | Calibre | 0 | 06-26-2009 11:47 AM |
| Page breaks | enarchay | Calibre | 18 | 05-31-2009 06:57 PM |
| losing page breaks | rholscher | Calibre | 8 | 04-16-2009 09:44 AM |
| Page breaks in Plucker? | K12 Handhelds | Reading and Management | 2 | 02-19-2005 03:05 PM |