![]() |
#526 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,540
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
By failed, what exactly happened?
|
![]() |
![]() |
![]() |
#527 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
If it didn't, then I can't really help you without seeing the input epubs. If you don't want to share the epubs due to copyright issues, you could try applying the ScrambleEbook plugin and merging the scrambled versions. If they fail the same way, you can share the scrambled versions for me to see. |
|
![]() |
![]() |
Advert | |
|
![]() |
#528 |
Member
![]() Posts: 13
Karma: 10
Join Date: Feb 2019
Device: Lenovo desktop Win 10 Chrome browser
|
By failed, I mean when I activate the EpubMerge plugin, put in all the metadata and click ok, instead of getting the usual response of completion, I get a banner that says "EpubMerge failed. No new Epub file was created..." but without any error message or indication of why it failed. In running the plugin in debug mode, after quitting Calibre, a log file was created but it gave no clue that there was something wrong. Is there a way I can post that log file?
Is there a way I can revert to version 2.17 of the plugin to try that instead of 3.1? And/or perhaps Calibre 7.6 instead of 7.16? Those versions worked fine with my Windows 11 laptop but did not work on the two Windows 10 desktops at the office that I support. |
![]() |
![]() |
![]() |
#529 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,079
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
EPUB Merge seems to run in background (Worker process?)
I just tested a 3 book merge on 3.1 (w10) I filled in the metadata. Then I got a message that it would complete in background BEFORE it would appear (as a format) in the library. Then I got the confirmation, and it was there ![]() ![]() If something was blocking 'workers', I would expect other things would also fail. |
![]() |
![]() |
![]() |
#530 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
MR doesn't allow very new users to post files. There's a Requests to enable Private Messages thread. Or use one of the many file hosting solutions available online and post a link here.
Yes, previous versions of both are available: https://download.calibre-ebook.com/ https://github.com/JimmXinu/EpubMerge/releases |
![]() |
![]() |
Advert | |
|
![]() |
#531 |
Member
![]() Posts: 13
Karma: 10
Join Date: Feb 2019
Device: Lenovo desktop Win 10 Chrome browser
|
The 7 Epub files we need to merge as well as the text basis for the metadata file and the cover page we use are all in this folder:
https://www.asa3.org/ASA/Epub/ I did download the v2.17 of the plugin but I don't know how to install it in Calibre. How do I do that? I presume I remove v3.1 but how do I get it to install the older version? I'm just trying to see if the version makes a difference. The desktops have merged files exactly like the ones in the above folder for about 5 years. But after updating to the latest versions, we get the failure response I mentioned.b Randy |
![]() |
![]() |
![]() |
#532 |
Member
![]() Posts: 13
Karma: 10
Join Date: Feb 2019
Device: Lenovo desktop Win 10 Chrome browser
|
PS I just uploaded a photo of the failure notice I get to the folder in the link in m previous post. This is the only indication, other than a blank file added, that there was a failure. The file name is /ASA/Epub/EpubMerge Failure notice.pdf
|
![]() |
![]() |
![]() |
#533 |
Member
![]() Posts: 13
Karma: 10
Join Date: Feb 2019
Device: Lenovo desktop Win 10 Chrome browser
|
And I added the log file of the debug mode: file name is tmpsbo5__ug.rtf
|
![]() |
![]() |
![]() |
#534 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
First problem I found: PSCF9-24p086-106Helble.epub has a bad CRC. Log error:
Spoiler:
Fixing it: This one I fixed just by opening it and saving in Calibre's Edit book. Second problem: Found this in all of the epubs; the embedded fonts are not encrypted correctly. Log: Spoiler:
(FYI, these messages were available in the background Jobs log and the debug log.) This isn't just a problem with EpubMerge, Calibre's Edit book and Convert cannot decrypt the fonts in these epubs either. Which isn't too surprising, I lifted the decrypt code for EpubMerge from Calibre. It's easy to see the corrupted font files by opening the epub in Calibre's Edit book and looking for the 'X on red' icon on each font file in the file browser. In past, EpubMerge didn't handle encrypted fonts at all--the older version in fact broke all encrypted fonts by changing the uuid used as the encryption key. Fixing it: Ideally, you'd fix the embedded fonts in the input epubs. I can't help you with that. If that's not an option, the quickest solution I found was to remove the embedded fonts using the Modify ePub 'Remove embedded fonts' option (second from top on the right column of options). Then the current EpubMerge works. Or, of course, you could use the older version of EpubMerge and know you're sending it with broken fonts. The plugin intro thread documents how to manually install plugins. |
![]() |
![]() |
![]() |
#535 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,540
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
|
![]() |
![]() |
![]() |
#536 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,540
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Did you do as the message says and go to the Calibre Jobs menu and look at the detailed output from the job?
|
![]() |
![]() |
![]() |
#537 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,391
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I took a quick look at the files involved. All 7 of them had the fonts encrypted using the IDPF method. I used Sigil to mark them as unecrypted. In PSCF9-24p086-106Helble.epub, the Figure 9 - Raindrop imp_fmt.png and Helble fig10 top p13_fmt.png 10 images showed errors. I just re-added them to the epub but they should be replaced as they are definitely corrupted.
I've attached the 7 epubs and the anthology I created from them in numerical order. One note is that many of the font files are duplicated through the epubs and I would recommend combining the font files after the merge. |
![]() |
![]() |
![]() |
#538 |
Member
![]() Posts: 13
Karma: 10
Join Date: Feb 2019
Device: Lenovo desktop Win 10 Chrome browser
|
Thank you all so very much. It will take me a little while to absorb all of this. I'll work through it and keep in touch. I should add that the component epub files were all generated from InDesign. I'll have to learn more about how they handle the fonts.
|
![]() |
![]() |
![]() |
#539 |
Member
![]() Posts: 13
Karma: 10
Join Date: Feb 2019
Device: Lenovo desktop Win 10 Chrome browser
|
Thank you all so very much for helping me. I'm learning a lot. Here's an update of what I've done so far:
Removing the embedded fonts on each input file worked in the sense of getting a valid anthology but the output is not acceptable for readability. Those font changes like italics, etc. are necessary. I have not used InDesign and the users I know do not know how or if the encryption of embedded fonts can be modified. I then tried various combinations of versions on a desktop running Windows 10 and obtained the following results, always using only the files I put in the folder in the link I posted earlier: Calibre v7.16 EpubMerge v3.1 Failed Calibre v7.16 EpubMerge v2.17 Failed Calibre v7.6 EpubMerge v3.1 Failed Calibre v7.6 EpubMerge v2.17 SUCCESS! So in my role as a volunteer IT support for a small non-profit office, I can keep them working by installing C v7.6 EM v2.17 on their desktops and telling them not to upgrade either one until I tell them it's ok. |
![]() |
![]() |
![]() |
#540 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
New Test Version Attached
2024-08-23 - Don't require <dc:identifier> to have attribute opf:scheme="uuid" when using IDPF font encryption. I still don't know exactly what's going on here--I suspect that there's something weird with the embedded fonts. I still needed to address the PSCF9-24p086-106Helble.epub bad CRC issue first, but skipping the <dc:identifier opf:scheme="uuid"...> check lets these epubs merge and at least one of the embedded fonts still works--I didn't bother checking more than one. Calibre's Edit book still marks all the fonts as 'not valid', including the one I can see working. EpubMerge v2.17 is before EM learned about encrypted fonts, so that makes sense. I've no idea why Calibre 7.6 would make any difference. Using Sigil to specifically IDPF encrypt embedded fonts in a different epub works fine with Edit book and EpubMerge. Last edited by JimmXinu; 09-10-2024 at 11:05 AM. Reason: remove obsolete test version |
![]() |
![]() |
![]() |
Tags |
calibre, combine books, epubmerge, make collection, merge epub, merge epubs |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 05:42 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 |