07-30-2017, 02:13 AM | #316 |
Member
Posts: 13
Karma: 10
Join Date: Jun 2010
Device: Kindle 4thGen
|
So while I'm trying to see if the built in annotation fetch feature can be extended to azw3 format. Is it possible to use the plugin to pull last page read information into the comments field so things like the kindle_read_status macro will work?
|
07-30-2017, 02:59 AM | #317 |
Enthusiast
Posts: 31
Karma: 81732
Join Date: Feb 2014
Device: KPW3
|
No.kindle_read_status macro worked by getting information from sidecar files. This plugin uses My Clippings text file.
|
Advert | |
|
07-30-2017, 03:38 AM | #318 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
It's possible, but I don't have a Kindle to do the development with. If someone wants to do it, I'm happy to help.
|
08-25-2017, 08:54 AM | #319 |
Member
Posts: 21
Karma: 10
Join Date: Aug 2017
Device: Kindle 2. Gen
|
Since the plugin only supports English, I'd like to try to make it work with a different language.
So my question is, is it enough to just unzip the "Annotations.zip" in the plugins directory, tinker with the .py files, re-zip it and replace it with the original "Annotations.zip" file? |
08-25-2017, 09:26 AM | #320 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Yes, that will work. The official way to do it is with the "calibre-customize" command. I use the following batch file:
Code:
del "..\Annotations.zip" "c:\Program Files\7-Zip\7z.exe" a "..\Annotations.zip" *.py developer_notes.txt dialogs\* help\* images\* plugin-import-name-annotations.txt readers\*.py -x!readers\_* README.md about.txt run.cmd mode 165,999 calibre-customize -a "..\Annotations.zip" SET CALIBRE_DEVELOP_FROM=E:\Development\GitHub\calibre\src calibre-debug -s calibre-debug -g |
Advert | |
|
08-25-2017, 09:31 AM | #321 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Update to version 1.6.0
I have just updated the plugin to version 1.6.0. There is only one change
This was released as a beta a little while ago. As there have been no complaints, I assume it works. As usual, calibre will announce the update soon. And if there are any problems, please report them here. |
08-25-2017, 10:46 AM | #322 |
Member
Posts: 21
Karma: 10
Join Date: Aug 2017
Device: Kindle 2. Gen
|
|
08-30-2017, 12:19 PM | #323 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Aug 2017
Location: Aosta (Italy)
Device: Kindle Voyage
|
Yes please! That would be awesome for me too. I would love to make the plugin available for Italian.
Ciao, grazie Dario |
08-31-2017, 07:54 AM | #324 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Beta - Enable translations
As promised, here is a beta of the plugin which allows translations. To do this, I have had to go through the code and find all text that should needs to be translatable. Then I wrap the text in a function to replace the text with the translated text. In doing this, I have probably made some mistakes. I have probably missed something that should be translated, and made the change for something that shouldn't be translated. Hopefully I haven't missed to many.
As yet, there are no translations. For anyone who is interested in doing this, the default language file in the plugin and attached to the post separately. To do the translations, I recommend using POEdit. This is a free tool that seems pretty easy to use. To do the translation:
If you want to test the translation:
That should do it. If there are any problems, please report them here. |
08-31-2017, 11:04 AM | #325 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Aug 2017
Location: Aosta (Italy)
Device: Kindle Voyage
|
Italian translation for Calibre Annotation plugin
Thank you David.
I prepared the translation file for Italian following your suggestion, added the .mo file to the translation directory of the unzipped plugin, repackaged it and tested the modified beta version in calibre 3.7 on Ubuntu Gnome 17.10. You can find the .po file zipped attached. I am quite satisfied with the translation but at this time I can make the following observations: 1: if I choose 'Trova annotazioni' ('Find annotations') I can see a red text saying: 'no annotated books in library' instead of the Italian translation; 2: if I choose 'Recupera le annotazioni da Amazon Kindle' (''Fetch annotations from Amazon Kindle') with the contextual menu when I selected a book on my Kindle reader that is present also in the calibre library then a pop-up appears with the untranslated title 'Select a book to receive annotations', the translated content but then if I push the button for more details the text appears again in English; furthermore, nothing happens although a book is selected; 3: if I choose 'Recupera le annotazioni da Amazon Kindle' (''Fetch annotations from Amazon Kindle') with the contextual menu when I selected a book in the calibre library that is present and annotated on the kindle reader I got the error: ValueError:'Confidence' is not in the list, with the following details: Code:
calibre, version 3.7.0 ERRORE: Eccezione non gestita: <b>ValueError</b>:'Confidence' is not in list calibre 3.7 embedded-python: True is64bit: True Linux-4.10.0-32-generic-x86_64-with-debian-stretch-sid Linux ('64bit', 'ELF') ('Linux', '4.10.0-32-generic', '#36-Ubuntu SMP Tue Aug 8 12:10:06 UTC 2017') Python 2.7.12 Linux: ('debian', 'stretch/sid', '') Interface language: it Successfully initialized third party plugins: Annotations (1, 6, 1) && Generate Cover (1, 5, 21) && Count Pages (1, 8, 0) && EpubMerge (2, 1, 1) Traceback (most recent call last): File "calibre_plugins.annotations.action", line 362, in fetch_usb_device_annotations File "calibre_plugins.annotations.action", line 281, in fetch_device_annotations File "calibre_plugins.annotations.annotated_books", line 283, in __init__ ValueError: 'Confidence' is not in list Ciao, Dario Last edited by dsestero; 08-31-2017 at 11:28 AM. Reason: Added title and changed email notification |
08-31-2017, 01:54 PM | #326 |
Groupie
Posts: 161
Karma: 1842
Join Date: Jan 2016
Device: Kobo Glo HD
|
Thank you for allowing translations!
In addition to what dsestero said:
I also have a few questions to get an accurate translation:
|
08-31-2017, 04:42 PM | #327 | |
Grand Sorcerer
Posts: 6,235
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
09-01-2017, 11:21 AM | #328 | |||||||||||
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
A big thank you for the translation and clear bug reports. Attached is a new beta that should fix most of these problems and I found a few other strings that I had missed before. Hopefully I haven't broken anything else. I have included the dsestero's Italian translation. I have also attached a file with the updated default.po and it.po files. |
|||||||||||
09-02-2017, 03:59 AM | #329 |
Grand Sorcerer
Posts: 6,235
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
|
09-02-2017, 10:20 AM | #330 | ||
Groupie
Posts: 161
Karma: 1842
Join Date: Jan 2016
Device: Kobo Glo HD
|
Thanks for the fix. Still a few things :
But aside from 1, all the other things don't impact on functionality at all, so don't lose your sleep trying to make it translatable if it's hard to achieve. It's only in the configuration menu... It's not displayed in the UI, it's the description of the function. It's just that I never used this, don't have a kindle and I don't understand what it's doing so I don't know how to translate the labels related to news clipping. |
||
Tags |
sampleexportingapp |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 492 | 10-25-2022 08:13 AM |
[GUI Plugin] Annotations (closed) | GRiker | Plugins | 68 | 06-17-2014 06:11 AM |
[GUI Plugin] KiNotes | -axel- | Plugins | 0 | 07-14-2013 06:39 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |