Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-17-2025, 03:21 PM   #91
Falkor
Connoisseur
Falkor began at the beginning.
 
Posts: 89
Karma: 10
Join Date: Dec 2024
Device: Tolino Shine 5
Quote:
Originally Posted by RbnJrg View Post
Very nice! Just I need to make a small adjustment to the L-shaped image; a typical case of a splitted image. Other images will probably also split if you increase the font size. Could you do that and check if any additional images split? It good be great if only the L-Shape image is affected.
I can make this one split, but it was tricky. It would only do it at one particular size.

I think it tries not to break images by default.
Seems like -webkit-column-break-inside, page-break-inside and break-inside are not supported, so it’s difficult to keep things together.
Attached Thumbnails
Click image for larger version

Name:	screen_021.png
Views:	13
Size:	658.4 KB
ID:	216319   Click image for larger version

Name:	screen_022.png
Views:	11
Size:	265.6 KB
ID:	216320  
Falkor is offline   Reply With Quote
Old 06-17-2025, 03:58 PM   #92
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,574
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by RbnJrg View Post
I use Calibre installed by pacman, so it uses Qt6.9.1 and Python 3.13.3. But the same behaviour was present in my Calibre since always (Calibre installed by pacman). But again, if in all others system Calibre works fine and in Archlinux -in the version installed by pacman- it doesn't, then the webkit property must be added because we don't know where and how the human reader will employ Calibre Viewer to read the epubs.
I have bad news. I also install calibre via pacman on my Arch system, and the colored text is rendering just fine without "-webkit-text-fill-color: red" and "-webkit-text-fill-color: blue" needing to be added.
DiapDealer is offline   Reply With Quote
Old 06-17-2025, 04:52 PM   #93
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,771
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by DiapDealer View Post
I understand your reasoning on the webkit prefix stuff being tangentially related to epub3 via the systems its being rendered on, but I myself would not feel comfortable including it in an actual, for-distribution, epub's css. Only because my reading of the latest epub spec indicates that the only css prefix still a part of the spec is -epub. I'm not judging though. You do you.

https://www.w3.org/TR/epub-33/#sec-css-prefixed
I include both, standard and webkit properties. For example, if I want to force a page break, I include in the respective style:

Code:
.breakPage {
  page-break-after: always;
  break-after: always;
  -webkit-column-break-after: always;
}
Maybe can be a surprise for you but if you want to force a break in any of the Sigil's plugin (Readium, Bibi Reader, JSReader) you need to employ "-webkit-column-break-after: always" because they don't honor the standard property.
RbnJrg is offline   Reply With Quote
Old 06-17-2025, 04:58 PM   #94
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,771
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by DiapDealer View Post
I have bad news. I also install calibre via pacman on my Arch system, and the colored text is rendering just fine without "-webkit-text-fill-color: red" and "-webkit-text-fill-color: blue" needing to be added.
Well, it can be good news. If the issue is only affecting my system then is good to know that something is altering the way that the epubs are being displaying in my Arch.
RbnJrg is offline   Reply With Quote
Old 06-17-2025, 05:14 PM   #95
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,771
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Falkor View Post
I can make this one split, but it was tricky. It would only do it at one particular size.
Thank you very much for your test in your phisical device.

Quote:
I think it tries not to break images by default.
Seems like -webkit-column-break-inside, page-break-inside and break-inside are not supported, so it’s difficult to keep things together.
Images shouldn't split never; the code I employed should force that no matter the font-size. And it DOES, but in some ereades (very very few), the split appears. To deal with those cases and so to avoid splitting, I have to employ more elaborated styles (not present in the sample). What you say is exact: -webkit-column-break-inside, page-break-inside and break-inside are not being supported properly in your device. Your ereader tries to honor the code to avoid blank spaces (and it does it) but to get that, it splits images.

Last edited by RbnJrg; 06-17-2025 at 05:18 PM.
RbnJrg is offline   Reply With Quote
Old 06-17-2025, 05:36 PM   #96
Falkor
Connoisseur
Falkor began at the beginning.
 
Posts: 89
Karma: 10
Join Date: Dec 2024
Device: Tolino Shine 5
Quote:
Originally Posted by RbnJrg View Post
Thank you very much for your test in your phisical device.
You're welcome

This renderer has plenty of issues, so this is a great opportunity for me to figure out workarounds or crucial details that I've been missing.

Quote:
Originally Posted by RbnJrg View Post
What you say is exact: -webkit-column-break-inside, page-break-inside and break-inside are not being supported properly in your device. Your ereader tries to avoid blank spaces (and it does it) but to get that, it splits images.
Actually for a couple of versions it has been creating loads of blank pages. And I've managed to split lines of text

Both issues might be caused by having margins (in %) at the top of a page –*are they no longer supported in Epub3? I had to use 100vh to get a full page image. With 100% height I'd get a line of text under the image.
Falkor is offline   Reply With Quote
Old 06-17-2025, 06:02 PM   #97
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,758
Karma: 145864619
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 Falkor View Post
You're welcome

This renderer has plenty of issues, so this is a great opportunity for me to figure out workarounds or crucial details that I've been missing.



Actually for a couple of versions it has been creating loads of blank pages. And I've managed to split lines of text

Both issues might be caused by having margins (in %) at the top of a page –*are they no longer supported in Epub3? I had to use 100vh to get a full page image. With 100% height I'd get a line of text under the image.
A margin for the top of the page should be in em.
JSWolf is online now   Reply With Quote
Old 06-17-2025, 06:20 PM   #98
Falkor
Connoisseur
Falkor began at the beginning.
 
Posts: 89
Karma: 10
Join Date: Dec 2024
Device: Tolino Shine 5
I just gave it a try: A margin in em causes the same problem. With no margin, the empty pages disappear.
That doesn't fix the split lines of text, though.
Falkor is offline   Reply With Quote
Old 06-17-2025, 06:35 PM   #99
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,243
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I suspect what Jon wants is to set the margin to 0em (or rem).
DNSB is online now   Reply With Quote
Old 06-17-2025, 07:57 PM   #100
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.
 
Posts: 13,528
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by Falkor View Post
Here you go, screenshots from my Shine 5
Brilliant; thanks
PeterT is offline   Reply With Quote
Old 06-17-2025, 08:08 PM   #101
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,771
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Falkor View Post
Actually for a couple of versions it has been creating loads of blank pages. And I've managed to split lines of text

Both issues might be caused by having margins (in %) at the top of a page –*are they no longer supported in Epub3? I had to use 100vh to get a full page image. With 100% height I'd get a line of text under the image.
I don't know how your Tolino Shine 5 renders the things, but try the following code to display a full page image (without no text line below):

1. In your .xhtml file:

Code:
    <figure>
      <div class="picture">
        <svg xmlns="http://www.w3.org/2000/svg" height="100%" width="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 xxx yyy" xmlns:xlink="http://www.w3.org/1999/xlink"><image width="xxx" height="yyy" xlink:href="../Images/your_image.jpg"/>
        </svg>
      </div>
    </figure>
2. In your .css stylesheet:

Code:
  figure {
    float: left;
    display: flex;
    width: 100%;
    height: 100%;
    line-height: 1.2em; /* Or the line-height you are using for <p> */
    margin: 0;
    text-align: center;
    -webkit-column-break-inside: avoid !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .picture {
    float: left;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    line-height: 1.2em;
    box-sizing: border-box;
    margin: 0;
    text-align: center;
    -webkit-column-break-inside: avoid !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    overflow: hidden !important;
  }

  .picture svg {
    display: block;
    margin: auto;
    overflow: hidden !important;
    height: 100vh !important;
  }
Regarding margin-top, you can employ "%" but instead of that, in your Tolino I would employ "vh" (also is valid to employ "em" but if you increase the font-size, also will increase the margin-top and maybe you don't want that).

PS: Of course, this is epub3 code.

Last edited by RbnJrg; 06-17-2025 at 08:10 PM.
RbnJrg is offline   Reply With Quote
Old 06-17-2025, 08:09 PM   #102
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,355
Karma: 20171571
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 DNSB View Post
I suspect what Jon wants is to set the margin to 0em (or rem).

I've always understood that units don't matter; if you set 0 then it is zero regardless of the units used, or no units at all. The only caveat would be if the device didn't understand the unit, then it could/would ignore the selection entirely?? So if you just set margin:0 without any units, then you are good to go!
Turtle91 is offline   Reply With Quote
Old 06-18-2025, 04:21 AM   #103
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,758
Karma: 145864619
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 DNSB View Post
I suspect what Jon wants is to set the margin to 0em (or rem).
Never rem. Always em.
JSWolf is online now   Reply With Quote
Old 06-18-2025, 04:22 AM   #104
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,758
Karma: 145864619
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've always understood that units don't matter; if you set 0 then it is zero regardless of the units used, or no units at all. The only caveat would be if the device didn't understand the unit, then it could/would ignore the selection entirely?? So if you just set margin:0 without any units, then you are good to go!
for a margin of 0, without a unit is correct.
JSWolf is online now   Reply With Quote
Old 06-18-2025, 03:46 PM   #105
Falkor
Connoisseur
Falkor began at the beginning.
 
Posts: 89
Karma: 10
Join Date: Dec 2024
Device: Tolino Shine 5
continued from here: https://www.mobileread.com/forums/sh...55#post4519655

Quote:
Originally Posted by Quoth View Post
A new HTML file always starts at the top of the screen. (epubs converted to old mobi KF7, azw3/KF8 and KFX by Amazon or locally, and any epub renderer doing pages not continuous scrolling)
In such a case "padding-top: <value>em;" seems to always work for the first item, while some renders will remove margin-top at start of a screen and some may remove margin-bottom at the bottom of the screen.
Interesting, I thought it was just be a new bug in the Tolino renderer. Older version handle margins at the top of a page just fine. And it's never been a problem in any other reading software I tried.

Using padding instead of margin will work in most cases. And if I need an actual margin, I can always place a zero height div at top of the page... That does fix the issue.

Last edited by Falkor; 06-18-2025 at 03:51 PM.
Falkor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Styling based on class/existing styling 1ily Calibre 8 03-17-2025 06:37 AM
Incorrect styling with specific CSS quiris Marvin 9 07-04-2016 01:04 PM
Missing CSS properties roger64 KOReader 0 06-01-2016 06:39 AM
inspect image properties /replace image cybmole Sigil 6 02-05-2013 12:46 PM
Unsetting properties in CSS Jellby ePub 2 06-03-2009 04:29 AM


All times are GMT -4. The time now is 01:38 PM.


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