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, 01:39 PM   #76
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 JSWolf View Post
Code:
p {
  color: blue;
  margin-top: 0;
  margin-bottom: 0;
  widows: 1;
  orphans: 1;
  text-indent: 1.2em;
}
That works in calibre's viewer and preview to show blue text.
No, you are wrong. That's not work on Calibre Viewer; this is a screenshot of my Calibre under Archlinux:

Click image for larger version

Name:	One1.jpg
Views:	19
Size:	15.9 KB
ID:	216310

Color is conspicuous by its absence.

Here there is the epub so anyone can do the test. But by adding "-webkit-text-fill-color: red" and "-webkit-text-fill-color: blue" colors work.
Attached Files
File Type: epub Color_Text_for_Calibre.epub (2.5 KB, 10 views)
RbnJrg is offline   Reply With Quote
Old 06-17-2025, 01:54 PM   #77
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 JSWolf View Post
It doesn't actually matter what Readium does with Webkit. Webkit is not part of the ePub3 standard. So using anything Webkit is non-ePub3 compliant.
Readium is part of ePub3 standard (is part of W3C). So, if Readium works with webkit (and it does), then webkit matters.

Quote:
Can you make that Alice sample without using any Webkit and just ePub3 code?
Yes, I can. In fact, the Alice Sample employs both, standard and webkit properties (standard code is for non webkit ereaders). Watch the css stylesheet of the Alice Sample.
RbnJrg is offline   Reply With Quote
Advert
Old 06-17-2025, 02:11 PM   #78
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
No, you are wrong. That's not work on Calibre Viewer; this is a screenshot of my Calibre under Archlinux:

Attachment 216310

Color is conspicuous by its absence.

Here there is the epub so anyone can do the test. But by adding "-webkit-text-fill-color: red" and "-webkit-text-fill-color: blue" colors work.
works just fine for me without adding anything:
Attached Thumbnails
Click image for larger version

Name:	red&blue.png
Views:	12
Size:	132.8 KB
ID:	216312  
Falkor is offline   Reply With Quote
Old 06-17-2025, 02:20 PM   #79
Falkor
Connoisseur
Falkor began at the beginning.
 
Posts: 89
Karma: 10
Join Date: Dec 2024
Device: Tolino Shine 5
Quote:
Originally Posted by PeterT View Post
One final data point for which I'll try for images tomorrow. Adding the book to the Kobo Android app does result in the text being wrapped correctly in the L shaped image.

It would be fascinating to see this test done on a Tolino device.
Here you go, screenshots from my Shine 5
Attached Thumbnails
Click image for larger version

Name:	screen_001.png
Views:	11
Size:	208.3 KB
ID:	216313   Click image for larger version

Name:	screen_004.jpg
Views:	16
Size:	225.0 KB
ID:	216314   Click image for larger version

Name:	screen_015.png
Views:	11
Size:	658.4 KB
ID:	216315   Click image for larger version

Name:	screen_017.png
Views:	11
Size:	242.7 KB
ID:	216316   Click image for larger version

Name:	screen_018.png
Views:	11
Size:	930.7 KB
ID:	216317  
Falkor is offline   Reply With Quote
Old 06-17-2025, 02:29 PM   #80
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 RbnJrg View Post
No, you are wrong. That's not work on Calibre Viewer; this is a screenshot of my Calibre under Archlinux:

Attachment 216310

Color is conspicuous by its absence.

Here there is the epub so anyone can do the test. But by adding "-webkit-text-fill-color: red" and "-webkit-text-fill-color: blue" colors work.
I'm going to disagree with you. It does work in calibre's viewer. I am running Windows 11. I think it's something on your end (IMHO). This is screen grab of the ePub you posted without any changes.

Click image for larger version

Name:	color.jpg
Views:	14
Size:	38.8 KB
ID:	216318

Last edited by JSWolf; 06-17-2025 at 02:32 PM.
JSWolf is offline   Reply With Quote
Advert
Old 06-17-2025, 02:30 PM   #81
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
works just fine for me without adding anything:
Are you working on Windows or Linux?
RbnJrg is offline   Reply With Quote
Old 06-17-2025, 02:31 PM   #82
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 RbnJrg View Post
Readium is part of ePub3 standard (is part of W3C). So, if Readium works with webkit (and it does), then webkit matters.



Yes, I can. In fact, the Alice Sample employs both, standard and webkit properties (standard code is for non webkit ereaders). Watch the css stylesheet of the Alice Sample.
Can you find where in the ePub3 standard that Webkit is part of it? Thanks.
JSWolf is offline   Reply With Quote
Old 06-17-2025, 02:35 PM   #83
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 JSWolf View Post
I'm going to disagree with you. It does work in calibre's viewer. I am running Windows 11. I think it's something on your end (IMHO). This is screen grab of the ePub you posted without any changes.

Attachment 216318
Maybe. My screenshot is from Archlinux. But if you need to use the WebKit property on Linux to make the color visible, then you have to use it even if it's not necessary on Windows. Because you don't know if the human reader will open the epub on Windows or Linux.
RbnJrg is offline   Reply With Quote
Old 06-17-2025, 02:37 PM   #84
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
Are you working on Windows or Linux?
MacOS
Falkor is offline   Reply With Quote
Old 06-17-2025, 02:40 PM   #85
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 RbnJrg View Post
Maybe. My screenshot is from Archlinux. But if you need to use the WebKit property on Linux to make the color visible, then you have to use it even if it's not necessary on Windows. Because you don't know if the human reader will open the epub on Windows or Linux.
But it may not be a Linux issue but something with your system. I cannot see how it would work on Windows and MacOS but not Linux.

BTW, this would explain why some code (the full screen image code that I posted) works on my system but doesn't work on yours.
JSWolf is offline   Reply With Quote
Old 06-17-2025, 02:40 PM   #86
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
Here you go, screenshots from my Shine 5
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.

Last edited by RbnJrg; 06-17-2025 at 02:43 PM.
RbnJrg is offline   Reply With Quote
Old 06-17-2025, 02:42 PM   #87
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 JSWolf View Post
Can you find where in the ePub3 standard that Webkit is part of it? Thanks.
Indirectly, through Readium.
RbnJrg is offline   Reply With Quote
Old 06-17-2025, 02:45 PM   #88
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
this is a screenshot of my Calibre under Archlinux:
If you install Calibre on your Arch system using pacman, you need to know that while their packaged version is generally on par (functionality-wise) with the official version, there are going to be some differences. The official Calibre uses Qt6.8.2 and Python 3.11.12, while the pacman version uses the latest Qt6.9.1 and Python 3.13.3.

Qt6.9 WebEngine (which Calibre and Sigil use for rendering) introduced many new bugs. So it's quite possible that the issue with not being able to produce colored text without using webkit css IS something on your end. I'll check on my Arch system when next I'm in its presence.

If, however, you're using the official Calibre installer, then ignore everything I said above.

EDIT: also... does Calibre provide a mechanism for overriding its reader's css by the user (like Sigil does)? Just making sure there's not something like that in play here.

Last edited by DiapDealer; 06-17-2025 at 03:02 PM.
DiapDealer is offline   Reply With Quote
Old 06-17-2025, 02:53 PM   #89
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
If you install Calibre on your Arch system using pacman, you need to know that while their packaged version is generally on par (functionality-wise) with the official version, there are going to be some differences. The official Calibre uses Qt6.8.2 and Python 3.11.12, while the pacman version uses the latest Qt6.9.1 and Python 3.13.3.

Qt6.9 WebEngine (which Calibre and Sigil use for rendering) introduced many new bugs. So it's quite possible that the issue with not being able to produce colored text without using webkit css IS something on your end. I'll check on my Arch system when next I'm in its presence.

If, however, you're using the official Calibre installer, then ignore everything I said above.
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.
RbnJrg is offline   Reply With Quote
Old 06-17-2025, 03:20 PM   #90
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
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
DiapDealer 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 12:36 AM.


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