Quote:
Originally Posted by Ilcaa
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
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