09-03-2017, 04:31 AM | #331 |
Member
Posts: 21
Karma: 10
Join Date: Aug 2017
Device: Kindle 2. Gen
|
I did the German translation. Although it's still not possible to import any as I get still the message that it didn't find any annotations.
Might this be due to that I didn't see any text to translate which corresponds to keywords in the "my clippings" file? For instance there was no "- Highlight Pos. xxx", or "Added at Friday...."? Furthermore I found the following spots which didn't show up in the default.mo or did show up but still showed the english text in calibre:
|
09-03-2017, 06:03 AM | #332 | ||
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:
The code for handling the clippings file already has entries for different languages. The strings it is looking for for German are: Code:
"Ihre Markierung": ('de', 'highlight'), "Ihre Notiz": ('de', 'note'), "Ihr Lesezeichen": ('de', 'bookmark'), 'de': (r"\sPosition\s*%s",), 'de': (r"\sSeite\s*%s",), As far a I know this works for Kindles and German. It should be independent of these translations. Something else must be going on and I probably need a debug log to see. Quote:
|
||
Advert | |
|
09-03-2017, 08:09 AM | #333 | ||||
Member
Posts: 21
Karma: 10
Join Date: Aug 2017
Device: Kindle 2. Gen
|
Ok, I think I understand now, why the import fails. The keywords in my "My Clippings" are actually different than the ones you quoted. Amazon must've changed them sometime.
An entry for a bookmark in mine looks like this Quote:
Quote:
Quote:
Quote:
I think an option in the plugin, where one can define a template for what to look for would be really beneficial. I added the German .mo file. Some quote got autocorrected to the wrong kind of quote. I fixed it, but this wasn't the issue. So hopefully you can spot my mistake. EDIT The forum doesn't allow to upload my mo file. Says "invalid file" so you can find it here: http://ul.to/nz9e5ilg EDIT2 Silly me, the forum clearly says it only allows certain suffixes. That's why the upload failed. Last edited by schnesim; 09-03-2017 at 08:13 AM. |
||||
09-03-2017, 09:58 AM | #334 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Aug 2017
Location: Aosta (Italy)
Device: Kindle Voyage
|
I confirm I can not get any annotations from the books if my Kindle is configured with language italian. I only get the annotations made when Kindle is configured with English language.
I think the same problem highlighted by schnesim applies and I think his proposal to add an option where one can define a template for what to look for would be a nice solution. Furthermore, I confirm the error 'Confidence is not in the list' is still present. Thank you, Dario |
09-03-2017, 10:13 AM | #335 | |||
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:
The attached beta includes the fix for getting the annotations for German (hopefully) and changes for most of the problems Nicolas F reported. Plus a zip file with the update .po files. |
|||
Advert | |
|
09-03-2017, 10:21 AM | #336 | |||||
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:
|
|||||
09-03-2017, 10:27 AM | #337 | ||
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:
Code:
"La mia evidenziazione": ('it', 'highlight'), "Le mie note": ('it', 'note'), "Il mio segnalibro": ('it', 'bookmark'), 'it': (r"\sPosizione\s*%s",), 'it': (r"\spagina\s*%s",), Quote:
|
||
09-04-2017, 09:13 AM | #338 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Aug 2017
Location: Aosta (Italy)
Device: Kindle Voyage
|
Thank you David, we are almost there!
Ok, here is the fragment of the code for matching the annotations updated according to what I found in MyClippings from my Kindle Voyage: Code:
"La tua evidenziazione": ('it', 'highlight'), "La tua nota": ('it', 'note'), "Il tuo segnalibro": ('it', 'bookmark'), 'it': (r"\sposizione\s*%s",), 'it': (r"\spagina\s*%s",), Furthermore, I completed the it.po file with the latest translations and attached the updated annotations-translations-default.zip. Thanks a lot, I am very happy to have this plugin almost working for Italian! Dario |
09-06-2017, 08:21 AM | #339 |
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 - Update for Italian
Attached is an updated beta. This includes the latest Italian translations from dsestero plus the changed Italian strings for fetching annotations from the Kindle.
|
09-06-2017, 03:24 PM | #340 |
Member
Posts: 21
Karma: 10
Join Date: Aug 2017
Device: Kindle 2. Gen
|
It's still not possible to import annotations in German (or probably any other non English language), so right now I'm trying to tweak the code to make it work.
One quick question. How do I debug a plugin? Is remote debugging from an IDE possible or do I have to work with messages printed to the console? |
09-06-2017, 08:13 PM | #341 | ||
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:
I've done some manual checks of the code against the samples you gave the other day. They should work. If you send me a copy of your "My Clippings.txt" I can look and see what other differences there are and test them. Also, copy of the debug log when you have tried to fetch the annotations would tell me a lot. Quote:
|
||
09-07-2017, 01:24 AM | #342 |
Member
Posts: 21
Karma: 10
Join Date: Aug 2017
Device: Kindle 2. Gen
|
No problem, here is a debug outout and the My Clippings file.
|
09-07-2017, 03:02 AM | #343 |
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
|
The debug log has:
Code:
DEBUG: 31.5 ParseKindleMyClippingsTxt ERROR: Error trying to read clippings file: coercing to Unicode: need string or buffer, NoneType found |
09-07-2017, 04:34 AM | #344 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Aug 2017
Location: Aosta (Italy)
Device: Kindle Voyage
|
Thank you David,
now for some books the annotations are fetched correctly, while for others annotated books no annotation is found, although the title and author match. Next week I will investigate more deeply and then will write back. Ciao, Dario |
09-07-2017, 06:33 AM | #345 |
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
|
Good to hear. If you send me a copy of the your clippings file, I'll have a look to see if can work out what is wrong. And an idea of which aren't working would help.
|
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 |