|
|
#1 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 225
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
|
Re-merge files split by Calibre conversion?
Apologies, because this has must have been asked before, but I couldn't find it mentioned anywhere - probably not using the right search terms.
I've been given an EPUB that's gone through Calibre conversion at some point, and many of the files have been split - the chapter number in one file, body of the text in the next. Is there any way to mass re-merge these files? I've always done it manually, one pair of split files at a time, which is time-consuming and painful, since I have hand damage. Finally occurred to me to ask if there was another way! Maybe some instruction I can give during another conversion...? |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,431
Karma: 29634066
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
click edit book, shift click to select all the files you want merged, right click and select merge selected text files.
|
|
|
|
|
|
#3 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 225
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
|
Quote:
I need something that merges each pair back with its pair, not with all the other split files. Right now, it looks like this part1_split_1 part1_split_2 part2_split_1 part2_split_2 part3_split_1 part3_split_2 and so on. If I merge all those together, I'll just have one file called part1_split_1, when what I should have is part1, part2, part3. (Sorry for over-explaining, I don't know many of the technical terms so I'm never sure if I'm explaining properly.) |
|
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,431
Karma: 29634066
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
merge them all together and then use splitting tool to automatically re split them based on heading tags or whatever other criteria you need.
|
|
|
|
|
|
#5 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 225
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
|
|
|
|
|
|
|
#6 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 225
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
|
Well, that worked on the files that were initially split, but because the same tags were used elsewhere in the book, now parts that weren't split before, are now split.
Can't overstate how much of a mess this ebook is. |
|
|
|
|
|
#7 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15,542
Karma: 248046501
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
Oh, happy days.
|
|
|
|
|
|
|
#8 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 225
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
|
Quote:
|
|
|
|
|
|
|
#9 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,054
Karma: 83121446
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
I can't help but think you should get in touch with the Author, Publisher or Retailer you obtained the book from and express concerns over the formatting of the material.
|
|
|
|
|
|
#10 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15,542
Karma: 248046501
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
And if the book was published a decade or more ago, it would be pretty strange to start complaining about it now. |
|
|
|
|
|
|
#11 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,436
Karma: 153744815
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I know what the problem is. Whoever did the conversion did not or does not know how to use calibre.
|
|
|
|
|
|
#12 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15,542
Karma: 248046501
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
|
|
|
|
|
|
#13 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,436
Karma: 153744815
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
|
|
|
|
|
#14 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,365
Karma: 1589505
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
This is the necessary module: Spoiler:
Instructions to configure the chain: 1) Manage Modules > Create > Choose a name for the module (merge_files) > Clear the contents of the code area > Copy/paste the code above > Ok 2) Add/Modify Chains > Plus sign > Give it a title (Merge splited) 3) Gear icon > Choose an icon (optional) > Plus sign > Double click the 'Action' cell > User Actions > Merge Files 4) Gear icon > Choose 'Filenames' > Include filters > Use this regex: Code:
.*?_split_ Now you have a 'Merge splited' option in the Editor Chain menu. You can also set a keyboard shortcut via: Add/Modify Chains > Keyboard shortcuts. |
|
|
|
|
![]() |
| Tags |
| calibre, conversion, merge file, split file |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can Calibre merge images files to PDF | halfpiint | Conversion | 2 | 08-13-2021 11:46 PM |
| Only split large files (no other conversion) | seanos | Conversion | 6 | 10-04-2020 09:09 PM |
| Calibre-merge 2 language ePub files | smashingpuffins | Editor | 4 | 01-06-2015 06:14 AM |
| Does Calibre recognize chm merge files? | Prion9 | Conversion | 1 | 08-06-2013 10:26 PM |