MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   ePub (https://www.mobileread.com/forums/forumdisplay.php?f=179)
-   -   Offline CSS Validator? (https://www.mobileread.com/forums/showthread.php?t=272898)

odamizu 04-10-2016 09:27 PM

Offline CSS Validator?
 
Does anyone know of a CSS Validator that works without an Internet connection? Everything I've found seems to require a live Internet connection to access W3C.

I did find this page, which has command-line instructions. The instructions are a little over my head and I couldn't get it to work, but it seems you still need an Internect connection: https://jigsaw.w3.org/css-validator/DOWNLOAD.html

Thanks for any help!

eschwartz 04-10-2016 11:06 PM

The command-line instructions are for running the jar directly, versus running a local server and using it via a browser.
Either way you need no internet (unless you want to use someone else's remote instance --- e.g. the W3.org copy).

odamizu 04-11-2016 01:04 AM

Ooh! That's what I want — running the jar without internet! But I couldn't get it to work. I downloaded the css-validator.jar file and tried a bunch of Terminal commands based on java -jar css-validator.jar, but no joy.

I think I'm missing the prerequistes — source code? Java servlet container? All that is beyond my technical skills. Can you tell me whether I need more than the css-validator.jar file, a terminal window, and JRE 8? Thanks!

eschwartz 04-11-2016 02:45 AM

It looks like it also depends on some java .jar's from Jigsaw.

Java programs tend to be awkward that way.

Doitsu 04-11-2016 04:38 AM

Quote:

Originally Posted by odamizu (Post 3296239)
Does anyone know of a CSS Validator that works without an Internet connection?

Shameless plug: Install Sigil and my CSSLint plugin.

Note that CSSLint has been optimized for websites. I.e. it'll flag some issues that are irrelevant for ePubs.

odamizu 04-11-2016 11:57 PM

Thanks eschwartz! Sadly, Jigsaw is beyond my technical skills :o

Thanks Doitsu! I will check it out!

DiapDealer 04-12-2016 07:06 PM

As far as I know, you don't HAVE to have a working Apache with Jigsaw or Tomcat installation, but there is a missing jar library from the download that would prevent it from working from the command line.

Most advice I've seen is to install ant and build from a full CVS source configured to point to the necessary servlet jar (which can be pulled from a binary Tomcat package if necessary).

I've not gotten around to trying it myself yet, though.

eschwartz 04-12-2016 07:46 PM

That's what I said -- it depends on one or more *.jar's from Jigsaw.

Building it from source appears to be beyond the OP's technical skills, though.

(Also, that is VCS, not CVS -- unless you truly mean that ancient version control system which isn't being used here regardless. As typos go, that one is always good. :D)

DiapDealer 04-12-2016 08:11 PM

Quote:

Originally Posted by eschwartz (Post 3297426)
(Also, that is VCS, not CVS -- unless you truly mean that ancient version control system which isn't being used here regardless. As typos go, that one is always good. :D)

VCS indeed.
I didn't want to look up what specific system they were using. ;)

odamizu 04-13-2016 02:09 AM

Quote:

Originally Posted by eschwartz (Post 3297426)
... Building it from source appears to be beyond the OP's technical skills, though ...

Sadly, eschwartz is correct :o


Quote:

Originally Posted by DiapDealer (Post 3297413)
... install ant and build from a full CVS source configured to point to the necessary servlet jar (which can be pulled from a binary Tomcat package if necessary) ...

Sadly, everything you just said went way over my head :o :( :o :)


All times are GMT -4. The time now is 08:55 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.