![]() |
#1 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,898
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
Advert | |
|
![]() |
#3 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
![]() |
![]() |
|
![]() |
||||
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 |