05-19-2012, 06:15 PM | #1 |
Plugin Developer
Posts: 6,611
Karma: 4600391
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 04:20 PM. Reason: Update to latest version. |
05-19-2012, 06:26 PM | #2 | |
Resident Curmudgeon
Posts: 76,951
Karma: 138256890
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
Advert | |
|
05-19-2012, 06:30 PM | #3 | |
Resident Curmudgeon
Posts: 76,951
Karma: 138256890
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
05-19-2012, 06:47 PM | #4 |
Grand Sorcerer
Posts: 12,894
Karma: 76440364
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 |
05-19-2012, 07:38 PM | #5 |
Resident Curmudgeon
Posts: 76,951
Karma: 138256890
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 | |
|
05-19-2012, 07:40 PM | #6 |
Plugin Developer
Posts: 6,611
Karma: 4600391
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. |
05-19-2012, 08:58 PM | #7 |
Grand Sorcerer
Posts: 12,894
Karma: 76440364
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
|
05-19-2012, 09:06 PM | #8 | |
Plugin Developer
Posts: 6,611
Karma: 4600391
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. |
|
05-19-2012, 10:30 PM | #9 |
Plugin Developer
Posts: 6,611
Karma: 4600391
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. |
05-19-2012, 11:01 PM | #10 |
Grand Sorcerer
Posts: 6,234
Karma: 16537336
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
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 |
05-19-2012, 11:06 PM | #11 |
Plugin Developer
Posts: 6,611
Karma: 4600391
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. |
05-19-2012, 11:15 PM | #12 |
Resident Curmudgeon
Posts: 76,951
Karma: 138256890
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
05-19-2012, 11:58 PM | #13 |
Plugin Developer
Posts: 6,611
Karma: 4600391
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. |
05-20-2012, 12:04 AM | #14 |
Resident Curmudgeon
Posts: 76,951
Karma: 138256890
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.
|
05-20-2012, 01:35 AM | #15 |
Grand Sorcerer
Posts: 12,894
Karma: 76440364
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. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] EpubMerge | JimmXinu | Plugins | 542 | 10-28-2024 02:40 PM |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 495 | 10-19-2024 07:06 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 09:39 AM |
[GUI Plugin] FanFictionDownLoader | JimmXinu | Plugins | 3985 | 05-09-2015 12:18 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 01:27 PM |