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 06-07-2023, 11:10 AM   #46
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
New version (v2.0.0) was released. Here are new/improved features and enhancements. You can also go to GitHub page to check out more.
  1. Added "Advanced Mode" for translation fine-grain control.
  2. Added more options such as endpoint/sampling/model to ChatGPT.
  3. Supported multiple API keys for all built-in translation engines.
  4. Added "Ignore Element" feature for excluding unneeded elements.
  5. Enhanced cache feature to include more information for reviewing.
  6. Added preferred input/output formats and preferred source language options.
  7. Added Azure ChatGPT to built-in translation engines.
  8. Added "Preferred Mode" for clicking icon button in general settings.
  9. Added "Timeout" option to "HTTP Request" setting.
  10. Optimized ChatGPT prompt for more accurate translating.
  11. Fixed the bug that cannot filter paragraphs properly.
  12. Optimized user experiences, improved features and fix bugs.

Last edited by kindlefere; 06-08-2023 at 11:40 PM.
kindlefere is offline   Reply With Quote
Old 06-08-2023, 09:30 AM   #47
Zetmolm
Guru
Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.
 
Posts: 613
Karma: 2031728
Join Date: Jan 2010
Device: PocketBook Touch (622), PocketBook Touch Lux 2, Pocketbook Touch HD 3
It's getting better and better. Thanks for the new version.

I have a feature request: for target format EPUB (and perhaps other formats where this applies), could you add an option to automatically add a Language tag for the target language in the output ebook's metadata? E.g., if the target language is Dutch, add:
Code:
<dc:language>nl</dc:language>
.

It would also be nice to have an option to automatically add a subject tag to the output ebook, e.g. "bilingual" or "Translated by Ebook Translator". The text to be added as a subject should of course be editable as a setting in the plugin.

I hope you are willing consider these options.
Zetmolm is offline   Reply With Quote
Advert
Old 06-09-2023, 11:21 AM   #48
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
@Zetmolm

Thanks for the advice, we will consider these options in the future version.
kindlefere is offline   Reply With Quote
Old 06-14-2023, 03:36 PM   #49
ramses777
Junior Member
ramses777 began at the beginning.
 
ramses777's Avatar
 
Posts: 2
Karma: 10
Join Date: Jun 2023
Device: kindle
When I try to translate with ChatGPT, the following error appears: HTTP Error 429: Too Many Requests . Can someone help me?
ramses777 is offline   Reply With Quote
Old 06-16-2023, 06:38 AM   #50
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
Error 429 is mostly caused by a network issue. You can try changing your IP address and attempt again.
kindlefere is offline   Reply With Quote
Advert
Old 06-16-2023, 04:46 PM   #51
ramses777
Junior Member
ramses777 began at the beginning.
 
ramses777's Avatar
 
Posts: 2
Karma: 10
Join Date: Jun 2023
Device: kindle
Quote:
Originally Posted by kindlefere View Post
Error 429 is mostly caused by a network issue. You can try changing your IP address and attempt again.
Do I need ChatGPT Plus for it to translate?
ramses777 is offline   Reply With Quote
Old 06-16-2023, 11:59 PM   #52
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
I don't think ChatGPT Plus is necessary for 429 error. However, we suggest keeping the Concurrency limit at 1 and enlarging the Max interval in the HTTP Request settings to avoid the same error happening again in the future.
kindlefere is offline   Reply With Quote
Old 06-19-2023, 06:27 PM   #53
colinsky
Addict
colinsky ought to be getting tired of karma fortunes by now.colinsky ought to be getting tired of karma fortunes by now.colinsky ought to be getting tired of karma fortunes by now.colinsky ought to be getting tired of karma fortunes by now.colinsky ought to be getting tired of karma fortunes by now.colinsky ought to be getting tired of karma fortunes by now.colinsky ought to be getting tired of karma fortunes by now.colinsky ought to be getting tired of karma fortunes by now.colinsky ought to be getting tired of karma fortunes by now.colinsky ought to be getting tired of karma fortunes by now.colinsky ought to be getting tired of karma fortunes by now.
 
colinsky's Avatar
 
Posts: 238
Karma: 3500000
Join Date: Sep 2009
Device: Sony PRS-300, PRS-T1, PRS-T3
Just in case anyone finds it useful, I've found background striping makes the output of this plugin a bit more readable on an e-reader screen. Without it, I occasional had to struggle to notice where the language of the text had changed. (Paste the following in your CSS)

Quote:
p[lang="en"] {
text-indent: 0;
}

p:not([lang="en"]) {
background-color: lightgrey;
margin: 0.5em 0 0.5em 0;
text-indent: 0;
}

span:not([lang="en"]) {
background-color: lightgrey;
}
I've also toyed with incremental numbering of each pair of translated text (as you might see in an academic dual-language book) which can be applied using the same approach.
colinsky is offline   Reply With Quote
Old 07-02-2023, 01:19 AM   #54
parataxia0
Junior Member
parataxia0 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2023
Device: Kindle Fire 2021
Question Hopefully resolved soon....

Hi,

First of all, this plugin is brilliant and it has translated via Google Free for many of my e-books that needed it.

However, I am trying to use ChatGPT instead and I am receiving this error when it works for a few paragraphs, this error arises:



Below is the log:

calibre, version 6.22.0 (win32, embedded-python: True)
Translation Failed: Failed: 'choices'

Traceback (most recent call last):
File "calibre_plugins.ebook_translator.advanced", line 159, in translate_paragraphs
File "calibre_plugins.ebook_translator.translation" , line 149, in handle
File "calibre_plugins.ebook_translator.request", line 37, in run
File "asyncio\runners.py", line 44, in run
File "asyncio\base_events.py", line 641, in run_until_complete
File "calibre_plugins.ebook_translator.request", line 34, in create_tasks
File "calibre_plugins.ebook_translator.request", line 22, in create_worker
File "calibre_plugins.ebook_translator.translation" , line 144, in process_translation
File "calibre_plugins.ebook_translator.translation" , line 109, in _prepare_translation
File "calibre_plugins.ebook_translator.engines.chatgpt" , line 106, in parse_stream
KeyError: 'choices'


Unsure what I can do on my end, seems as though the dictionary and key is somehow invalid.. and I do not know how to reproduce it either... hopefully this thread is still active. Thank you!~!
parataxia0 is offline   Reply With Quote
Old 07-02-2023, 02:39 AM   #55
parataxia0
Junior Member
parataxia0 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2023
Device: Kindle Fire 2021
OK - It was an encoding error and it works since unwrapping paragraphs and punctuation along with UTF-8 support... All is well! Thank you anyways!
parataxia0 is offline   Reply With Quote
Old 07-13-2023, 09:34 PM   #56
ukiman
Member
ukiman began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jan 2012
Device: kindle touch 5th
I can't find "advanced mode" for some reason, could someone please help?

Quote:
1. Choose the ebook and enter "Advanced Mode" via either ways below:
click "Advanced Mode" from the drop-down list of the plugin icon
click the plugin icon button if "Advanced Mode" is your Preferred Mode in General Setting
ukiman is offline   Reply With Quote
Old 07-14-2023, 02:57 PM   #57
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,251
Karma: 6426810
Join Date: Sep 2020
Device: Calibre E-book viewer
Hi!

Today I managed to get my first ebook translation done with this amazing plugin. I chose "Add after original" for Translation Position. Then, after the ~1950 queries were processed, and it successfully generated the EPUB output, I thought I'd have preferred to have chosen "Add without original" for this specific case.

So I wonder: would it be possible to save something like a translation "project" file, with a custom file extension, so that one could just open that already processed file and load it again in ET to have it generate a new output using a different "Translation Position" setting?

Last edited by Comfy.n; 07-14-2023 at 04:43 PM.
Comfy.n is offline   Reply With Quote
Old 07-15-2023, 12:08 AM   #58
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 ukiman View Post
I can't find "advanced mode" for some reason, could someone please help?
What version you used? "Advanced Mode" started from version v2.0.0.

Last edited by kindlefere; 07-15-2023 at 02:11 AM.
kindlefere is offline   Reply With Quote
Old 07-15-2023, 12:41 AM   #59
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

The plugin already supports this feature by cache.

You can just change the "Translation Position" setting, and "translate" it again. It will not re-translate the book all over again, but use the old cached translation result. For details:
  1. Advanced Mode: All paragraph items will stay as Status "Translated". By clicking the [Output] button, it will use the new "Translation Position" setting to generate the desired book file.
  2. Batch Mode: By clicking the [TRANSLATE] button, it will also use the cached translation result, and you will notice the process is much faster. The translation log will show its process in detail:

    Quote:
    you can check the translation process by clicking "Jobs" at the bottom right. Double clicking the job item, you can check the real-time translation log from the window it prompts.
kindlefere is offline   Reply With Quote
Old 07-15-2023, 12:26 PM   #60
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,251
Karma: 6426810
Join Date: Sep 2020
Device: Calibre E-book viewer
Thanks for the extra guidance, now I got the hang of it. I was afraid I had lost the initial translation, which seemed very good (with Edge). Then I found that "Reveal" cache button, after resizing the settings dialog, and was able to back up the .db just in case.

Then I started all over using Google, and it seemed even better...

Quote:
Originally Posted by kindlefere View Post
Batch Mode: By clicking the [TRANSLATE] button, it will also use the cached translation result, and you will notice the process is much faster.
9 seconds. lol
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 10:10 AM.


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