View Single Post
Old 04-25-2016, 02:24 AM   #237
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Spyral View Post
Hi! First of all thanks for all your time and work invested in developing and supporting this plugin! I was having trouble making it work and after a while I found out why it wasn't working. I looked at the plugin's code and found that inside "ParseKindleMyClippingsTxt.py" under "_LANG_AND_KIND_DETECT_BY_START_WORDS = {" there is:
"Mi subrayado": ('es', 'highlight'),
"Mi nota": ('es', 'note'),
"Mi marcador": ('es', 'bookmark'),
and should be, at least for this device (I noticed this looking at "My Clippings.txt"):
"Tu subrayado": ('es', 'highlight'),
"Tu nota": ('es', 'note'),
"Tu marcador": ('es', 'bookmark'),
and got that working: the plugin detected notes, highlights and bookmarks.

Then I encountered another problem, it could not detect the position correctly.
So I kept looking at the "ParseKindleMyClippingsTxt.py" file, and found that
under "_LOCATION_REGEX = {" was:
'es': (r"\sPosición\s*%s",),
and should be (notice the lowercase):
'es': (r"\sposición\s*%s",),
And now its working perfectly! I hope this helps others with the same problem
Could this be a national difference? Or maybe a firmware version difference? In any case, the code can support both versions. Adding extra entries in both places should solve the problem and not break it for others.
Quote:
PS: I was thinking that it could be nice if we could select to import only the highlights, or notes or bookmars. The kindle has a problem that highlights a word when you make a note, and this plugin imports the note and highlight as separated things (which is not a plugin's problem I know), and that highlight has no use for me.
I'll have a look at this. The structure of the code doesn't really support it, but it probably should be possible to do.
davidfor is offline   Reply With Quote