By greatly simplifying csstidy c++ code and extracting just the pieces that do the actual parsing of the css, and merging it, I have created CSSParser.cpp, CSSProperties.cpp, and CSSUtils.cpp that seem to do a good job parsing CSS stylesheets so we can use it to extract a complete list of selectors. It can also do some validation of css stylesheets as well as pretty printing the parsed css.
When I get them cleaned up and reduced down even more, I will add the to my Sigil tree in case people want to play around with it.
|