10-30-2019, 01:36 AM | #661 | |
Grand Sorcerer
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
For the record, this will probably affect the built-in but experimental annotation fetching implemented for Kindles and Kobo. From memory, it also uses a class attribute to identify where the annotations start. |
|
10-30-2019, 02:40 AM | #662 |
creator of calibre
Posts: 43,999
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
probably the safest solution is to use a text pattern of invisible unicode chars at the start to identify it.
|
Advert | |
|
11-05-2019, 07:42 AM | #663 | |
Member
Posts: 12
Karma: 10
Join Date: Apr 2019
Location: Greece
Device: Kobo Forma
|
Quote:
I tried the following which worked (apart from a strange issue, more on that latere): I created a new column to hold the plugin's fetched annotations and pointed the plugin to that new column. It handily offered to move existing annotations to the new column, which I accepted, a very thoughtful touch, thank you for that. The strange this is that some of my annotations seem to be appearing out of order. For example, they appear as follows:
The annotations all seem to be there but in some cases in the wrong order. I haven't had the time to look at this more thoroughly, I'm thinking it might be an issue with the format of the new column but I can't be sure. I'll try to investigate again the following days. |
|
11-15-2019, 12:17 AM | #664 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Nov 2019
Device: Kobo Libra
|
Quote:
It work on calibre 3.48.0 (portable) |
|
11-15-2019, 01:46 AM | #665 | ||
Bibliophagist
Posts: 36,593
Karma: 146059340
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Quote:
|
||
Advert | |
|
11-15-2019, 07:04 AM | #666 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Nov 2019
Device: Kobo Libra
|
Quote:
|
|
11-15-2019, 08:49 AM | #667 |
Grand Sorcerer
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Thanks for reminding me. I have had a build for 4.x but had forgotten to upload it.
The attached beta has the following changes:
This seems to be compatible with calibre 3.x. I have only tested a couple of the more recent builds, but it should be OK. It might not be compatible with calibre version 2. If anyone tests the older versions, please tell me the results. It will partly fix the problem reported by @Kicweed. It will not error, but, the existing annotations will probably be lost. I am still thinking about how to best handle this. |
11-16-2019, 06:19 AM | #668 | |
Member
Posts: 12
Karma: 10
Join Date: Apr 2019
Location: Greece
Device: Kobo Forma
|
Quote:
Also, to continue with something I mentioned earlier. The annotations are definitely being fetched out of order. I don't know if they are being fetched out of order or if they're being saved out of order in Calibre, the end result is the same to how they appear :-) I've created a blank, new column via the plugin's setup page to have a clean(er) test case. The annotations appear in the wrong order in the original, 'entry' column, not in the joined one. I've attached an image to make it clear, this is how they appear right after the plugin fetched the annotations in a freshly created column. You can see both the Chapter and the date order are wrong: [oversized, inline image made as attachment. Please follow MR image guidelines. [/mod] Last edited by theducks; 11-16-2019 at 09:21 AM. |
|
11-16-2019, 09:22 AM | #669 |
Well trained by Cats
Posts: 29,952
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Plugins can be installed from Preferences: Plugins: Load from File (button near bottom)
|
11-16-2019, 09:34 AM | #670 | |
Addict
Posts: 296
Karma: 32153
Join Date: Dec 2008
Device: Kindles (e-ink)
|
Quote:
I'm wondering, though, if such a usecase is really important enough to warrant much effort: I for one take my notes, highlight stuff, etc. while reading a book. Once I'm finished with the entire book, I fetch the annotations and edit them. I never re-fetch from the Kindle and, thus, wouldn't be bothered if the annotations in Calibre were overwritten.If I really cared, I guess I'd just have two custom columns - one for the "raw" un-edited annotations and one for the edited version. I certainly could be "special" in that, though. ;-) Or you could issue a warning (with an option to cancel the operation) if there are existing annotations before overwriting them. Like that, people could "evacuate" their annotations and merge them manually and you'd have all the time in the world to find a good solution. |
|
11-17-2019, 12:34 AM | #671 | |
Grand Sorcerer
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Can you run calibre in debug mode when you do a fetch? There should be enough information in the log to show what is happening. But, I might also need to look at the database to see the order that is there. |
|
11-17-2019, 01:33 AM | #672 | |
Grand Sorcerer
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Having said that, I have considered an option to replace the annotations. My main use of annotations is to mark errors, or something to look up later. I don't tend to keep them at all. An option to replace rather than merge would work for me. Another way would be to add the annotations to the end of the existing text if what is there cannot be identified. This is what is done if the comments column is used. If the annotations are edited, it could mean they get repeated. The last option is to not update the annotations if there is any question about merging them. Or prompt for what to do, either individually or as list after the first pass of updating. This is probably the most work. |
|
11-18-2019, 07:42 AM | #673 | |
Member
Posts: 12
Karma: 10
Join Date: Apr 2019
Location: Greece
Device: Kobo Forma
|
Quote:
To be honest, and I say this with deep appreciation for the work you've done, I'd settle for a robust way to "simply" extract annotations from books. It wouldn't even have to sync to Calibre, just extract them to a .txt file. A fancy alternative would be a single, plain .html with a clickable TOC at the top so I can click around to each book's annotations. I know you can enable a hidden setting in Kobo devices to extract annotations to a plain .txt file, something I've been relying more and more on. I understand that trying to accommodate two-way updates to annotations increases the complexity dramatically. I won't pretend having an easy solution to that. Still, for my personal use case, all I'm looking for is a robust way to extract annotations from a book to a static, text/html file I can easily go back to when I want to. |
|
11-18-2019, 08:41 AM | #674 | ||
Grand Sorcerer
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
|
||
11-18-2019, 09:40 AM | #675 | ||
Member
Posts: 12
Karma: 10
Join Date: Apr 2019
Location: Greece
Device: Kobo Forma
|
Quote:
Quote:
I'll have another look around the forums, I might stumble on a useful trick I haven't seen before. |
||
Tags |
sampleexportingapp |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 494 | 05-18-2024 02:34 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 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 |