View Single Post
Old 01-13-2021, 03:56 PM   #71
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: 8,893
Karma: 6120478
Join Date: Nov 2009
Device: many
FWIW - I have now modified the old CSSInfo.cpp approach used to identify unused stylesheet classes to walk very tenderly when seeing selectors that use combinators (blank, +, ~, >).

It will basically only look at the first part of the selector (pre combinator) and if that is used at all then assume that its full selector (with combinator) is used.

This will buy us some time to come up with the better solution for Sigil

Right now the qCSSParser should help but without a really good Query library we will be out of luck and testing that and trying to improve it will be my next project.

Even if we get that working on some limited set of queries, if wrCisco's python3lib approach can work, we may be better off using that as it is much more proven.
KevinH is offline   Reply With Quote