![]() |
#1 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,483
Karma: 4277235
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
[GUI Plugin] EpubSplit
Splitting omnibus eBooks into multiple eBooks seems to be a common request, but there haven't been many tools to do so without a lot of hand editing.
This plugin provides the ability to create new EPUBs by splitting off part of an existing (non-DRM) EPUB format eBook. Main Features of EpubSplit Plugin:
Special Notes:
Languages: This plugin has (at least partial) translations for:
Starting with calibre v0.9.23, calibre offers a command-line interface (CLI) for calling plugins. This plugin supports that option and allows the user to call the plugin's basic functionality from outside calibre without having to install Python or get the plugin's files separately. Details: Spoiler:
Installation Steps:
Version History: Spoiler:
Last edited by JimmXinu; 08-13-2024 at 03:20 PM. Reason: Update to latest version. |
![]() |
![]() |
![]() |
#2 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,619
Karma: 134254544
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,619
Karma: 134254544
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,545
Karma: 74358018
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Just tried splitting up an omnibus edition of the Game of Thrones that I had also split by hand. Seemed to work like a champ.
Now time to run it through KiwiDude's creation to see what it finds ![]() |
![]() |
![]() |
![]() |
#5 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,619
Karma: 134254544
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
When you did the splitting with this tool, were you able to easily get the shared files so what you ended up with was complete?
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,483
Karma: 4277235
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
The plugin looks through the HTML it's keeping for style and img tags and includes those files.
If you find a case where it doesn't, I'd like to know about it. |
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,545
Karma: 74358018
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
|
![]() |
![]() |
![]() |
#8 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,483
Karma: 4277235
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
It doesn't make any attempt to remove links to files that aren't in the source epub. |
|
![]() |
![]() |
![]() |
#9 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,483
Karma: 4277235
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Any suggestions for the icon for this?
Here's what I've been toying with. |
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Hi Jimm,
I just did a quick test with the 6-book bundle I split a few days ago. It seems to create clean and tidy epubs ![]() I did notice one thing, though... the opf and ncx files had both had all their end-of-line characters removed after the split, which made them difficult to read. Was this deliberate? Hopefully, I'll have more time tomorrow to test a few more bundles. Thank you for your hard work ![]() |
![]() |
![]() |
![]() |
#11 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,483
Karma: 4277235
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
@jackie_w - Thanks for testing--hopefully it continues to work for you.
As for the opf & ncx, they're being created completely anew, not copied and modified. While working on earlier projects, I found that trying to pretty print those files from my constructed DOM caused problems with excess whitespace in the text data, like ToC entries. At the time, I didn't judge it important enough to put more effort into. ![]() |
![]() |
![]() |
![]() |
#12 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,619
Karma: 134254544
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#13 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,483
Karma: 4277235
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
If you select them, they get included. If you don't, they don't.
It doesn't look at any <guide> tags, if that's what you're asking. If the source book has a cover in calibre, it will copy that to the new book record before presenting the metadata. If there's a cover in the metadata after it's been presented and accepted (from the original, downloaded, whatever), it will be included in the EPUB. No other html files are given any special consideration. |
![]() |
![]() |
![]() |
#14 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,619
Karma: 134254544
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Question, will there be a way to tell what files are what for the ones that don't have names that are obvious? Because if you cannot see the contents in some way, then it will be very difficult for some to be able to get all the files needed for a given eBook from an omnibus.
|
![]() |
![]() |
![]() |
#15 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,545
Karma: 74358018
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
What you see when you are doing the split is the chapter headings... So it's not picking files per se, rather a listing of HREFs (appears to be the full name of the files) and then their entries in the Table of Contents.
So all I did was to highlight the entries from the first portion of each book, through to the final TOC entry for that book. Images and CSS file names don'r appear in this list; they seem to get included based on what is needed. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] EpubMerge | JimmXinu | Plugins | 540 | 08-23-2024 09:42 PM |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 494 | 05-18-2024 02:34 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] FanFictionDownLoader | JimmXinu | Plugins | 3985 | 05-08-2015 11:18 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |