View Single Post
Old 10-07-2026, 12:52 PM   #5
lomkiri
Groupie
lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.
 
lomkiri's Avatar
 
Posts: 195
Karma: 1537710
Join Date: Jul 2021
Device: N/A
Quote:
Originally Posted by Ilcaa View Post
my regex is
Code:
/<span[^>]*>(.*?)<\/span>/g
The correct regex for calibre is :
Code:
<span[^>]*>(.*?)<\/span>
But it will rip out ALL the spans in your epub, you'll have to pass it in manual, or to be more specific about the class of the span (as Karellen emphasized)

The Theducks' suggestion to use the diaps toolbag plugin is excellent, it's very flexible and will take care of the embedded spans.

Quote:
Originally Posted by JSWolf View Post
Better to now use Otter's Editing Toolbag as it does the same thing and more. It's the new version.
To be noticed that this plugin is vibe-coded. The author is honest and advises in the 1st line of the post. But for my concern, I wont use LLM-generated code. I know this wave will submerge most of the beach, but the implications of those techniques are frightening enough (in various aspects : human, intellectual, social, ecological and educational, without speaking of the quality of the production) for me to avoid the most possible what LLMs have produced.

For the same reason (and to avoid to overshadow the contents of the web), I don't use google and Cie, not even bare ddg, but ddg with its noAI option : https://noai.duckduckgo.com

Last edited by lomkiri; 10-07-2026 at 01:06 PM.
lomkiri is offline   Reply With Quote