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: 8,160
Karma: 5450818
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,640
Karma: 23191067
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
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: 76,529
Karma: 136565488
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: 8,160
Karma: 5450818
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,228
Karma: 19001261
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 online now   Reply With Quote
Old 09-20-2024, 06:14 PM   #21
meghane_e
Connoisseur
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: 86
Karma: 38050
Join Date: Sep 2016
Device: Kindle
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,045
Karma: 199464182
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
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 09:22 PM.


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