View Single Post
Old 07-25-2014, 04:38 PM   #58
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,089
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by davidfor View Post
Well, that was disgustingly easy. Well, it was once I actually read what Kovid had written about it. Then the hardest part was to find an icon*.

Because of a question in the Modify ePub thread about sorting the CSS, I decided to try an editor plugin.

It is dumb. It simply adds a toolbar button. Press the button and it sorts each stylesheet on the selectors. Then it presents the differences.

The plugin is attached. I have only tested it with the Qt5 beta code of calibre, but it should be OK with Qt4. I did this for curiosity more than any actual need I have. If there is any real interest, I'll open a thread to discuss it.

* And I don't think I was very successful at that.
Might not be working the way you thought (1.46 x64) if I understand the rules. Sorts All CSS in book? (actually, i would prefer the current only, but User PI may be limited)

2@ CSS: page_styles, styleesheet
I ran the PI, it showed changes made to Pages (not obvious, only @pages)
the other: stylesheet (the one that could use a sort, did not change. old styl calibre ASCII sorted styles)

Did I use incorrectly?
theducks is offline   Reply With Quote