View Single Post
Old 07-28-2014, 03:50 AM   #82
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Terisa de morgan View Post
There's no error now, but the plugin doesn't appear either. Is that normal or I'm doing something wrong?
It doesn't appear on the toolbar or it doesn't appear when you configure the toolbar? For the former, open the preferences and configure the toolbar. For the latter, uninstall the plugin and edit the file I mentioned. The install the plugin again.
Quote:
This is one of them (Perhaps comment are the problem? )

Spoiler:
calibre, version 1.46.0
ERROR: Failed to sort the CSS: Failed to sort the CSS, click "Show details" for more info

Traceback (most recent call last):
File "calibre_plugins.sortcss.main", line 83, in sort_stylesheets
File "calibre_plugins.sortcss.main", line 117, in sort_stylesheet
File "calibre_plugins.sortcss.main", line 117, in <lambda>
AttributeError: 'CSSComment' object has no attribute 'selectorText'
That isn't caused by the "p.txt1" and ".txt1" rules. That is because I am using a extremely simple sort algorithm that didn't take into account the fact that some types of styles didn't have selectors. And it definitely didn't take into account that the comments were considered to be styles.

I am working on a better sort methods. The first pass will be to sort those that can be sorted by selector and put them after all the ones that can't be sorted. Then, I'll look at something a little more intelligent.
davidfor is offline   Reply With Quote