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 03-16-2016, 03:09 PM   #1
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: 27,550
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
[Plugin] CSS3Validator

** This plugin is no longer necessary with the release of Sigil v0.9.5. The functionality it provided is now included within Sigil itself. There are settings under Sigil's preferences (the General section) for what CSS level you want the "Validate Stylesheets with W3C" tool to use. **

I'm leaving this thread here for educational purposes (and for users of older versions of Sigil).


CSS3Validator

A temporary, stop-gap validation plugin to allow the CSS from EPUBs to be validated (the online W3C validator) against CSS level 3 (especially handy for EPUB3s).

This plugin should become unnecessary when Sigil 0.9.5 is released -- since it will include the option to choose the CSS Level you wish to validate your EPUB2's stylesheets against.

Works much the same way as Sigil's built-in "Validate Stylesheets With W3C" tool. It writes temporary files that are then launched in the system's default web browser (just like the Sigil tool).

There are three configurable options in the plugin's preference json file (available after the plugin runs once):

css_level
String value (defaults to "css3"): choices are "css2", "css21" or "css3". Determines the CSSlevel you want the validator to use.

delay
An integer (defaults to 3): the number of seconds the webpage will delay before automatically posting its data to the W3C website. This is only relevant if your browser has javascript disabled (you'll have to click the 'check' button manually in case). If you have javascript enabled, there's no reason you can't set the delay to 0 seconds if you want to speed things up.

delete_tmp_folder
A boolean value (defaults to true): the plugin will attempt to clean up after itself. On older, slower machines, this may have the undesirable consequence of deleting the temporary files before the web browser has had a chance to load them. If you find that happening, change this value to false. Then no attempt will be made to delete the temporary files. You'll have to clean your temp files yourself occasionally if that's the case. All temporary files will be in a folder with the prefix "CSSValidator-" if you're interested.
Attached Files
File Type: zip CSS3Validator_v0.1.0.zip (2.0 KB, 413 views)

Last edited by DiapDealer; 03-26-2016 at 12:28 PM.
DiapDealer is offline   Reply With Quote
Old 03-16-2016, 03:13 PM   #2
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: 27,550
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I currently don't have the option of testing on OS X, so I'd appreciate it if a Mac user can let me know if it works on the platform.
DiapDealer is offline   Reply With Quote
Advert
Old 03-16-2016, 03:17 PM   #3
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: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
Happy to test it tonight after work on Mac if someone doesn't beat me to it.
KevinH
KevinH is online now   Reply With Quote
Old 03-16-2016, 04:25 PM   #4
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: 27,550
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
Happy to test it tonight after work on Mac if someone doesn't beat me to it.
KevinH
I thought you were out of town for while, or I would have hit you up for a test already.
DiapDealer is offline   Reply With Quote
Old 03-16-2016, 04:42 PM   #5
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: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
Works like a charm on the Mac. Tested one of my favorite epub3 testcases and the Safari browser window popped up and said passed css3 validation.

So works like a charm on Mac OS X.

Nice.

KevinH

Last edited by KevinH; 03-16-2016 at 05:12 PM.
KevinH is online now   Reply With Quote
Advert
Old 03-16-2016, 05:30 PM   #6
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: 27,550
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Great! Thanks!

** This plugin is no longer necessary with the release of Sigil v0.9.5. The functionality it provided is now included within Sigil itself. There are settings under Sigil's preferences (the General section) for what CSS level you want the "Validate Stylesheets with W3C" tool to use. **

I'm leaving this thread here for educational purposes (and for users of older versions of Sigil).

Last edited by DiapDealer; 03-26-2016 at 12:27 PM.
DiapDealer is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FileType Plugin] YVES Bible Plugin ClashTheBunny Plugins 27 01-16-2023 01:25 AM
[Plugin] KindleImport Sigil plugin DiapDealer Plugins 187 07-04-2022 10:11 AM
Plugin not customizable: Plugin: HTML Output does not need customization flyingfoxlee Conversion 2 02-24-2012 02:24 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM
New Plugin Type Idea: Library Plugin cgranade Plugins 3 09-15-2010 12:11 PM


All times are GMT -4. The time now is 12:10 PM.


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