As stated previously, I have written a text-to-CSS conversion engine for designers to use and abuse. Currently, it’s not available for download because it is still in alpha and very unreliable. You can give it a whirl over at the demo page, and if you like it, send me a mail and I will be glad to send you the current package. I just don’t want the source in too many hands at the moment.
Textual takes a plain-text as input, and spits out valid, well-formed and mini-fied CSS. The syntax and and usage is explained in a cheat-sheet format at the demo. As far as I know, there is no other engine of this sort out there, so I hope to be breaking new grounds. The engine is written completely in PHP, and I have plans to port this to Perl and maybe ASP (but not anytime soon).
Any and every feedback is most welcome, as are suggestions for syntax (I want to make it as intuitive as possible) and features, criticisms (don’t know why, but constructive only) and downright volunteers to help make it better (PHP dabblers only).
If you like it, go back one paragraph and do one of those. I will try to sell you on the concept in about a days time if you’re still skeptical.
(Yes. I changed the name from CSSEngine to Textual, for creative reasons)
2 Comments
How many spaces to a tab? Seems unclear. Might be nice to have a setting (like a command in the code to set it) – glad to see the conversion to literal tabs.
a, a:visited: a, b: color: #ddd; text-decoration: none;
Should be:
a a,a:visited a,a b,a:visited b{color:#ddd;text-decoration:none;}
but I get:
a, a:visited a, a, a:visited b{color: #ddd;text-decoration: none}
Fixed the error. I had initially kept it one parent per block because of the way I was analysing them, but since I re-worked the engine, it could take multiple parents — just didn’t code it in.
And four spaces to a tab. I’ll make it part of the configurable aspects when I release the package.
Leave a comment
RSS feed for comments on this post. TrackBack URL