Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 08-07-2024, 11:24 AM   #16
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,072
Karma: 6361556
Join Date: Nov 2009
Device: many
Jon, please stop attacking everything that is epub3. CSS3 is valid in epub3 and rem is different than em in epubs that use different font sizes in different places as it always references the size of the font in the root (html) element.

Epub2 is now totally dead. Deprecated almost 15 years ago (first approved epub3 spec was dated, October 11, 2011). Nothing new should ever be created in epub2.

Good, spec compliant Epub3 readers are now broadly available and making epub3 backwards compatible with the old epub2 spec is possible.

This forum's love and support for a long dead specification is really misguided.

Fair warning: At some point, Sigil will eventually drop support for creating new epub2s and when asked to load one, it will eventually use integrated code (based in my ePub3-itizer plugin) to generate an epub3-only version for editing and saving.

Last edited by KevinH; 08-07-2024 at 12:50 PM.
KevinH is offline   Reply With Quote
Old 08-07-2024, 01:58 PM   #17
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,763
Karma: 24088559
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by hayaku View Post
IE, unit : “rem” is an incorrect unit : padding: 0.25rem; when I have a CSS entry like "padding: 0.25rem;".
As KevinH has already pointed out, you'll only get this message when CSS2.1 (or lower) is selected as the CSS spec.
You can test this yourself with the online validator:
https://jigsaw.w3.org/css-validator/

If you're working on epub3 books, you'll need to change the following plugin preferences:

Code:
  "css_epub2_validation_spec": "css21",
  "css_epub3_validation_spec": "css3",
For more information, see the very first topic.
Doitsu is offline   Reply With Quote
Advert
Old 08-07-2024, 07:35 PM   #18
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: 80,789
Karma: 150249619
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 KevinH View Post
Jon, please stop attacking everything that is epub3. CSS3 is valid in epub3 and rem is different than em in epubs that use different font sizes in different places as it always references the size of the font in the root (html) element.

Epub2 is now totally dead. Deprecated almost 15 years ago (first approved epub3 spec was dated, October 11, 2011). Nothing new should ever be created in epub2.

Good, spec compliant Epub3 readers are now broadly available and making epub3 backwards compatible with the old epub2 spec is possible.

This forum's love and support for a long dead specification is really misguided.

Fair warning: At some point, Sigil will eventually drop support for creating new epub2s and when asked to load one, it will eventually use integrated code (based in my ePub3-itizer plugin) to generate an epub3-only version for editing and saving.
This is not attacking ePub 3. There's a reason not to use rem.

If you are creating an ePub for sale, it could get read on a Kobo as ePub and rem will not work. It could get read on a nook or an old Sony Reader where rem does not work.

So if you want to make sure you eBook does not break us em. ePub 3 should be made as backwards compatible as possible and rem is not going to help do that.

Last edited by JSWolf; 08-07-2024 at 07:38 PM.
JSWolf is offline   Reply With Quote
Old 08-07-2024, 08:39 PM   #19
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,072
Karma: 6361556
Join Date: Nov 2009
Device: many
Old readers that do not support epub3 and css3 are a dying breed, just like B&W TVs, followed by Colour, followed by LCD, followed by .... Tying yourself to old dead epub2 only e-readers is not the solution. As more and more epub3s are generated, the old readers wll just get the junk pile.

Using epub3 with full css support is the present and future.
KevinH is offline   Reply With Quote
Old 08-07-2024, 09:48 PM   #20
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,397
Karma: 20212733
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
This is not attacking ePub 3. There's a reason not to use rem.

If you are creating an ePub for sale, it could get read on a Kobo as ePub and rem will not work. It could get read on a nook or an old Sony Reader where rem does not work.

So if you want to make sure you eBook does not break us em. ePub 3 should be made as backwards compatible as possible and rem is not going to help do that.
So, Jon, you really need to understand how css coding works. If a reader/device does not support a setting it is supposed to ignore it. So, you can easily set your css to take advantage of this…

Code:
p.largetext {
     font-size:2em;
     font-size:2rem
}
Will use rem because it is the ‘most recent style’. If the reader/device doesn’t support rem then it ignores it and reverts to the next ‘most recent style’ which is em.

The coder who builds the epub should code for epub 3.x/css3.x but provide fallback coding if their target market has some ancient relic devices still in their inventory.

These are VERY basic concepts.

There are more advanced techniques where you can even check if a property is supported (@supports) or if the device has specific properties (@media). Your assumption that an epub coder MUST only use ePub2/css2 to be backwards compatible is just plain incorrect.

Last edited by Turtle91; 08-07-2024 at 10:44 PM.
Turtle91 is offline   Reply With Quote
Advert
Old 09-20-2024, 06:14 PM   #21
meghane_e
Zealot
meghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercise
 
Posts: 116
Karma: 38500
Join Date: Sep 2016
Location: San Jose, CA
Device: Kindle moving to Kobo or Boox
new to Sigil and CSS Validator

Please ignore, sorry!

Last edited by meghane_e; 09-20-2024 at 06:18 PM.
meghane_e is offline   Reply With Quote
Old 09-20-2024, 06:40 PM   #22
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,893
Karma: 207182180
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
For the record: Sigil's bundled Python is not version 3.4 . The Python version bundled with Sigil 2.3.1 is Python 3.11.9. The 3.4 you see in Sigil's plugin preference indicates that Python 3.4 or greater is (or was) the minimum required Python that would support Sigil's plugin framework.
DiapDealer is offline   Reply With Quote
Old 09-15-2025, 05:51 PM   #23
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,763
Karma: 24088559
Join Date: Dec 2010
Device: Kindle PW2
FYI: Since the W3C has updated the validator, I also updated the plugin and attached it to first post.

To trigger a download of the latest version of the validator you can also simply delete css-validator.jar in the plugin folder and run the plugin.

Last edited by Doitsu; 09-15-2025 at 06:04 PM.
Doitsu is offline   Reply With Quote
Old 10-05-2025, 06:30 AM   #24
Capricorn
Belgian Pommes Frites
Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.
 
Posts: 131
Karma: 35038
Join Date: Jan 2012
Device: Pocketbook Touch HD
Quote:
Originally Posted by KevinH View Post
Jon, please stop attacking everything that is epub3. CSS3 is valid in epub3 and rem is different than em in epubs that use different font sizes in different places as it always references the size of the font in the root (html) element.

Epub2 is now totally dead. Deprecated almost 15 years ago (first approved epub3 spec was dated, October 11, 2011). Nothing new should ever be created in epub2.

Good, spec compliant Epub3 readers are now broadly available and making epub3 backwards compatible with the old epub2 spec is possible.

This forum's love and support for a long dead specification is really misguided.

Fair warning: At some point, Sigil will eventually drop support for creating new epub2s and when asked to load one, it will eventually use integrated code (based in my ePub3-itizer plugin) to generate an epub3-only version for editing and saving.
Interesting Info. As far as I know I still have many epubs2 in my calibre database. Would it then be better to convert all of them to epub3 in order to be "future-proof"? Or can I simply leave them as is?
And how do I find all the epub2 books in my calibre database?
Capricorn is offline   Reply With Quote
Old 10-05-2025, 06:39 AM   #25
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: 80,789
Karma: 150249619
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 Capricorn View Post
Interesting Info. As far as I know I still have many epubs2 in my calibre database. Would it then be better to convert all of them to epub3 in order to be "future-proof"? Or can I simply leave them as is?
And how do I find all the epub2 books in my calibre database?
It would be better to leave them as is. You are not future-proofing by arbitrarily converting ePub2 to ePub3.

Only convert those ePub2 where you want to use ePub3 feature(s).
JSWolf is offline   Reply With Quote
Old 10-05-2025, 12:33 PM   #26
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,072
Karma: 6361556
Join Date: Nov 2009
Device: many
Again, we disagree ... if I were choosing a long term epub format for *archiving*, I would use epub3, not epub2 as it is closer to current html and css rules than epub2.
KevinH is offline   Reply With Quote
Old 10-05-2025, 01:35 PM   #27
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: 80,789
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Most eBooks these days come in ePub3 and not ePub2. So I suggest leaving the ePub as ePub3 if that's how it comes.
JSWolf is offline   Reply With Quote
Old 10-07-2025, 03:06 AM   #28
Capricorn
Belgian Pommes Frites
Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.Capricorn turned on, tuned in, and dropped out.
 
Posts: 131
Karma: 35038
Join Date: Jan 2012
Device: Pocketbook Touch HD
Quote:
Originally Posted by KevinH View Post
Again, we disagree ... if I were choosing a long term epub format for *archiving*, I would use epub3, not epub2 as it is closer to current html and css rules than epub2.
....Good to know...I will be moving all my epub2 books to epub3, step by step, as there seem to be quite a lot of them.
Thank you.
Capricorn is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
W3C Validator JustinThought Sigil 2 08-21-2018 10:33 PM
Offline CSS Validator? odamizu ePub 9 04-13-2016 02:09 AM
validate with W3C Validator question Capricorn ePub 12 03-09-2016 04:25 PM
W3C css Validator problem? pete6055 Sigil 14 02-28-2013 10:19 AM


All times are GMT -4. The time now is 11:18 PM.


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