Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-08-2019, 11:00 PM   #1
kcarscadden
Connoisseur
kcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavens
 
kcarscadden's Avatar
 
Posts: 87
Karma: 13776
Join Date: Jan 2007
Location: semi-north Ontario, Canada (N 45.41 W -79.67)
Device: iPad Air 2, Samsung A5 2017
find missing classes

This is probably already answered, but I cannot find it.

How do I find classes missing in the stylesheet? That is, I have <p class="NoIndent">, but .noindent { } in the stylesheet. So NoIndent does not exist.
kcarscadden is offline   Reply With Quote
Old 12-08-2019, 11:56 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 36,268
Karma: 16098999
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use the remove unused css rules tools with remove unused classes enabled and then see what was removed using the see what changed button, then undo the changes.
kovidgoyal is online now   Reply With Quote
Advert
Old 12-09-2019, 04:42 PM   #3
phossler
Guru
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 871
Karma: 295056
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
Originally Posted by kcarscadden View Post
This is probably already answered, but I cannot find it.

How do I find classes missing in the stylesheet? That is, I have <p class="NoIndent">, but .noindent { } in the stylesheet. So NoIndent does not exist.
I use the Report tool, anything with [0] is undefined in a CSS
Attached Thumbnails
Click image for larger version

Name:	Annotation 2019-12-09 164054.png
Views:	64
Size:	112.3 KB
ID:	175500  
phossler is offline   Reply With Quote
Old 12-09-2019, 08:57 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 6,971
Karma: 32272951
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Forma, Clara HD, Nexus 7 HD, iPad Pro, Tolino epos
As an alternate, Sigil's Report tool will return Style classes in HTML files and Style classes in CSS files. In the report, you will see either a matching selector (HTML files page) or an used in HTML file (CSS files page) -- if that section is blank, you have problems.

Edit: Added images of the two reports. They show one of the reasons I abhor Vellum as an epub editor. What sort of editor has over 60 classes used in the HTML files but not defined in a CSS file?
Attached Thumbnails
Click image for larger version

Name:	report1.png
Views:	53
Size:	54.9 KB
ID:	175503   Click image for larger version

Name:	report2.png
Views:	43
Size:	48.2 KB
ID:	175504  

Last edited by DNSB; 12-09-2019 at 09:03 PM.
DNSB is offline   Reply With Quote
Old 12-10-2019, 08:16 PM   #5
kcarscadden
Connoisseur
kcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavens
 
kcarscadden's Avatar
 
Posts: 87
Karma: 13776
Join Date: Jan 2007
Location: semi-north Ontario, Canada (N 45.41 W -79.67)
Device: iPad Air 2, Samsung A5 2017
Thanks phossler. That's exactly what I was looking for.


Keith
kcarscadden is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML to EPUB, how to keep classes? MistaPrime Conversion 27 07-30-2019 10:33 AM
Pseudo classes to be deleted as unused classes Leonatus Sigil 2 09-23-2018 09:12 AM
Pseudo classes with classes Macsurfcat ePub 4 01-07-2016 04:00 AM
Multiple classes compatibility senhal ePub 5 11-23-2015 08:00 PM
How to find books with missing metadata? kaufman Library Management 1 01-04-2014 12:32 AM


All times are GMT -4. The time now is 12:24 PM.


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