![]() |
#1 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,742
Karma: 103847703
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
span & div removal plugin in Calibre Editor
Is there a way to run it against ALL the html files without opening them in Editor tabs?
Some ebooks are very large. |
![]() |
![]() |
![]() |
#2 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,583
Karma: 14328510
Join Date: Nov 2019
Device: none
|
In Sigil I use the Tag Mechanic plugin. As I remember it's also available for calibre. It lets you remove them or replace them. Likewise with spans and some other tags. Its deletion and replacement functions aren't as useful as I'd like because you're limited to a built-in set of tags you can replace and replace with.
|
![]() |
![]() |
![]() |
#3 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,742
Karma: 103847703
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
I have a Plug-in in the Calibre Editor, but the ebook is maybe 1000 files? It seems to only process the open files, not all the files.
Ben Franklin's Harvard Classics + a bunch of other books making a 52 MiByte file! I've fixed a lot of garbage in the CSS and it then combined a bunch. But it seems to use a load of pointless extra divs and spans. It seems to have been created by someone with an enthusiasm to exactly duplicate a print experience using Sigil. Not Sigil's fault! Probably I'd have been better off collecting all the titles of gutenberg myself ![]() |
![]() |
![]() |
![]() |
#4 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,583
Karma: 14328510
Join Date: Nov 2019
Device: none
|
|
![]() |
![]() |
![]() |
#5 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,583
Karma: 14328510
Join Date: Nov 2019
Device: none
|
Is there a plugin to split the epub into multiple epubs?
|
![]() |
![]() |
![]() |
#6 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,583
Karma: 14328510
Join Date: Nov 2019
Device: none
|
|
![]() |
![]() |
![]() |
#7 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,742
Karma: 103847703
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
There is and I have it. But I couldn't figure how to choose what to click on on the TOC list or how it might regard multiple files as one book. Maybe you only split off one book at a time.
|
![]() |
![]() |
![]() |
#8 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,742
Karma: 103847703
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
I do have Sigil also, but only played with it once. I decided I didn't need to edit HTML and CSS for ebooks I make (I use LO Writer styles that map well to CSS). I've only used the Calibre editor for awful ebooks.
|
![]() |
![]() |
![]() |
#9 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,742
Karma: 103847703
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
|
![]() |
![]() |
![]() |
#10 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,914
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
AFAIK That does the whole book if not ticked I have never tested (AKA used) on books over 2M, so there may be a limit. Why not ask Diap(dealer)? |
|
![]() |
![]() |
![]() |
#11 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,238
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The plugin I do use a lot in the editor is Diaps Editing Toolbag. It's very good for what you want and it can be run against all HTML in one go without loading all the HTML in separate tabs.
|
![]() |
![]() |
![]() |
#12 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Which plugin? The only one I can think of is the one @JSWolf mentioned, "Diaps Editing Toolbag". I have used that many times to clean out or change unnecessary divs and spans across the full bool. It does has an option to only do the current file. You can turn that off from the menu for the pluigin.
|
![]() |
![]() |
![]() |
#13 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,597
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Repeated information.
|
![]() |
![]() |
![]() |
#14 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,742
Karma: 103847703
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Thanks. I will look for the setting and see which PI this actually is!
|
![]() |
![]() |
![]() |
#15 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,742
Karma: 103847703
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
OK, I didn't have the icon, just the item on plug in menu. When I added the icon to the tool bar I was able to change it from current file to book.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ibooks drm removal calibre plugin | JGageSATX | Plugins | 0 | 07-25-2018 05:12 PM |
Cannot Use DRM removal plugin in Calibre Any Longer | HisLittleOne | Plugins | 3 | 03-12-2017 05:24 AM |
Questions about SPAN and DIV using CSS | KingAuthor | Sigil | 11 | 02-07-2016 03:08 AM |
How to Add a Nook DRM-Removal Plugin to calibre | gyuimnbhyu | Calibre | 1 | 06-28-2014 10:24 AM |
DRM removal plugin for Calibre | cococrou | Plugins | 63 | 11-01-2012 05:08 PM |