![]() |
#16 | |||
Connoisseur
![]() Posts: 61
Karma: 10
Join Date: May 2025
Device: iPad
|
First let me say, many many thanks to you all for all the information you provide every single thread. It's a great pleasure to know that there is always something to discover I haven't had on my radar so far. Thus being said, I of course wanna take some time to try and see whether the one or the other tip might work, which will take some time - so please bear with me that some feedback will not come instantly (and family life wants also to be dealt with
![]() Quote:
The big issue, however, is that the image gets split over two pages in PocketBook: If you have a solution for that I would really consider taking your code, since I think dynamic break-points are better than hard-coded page-breaks. Quote:
Quote:
Again, thanks for all this valuable insights - and if RbnJrg would have any suggestions how to fix the splitting issue, I'd really be happy - at least until the next challenge shows up... |
|||
![]() |
![]() |
![]() |
#17 | ||
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,761
Karma: 5706256
Join Date: Nov 2009
Device: many
|
Quote:
Quote:
Google Play does not support javascript, or mathml or multi-column layouts and other sections in the nav besides the toc. That is quite a list of unsupported features. Seems like someone is trying to get by with an epub2 level rendering engine. I would not consider Google Play epub3 compliant at all as it seems to skip too many of the specs features. Again real epub3 e-readers typically use web engines like webkit, or blink (electron, Readium) which are all javascript and C++/C based and can therefore easily use javascript both internally and support its use in epub. That is why it is so rare to find a real epub3 e-reader that does not support basic javascript. Not sure what is up with Google Play as even Chrome's blink supports javascript, mathml, multi-column, etc. Sigil's QtWebEngine is a Chrome blink web engine. So natively Google Play should support anything Sigil does unless it was split off from development long ago. Perhaps Google Play uses a really old engine? Last edited by KevinH; 07-14-2025 at 01:41 PM. |
||
![]() |
![]() |
![]() |
#18 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,764
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Well, I don't know what can it go wrong with your PocketBook. In my PB for Android all works fine:
Don't remove the property "float: left", that is one of the key of dynamic break-points. Try with the epub I attach below; it's the same as the prevoius one but with a bit more of text. Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#19 | |
Connoisseur
![]() Posts: 61
Karma: 10
Join Date: May 2025
Device: iPad
|
Quote:
However, since the majority of our members work with Apple devices I'll have to take this as the least common denominator. GPB and Apple Books work fine - with some minor flaws in Apple Books regarding background colors when the dark theme is active. @KevinH: Many thanks for this valuable information about Apple Books and Google Play. To bring my topic question to a conclusion I will say, that it seems to be safe to use 100vh, but with your suggestions I have added the svh unit as well without any troubles. Also, thanks to RbnJrg's CSS in his provided ebook, I found out that adding the overflow property to the container where the height property is set will force Thorium to render the page properly as expected. So here is the final HTML and CSS I'm currently using: HTML: Code:
<div class="single-page v-center"> <figure> <img src="../images/aloha.png"/> </figure> </div> Code:
.single-page { -webkit-column-break-before: always; page-break-before: always; break-before: always; -webkit-column-break-after: always; page-break-after: always; break-after: always; } .single-page.v-center { display: flex; justify-content: center; align-items: center; /** Some reader may have trouble to render page dimensions properly with the * result in inserting a blank page directly after. PocketBook is one of * those candiates. The issue seems to to occur randomly, especially on * recalculation after device rotation or changing the font size. For the * time being, the only real working solution is to wave and smile... */ height: 100vh; height: 100svh; max-height: 100%; /* better safe than sorry */ /** Though some readers like Thorium place the image on a separate page, they * calculate the distance of the height from the actual text position, which * results in the subsequent text being placed on the image-page behind the * image itself. overflow: hidden seems to tackle this issue. */ overflow: hidden !important; } /* crucial to not overlap following text by the image */ .single-page img { /* match .single-page.v-center height */ max-height: 100vh; max-height: 100svh; } ![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Image height | JSWolf | KOReader | 6 | 03-29-2021 04:29 PM |
Picture height | senhal | ePub | 6 | 12-31-2018 03:07 PM |
line height | Rellwood | Conversion | 3 | 04-07-2018 04:34 AM |
EuGH zu Safe Haven USA: Not safe enough. | beachwanderer | Deutsches Forum | 0 | 10-06-2015 04:25 AM |
Max-Height | theducks | Sigil | 6 | 09-02-2010 05:40 PM |