Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-11-2026, 06:44 AM   #1831
Zillion_
Enthusiast
Zillion_ began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Jul 2023
Device: Kindle ColorSoft
Using :has()

Hello, I have an issue trying to use :has() pseudo-class selectors in e-books.

Example:
.ChapterS:has(+.SubChapter) {
margin-bottom: 1em !important;
color: red !important;
}


The Kindle conversion logs show this:

Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Inserting metadata into book...
Flattening CSS and remapping font sizes...
Ignoring CSS rule with invalid selector: '.ChapterS:has(+ blockquote)' (The pseudo-class :has() is unknown)
Ignoring CSS rule with invalid selector: '.ChapterS:has(+ .ChapterLocation)' (Expected an argument, got <DELIM '.' at 16>)
Ignoring CSS rule with invalid selector: '.ChapterS:has(+ .SubChapter)' (Expected an argument, got <DELIM '.' at 16>)
Ignoring CSS rule with invalid selector: '.ChapterS:has(+ blockquote)' (The pseudo-class :has() is unknown)
Ignoring CSS rule with invalid selector: '.ChapterS:has(+ .ChapterLocation)' (Expected an argument, got <DELIM '.' at 16>)
Ignoring CSS rule with invalid selector: '.ChapterS:has(+ .SubChapter)' (Expected an argument, got <DELIM '.' at 16>)
Ignoring CSS rule with invalid selector: '.ChapterS:has(+ blockquote)' (The pseudo-class :has() is unknown)


Calibre supports them correctly for the display in the editor (text displays correctly, tested with some color tags) but the conversion doesn't.
Is this an issue in Calibre or in KFX Output ? (unclear to me)
Zillion_ is offline   Reply With Quote
Old 10-11-2026, 09:14 AM   #1832
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,443
Karma: 96111109
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by Zillion_ View Post
Hello, I have an issue trying to use :has() pseudo-class selectors in e-books.
...
Calibre supports them correctly for the display in the editor (text displays correctly, tested with some color tags) but the conversion doesn't.
Is this an issue in Calibre or in KFX Output ? (unclear to me)
The error messages that start with "Ignoring CSS rule with invalid selector" are produced by calibre's conversion pipeline, not by this plugin. If you instead convert the same book from EPUB to AZW3 (therefore not using this plugin) you will see the same errors and will also see that calibre strips out those pseudo-classes during conversion.

Even if you avoid calibre's removal of those pseudo-classes by using the CLI of this plugin it still will not work because they are also unsupported by Amazon and will be silently discarded by Amazon's Kindle Previewer during conversion.
jhowell is offline   Reply With Quote
Old 10-11-2026, 04:29 PM   #1833
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 7,263
Karma: 28183005
Join Date: Apr 2009
Location: USA
Device: iPad Mini, Kindle Colorsoft, Kindle Scribe Colorsoft
Quote:
Originally Posted by jhowell View Post
There are also numerous, serious bugs in Kindle Previewer 4 that have not yet been fixed in the three quickly released updates to it. (I guess that Alexa is just not the best choice to use when vibe coding.)
Presumably these bugs are shared by Send To Kindle? Might be interesting to compare them.
tomsem is online now   Reply With Quote
Old 10-11-2026, 09:02 PM   #1834
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,443
Karma: 96111109
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by tomsem View Post
Presumably these bugs are shared by Send To Kindle? Might be interesting to compare them.
Most of the bugs seem to have been introduced in attempting to update to x64 MSIX in Windows and ARM in macOS. As far as I can tell the conversion done in Amazon’s servers for send-to-kindle happens under Linux and so it is not affected.
jhowell is offline   Reply With Quote
Old 10-12-2026, 11:47 AM   #1835
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 7,263
Karma: 28183005
Join Date: Apr 2009
Location: USA
Device: iPad Mini, Kindle Colorsoft, Kindle Scribe Colorsoft
Quote:
Originally Posted by jhowell View Post
Most of the bugs seem to have been introduced in attempting to update to x64 MSIX in Windows and ARM in macOS. As far as I can tell the conversion done in Amazon’s servers for send-to-kindle happens under Linux and so it is not affected.
That makes sense.

The three epub books that I reported problems with upthread, with entity in alt text are passing muster with STK (as well as Kindle Previewer 4.x). They were not passing when I tried the 3 ePubs weeks ago.

Last edited by tomsem; 10-12-2026 at 03:51 PM.
tomsem is online now   Reply With Quote
Old 10-12-2026, 05:28 PM   #1836
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,443
Karma: 96111109
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by tomsem View Post
That makes sense.

The three epub books that I reported problems with upthread, with entity in alt text are passing muster with STK (as well as Kindle Previewer 4.x). They were not passing when I tried the 3 ePubs weeks ago.
They are definitely fixing some of the conversion problems. If they would just fix the handling of SVG images I would strongly recommend upgrading to 4. As it is now it’s a toss up between 3 and 4 for the books I test with.
jhowell is offline   Reply With Quote
Old 10-21-2026, 04:39 AM   #1837
SASSBS
Zealot
SASSBS doesn't litterSASSBS doesn't litter
 
Posts: 105
Karma: 118
Join Date: Aug 2011
Device: Kindle Keyboard; Kindle Fire
So I stupidly purchased a new Alexa Tablet as I needed a new Kindle.

I created a Kindle and Books folders in root, placed a test KFX book there and nothing shows in Kindle app.

Checked that the local access is set for both folders rebooted the Tablet no change.

Formatted and setup fresh still not showing.


Thanks
Has anyone got any ideas on what else I can try?
SASSBS is offline   Reply With Quote
Old 10-21-2026, 04:45 AM   #1838
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: 85,419
Karma: 154365103
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 SASSBS View Post
So I stupidly purchased a new Alexa Tablet as I needed a new Kindle.

I created a Kindle and Books folders in root, placed a test KFX book there and nothing shows in Kindle app.

Checked that the local access is set for both folders rebooted the Tablet no change.

Formatted and setup fresh still not showing.


Thanks
Has anyone got any ideas on what else I can try?
Using the Kindle app on the tablet, where is it that the app places downloaded eBooks from Amazon?
JSWolf is offline   Reply With Quote
Old 10-21-2026, 04:47 AM   #1839
SASSBS
Zealot
SASSBS doesn't litterSASSBS doesn't litter
 
Posts: 105
Karma: 118
Join Date: Aug 2011
Device: Kindle Keyboard; Kindle Fire
I assume in the hidden android data .com folder but it's locked down and you can't access it at all.
SASSBS is offline   Reply With Quote
Old 10-21-2026, 08:42 AM   #1840
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: 85,419
Karma: 154365103
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 SASSBS View Post
I assume in the hidden android data .com folder but it's locked down and you can't access it at all.
Can you jailbreak?
JSWolf is offline   Reply With Quote
Old 10-21-2026, 08:51 AM   #1841
SASSBS
Zealot
SASSBS doesn't litterSASSBS doesn't litter
 
Posts: 105
Karma: 118
Join Date: Aug 2011
Device: Kindle Keyboard; Kindle Fire
Don't believe there are any yet, I am going to return it. Too many issues you can't send books from my content page to it, and transferring 1000 books took 3 hours and I still have 3500 to go.
Shame as having Play store was nice
SASSBS is offline   Reply With Quote
Old 10-21-2026, 05:03 PM   #1842
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,443
Karma: 96111109
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by SASSBS View Post
So I stupidly purchased a new Alexa Tablet as I needed a new Kindle.
...
Has anyone got any ideas on what else I can try?
From what I have read I assume that an Alexa Tablet should function more or less like a regular Android device.

The folder in which the Kindle for Android app stores books is accessible via MTP as /Android/data/com.amazon.kindle/files. Placing a KFX book file into that folder should cause it to appear in the Kindle app.
jhowell is offline   Reply With Quote
Old 10-22-2026, 02:08 AM   #1843
SASSBS
Zealot
SASSBS doesn't litterSASSBS doesn't litter
 
Posts: 105
Karma: 118
Join Date: Aug 2011
Device: Kindle Keyboard; Kindle Fire
yeah I returned it for now, it's a shame if you can't sideload books without plugging it into a PC it's not ideal for me, though Amazon will think it's great I am sure.

Between the slowness of getting books on and the fact that I couldn't send bought books from the My Content and Devices to it along with the poor home screen design it's just not worth it at the moment.
SASSBS is offline   Reply With Quote
Reply

Tags
kfx, linux, wine


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Conversion Output] KePub Output Plugin jgoguen Plugins 588 03-28-2025 02:26 PM
Conversion output plugins? jgoguen Development 14 08-10-2013 11:19 AM
Output file name after conversion dbellefuil Calibre 2 06-14-2013 04:40 PM
catalogue builder output columns are not in the same order in the output KWhytte Library Management 5 12-04-2012 02:03 AM
Conversion output folders TechieLady Conversion 6 01-19-2012 02:49 AM


All times are GMT -4. The time now is 02:31 AM.


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