Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-16-2015, 12:12 PM   #1
Oxford-eBooks
Zealot
Oxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of light
 
Posts: 138
Karma: 12096
Join Date: May 2010
Device: Loads!
Question page-break-inside on Google Play Books

Has anyone found issues with page-break-inside:avoid in Google Play Books?
I've tried this on my Sony Z1 and the Windows 8 version with the same effect (oh, hats off to GBP for syncing the file I opened for test on both apps!)

The book I'm working on really needs to keep H1, H2 etc together with the following text - well, it should anyway to look good. I've got page-break-after:avoid inside my H classes and also have tried the old DIV around the stuff to keep together and page-break-inside:avoid trick, but it's being ignored. I put a pink background in the grouping DIV to check, and I can clearly see them spanning pages where they ought to be bumped to the next page.

All the other (good) readers are fine and dandy with this except GPB. This is a shame, cos I really want this to work on GPB. This book is going to go up on Google Play by the publisher and they don't want to have their audience fiddling about copying ACSM files to other readers and the like.
Oxford-eBooks is offline   Reply With Quote
Old 06-16-2015, 12:50 PM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,548
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Oxford-eBooks View Post
All the other (good) readers are fine and dandy with this except GPB.
Really? I have seen ADE ignoring "page-break-inside: avoid".

I know only two ways of preventing a pagebreak: force a pagebreak before or wrap the content in a really unbreakable container (an image, maybe SVG would work too).
Jellby is offline   Reply With Quote
Old 06-16-2015, 01:10 PM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Why do you need a page break avoid? Headers don't break automatically.
JSWolf is offline   Reply With Quote
Old 06-16-2015, 03:27 PM   #4
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,764
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Oxford-eBooks View Post
Has anyone found issues with page-break-inside:avoid in Google Play Books?
I've tried this on my Sony Z1 and the Windows 8 version with the same effect (oh, hats off to GBP for syncing the file I opened for test on both apps!)

The book I'm working on really needs to keep H1, H2 etc together with the following text - well, it should anyway to look good. I've got page-break-after:avoid inside my H classes and also have tried the old DIV around the stuff to keep together and page-break-inside:avoid trick, but it's being ignored. I put a pink background in the grouping DIV to check, and I can clearly see them spanning pages where they ought to be bumped to the next page.

All the other (good) readers are fine and dandy with this except GPB. This is a shame, cos I really want this to work on GPB. This book is going to go up on Google Play by the publisher and they don't want to have their audience fiddling about copying ACSM files to other readers and the like.
Don't use "page-break-inside: avoid" but "page-break-after: avoid" with <h> tags. The easiest way to do that is to write in your css stylesheet the following:

Code:
h1, h2 {
     page-break-after: avoid;
}
ADE (even ADE 2 and ADE 3) will respect that property but only for epub2 ebooks. Also ADE will respect orphans and widows properties but I don't know why ADE 4 —for epub3 ebooks— it doesn't respect those properties
RbnJrg is offline   Reply With Quote
Old 06-17-2015, 04:25 AM   #5
Oxford-eBooks
Zealot
Oxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of light
 
Posts: 138
Karma: 12096
Join Date: May 2010
Device: Loads!
Quote:
Originally Posted by RbnJrg View Post
Don't use "page-break-inside: avoid" but "page-break-after: avoid" with <h> tags. The easiest way to do that is to write in your css stylesheet the following:

Code:
h1, h2 {
     page-break-after: avoid;
}
ADE (even ADE 2 and ADE 3) will respect that property but only for epub2 ebooks. Also ADE will respect orphans and widows properties but I don't know why ADE 4 —for epub3 ebooks— it doesn't respect those properties
Thanks, I'll give this a try.
Oxford-eBooks is offline   Reply With Quote
Old 06-17-2015, 04:34 AM   #6
Oxford-eBooks
Zealot
Oxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of light
 
Posts: 138
Karma: 12096
Join Date: May 2010
Device: Loads!
Quote:
Originally Posted by JSWolf View Post
Why do you need a page break avoid? Headers don't break automatically.
What I'm aiming for is for a chunk of content to keep together as much as I can. Quite often it's just a header and a paragraph, but there's sometimes a little image or a small bullet-list or table. This works well on most small screens* on other reader apps on the previous titles in the series but the publisher wants to also sell on Google Play, and it's not behaving the same there.

HOWEVER: I did get a response back from Google saying that the reader behaves differently if you just upload an ePub to your phone and read it in GPB rather than uploading to Partner Centre and then reading it as a reviewer. Curious. I'm going to give this a try today to see what happens.


* yes, yes, I know - "fixed layout vs ePub2, yadda, small screen, can't control the look, yadda". It's worked well on earlier editions with a bit of effort and if you ARE careful and design things to gracefully degrade and adapt then you can get some pretty acceptable technical layout in ePub2. We don't want the customer to have to muck about with downloading specific readers, it needs to work 'out of the box' when they buy it from the vendors - usually Amazon, Apple, Google. Cos that's were the money is (in different proportions!)
Oxford-eBooks is offline   Reply With Quote
Old 06-17-2015, 04:51 AM   #7
Oxford-eBooks
Zealot
Oxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of light
 
Posts: 138
Karma: 12096
Join Date: May 2010
Device: Loads!
Quote:
Originally Posted by Oxford-eBooks View Post
Thanks, I'll give this a try.
EDIT: Oh, Duh, sorry! I already do that It's the break INSIDE thing that I wrap around sections that I want to keep together.
Oxford-eBooks is offline   Reply With Quote
Old 06-17-2015, 05:18 AM   #8
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
Does Google Play actually ever sell any books?
Notjohn is offline   Reply With Quote
Old 06-17-2015, 05:23 AM   #9
Oxford-eBooks
Zealot
Oxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of light
 
Posts: 138
Karma: 12096
Join Date: May 2010
Device: Loads!
Quote:
Originally Posted by Notjohn View Post
Does Google Play actually ever sell any books?
Enough to keep the office stocked with coffee and energy drinks Still, can't beat Amazon for pure BRUTE selling force.

Keeping an eye on Google Play, they might catch up a little.
Oxford-eBooks is offline   Reply With Quote
Old 06-19-2015, 11:37 PM   #10
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by Oxford-eBooks View Post
Has anyone found issues with page-break-inside:avoid in Google Play Books?
I've never seen any rendering engine that supports "page-break-inside:avoid", including in browsers that claim to support it. Occasionally, you get lucky.

No, wait, that's not quite true. I've seen it work for images, and in some cases, for tables. I've never seen it work on a div or any other element that contains other block elements.

The only surefire way I've seen to make that work is with an image (which can be SVG).
dgatwood is offline   Reply With Quote
Old 07-01-2015, 12:17 AM   #11
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by dgatwood View Post
I've never seen any rendering engine that supports "page-break-inside:avoid", including in browsers that claim to support it. Occasionally, you get lucky.

No, wait, that's not quite true. I've seen it work for images, and in some cases, for tables. I've never seen it work on a div or any other element that contains other block elements.

The only surefire way I've seen to make that work is with an image (which can be SVG).
Ditto.

Hitch
Hitch is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Play Books & Page Breaks Rand Brittain ePub 12 05-15-2015 01:33 PM
Keeping text together (block vs. page-break-inside:avoid) Psymon ePub 2 10-12-2014 09:56 AM
iPad iBooks: page-break-after/inside/before NOT working? philx Apple Devices 7 01-27-2013 12:42 AM
Page-Break-Inside: Avoid - Solution or Hack? sab1234 Kindle Formats 3 01-17-2013 04:10 PM
Page-break-inside:avoid and mobi AlexBell Kindle Formats 3 06-01-2011 06:03 AM


All times are GMT -4. The time now is 12:07 PM.


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