View Single Post
Old 07-16-2009, 09:37 AM   #41
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 Nate the great View Post
Does rbmake convert <div style="page-break-after:always"/> to the <hr size=0> tag that functions as a pagebreak in RB format?
The ebookwise/gemstar devices don't recognize the "page-break-after" CSS property but only the "page-break-before" syntax.

That said, the .rb's support of CSS is more limited than the .imp's acceptance of same, so in this case, no, the CSS property for pagebreaks is NOT respected. Only a '<hr size=0>' in front (or in it's place) will produce the expected pagebreak.

I give you an example, Robin Hood (PG Etext No. 28700) converted to Paul Creswick - Robin Hood.rb via my GuteBook program uses the 'page-break-before' CSS property by default and it doesn't work on the REB1100.

However, after editing the source files (included in the below .zip) to include <hr size=0> in front of the <h2> and <h3> tags, you can produce another Paul Creswick - Robin Hood-hr-size-0.rb using rbmake to magically "activate" those pagebreaks within the .rb. See rbmake-log.txt for rbmake details.

I also tried to place the CSS property 'page-break-before' inline to see if that made a difference, but it didn't with Paul Creswick - Robin Hood-inline-pb-style.rb and neither did the .imp shortcut for page-breaks, <pb>, work for .rb files!

And there you have it!
Attached Files
File Type: zip Paul Creswick - Robin Hood_rb.zip (2.26 MB, 207 views)
nrapallo is offline   Reply With Quote