Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-30-2024, 04:18 AM   #1
mattfr
Junior Member
mattfr began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2024
Device: none
Blank pages in Epub when it is read.

I am just wondering if anyone has some words of wisdom about the blank pages issue in Epub readers? Is there anything in the code of the Epub you can add to prevent this phenomenon? It seems random on different Ereaders. No matter how clean the code is at the end of the section the blank page still appears when it is read with an Ereader. Thanks, Mattfr
mattfr is offline   Reply With Quote
Old 07-30-2024, 05:32 AM   #2
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,357
Karma: 6794938
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Do you have a book you can share? If it is in copyright, you could scramble it before uploading.
Karellen is offline   Reply With Quote
Advert
Old 07-30-2024, 07:21 AM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Do you have any reason to believe Sigil lies at the root of your issue? Using Sigil to make a problematic epub does not necessarily make this about Sigil. Post some code samples and we might be able to rule Sigil out (or in). Otherwise, we're flying completely blind.
DiapDealer is offline   Reply With Quote
Old 07-30-2024, 08:29 AM   #4
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: 76,444
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by mattfr View Post
I am just wondering if anyone has some words of wisdom about the blank pages issue in Epub readers? Is there anything in the code of the Epub you can add to prevent this phenomenon? It seems random on different Ereaders. No matter how clean the code is at the end of the section the blank page still appears when it is read with an Ereader. Thanks, Mattfr
The problem comes in some programs when the content hits the bottom of the page. If the next page is another HTML file, then you could get a blank page.

This has nothing to do with Sigil.
JSWolf is online now   Reply With Quote
Old 07-30-2024, 08:47 AM   #5
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,225
Karma: 19000635
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
As JSWolf mentioned, it is more than likely some kind of overflow issue. Unfortunately, your coding could be perfectly correct but the reader device/app could be causing it's own issues...thus the randomness.

For example, if you have an image on a page that uses 100%, or 100vw/vh, that would be perfectly acceptable coding...But if the device/app calculates screen space and sets aside landscape for headers, footers, etc. the TOTAL area used would be greater than the screen...causeing the overflow and the extra blank page at the end.

As Diap mentioned, we can't troubleshoot any further without something to work with...example coding and what devices you are seeing the problems with would help.

Cheers!
Turtle91 is offline   Reply With Quote
Advert
Old 07-30-2024, 08:49 AM   #6
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: 76,444
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Turtle91 View Post
As JSWolf mentioned, it is more than likely some kind of overflow issue. Unfortunately, your coding could be perfectly correct but the reader device/app could be causing it's own issues...thus the randomness.

For example, if you have an image on a page that uses 100%, or 100vw/vh, that would be perfectly acceptable coding...But if the device/app calculates screen space and sets aside landscape for headers, footers, etc. the TOTAL area used would be greater than the screen...causeing the overflow and the extra blank page at the end.

As Diap mentioned, we can't troubleshoot any further without something to work with...example coding and what devices you are seeing the problems with would help.

Cheers!
I wonder if there is a fix for this if it is an overflow issue.

For an image, use a bottom margin of 0. For the last paragraph, use a class that gives it a bottom margin of 0.

Do you think these might work?
JSWolf is online now   Reply With Quote
Old 07-30-2024, 08:55 AM   #7
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,225
Karma: 19000635
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
I have these same issues even with a zero margin set on everything, that's why I mentioned that it could be caused by the device/app itself rather than anything the coding does. Hard to tell without seeing any of the coding.
Turtle91 is offline   Reply With Quote
Old 07-30-2024, 09:03 AM   #8
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: 76,444
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Turtle91 View Post
I have these same issues even with a zero margin set on everything, that's why I mentioned that it could be caused by the device/app itself rather than anything the coding does. Hard to tell without seeing any of the coding.
I normally have blockquotes set with a 1em bottom margin. But when the blockquote is at the end of the chapter, I use a class to set the bottom margin to 0 so a blank page might not happen.
JSWolf is online now   Reply With Quote
Old 07-30-2024, 09:57 AM   #9
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,225
Karma: 19000635
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
And that almost certainly helps, but the problem is still there even when ALL items have a zero margin. I’m pretty sure ONE of the issues is how (and in what order) the device/app allocates it’s reading space. That is completely independent of the coding. I’ll draw a picture of what I mean after I get home from work.
Turtle91 is offline   Reply With Quote
Old 07-30-2024, 11:50 AM   #10
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: 76,444
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Turtle91 View Post
And that almost certainly helps, but the problem is still there even when ALL items have a zero margin. I’m pretty sure ONE of the issues is how (and in what order) the device/app allocates it’s reading space. That is completely independent of the coding. I’ll draw a picture of what I mean after I get home from work.
I use Bookfusion on iOS and the problem of the blank page does exist.
JSWolf is online now   Reply With Quote
Old 07-30-2024, 05:53 PM   #11
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,225
Karma: 19000635
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Sooo, here's a pic to demonstrate what I was trying to explain. This is my current theory. I'm open to others...

Click image for larger version

Name:	Screenshot 2024-07-30 163458.png
Views:	111
Size:	3.2 KB
ID:	209840

The black square is the physical display...assume an 800x600 dimension.
The red squares are the header and footer...assume a 50x600 dimension.
The green box is the device/app calculated display size for the html page.

The left image shows where the device/app determines the header/footer positioning first, then the remaining landscape (700x600) is used for display of the html page. In this case the use of 100% or 100vh would return the 700x600.

The right image shows where the device/app determines the display size for the html page first (800x600) then adds the dimensions for the header/footer for a total (900x600) which is greater than the actual screen dimension.

The problem here is that you don't necessarily have to display anything in the header/footer, it's enough that the device/app reserves the space ... thus causing an overflow situation and an extra page.

Depending on what methodology the device/app uses to calculate display/page size, you can have some show the extra page, and some not.
Turtle91 is offline   Reply With Quote
Old 07-30-2024, 05:56 PM   #12
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: 76,444
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Turtle91 View Post
Sooo, here's a pic to demonstrate what I was trying to explain. This is my current theory. I'm open to others...

Attachment 209840

The black square is the physical display...assume an 800x600 dimension.
The red squares are the header and footer...assume a 50x600 dimension.
The green box is the device/app calculated display size for the html page.

The left image shows where the device/app determines the header/footer positioning first, then the remaining landscape (700x600) is used for display of the html page. In this case the use of 100% or 100vh would return the 700x600.

The right image shows where the device/app determines the display size for the html page first (800x600) then adds the dimensions for the header/footer for a total (900x600) which is greater than the actual screen dimension.

The problem here is that you don't necessarily have to display anything in the header/footer, it's enough that the device/app reserves the space ... thus causing an overflow situation and an extra page.

Depending on what methodology the device/app uses to calculate display/page size, you can have some show the extra page, and some not.
ADE/RMSDK does not show blank pages that I know of. Bookfusion does show blank pages.
JSWolf is online now   Reply With Quote
Old 07-30-2024, 06:02 PM   #13
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,225
Karma: 19000635
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by JSWolf View Post
ADE/RMSDK does not show blank pages that I know of. Bookfusion does show blank pages.
Unfortunately I am not privy to which methodology the different devices/apps use....so the only way to get it fixed is to submit a bug report to the respective programmers.... Obviously after you've checked that there are no problems with the epub code itself.

FYI, I got this theory from conversations with Kris during his creation of Marvin. He did not publish a fix, so Marvin also suffers from this minor, but annoying, problem.
Turtle91 is offline   Reply With Quote
Old 07-30-2024, 06:06 PM   #14
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: 76,444
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Turtle91 View Post
Unfortunately I am not privy to which methodology the different devices/apps use....so the only way to get it fixed is to submit a bug report to the respective programmers.... Obviously after you've checked that there are no problems with the epub code itself.

FYI, I got this theory from conversations with Kris during his creation of Marvin. He did not publish a fix, so Marvin also suffers from this minor, but annoying, problem.
I did report the bug in the Bookfusion thread. I'll see how that goes.
JSWolf is online now   Reply With Quote
Old 07-30-2024, 07:17 PM   #15
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,754
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Why not include a test book that exhibits the issue along with some screen shots

Sent from my Pixel 7a using Tapatalk
PeterT is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DOCX --> EPUB: blank pages between most chapters lcharnes Conversion 1 04-25-2021 01:10 AM
Blank Pages EPUB Conversion C_Gordon Conversion 3 04-19-2020 09:59 AM
Blank pages on some pdf read with M92 RotAnal Onyx Boox 16 06-04-2013 05:48 PM
CHM to EPUB, blank pages taita87 ePub 13 10-12-2012 03:10 PM
Blank pages when opening this epub ghostyjack EPUBReader 9 11-09-2010 12:49 PM


All times are GMT -4. The time now is 04:47 PM.


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