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-09-2019, 12:00 AM   #1
kcarscadden
Zealot
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: 134
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-09-2019, 12:56 AM   #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: 42,074
Karma: 19561336
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 offline   Reply With Quote
Advert
Old 12-09-2019, 05:42 PM   #3
phossler
Wizard
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: 1,042
Karma: 412718
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:	175
Size:	112.3 KB
ID:	175500  
phossler is offline   Reply With Quote
Old 12-09-2019, 09: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: 23,427
Karma: 105098497
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, 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:	145
Size:	54.9 KB
ID:	175503   Click image for larger version

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

Last edited by DNSB; 12-09-2019 at 10:03 PM.
DNSB is offline   Reply With Quote
Old 12-10-2019, 09:16 PM   #5
kcarscadden
Zealot
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: 134
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 11:33 AM
Pseudo classes to be deleted as unused classes Leonatus Sigil 2 09-23-2018 10:12 AM
Pseudo classes with classes Macsurfcat ePub 4 01-07-2016 05:00 AM
Multiple classes compatibility senhal ePub 5 11-23-2015 09:00 PM
How to find books with missing metadata? kaufman Library Management 1 01-04-2014 01:32 AM


All times are GMT -4. The time now is 11:03 AM.


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