Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 03-05-2009, 01:46 PM   #1
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 65,626
Karma: 44618293
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Mini, iPhone 4, MS Surface Pro, N7
Page breaks in Mobi files

When I create Mobi books, I always force a pagebreak by adding the Mobi-specific: "<mbp:pagebreak> tag to the file.

I notice, however, that when I convert LIT books to Mobi, they come out with hard page breaks at the start of chapters without doing this. What other methods are there of forcing a pagebreak in a Mobi book? Anyone know?
HarryT is offline   Reply With Quote
Old 03-05-2009, 02:10 PM   #2
pdurrant
Santa Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 33,504
Karma: 91510696
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
Quote:
Originally Posted by HarryT View Post
When I create Mobi books, I always force a pagebreak by adding the Mobi-specific: "<mbpagebreak> tag to the file.

I notice, however, that when I convert LIT books to Mobi, they come out with hard page breaks at the start of chapters without doing this. What other methods are there of forcing a pagebreak in a Mobi book? Anyone know?
If you're using Mobipocket Creator, you can use CSS styles like:

<style type="text/css">
h1 { text-indent: 0; text-align: center; page-break-before: always }
</style>

The page-break-before: always gets converted into the Mobi-specific code by Mobipocket Creator.
pdurrant is offline   Reply With Quote
Old 03-05-2009, 02:13 PM   #3
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 65,626
Karma: 44618293
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Mini, iPhone 4, MS Surface Pro, N7
That would explain it. Thanks, Paul!
HarryT is offline   Reply With Quote
Old 02-24-2012, 04:45 AM   #4
genfind
Junior Member
genfind began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2012
Device: Kindle
Page Break

Hi all - I`m new to this so where exactly in the HTML code would this little piece of script be entered as I am having trouble separating pages of a book which I have scanned from OCR to HTML.
When viewed in Sigil it is fine but when converted to Mobi for my Kindle I don`t get the separate pages and so this means it is really really messy. For example : At the end of Chapter 1 instead of creating a new page for Chapter 2 it continues at the end of Chapter 1 on the same page !
Where am I going wrong ? Would creating a TOC file in Sigil work do you think or would I still not get the separate pages. Sorry for being new and being a pain in the rear !
Thanks all
Anthony
genfind is offline   Reply With Quote
Old 02-24-2012, 05:43 AM   #5
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 65,626
Karma: 44618293
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Mini, iPhone 4, MS Surface Pro, N7
The easiest way to do it is to add to your HTML:

Code:
<mbp:pagebreak>
at the point at which you want a hard pagebreak.
HarryT is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mobi page breaks in Calibre viewer DaleDe Calibre 3 04-04-2011 02:58 AM
Chapters and page breaks in TXT files scarab1 Ectaco jetBook 0 03-06-2010 03:08 PM
Problem with --page-breaks-before pepak Calibre 5 10-24-2009 05:50 PM
Page breaks enarchay Calibre 18 05-31-2009 07:57 PM
eb1150 and page breaks sea2stars Fictionwise eBookwise 10 09-13-2007 02:28 PM


All times are GMT -4. The time now is 08:17 PM.


MobileRead.com is a privately owned, operated and funded community.