Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 07-03-2020, 06:48 AM   #16
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,693
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by mcdummy View Post
This gives the same result. When different elements/selectors use classes with the same name in the html, but only one of the classes is defined in the css, the report (both style classes and style rules) show that no unused class exist.

You have to go through all classes in the style classes report to check, if each class appearing in the html has a corresponding definition in the css.

I've now switched to Sigil. The Sigil report gives a better overview of the used/defined classes. So far, it does not provide an automatic deletion of unused classes, but there seems to be some work on implementing this tool.
After you remove all unused classes, you can see what was changed very easily. If you find something not to your liking, you can revert back before accepting the changes. You can then add the missing classes in the CSS and then remove the unused CSS once again.
JSWolf is online now   Reply With Quote
Old 07-08-2020, 07:45 AM   #17
mcdummy
Connoisseur
mcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the rough
 
mcdummy's Avatar
 
Posts: 73
Karma: 7130
Join Date: Apr 2015
Device: PRS-T3
Quote:
Originally Posted by JSWolf View Post
After you remove all unused classes, you can see what was changed very easily. If you find something not to your liking, you can revert back before accepting the changes. You can then add the missing classes in the CSS and then remove the unused CSS once again.
This neither removes nor reports all undefined classes.

As mentioned in my first post of this threat, when different elements/selectors use classes with the same name in the html, but only one of the classes is defined in the css, the classes won't be removed.

If you want to have a clear and good overview over undefined/unused classes, I recommend using the Sigil report tool.
mcdummy is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pseudo classes to be deleted as unused classes Leonatus Sigil 2 09-23-2018 09:12 AM
Is there way to list undefined classes? phossler Editor 10 07-29-2018 09:33 PM
Pseudo classes with classes Macsurfcat ePub 4 01-07-2016 04:00 AM
PRS-600 Sony library - Error undefined omk3 Sony Reader 13 01-22-2010 10:52 AM
Good Article on Amazon's Text to speech Removal pippin65 Amazon Kindle 12 03-03-2009 10:54 AM


All times are GMT -4. The time now is 07:24 AM.


MobileRead.com is a privately owned, operated and funded community.