07-30-2024, 04:18 AM | #1 |
Junior Member
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
|
07-30-2024, 05:32 AM | #2 |
Wizard
Posts: 1,358
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.
|
Advert | |
|
07-30-2024, 07:21 AM | #3 |
Grand Sorcerer
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.
|
07-30-2024, 08:29 AM | #4 | |
Resident Curmudgeon
Posts: 76,446
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
This has nothing to do with Sigil. |
|
07-30-2024, 08:47 AM | #5 |
A Hairy Wizard
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! |
Advert | |
|
07-30-2024, 08:49 AM | #6 | |
Resident Curmudgeon
Posts: 76,446
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
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? |
|
07-30-2024, 08:55 AM | #7 |
A Hairy Wizard
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.
|
07-30-2024, 09:03 AM | #8 |
Resident Curmudgeon
Posts: 76,446
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
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.
|
07-30-2024, 09:57 AM | #9 |
A Hairy Wizard
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.
|
07-30-2024, 11:50 AM | #10 | |
Resident Curmudgeon
Posts: 76,446
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
07-30-2024, 05:53 PM | #11 |
A Hairy Wizard
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...
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. |
07-30-2024, 05:56 PM | #12 | |
Resident Curmudgeon
Posts: 76,446
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
07-30-2024, 06:02 PM | #13 | |
A Hairy Wizard
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:
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. |
|
07-30-2024, 06:06 PM | #14 | |
Resident Curmudgeon
Posts: 76,446
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
07-30-2024, 07:17 PM | #15 |
Grand Sorcerer
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 |
|
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 |