-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Moin,
On Wednesday 07 February 2007 22:38:48 Mark Clements wrote:
"Evan Martin" evanm@google.com wrote in message news:9f43d19d0702071316k29d43f31y3a2cfe8a18d7859d@mail.gmail.com...
On 2/6/07, Brion Vibber brion@pobox.com
wrote:
[snip]
For example, looking at http://en.wikipedia.org/skins-1.5/monobook/main.css?55 it appears that comments and whitespace comprise more than 20% of the
bytes in the file:
maincss.gsub(//*.*?*//m, '').gsub(/\s{2,}/, ' ').length /
maincss.length.to_f
=> 0.79468590655243
You could likely do better with a real CSS parser.
However, that will make debugging very hard indeed. Not sure how big a consideration that is, but I know that I have often looked into the MW stylesheets to see how particular stylings are acheived when making my own css rules.
But shouldn't be a CSS-tidy being able to parse the file and spit it out nicely formatted again?
best wishes,
tels
- -- Signed on Wed Feb 7 22:33:58 2007 with key 0x93B84C15. View my photo gallery: http://bloodgate.com/photos PGP key on http://bloodgate.com/tels.asc or per email.
"I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." - Bjarne Stroustrup, inventor of the C++ programming language