![]() |
#1 |
Media Bloke
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,381
Karma: 113956855
Join Date: Sep 2010
Location: NSW - Australia
Device: iOS
|
epub to mobi h1 page breaks not starting on new page
I've converted 10 books from ePub to Mobi. I have a new html file for each chapter and after converting to mobi chapters start on a new page. TOC are all OK.
My last attempt doesn't. Chapters start anywhere. I had a quick look at the tutorial which has some Xpath which I used in the STRUCTURE DETECTION area. //*[name()='h1' or name()='h2'] What information do you need from me to determine what has changed? Here's a sample of a file with h1 and h2 headers Spoiler:
|
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
The fact that it split the chapters in seemingly arbitrary places indicates that the xpath didn't work - when that happens the book is split ever 270K.
The example text you show should work fine with the xpath above, but by your wording I get the sense that the example text is not from the book which was exhibiting problems. My guess is the book with problems doesn't use h1/h2. You read the manual already, but this tutorial might help: https://www.mobileread.com/forums/sho...d.php?t=129364 |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Media Bloke
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,381
Karma: 113956855
Join Date: Sep 2010
Location: NSW - Australia
Device: iOS
|
![]()
Thanks Idolse
The code I posted above is displayed here in the Kindle Previewer. The first h1 of the file is displayed. It displays on a new page in the ePub but not on any of the Kindle Device previews. I read your tutorial yesterday in order to solve the issue. That's how I found the xPath I posted. Only when it didn't work I decided to ask for help. I don't know why it would work 10 times and break on the 11th. ![]() ![]() |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
The screenshot you're posting is very different from the example code. I see the tic marks are there - do these navigate between the correct chapter points?
If that screenshot is from the original ePub then I can only think of a couple explanations. One is that for some reason you converted to htmlz first, and then for some reason had 'do not split on page breaks' enabled for the conversion to mobi. The other is that perhaps your css has a page-break-before:avoid style attached to '<div class="generated-style" id="how-not-to-kill-your-husband">' - I'm not sure what Calibre would do in that instance, but it's possible it wouldn't insert the mobipocket page break marker. Check the css in the original ePub. If neither of the above is true then maybe there is some bug associated with this ebook, open a bug on the bugtracker - https://bugs.launchpad.net/calibre |
![]() |
![]() |
![]() |
#5 |
Media Bloke
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,381
Karma: 113956855
Join Date: Sep 2010
Location: NSW - Australia
Device: iOS
|
oh dear
Egg on face -
![]() I had been trying to fix up some tables so they displayed in Kindle Previewer and I created a separate InDesign file for mobi in addition to the one I used for the ePub. (This one had the tables reformatted as text) Well, I was viewing the output from the "Export for Kindle" plug-in in inDesign. Not the Calibre converted version. So I'll just back out the door here and thank you for your help and sorry for wasting your time. ![]() |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Page breaks in Mobi files | HarryT | Kindle Formats | 4 | 02-24-2012 04:43 AM |
Ebook not starting at "first" page after converting from epub to mobi | bfollowell | Conversion | 7 | 08-01-2011 12:52 PM |
epub to mobi loses page breaks | stevent10993 | Conversion | 5 | 07-20-2011 12:43 AM |
Mobi page breaks in Calibre viewer | DaleDe | Calibre | 3 | 04-04-2011 01:58 AM |
PDF to EPUB - page breaks | pops1959 | Calibre | 0 | 01-13-2011 07:28 PM |