Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 12-26-2024, 10:47 PM   #1
axu2
Groupie
axu2 reads XML... blindfoldedaxu2 reads XML... blindfoldedaxu2 reads XML... blindfoldedaxu2 reads XML... blindfoldedaxu2 reads XML... blindfoldedaxu2 reads XML... blindfoldedaxu2 reads XML... blindfoldedaxu2 reads XML... blindfoldedaxu2 reads XML... blindfoldedaxu2 reads XML... blindfoldedaxu2 reads XML... blindfolded
 
Posts: 180
Karma: 52202
Join Date: Jun 2023
Device: Kindle Scribe
Plugin to remove spans and add css

I have EPUBs from Google Docs.

They have issues that can be solved by just removing all span tags via "transform html" and adding a little bit of css via "add styles".

e.g.

img {
width: auto !important;
max-width: 100% !important;
height: auto !important;
}

Is there any existing plugin that does this?

I also filtered color styles, specified epub3, tablet device.

Last edited by axu2; 12-26-2024 at 10:58 PM.
axu2 is offline  
Old 12-26-2024, 11:06 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,898
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Moderator Notice

moved - see ==>> https://www.mobileread.com/forums/sh...d.php?t=122042

BR
BetterRed is offline  
Advert
Old 12-26-2024, 11:18 PM   #3
axu2
Groupie
axu2 reads XML... blindfoldedaxu2 reads XML... blindfoldedaxu2 reads XML... blindfoldedaxu2 reads XML... blindfoldedaxu2 reads XML... blindfoldedaxu2 reads XML... blindfoldedaxu2 reads XML... blindfoldedaxu2 reads XML... blindfoldedaxu2 reads XML... blindfoldedaxu2 reads XML... blindfoldedaxu2 reads XML... blindfolded
 
Posts: 180
Karma: 52202
Join Date: Jun 2023
Device: Kindle Scribe
I'd like to add that I can do python programming, but some pointers would be helpful if I decide to do it myself.

I've heard looking at example plugins is helpful, or knowing which apis to call.
axu2 is offline  
Old 12-26-2024, 11:28 PM   #4
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,642
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
For removing spans, you can either use a regex or use Diap's Editing Toolbag plugin... https://www.mobileread.com/forums/sh....php?p=2980740
Karellen is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove a CSS statement swepub Sigil 3 05-16-2024 03:55 AM
How to remove CSS styles completely? Joerg Starkmuth Sigil 24 05-13-2022 03:49 PM
CSS: Spans vs Font Families SigilBear ePub 32 06-17-2017 08:00 PM
when does calibre add/not add page_styles css cybmole Calibre 5 07-14-2014 03:58 AM
Remove border css pvalle29 Conversion 6 11-27-2013 04:24 AM


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


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