12-03-2023, 07:25 PM | #511 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Dec 2023
Device: Kindle Oasis 8 gen
|
Quote:
|
|
12-12-2023, 10: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, 10:45 PM | #513 | ||
Plugin Developer
Posts: 6,439
Karma: 4276871
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, 10: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-12-2023 at 11:04 PM. |
|
12-13-2023, 10:41 AM | #515 | |
Plugin Developer
Posts: 6,439
Karma: 4276871
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, 02:04 PM | #516 |
Enthusiast
Posts: 45
Karma: 510
Join Date: Sep 2012
Device: Kindle
|
|
12-15-2023, 11:09 PM | #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-15-2023, 11:15 PM | #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, 06:07 PM | #519 |
Plugin Developer
Posts: 6,439
Karma: 4276871
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 10:25 AM. Reason: remove obsolete test version |
04-01-2024, 10:25 AM | #520 |
Plugin Developer
Posts: 6,439
Karma: 4276871
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, 09:45 AM | #521 |
Plugin Developer
Posts: 6,439
Karma: 4276871
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 10:30 AM. Reason: remove obsolete test version |
07-20-2024, 10:29 AM | #522 |
Plugin Developer
Posts: 6,439
Karma: 4276871
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 |
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 08:39 AM |
[GUI Plugin] Quick Preferences | kiwidude | Plugins | 62 | 03-16-2024 11:47 PM |
[GUI Plugin] FanFictionDownLoader | JimmXinu | Plugins | 3985 | 05-08-2015 11:18 PM |
eBookCleaner | slobberchopz | Plugins | 9 | 02-23-2012 04:25 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |