|
|
#1 |
|
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 821
Karma: 300102
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
|
[GUI Plugin] EpubSplit
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:
Command Line Interface(CLI) 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:
Paypal Donations: Version History: Spoiler:
Last edited by JimmXinu; 05-03-2013 at 10:53 AM. Reason: Update to latest version. |
|
|
|
|
|
#2 | |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,219
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Quote:
__________________
|
|
|
|
|
|
Enthusiast
|
|
|
|
#3 | |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,219
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Quote:
__________________
|
|
|
|
|
|
|
#4 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,200
Karma: 31947062
Join Date: Nov 2007
Location: Toronto
Device: Wifi (mine); Touch (wife + mine); iTouch (wife)
|
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
__________________
Peter |
|
|
|
|
|
#5 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,219
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
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?
__________________
|
|
|
|
|
|
#6 |
|
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 821
Karma: 300102
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
|
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 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,200
Karma: 31947062
Join Date: Nov 2007
Location: Toronto
Device: Wifi (mine); Touch (wife + mine); iTouch (wife)
|
Well so far no sign of any broken links, missing images, or extra image files. No reports of any unmanifested files
__________________
Peter |
|
|
|
|
|
#8 | |
|
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 821
Karma: 300102
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
|
Quote:
It doesn't make any attempt to remove links to files that aren't in the source epub. |
|
|
|
|
|
|
#9 |
|
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 821
Karma: 300102
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
|
Any suggestions for the icon for this?
Here's what I've been toying with. |
|
|
|
|
|
#10 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,095
Karma: 3332928
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350/650/T1, PB360, KoboGlo, KoboAuraHD
|
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: 821
Karma: 300102
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
|
@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 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,219
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Did you get all the files that went with the book including all the shared files/cover pages/copyright?
__________________
|
|
|
|
|
|
#13 |
|
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 821
Karma: 300102
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
|
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 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,219
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
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 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,200
Karma: 31947062
Join Date: Nov 2007
Location: Toronto
Device: Wifi (mine); Touch (wife + mine); iTouch (wife)
|
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.
__________________
Peter |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [GUI Plugin] FanFictionDownLoader | JimmXinu | Plugins | 1419 | 05-20-2013 01:14 PM |
| [GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 140 | 05-04-2013 11:27 AM |
| [GUI Plugin] Open With | kiwidude | Plugins | 183 | 04-22-2013 02:25 PM |
| [GUI Plugin] EpubMerge | JimmXinu | Plugins | 77 | 03-16-2013 09:35 AM |
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |