Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 02-22-2024, 08:27 AM   #91
Gil_Bates
Member
Gil_Bates began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Nov 2022
Device: Vivlio Touch Hd plus
how to resume fixing automatic translation mistakes ?

Hello

When working on a large book, and manually fixing the automatic translation mistakes, it clearly appears that this is not possible in a single session.

So, is it possible, ( and how ?) to interrupt the correcting job, then resume it for example the next day, while retaining the modifications made manually the day before and to carry on from last page done...

Thanks a lot
Gil_Bates is offline   Reply With Quote
Old 03-15-2024, 05:38 AM   #92
kindlefere
Enthusiast
kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.
 
Posts: 47
Karma: 220512
Join Date: Jul 2016
Device: PW2
Thanks for your suggestion. The plugin just added the support for two columns reading for original and translation content. You can find this new feature in latest version v2.3.1.

Quote:
Originally Posted by Nam Bui View Post
This plugin is really useful, and I appreciate the developers for creating it. However, when using it, I face some difficulties in quickly distinguishing between the original text and the translated text on e-ink devices based on color (especially on devices with only two colors, black and white). It would be great to have a border between the original text and the translated text (like a rectangular frame around the translated text). Alternatively, splitting the book page into two sides (left for the original text and right for the translated text) with a dividing line would be helpful. Another suggestion is to provide a quick way to switch between the original and translated text. Once again, thanks to the developers of this plugin, and have a great day, everyone!

An example of a bilingual book has a border in the middle separating the original paragraph from the translated paragraph:



An example of borders is that if we use the method of surrounding translated paragraphs with rectangles, we can customize the borders of those shapes to look beautiful and easily distinguishable from the original paragraph. Translated paragraphs will be added to one of those rectangles depending on your preference:
kindlefere is offline   Reply With Quote
Advert
Old 03-15-2024, 05:44 AM   #93
kindlefere
Enthusiast
kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.
 
Posts: 47
Karma: 220512
Join Date: Jul 2016
Device: PW2
@Jedi
Hello, your request frequency exceeds the limits of DeepL. via

Quote:
Originally Posted by Jedi View Post
Hello, thank you for the plugin.

I am trying to translate a book (Harry Potter and the chamber of secrets) and I got this message.

The translate engine I selected is DeepL (Free) and the engine API error kinda confuses me
kindlefere is offline   Reply With Quote
Old 03-15-2024, 05:46 AM   #94
kindlefere
Enthusiast
kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.
 
Posts: 47
Karma: 220512
Join Date: Jul 2016
Device: PW2
The plugin just added the support to set the original text color. Please check the latest version v2.3.1.

Quote:
Originally Posted by Whallup View Post
Great Plugin! I like how you can set the text color of the translated text.. is there any method or any plans to change the original text color? I ask this for the sake of easier readability - being able to have black text for the translation while the original language is grey or a faded color would help me read the content easier without being tripped up.
kindlefere is offline   Reply With Quote
Old 03-15-2024, 05:57 AM   #95
kindlefere
Enthusiast
kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.
 
Posts: 47
Karma: 220512
Join Date: Jul 2016
Device: PW2
@Gil_Bates

If you enabled the cache during translation (default as enabled), all translation data including manual modifications will be saved in cache files. This will make sure no previous work get lost after reopen the plugin.

The cache setting locates at Setting -> General -> Cache. You can also change the path of the cache files in Cache Manager (via the Manage link aside) in case data get cleared from the default path by system.
kindlefere is offline   Reply With Quote
Advert
Old 03-16-2024, 10:55 PM   #96
kindlefere
Enthusiast
kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.
 
Posts: 47
Karma: 220512
Join Date: Jul 2016
Device: PW2
Thanks for all your concern. We just released the new version v2.3.2. It now supports two columns (left/right) reading for original and translation content, and you can also customize the original context color now. For more new features, please find release note on GitHub.

Last edited by kindlefere; 03-17-2024 at 11:53 AM.
kindlefere is offline   Reply With Quote
Old 03-28-2024, 05:21 AM   #97
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,258
Karma: 6426810
Join Date: Sep 2020
Device: Calibre E-book viewer
Quote:
Originally Posted by kindlefere View Post
It now supports two columns (left/right) reading for original and translation content, and you can also customize the original context color now. [...]
Wow. Just... wow!

It looks incredibly good and in sync as the book gets scrolled through. I've set a justified alignment custom CSS in the ebook viewer, just to see how it looked - probably not a good idea when text is in german, yet it works really fine:

Click image for larger version

Name:	2024-03-28 04_51_53-Müdigkeitsgesellschaft Fatigue society [English] [EPUB] — E-book viewer.png
Views:	284
Size:	159.6 KB
ID:	207209

Click image for larger version

Name:	2024-03-28 04_58_49-Müdigkeitsgesellschaft Fatigue society [English] [EPUB] — E-book viewer.png
Views:	228
Size:	180.7 KB
ID:	207210

The options to append target language to title metadata and target language code to language field are also awesome additions! I remember I had to add some 'translated' tags manually when I first used the plugin. By the way I noticed that the author name gets duplicated for some reason:

Click image for larger version

Name:	MWSnap 2024-03-28, 04_46_05.png
Views:	241
Size:	7.5 KB
ID:	207211

Click image for larger version

Name:	MWSnap 2024-03-28, 04_41_17.png
Views:	238
Size:	17.1 KB
ID:	207212

Also, this version seems unbelievably faster.

Comfy.n is offline   Reply With Quote
Old 03-29-2024, 07:41 AM   #98
kindlefere
Enthusiast
kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.
 
Posts: 47
Karma: 220512
Join Date: Jul 2016
Device: PW2
@Comfy.n

I'm glad that the new version gives you a better experience!

The issue of duplicated author names is caused by the metadata translation feature. I have fixed the issue you pointed out by not applying translations if they are the same as the original text.

You can install the Rolling Release version for this fix or wait for the next release version.

Please feel free to share any feedback with me if you encounter any issues.
kindlefere is offline   Reply With Quote
Old 04-15-2024, 05:18 PM   #99
moby4me
Junior Member
moby4me began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2010
Device: none
thank you very much. it works very well on windows 11. I like it.
moby4me is offline   Reply With Quote
Old 05-05-2024, 03:17 PM   #100
Evogel99
Junior Member
Evogel99 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2022
Device: Moon+Reader pro
Running 3.2.4 for the first time, Google (free) is now blocking the plugin. Below is the trace.
══════════════════════════════════════
Spoiler:

┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
Status: Failed 1 times / Sleeping for 5 seconds
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
Error: Traceback (most recent call last):
File "calibre_plugins.ebook_translator.lib.translation" , line 136, in _translate_text
File "calibre_plugins.ebook_translator.engines.goog le", line 53, in translate
File "calibre_plugins.ebook_translator.engines.base ", line 210, in get_result
Exception: Can not parse returned response. Raw data:

Traceback (most recent call last):
File "calibre_plugins.ebook_translator.engines.base ", line 197, in get_result
File "mechanize\_mechanize.py", line 257, in open
File "mechanize\_mechanize.py", line 313, in _mech_open
mechanize._response.get_seek_wrapper_class.<locals >.httperror_seek_wrapper: HTTP Error 429: Too Many Requests

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta name="viewport" content="initial-scale=1"><title>https://translate.googleapis.com/translate_a/single</title></head>
<body style="font-family: arial, sans-serif; background-color: #fff; color: #000; padding:20px; font-size:18px; overscroll-behavior:contain;" onload="e=document.getElementById('captcha');if(e) {e.focus();} if(solveSimpleChallenge) {solveSimpleChallenge(,);}">
<div style="max-width:400px;">
<hr noshade size="1" style="color:#ccc; background-color:#ccc;"><br>
<form id="captcha-form" action="index" method="post">
<noscript>
<div style="font-size:13px;">
In order to continue, please enable javascript on your web browser.
</div>
</noscript>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<script>var submitCallback = function(response) {document.getElementById('captcha-form').submit();};</script>
<div id="recaptcha" class="g-recaptcha" data-sitekey="6LfwuyUTAAAAAOAmoS0fdqijC2PbbdH4kjq62Y1b" data-callback="submitCallback" data-s="2m4Fh_-wYuG2tUsbdr9wNWL6jQEpbQj2p1IhzFPYPsTp7HpqiGjCYzpve ck90_qQr_LdJ4ptCd4udeNNxCAKpmHk7O3uMYrljIzTxeOJu1t _rVTtN26gIkLxrFgvdIjZIisegx0-khdjw6TNP-LS5TbkCOLpmwXa4y7be4r_FaCapDM1MwtV5SL1ypP2KHVomxus HKC_bW1LhnyIs6qUIDxPAqHckXGpQ2I8l3YcgpXbH7HlmlMPDp AZKRbDV_RM7tuFYcKdYaBW7vtWPGBx5qgUyKJg05s"></div>

<input type='hidden' name='q' value='EgRs8uSkGOH53rEGIjDDwNLjFKBpiYMmU9sPGTHaWU6 7ZFt7CnuQpxu1nWe1vrplaqAGt39uWTKIQ7VG844yAXJaAUM'> <input type="hidden" name="continue" value="https://translate.googleapis.com/translate_a/single">
</form>
<hr noshade size="1" style="color:#ccc; background-color:#ccc;">

<div style="font-size:13px;">
<b>About this page</b><br><br>

Our systems have detected unusual traffic from your computer network. This page checks to see if it's really you sending the requests, and not a robot. <a href="#" onclick="document.getElementById('infoDiv').style. display='block';">Why did this happen?</a><br><br>

<div id="infoDiv" style="display:none; background-color:#eee; padding:10px; margin:0 0 15px 0; line-height:1.4em;">
This page appears when Google automatically detects requests coming from your computer network which appear to be in violation of the <a href="//www.google.com/policies/terms/">Terms of Service</a>. The block will expire shortly after those requests stop. In the meantime, solving the above CAPTCHA will let you continue to use our services.<br><br>This traffic may have been sent by malicious software, a browser plug-in, or a script that sends automated requests. If you share your network connection, ask your administrator for help &mdash; a different computer using the same IP address may be responsible. <a href="//support.google.com/websearch/answer/86640">Learn more</a><br><br>Sometimes you may be asked to solve the CAPTCHA if you are using advanced terms that robots are known to use, or sending requests very quickly.
</div>

IP address: 108.242.228.164<br>Time: 2024-05-05T17:07:45Z<br>URL: https://translate.googleapis.com/translate_a/single<br>
</div>
</div>
</body>
</html>

Last edited by theducks; 05-05-2024 at 04:03 PM. Reason: SPOILER LOG files
Evogel99 is offline   Reply With Quote
Old 05-05-2024, 05:32 PM   #101
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,258
Karma: 6426810
Join Date: Sep 2020
Device: Calibre E-book viewer
Just out of testing, I managed to get two complete translations with Google (free) today, one using v3.2.3, the other running the latest 3.2.4 version

@kindlefere:
https://github.com/kovidgoyal/calibr...4700b495e5ae6f

might be worth looking
Comfy.n is offline   Reply With Quote
Old 05-06-2024, 03:03 AM   #102
kindlefere
Enthusiast
kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.
 
Posts: 47
Karma: 220512
Join Date: Jul 2016
Device: PW2
Quote:
Originally Posted by Evogel99 View Post
Running 3.2.4 for the first time, Google (free) is now blocking the plugin. Below is the trace.
Which version of Calibre are you using?

It's likely the request frequency reach the limit of Google Translate. The issue may occur on the Calibre which built-in python version lower than 3.7.
kindlefere is offline   Reply With Quote
Old 05-06-2024, 03:36 AM   #103
kindlefere
Enthusiast
kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.kindlefere ought to be getting tired of karma fortunes by now.
 
Posts: 47
Karma: 220512
Join Date: Jul 2016
Device: PW2
Quote:
Originally Posted by Comfy.n View Post
@kindlefere:
https://github.com/kovidgoyal/calibr...4700b495e5ae6f

might be worth looking
Thank you for your hint. I'm not sure if consent is required for accessing the public API of Google Translate, as there are no cookies involved.
kindlefere is offline   Reply With Quote
Old 05-06-2024, 01:53 PM   #104
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,443
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by kindlefere View Post
Thank you for your hint. I'm not sure if consent is required for accessing the public API of Google Translate, as there are no cookies involved.
But they may be logging user IP's to prevent a denial of service attach
theducks is online now   Reply With Quote
Old 05-06-2024, 05:10 PM   #105
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,258
Karma: 6426810
Join Date: Sep 2020
Device: Calibre E-book viewer
According to my calibre debug log, my built-in python version is 3.11.5
Comfy.n is offline   Reply With Quote
Reply

Tags
calibre, translate


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB lrpirlet Plugins 2 08-18-2022 04:15 PM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 06:25 AM
ebook-convert.exe doesn't work with deDRM plugin, unlike GUI or calibredb.exe fireattack Conversion 8 09-26-2020 08:14 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 03:36 AM.


MobileRead.com is a privately owned, operated and funded community.