View Single Post
Old 05-03-2021, 08:24 PM   #42
Nicolay77
Member
Nicolay77 ought to be getting tired of karma fortunes by now.Nicolay77 ought to be getting tired of karma fortunes by now.Nicolay77 ought to be getting tired of karma fortunes by now.Nicolay77 ought to be getting tired of karma fortunes by now.Nicolay77 ought to be getting tired of karma fortunes by now.Nicolay77 ought to be getting tired of karma fortunes by now.Nicolay77 ought to be getting tired of karma fortunes by now.Nicolay77 ought to be getting tired of karma fortunes by now.Nicolay77 ought to be getting tired of karma fortunes by now.Nicolay77 ought to be getting tired of karma fortunes by now.Nicolay77 ought to be getting tired of karma fortunes by now.
 
Nicolay77's Avatar
 
Posts: 21
Karma: 2139374
Join Date: Mar 2014
Device: Kobo Glo HD, PockeBook Inkpad Color
ePub translator

Hello, I made a quick ePub translator script in Python.

It uses Google Translate API (requires credentials in PATH).

Link is here: https://github.com/Poyeyo/epub-translate

It can translate all text, or it can output both original and translation as parallel texts.

As described in the readme, the resulting file needs to be fixed in Calibre e-book editor or other tool. But the fixes are quick and take almost no time.

Attached is one resulting file with parallel texts.
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	441
Size:	96.9 KB
ID:	186909  
Attached Files
File Type: epub out.epub (45.0 KB, 389 views)
Nicolay77 is offline   Reply With Quote