View Single Post
Old 07-23-2009, 08:09 AM   #83
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by HarryT View Post
The Mobi-specific "<mbp: pagebreak>" tag definitely works. This is what I use in all my books.
If I were to use your finished .prc ebook as the source for my ebook conversion into different formats via calibre and/or Mobi2IMP, then I won't need to be overly-concerned with what's coded within your .html used to create that .prc.

However, if I was using your .html to create my various ebook formats, then I would need to somehow convert any and all mobi-specific tags into their html equivalent. Which begs the question, why insert them in the first place when html code equivalants exist? I mean, using CSS it is a simple task to add to the <head> section of the .html, the following style declaration:
Code:
<style type="text/css">
  h2 { page-break-before: always; }
  .pb { page-break-before: always; }
</style>
then any and all <h2> tags will have page-breaks added to them. Or using classes just insert <div class="pb" /> instead of <mbp: pagebreak>. At worst, for the CSS-challenged , then just insert the in-line page-break style <div style="page-break-before: always" /> instead.

I know the REB1100 uses <hr size=0> or <hr NEW-PAGE> as it's page-break tags and the .imp format uses <pb> as it's shortcut, but would never use them for html code meant to be used for other ebook formats.
nrapallo is offline   Reply With Quote