12-03-2023, 08:25 PM | #511 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Dec 2023
Device: Kindle Oasis 8 gen
|
Quote:
|
|
12-12-2023, 11:27 PM | #512 |
Enthusiast
Posts: 45
Karma: 510
Join Date: Sep 2012
Device: Kindle
|
Does the CLI expect simple filenames for merge?
Does the CLI expect simple filenames for merge? In other words, for multiple files, is it expecting something like--
$ calibre-debug --run-plugin EpubMerge file1.epub file2.epub book9.epub I've got a directory with several epubs and with some fairly typical ebook names (by that I mean they are quite varied), as an example-- My ebook of all the planets_ John Smith.epub How to make a souffle(part I) _ Web Recipes.epub The Christmas Tree Story, Nothing Artificial.epub I've tried many ways to get these oddly named files formatted so EpubMerge can handle, but I've hit a point where I'm not sure exactly sure what it's expecting. |
Advert | |
|
12-12-2023, 11:45 PM | #513 | ||
Plugin Developer
Posts: 6,592
Karma: 4600349
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
Unless it's just an oversight that you forgot to include in your post, I suspect you need the '--' after '--run-plugin EpubMerge' that tells calibre-debug's option parser to stop and pass everything after that to EpubMerge. From first post: Quote:
|
||
12-12-2023, 11:57 PM | #514 | |
Enthusiast
Posts: 45
Karma: 510
Join Date: Sep 2012
Device: Kindle
|
Quote:
UPDATE: that did the trick. On Linux, to get it to read the full list of filenames in-line and separate, I did this for anyone who cares or might stumble on this in the future Built file list with find ~/Documents/mergeTest/ -type f | sed 's/ /\\ /g' | tr '\n' ' ' > epubs-list2 Then ran EpubMerge from calibre-debug CLI cat epubs-list2 | xargs calibre-debug --run-plugin EpubMerge -- This produced the default merge.epub file. Last edited by tatteredscroll; 12-13-2023 at 12:04 AM. |
|
12-13-2023, 11:41 AM | #515 | |
Plugin Developer
Posts: 6,592
Karma: 4600349
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
FYI, you can save several steps like so: Code:
find ~/Documents/mergeTest/ -type f -print0 | xargs -0 calibre-debug --run-plugin EpubMerge -- |
|
Advert | |
|
12-13-2023, 03:04 PM | #516 |
Enthusiast
Posts: 45
Karma: 510
Join Date: Sep 2012
Device: Kindle
|
|
12-16-2023, 12:09 AM | #517 |
Junior Member
Posts: 2
Karma: 10
Join Date: Dec 2023
Device: kindle oasis 3
|
for windows batch file
thanks for the tip~~
and gpt4 create this windows batch file, it works well (assuming that 'calibre-debug' is included in your windows path) @echo off setlocal enabledelayedexpansion set FILES= for %%f in ("C:\your_path\*.epub") do ( set FILES=!FILES! "%%f" ) calibre-debug --run-plugin EpubMerge -- %FILES% |
12-16-2023, 12:15 AM | #518 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Dec 2023
Device: kindle oasis 3
|
for windows
Quote:
and gpt4 create this batch file, it works well (assuming that calibre-debug included in your windows path) Code:
@echo off setlocal enabledelayedexpansion set FILES= for %%f in ("C:\your_path\*.epub") do ( set FILES=!FILES! "%%f" ) calibre-debug --run-plugin EpubMerge -- %FILES% |
|
02-11-2024, 07:07 PM | #519 |
Plugin Developer
Posts: 6,592
Karma: 4600349
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Test Version
2024-02-11 - Update Translations - Decrypt encrypted/obfuscated font files. Recently, it's come up in the EpubSplit thread that encrypted font files weren't being handled gracefully. It turns out Calibre Convert has been 'preserving font encryption' for nearly 15 years. This version of EpubMerge decrypts the font files, but it doesn't make any attempt to re-encrypt them again in the merged epub. I just don't see the point. There are, in fact, two different 'encryptions' used, according to the Calibre code. I've carried over the implementation for both, but I only have one to test with. FYI. Last edited by JimmXinu; 04-01-2024 at 11:25 AM. Reason: remove obsolete test version |
04-01-2024, 11:25 AM | #520 |
Plugin Developer
Posts: 6,592
Karma: 4600349
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Version Released
Version 2.18.0 - 2024-04-01 - Update Translations - Decrypt encrypted/obfuscated font files - Save opf:file-as attr from author tags in CLI #13 - Actually have 'en' default for `-l` in CLI. |
07-16-2024, 10:45 AM | #521 |
Plugin Developer
Posts: 6,592
Karma: 4600349
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Test Version
2024-07-16 - Add title/author/filename Job log output on individual input epub failure #17 - Restructure for easier CLI install - contributed by Matheus Last edited by JimmXinu; 07-20-2024 at 11:30 AM. Reason: remove obsolete test version |
07-20-2024, 11:29 AM | #522 |
Plugin Developer
Posts: 6,592
Karma: 4600349
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Version Released
Version 3.1.0 - 2024-07-20 - Update Translations - Add title/author/filename output on individual input epub failure. #17 |
08-20-2024, 05:03 PM | #523 |
Member
Posts: 13
Karma: 10
Join Date: Feb 2019
Device: Lenovo desktop Win 10 Chrome browser
|
New version of EpubMerge fails
For about 5 years we have been merging about a half-dozen Epub files of the articles in our quarterly journal using Calibre w/EpubMerge plugin. Until the last issue we were using Calibre V5 but we just updated to V7 and updated the plugin. We can no longer successfully merge our files and our next issue is scheduled to be released next wee. We cannot find any legible error message or reason for failure. We are doing nothing differently from the past. What can we do now?
|
08-20-2024, 05:35 PM | #524 |
Plugin Developer
Posts: 6,592
Karma: 4600349
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Run Calibre in debug mode (under Calibre's Preferences dropdown) and try it. When you quit Calibre, you'll get a debug log with additional output.
Otherwise, I'd need to see the epubs involved to. |
08-20-2024, 10:40 PM | #525 |
Member
Posts: 13
Karma: 10
Join Date: Feb 2019
Device: Lenovo desktop Win 10 Chrome browser
|
Merge failure
I did the debug process but the log indicated nothing wrong but still output failed. I used exactly the same files on my own laptop which was running Calibre 7.6 instead of 7.16 and EpubMerge v2.17 instead of 3.1. It worked fine.
But on the desktop with versions 7.16 and 3.1, the same inputs and settings leads to "EpubMerge failed. No new Epub file was created..." |
Tags |
calibre, combine books, epubmerge, make collection, merge epub, merge epubs |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 09:39 AM |
[GUI Plugin] Quick Preferences | kiwidude | Plugins | 62 | 03-17-2024 12:47 AM |
[GUI Plugin] FanFictionDownLoader | JimmXinu | Plugins | 3985 | 05-09-2015 12:18 AM |
eBookCleaner | slobberchopz | Plugins | 9 | 02-23-2012 05:25 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 01:27 PM |