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 01-10-2026, 10:17 AM   #1
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 609
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Error check: "expected selector X to come before Y"

The "Check books" error for malordered CSS rules says:

Expected selector "X" to come before selector "Y"

However, the associated details only give the position of rule X, not rule Y (compare with the error for mismatched tags, which gives the position of both tags).

Would it be possible to show the position of both selectors in the error message to make it easier to locate Y? (Or better still, since the checker can obviously recognise the expected order of rules, have an autofix option which reorders all the rules automatically?)
Phssthpok is offline   Reply With Quote
Old 01-11-2026, 12:15 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: 45,851
Karma: 28586150
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
These come from a third party library (stylelint) not calibre code, so I'm afraid not.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-11-2026, 07:28 AM   #3
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 609
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by kovidgoyal View Post
These come from a third party library (stylelint) not calibre code, so I'm afraid not.
Bah. Oh well. How a way to paste the 2nd rulespec from the message on the right into the "find" box so that special characters like [...] and (...) and ^= are escaped? As it is I have to select, copy, paste, and then look for specials and escape them manually.
Phssthpok is offline   Reply With Quote
Old 01-12-2026, 02:43 PM   #4
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 480
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
How does it hurt to have Expected selector "X" to come before selector "Y"?

From what I can tell books render without issue with this.
foosion is offline   Reply With Quote
Old 01-12-2026, 02:56 PM   #5
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,744
Karma: 9501034
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Some declarations might need to be inherited or replaced with a different value.
Karellen is online now   Reply With Quote
Advert
Old 01-13-2026, 07:00 AM   #6
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: 45,851
Karma: 28586150
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Phssthpok View Post
Bah. Oh well. How a way to paste the 2nd rulespec from the message on the right into the "find" box so that special characters like [...] and (...) and ^= are escaped? As it is I have to select, copy, paste, and then look for specials and escape them manually.
Search in text mode rather than regex and special characters in the search expression are automatically replaced.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre 6.11: "Remove CSS Rules" and "Check Book" Conflicts enuddleyarbl Editor 10 01-08-2023 09:33 AM
Epub 2.0.1 validator error: "Error while parsing file: element "img" missing required justin-b-918 ePub 6 04-26-2022 11:02 AM
Selector - bringing "open with" menu back nhedgehog PocketBook Developer's Corner 2 02-27-2017 03:47 AM
Bugs "Sanity Check epub" and "Failed Release date" on V 0.91 qkiazd Sigil 5 12-03-2015 05:01 AM
How to fix "Extra Titles" in Database in " Check Library - Problems Found millan Library Management 33 07-16-2015 08:12 AM


All times are GMT -4. The time now is 02:57 PM.


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