![]() |
#706 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Once you have imported the annotations, they will be in whatever column you have configured for them. That should be displayed in the details pain in calibre when you select the book. If you want to find the books with annotations, use the "Find annotations" function in the plugin. Or were you after something else? |
|
![]() |
![]() |
![]() |
#707 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
hi davidfor,
i had wanted to see what I see when I mouse-hover a book's annotations field (i.e., I see much/all of a book's annotations, without having to depend on a mouse-hover. If I single click in a book's annotations field, I do get an Edit Annotations box that pops up, but I don't really need to edit anything. I mean, if this is the best I can get to get a huge view of a book's annotations, I'll be okay. ![]() |
![]() |
![]() |
![]() |
#708 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
The annotations are fetched from the device and stored in a column in calibre. They can be added the comments, or put into a separate column. After that, they all handling is done by calibre. Calibre shows the column in the interface. If a tooltip for a column is displayed, it is done by calibre and formatted by calibre. Apart from the HTML formatting the annotations are created with, the plugin has no control over how calibre displays the annotations at other times. |
|
![]() |
![]() |
![]() |
#709 |
livin' with ebooks
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 36
Karma: 42048
Join Date: Jun 2014
Location: Berlin (DE), winters in Aomori (JP), from Montréal (CA)
Device: Libra2, KOA
|
HTML of annotations saved in Calibre Database
Hello!
I just noticed you seem to have changed the HTML markup of the annotations saved in the Calibre database (may have been a while ago, I haven't updated since last October). I run a script to extract my Annotations from the Calibre database into a separate system and the change has broken this. Specifically you seem to have removed some of the semantics that used to be there, e.g.:"class="user_annotations"", class="timestamp", class="highlight", etc… Could I ask kindly that you please put that stuff back in? Not only is purely presentational HTML very 1990s, but for those of us who do further processing, having semantic markup makes it possible to parse the HTML out into data again for our own uses. Pretty please? ![]() I can see, looking at my DB, that you seem to have changed the HTML at least 2-3 times. I'd be happy to help clear this up and fix it if you need a hand! Pleeeease? I built a huge system based off of Calibre and this plugin *expressly* so I can do stuff with my Annotation. This change breaks almost a decade of work… :\ (Also noticed that what is stored in the DB is not what is rendered in the Calibre "Edit Metadata" view for books. The database still holds the old HTML, whereas the View Metadata parses it into the new HTML markup? ) Last edited by bopuc; 04-01-2020 at 10:41 PM. |
![]() |
![]() |
![]() |
#710 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
What has changed is the editing widget used by calibre for text columns. When you edit and save these columns, the markup is rewritten without these classes and with other changes to the markup. This is a change that came in with calibre 4.0 as the widget used before is no longer supported in the version of Qt that calibre now uses. There have been some changes since, so the markup after editing is a little different than in 4.0. There is absolutely nothing I can do about this. |
|
![]() |
![]() |
![]() |
#711 |
livin' with ebooks
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 36
Karma: 42048
Join Date: Jun 2014
Location: Berlin (DE), winters in Aomori (JP), from Montréal (CA)
Device: Libra2, KOA
|
Ahhh that explains the strange behavior I am seeing. (Basically the old markup is still intact in the database, but when I look through the widget it is parsed out into pure presentational HTML… and if I Save it overwrites the old!
This is truly a terrible shame! ![]() There is one thing we could do, but I know better than to make feature requests to people who already contribute their time to such projects (i.e.: you heh ![]() Or make your transient annotation.db less transient/more reliable. Or bypass the widget and create an Annotations-specific UI / window. All beyond the scope I imagine you've set for this project. ![]() Thank you in any case. I have gotten great (personal) value out of this plugin for several years. Sadly… that may be over. |
![]() |
![]() |
![]() |
#712 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,380
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre 5 will have first class support for annotations in it viewer and database. So this plugin can be modified to use that functionality when it becomes available.
|
![]() |
![]() |
![]() |
#713 | |
livin' with ebooks
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 36
Karma: 42048
Join Date: Jun 2014
Location: Berlin (DE), winters in Aomori (JP), from Montréal (CA)
Device: Libra2, KOA
|
Quote:
Until then, I will add a step to my process to save out all my existing and from-now-on-until-then annotations into a DB of my own in anticipation for this. ![]() |
|
![]() |
![]() |
![]() |
#714 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
![]() I have seen the checkins for this, but, haven't really tried to use it. I think I saw that an environment variable or something was needed to enable it. But, I can wait. |
|
![]() |
![]() |
![]() |
#715 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,380
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The UI for creating annotations in the viewer is done. Serializing and displaying annotations is next. After that storing them in the db and having some dedicated UI for browsing/searching them across books.
You can tryout the UI (its a bit rough at the moment) with Code:
calibre-debug -c "from calibre.utils.rapydscript import *; compile_viewer();" && CALIBRE_ENABLE_DEVELOP_MODE=1 calibre-debug -w file.epub |
![]() |
![]() |
![]() |
#716 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Yep, that works. I agree with the bit rough. The handles especially so
![]() |
![]() |
![]() |
![]() |
#717 |
livin' with ebooks
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 36
Karma: 42048
Join Date: Jun 2014
Location: Berlin (DE), winters in Aomori (JP), from Montréal (CA)
Device: Libra2, KOA
|
Now if only there were a standard coordinate system/way of mapping ebook contents so that annotations (highlights, notes, bookmarks, etc) could stay "in context" in the text, or at least be reliably anchored to it.
Dreams… ![]() |
![]() |
![]() |
![]() |
#718 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
|
![]() |
![]() |
![]() |
#719 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Apr 2020
Device: Kindle Paperwhite
|
Unable to retrieve annotations
Hi davidfor, love the annotations plugin. It's worked great for me but trying to use it today, it's unable to pick up any new annotations/highlights I've made. I checked the myclippings text file, and they're there, but for some reason the annotations plugin isn't picking them up. Any idea how to fix this?
|
![]() |
![]() |
![]() |
#720 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Other than that, I'd need to see a debug log. Run calibre in debug mode, fetch the annotations and close calibre. Then post or PM the debug log with the "My Clippings.txt" file with some details of what is being missed. I will have a look and hopefully see if I can see what is happening. |
|
![]() |
![]() |
![]() |
Tags |
sampleexportingapp |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 523 | 07-15-2025 06:45 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 05:42 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 |