![]() |
#1 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
chasing the omnibus
Is there an easy way to merge several epubs into one, using Sigil? I have five short ebooks that I want to combine as a boxed set or omnibus.
I have an earlier version of the omnibus and, alas, I don't remember how I did that one. In updating the individual short books this month, I've made too many changes to replicate them in the larger book. Can I just open a new version of Book 1 and somehow insert Book 2 into it, followed by books 3, 4, and 5? It would then be a simple matter to redo the front- and back-matter and otherwise clean up the book. Thanks, and happy Christmas! - NJ |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
In Calibre, I use the EPUBMerge plugin.
5 books? You can put them in whatever order you want, then it would import all the HTML + CSS for you. In Sigil, you could always Add Existing Files, but you'd have to make sure all your filenames are unique. If books are multi-volume works, I typically name my files like this:
This would guarantee, when merging multiple books together, that there won't be any conflicts. - - - Side Note: You'll have to make sure all your CSS is correct+consistent though. If you weren't careful (or didn't use the same CSS across all your books), you may have a mess on your hands. (For more info, see my posts discussing technical details, pitfalls/tips/tricks when merging 26 "books" together to clean up.) Last edited by Tex2002ans; 12-25-2021 at 11:21 AM. |
![]() |
![]() |
![]() |
#3 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
+1 for EPUB Merge.
Why work hard? Use it to merge, touch up with Sigil (or Calibre) |
![]() |
![]() |
![]() |
#4 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Right! I will go in search of the plug-in....
|
![]() |
![]() |
![]() |
#5 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#6 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,761
Karma: 5706256
Join Date: Nov 2009
Device: many
|
What I typically do in Sigil is as follows:
1. open each epub in Sigil and use the ReRenamer tool to prefix file names in one go to add something like Book1, etc and save it. 2. Open Book1, and then use Add Existing ... to add the html files in Book2 (it will pull in linked images and stylesheets automatically) 3. Repeat for remaining books. 4. Use BookBrowser's move capability to organize files into whatever folders you want 5. Recreate ToC If this is an epub 3, remember to pull any existing javascripts by hand. And do not forget to use the Update Manifest Properties tool. Using an EpubMerge plugin is probably easier ![]() |
![]() |
![]() |
![]() |
#7 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Brilliant, thanks. I am well launched. -- NJ
|
![]() |
![]() |
![]() |
#8 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
EpubMerge can be used from the command line
BR |
![]() |
![]() |
![]() |
#9 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
>If you weren't careful (or didn't use the same CSS across all your books), you may have a mess on your hands.
This proved to be the case, but it was all fixable, and I now have a validated file. Thank you all! -- NJ |
![]() |
![]() |
![]() |
#10 | |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,587
Karma: 14328510
Join Date: Nov 2019
Device: none
|
Quote:
Code:
hr + p { text-indent: 0; } |
|
![]() |
![]() |
![]() |
#11 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
Unless you are sure you used identical css files for all books. Also images. You can leave it at that, each file or set of files will have its own CSS, I see a lot of commercial omnibi do that. I try to unify them. First make a new CSS file and link it to all html files. Open one of the other CSS files and copy in the base styles: body, p, headings, to the new file. Do a "Delete unused classes" to begin. Open a file in book1. Look at a body text para. Click to go to its CSS defn. if it's reasonable, cut (not just copy) that from the CSS and paste it in your new stylesheet. Now open a file in book2. Look at its body text para. If different to that in book 1, select all the book2 files, S&R "bodytext2" to "bodytext1" -- including the quotemarks. "Delete unused classes" should remove Bodytext2 definition. Need to take more care if you get a set of files with calibreNN stylenames that have different definitions in each book. Only use S&R on "Selected files" in that case. After each new style added to your master file, delete unused styles until the other files are all empty, then delete the files and the links to them. Tedious at times, but then you can restyle the book and keep it consistent. For title pages, can be faster to just copy one of them and paste the title text into it rather than mess with styles. Last edited by AlanHK; 01-09-2022 at 08:48 PM. |
|
![]() |
![]() |
![]() |
#12 | |
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,827
Karma: 7943430
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
In Step 2, do I need to do Folder Out on Book2 to make the html files accessible for Add Existing? Or can Add Existing actually pull html files out of an .epub, and if so, how do I do this? (When open Book1 and use Add Existing to select Book2.epub, nothing happens. So I'm figuring I need to do Folder Out on Book2 first ... yes?) Thank you! ![]() |
|
![]() |
![]() |
![]() |
#13 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,761
Karma: 5706256
Join Date: Nov 2009
Device: many
|
I just use Save As after ReRenaming the files and then run unzip on the resultingepub. But FolderOut will work also.
|
![]() |
![]() |
![]() |
#14 |
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,827
Karma: 7943430
Join Date: Mar 2015
Device: Kindle, iOS
|
![]() |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Free] Chasing Dreams until Sunday | karen_parson | Self-Promotions by Authors and Publishers | 0 | 01-30-2016 04:03 AM |
Chasing Spirits $1.99 - by Glynn James | jumpingjack42 | Self-Promotions by Authors and Publishers | 9 | 09-14-2011 09:52 AM |
CHASING AMANDA and MEGAN'S WAY | MelissaFoster:-) | Self-Promotions by Authors and Publishers | 1 | 04-17-2011 01:53 PM |
Free Book (Sony) - Chasing AllieCat | koland | Deals and Resources (No Self-Promotion or Affiliate Links) | 4 | 01-13-2011 12:02 PM |