Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 05-19-2012, 05:15 PM   #1
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,562
Karma: 4277329
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:
  • Present the user with a list of 'split lines' in the existing EPUB. The beginning of each file listed in the manifest spine and each Table of Contents(TOC) entry. <guide> tagged files are also indicated.
  • 'Preview' contents of each 'split line' as a tooltip over the HREF.
  • Allow user to edit the TOC entry(s) for each 'line'.
  • Select one or more of the offered lines to include in the new eBook,
  • Edit the metadata for the new split eBook, and then,
  • Extract only the selected contents of the source EPUB into the new EPUB,
  • Scan the selected content for CSS & image links for additional files to include,
  • Scan the selected content for internal links and anchors and update links that need to point to different filenames,
  • Use the metadata entered into calibre for the new eBook (including cover) as the metadata in the new EPUB.
  • Return to list of source EPUB sections after creating a new split EPUB.
  • New in version 2.1.0 - Select one or more of the offered lines and split each into a separate new book.
  • Configure which metadata from source EPUB to copy to new eBook, now offering more of the standard metadata and custom columns.
  • Configurably populate a custom column with the source book title/author/etc.
  • CLI via calibre-debug --run-plugin

Special Notes:
  • Requires Calibre v3.48.0 or later.

Languages:

This plugin has (at least partial) translations for:
  • Catalan
  • Chinese (Hong Kong)
  • Dutch
  • Estonian
  • French
  • German
  • Greek
  • Hebrew
  • Norwegian Bokmål
  • Polish
  • Portuguese (Brazil)
  • Romanian
  • Spanish
  • Swedish
  • Turkish
  • Ukrainian
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:

Code:
Usage: calibre-debug.exe --run-plugin EpubSplit -- [options] <input epub> [line numbers...]

Giving an epub without line numbers will return a list of line numbers: the
possible split points in the input file. Calling with line numbers will
generate an epub with each of the "lines" given included.

Options:
  -h, --help            show this help message and exit
  -o OUTPUT, --output=OUTPUT
                        Set OUTPUT file, Default: split.epub
  --output-dir=OUTPUTDIROPT
                        Set OUTPUT directory, Default: presend working
                        directory
  --split-by-section    Create a new epub from each of the listed line
                        sections instead of one containing all.  Splits all
                        sections if no lines numbers are given. Each split
                        will be named <number>-<output name> and placed in the
                        output-dir.  Sections without a Table of Contents
                        entry will be included with the preceding section(s)
  -t TITLE, --title=TITLE
                        Use TITLE as the metadata title.  Default: '<original
                        epub title> Split' or ToC entry with --split-by-
                        section
  -d DESC, --description=DESC
                        Use DESC as the metadata description.  Default: 'Split
                        from <epub title> by <author>'.
  -a AUTHOR, --author=AUTHOR
                        Use AUTHOR as a metadata author, multiple authors may
                        be given, Default: <All authors from original epub>
  -g TAG, --tag=TAG     Include TAG as dc:subject tag, multiple tags may be
                        given, Default: None
  -l LANG, --language=LANG
                        Include LANG as dc:language tag, multiple languages
                        may be given, Default: en
  -c COVER, --cover=COVER
                        Path to a jpg to use as cover image.


Installation Steps:
  1. Download the attached zip file and install the plugin/add to context menu or toolbar/restart Calibre as described in the Introduction to plugins thread.

Version History:
Spoiler:

Version 3.9.0 - 2024-08-13
- Update translations
- Keep order of non-anchor TOC entries to the same file.

Version 3.8.0 - 2024-07-16
- Update translations
- Remove unneeded import SafeConfigParser

Version 3.6.0 - 2024-04-01
- Update translations, change translation limit to 10%
- Decrypt obfuscated font files during split.
- Speed up get_split_files by using existing split_lines data #9

Version 3.6.0 - 2023-04-11
- Add --split-by-section & --output-dir CLI options.
- Update translations

Version 3.5.0 - 2022-09-13
- Add Split in N Books / Split by N Pieces Feature
- Fix for ProgressBar not initially rendering in Win10.
- Update translations

Version 3.4.0 - 2022-07-31
- Use Cal6 get_icons() so icon themes apply
- Update Translations

Version 3.3.0 - 2022-03-22
- Don't offer to copy composite columns.
- Update Translations

Version 3.2.0 - 2022-01-18
- Changes for upcoming Qt6 Calibre
- Update Translations

Version 3.1.0 - 2021-05-30
- Additional strings for translation.
- Add options to include src title, calibre URL and identifiers URL in split comments.
- Accept a wider range of types as font files.
- Update Translations

Version 3.0.0 - 04 Nov 2020
- Don't sort TOC items in same file. Fix for prior 'fix' (a633bd1756b993947506e8eb9351d72e984bd3c5)
- Add busy cursor while reading split data.
- Update translations.
- Bump minimum calibre version to v3.48.0

Version 2.9.0 - 10 Feb 2020
- Update translations.
- Add check and error message for unsupported epub3.
- Changes for eventual Python3 migration of Calibre.

Version 2.8.0 - 02 Dec 2019
- Update translations
- Update cover view as well as tags and library list on new book create.

Version 2.7.0 - 20 Apr 2019
- Bump Supported Calibre Version to v2.85.1.
- Update translations
- Bump copyright year
- Newer BeautifulSoup version included in Calibre v3.41 needs changes.

Version 2.6.0 - 05 Jan 2019
- Update Translations

Version 2.5.0 - 10 Sep 2018
- Add user input check that they selected something.
- Change New Book per Section code to include non-TOC sections with previous TOC.
- Calibre treats comments as HTML better.
- Make Edit Metadata Optional(both single and per Section),.
- Move Source Column setting to top.
- Add 'Configure' button to dialog.
- Add 'Always Include' optional feature.
- Allow 'series' custom columns for Source Col and set series num to number of book split by simple count.
- Update Translations

Version 2.4.0 - 13 Mar 2018
Apply posixpath.normpath() to content and reference items in case of /../ in paths.
Update translations (from Transifex.com).

Version 2.3.0 - 04 Dec 2017
Add feature to calculate size of split book.
Update translations (from Transifex.com).

Version 2.2.1 - 30 Jun 2017
Update translations (from Transifex.com).

Version 2.2.0 - 01 Nov 2016
Update translations (from Transifex.com).

This version adds an option (that is checked by default) that each new split book will take it's title from the first included TOC entry. If there's no TOC entry for the first included file, the previous behavior (Copy Title or 'Unknown') will be used.

Version 2.1.2 - 04 May 2016
Update translations (from Transifex.com).
Fix for Mac OS X freezes - set log level to CRITICAL unless calibre in debug or in BG job.
Fix for Mac OS X crashes - changes to progress bar dialogs implementation.
Change to include font files in splits. Includes all fonts, use other tools to remove unused fonts.

Version 2.1.1 - 29 May 2015
Update translations.

Version 2.1.0 - 12 May 2015
New feature: Split individual sections into separate books.
New feature: Double-click HREF column to bring up a dialog of the section sample that can be copied from.
Update translations, include more partial translations.

Version 2.0.3 - 17 Mar 2015
Switch to github for source repository.
Normalize line endings on windows standard.

Version 2.0.2 - 08 Sep 2014
New translations for German and Greek, courtesy of the volunteers at Transifex.

Version 2.0.1 - 19 Aug 2014
New translation for Swedish, courtesy of the volunteers at Transifex.

Version 2.0.0 - 22 Jul 2014
Now supporting Qt5 and Calibre 2.0 (currently in beta).
Translations updates to Spanish, French and Ukrainian and new translation Portuguese (Brazil), courtesy of the volunteers at Transifex.
Plugin zip file now uncompressed for performance per Kovid's recommendation.

Version 1.3.4 - 02 Jul 2014
Update Spanish and add Ukrainian translations, courtesy of the volunteers at Transifex.
Pretty format XML of generated metadata files.

Version 1.3.3 - 30 Dec 2013
Tweaks to French Translation. Thanks, Ptitprince.

Version 1.3.2 - 12 Dec 2013
Add Spanish Translation. Thanks, Terisa.
Tweaks to French Translation. Thanks, Ptitprince.

Version 1.3.1 - 07 Dec 2013
Add French Translation. Thanks, Ptitprince.

Version 1.3.0 - 22 Sep 2013
Remove debug output. Caused errors for a Mac user with a large epub.

Version 1.2.9 - 03 May 2013
Fix for a changed an internal name in calibre in 0.9.29.

Version 1.2.8 - 16 Mar 2013
Move CLI main import into cli_main. Caused problems for some users on install.

Version 1.2.7 - 15 Mar 2013
Add calibre CLI.

Version 1.2.6 - 01 Dec 2012
Change import for 64 bit calibre.

Version 1.2.5 - 26 Nov 2012
Disable plugin when viewing device, not library.

Version 1.2.4 - 09 Nov 2012
Handle TOC entries with empty text gracefully.

Version 1.2.3 - 27 Sep 2012
'Preview' contents of each 'split line' as a tooltip over the HREF.

Version 1.2.2 - 23 Sep 2012
Add more standard columns to copy list, add custom columns tab to allow copying, make both scrollable in config dialog.
Add options to save the source book title/author/etc to a custom column.

Version 1.2.1 - 28 Jul 2012
Allow for old JSON settings with only partial settings.

Version 1.2.0 - 27 Jul 2012
Return to list of source EPUB sections after creating a new split EPUB.
Options now stored inside the Library rather than an external JSON file.

Version 1.1.1 - Jun 28 2012
Handling links to missing images and css files better.

Version 1.1.0 - Jun 23 2012
Change icon
Add config options to choose which metadata from source EPUB to copy to new eBook.

Version 1.0.0 - May 26 2012
Allow edit of ToC entries.

Version 0.0.1 - May 21 2012
Not configurable.
Show {Guide} entries when splitting.

Version 0.0.0 - May 19 2012
Initial version.
Attached Files
File Type: zip EpubSplit.zip (470.3 KB, 3596 views)

Last edited by JimmXinu; 08-13-2024 at 03:20 PM. Reason: Update to latest version.
JimmXinu is offline   Reply With Quote
Old 05-19-2012, 05:26 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,038
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by jackie_w View Post
I take it you didn't read my previous post. Sigil is a very good tool for ad-hoc epub editing, but you will see that I listed a couple of things that Sigil didn't automatically clean up for me, namely css files which were no longer referenced and items in the opf <guide> which referenced deleted files. Nor did it automatically remove images which were no longer referenced, nor remove unwanted items from the .ncx file. Luckily, 'Modify epub' does both of the latter.
That's what FlightCrew is for. It will find these things so you can fix them. I know an automated tool can handle a lot of these things. But, what if you find out after you've split your ePub that you've left bits out because you didn't see the shared files. I've done splitting manually (before Sigil) and yes, most of the omnibus editions have shared files that are not obvious from the filenames. Unless this plugin supports viewing of files, it won't work well enough overall.
JSWolf is offline   Reply With Quote
Advert
Old 05-19-2012, 05:30 PM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,038
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by JimmXinu View Post
I agree that it's not nearly as easy as epub merging was. But I think a useful tool can still be had from it for basic splitting.

My vision right now is to offer a list of 'split lines'--the beginning of each file and/or each TOC entry--and let the user click and choose which they want to include. I agree that trying to automatically decide where to split is beyond complex.

Then the program includes only those files (or partial files), scans them for included css & images, writes only those files, manifest and TOC. TOC gets flattened along the way (that way lies madness).

I have that much working in CLI already. (Still need to fix internal URLs, worry about cover image, etc.) I plan to offer & collect metadata using calibre's edit metadata dialog, similar to EpubMerge.

That sounds to me like a useful tool because to do it manually would take a number of steps in Sigil to split/delete files, clean up TOC, plus Modify ePub to remove unused img/css files.

People who are looking for absolutely perfect epubs will still need to hand edit, but I think this will be useful.
Can you make your tool do an after clean? So say someone uses Sigil to split things. Instead of then having to sort out things that will need to be sorted like broken links and such, ePubSplit be used to do just the cleaning up?
JSWolf is offline   Reply With Quote
Old 05-19-2012, 05:47 PM   #4
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,643
Karma: 74500000
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
PeterT is offline   Reply With Quote
Old 05-19-2012, 06:38 PM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,038
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by PeterT View Post
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
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?
JSWolf is offline   Reply With Quote
Advert
Old 05-19-2012, 06:40 PM   #6
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,562
Karma: 4277329
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.
JimmXinu is offline   Reply With Quote
Old 05-19-2012, 07:58 PM   #7
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,643
Karma: 74500000
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by JSWolf View Post
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?
Well so far no sign of any broken links, missing images, or extra image files. No reports of any unmanifested files
PeterT is offline   Reply With Quote
Old 05-19-2012, 08:06 PM   #8
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,562
Karma: 4277329
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by JSWolf View Post
Can you make your tool do an after clean? So say someone uses Sigil to split things. Instead of then having to sort out things that will need to be sorted like broken links and such, ePubSplit be used to do just the cleaning up?
Somewhat. You could use EpubSplit and select all files, that should remove any extra css/image files that aren't used.

It doesn't make any attempt to remove links to files that aren't in the source epub.
JimmXinu is offline   Reply With Quote
Old 05-19-2012, 09:30 PM   #9
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,562
Karma: 4277329
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.
Attached Thumbnails
Click image for larger version

Name:	icon.png
Views:	2229
Size:	26.9 KB
ID:	86622   Click image for larger version

Name:	icon2.png
Views:	2028
Size:	9.2 KB
ID:	86623   Click image for larger version

Name:	icon3.png
Views:	2157
Size:	13.0 KB
ID:	86624  
JimmXinu is offline   Reply With Quote
Old 05-19-2012, 10:01 PM   #10
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,216
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
jackie_w is offline   Reply With Quote
Old 05-19-2012, 10:06 PM   #11
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,562
Karma: 4277329
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.
JimmXinu is offline   Reply With Quote
Old 05-19-2012, 10:15 PM   #12
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,038
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by PeterT View Post
Well so far no sign of any broken links, missing images, or extra image files. No reports of any unmanifested files
Did you get all the files that went with the book including all the shared files/cover pages/copyright?
JSWolf is offline   Reply With Quote
Old 05-19-2012, 10:58 PM   #13
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,562
Karma: 4277329
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.
JimmXinu is offline   Reply With Quote
Old 05-19-2012, 11:04 PM   #14
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,038
Karma: 134368292
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.
JSWolf is offline   Reply With Quote
Old 05-20-2012, 12:35 AM   #15
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,643
Karma: 74500000
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.
PeterT is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] EpubMerge JimmXinu Plugins 541 09-10-2024 11:05 AM
[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


All times are GMT -4. The time now is 07:35 PM.


MobileRead.com is a privately owned, operated and funded community.