View Single Post
Old 03-09-2024, 10:16 AM   #1
Gaunc
Junior Member
Gaunc began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2024
Device: Ipad Pro 12.9, Kobo
Question Issues Converting Translated ZIP Content Back to EPUB in Calibre

Hello everyone,

This is my first thread here, and I'm reaching out for some assistance with Calibre. I've recently begun managing a small catalogue of EPUB files, which has led me to learn and use Calibre for the first time.

My workflow involves several steps designed around translating EPUB content. Here's a brief overview:

Convert EPUB to ZIP: Using Calibre, I first convert my EPUB files into ZIP format.
Unzip and Translate: After unzipping the EPUB, I run a script that translates the content within all the HTML files to another language, utilizing an AI LLM API.
Re-zip and Convert Back to EPUB: Once translation is complete, I rezip the files and attempt to convert this ZIP back into an EPUB format using Calibre.
The issue arises in the final step. Despite the translated HTML content displaying perfectly in a web browser, the re-converted EPUB file from the ZIP is a total mess. Interestingly, this issue persists even when I try converting the original EPUB to ZIP and then back again, without any modifications.

As someone new to Calibre and this process, I'm unsure where the problem lies or how to fix it. Has anyone here dealt with similar conversion challenges or have experience with translating content in EPUB files? Any insights or advice would be greatly appreciated.

Thank you in advance for your help!
Gaunc is offline   Reply With Quote