![]() |
#646 | |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Oct 2019
Device: Kobo Aura H20
|
Thanks for making such a great plugin @davidfor!
I'm trying to customize the Annotations plugin to do this: Quote:
Spoiler:
This occurs despite me trying to restart Calibre multiple times. I was wondering if you could give me any help into how to solve this problem? It'd be amazing if I could separate my annotations into a custom field! Thanks! Here's the debug log when I try to customize the plugin in debug mode: Spoiler:
|
|
![]() |
![]() |
![]() |
#647 | ||
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,817
Karma: 153006036
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Quote:
|
||
![]() |
![]() |
Advert | |
|
![]() |
#648 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Sep 2019
Location: Brooklyn, NY
Device: iPhone, iPad
|
Would it be possible to re-add support for Marvin since the Marvin XD plugin is no longer working? Thank you!
|
![]() |
![]() |
![]() |
#649 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 296
Karma: 32153
Join Date: Dec 2008
Device: Kindles (e-ink)
|
|
![]() |
![]() |
![]() |
#650 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Sep 2019
Location: Brooklyn, NY
Device: iPhone, iPad
|
|
![]() |
![]() |
Advert | |
|
![]() |
#651 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
It also needs knowledge of the format and someone willing to do it. I don't use KyBook, so it isn't something I'm particularly interested in implementing myself. If someone wants to do it, I will be happy to give advice and help. |
|
![]() |
![]() |
![]() |
#652 |
Member
![]() Posts: 12
Karma: 10
Join Date: Apr 2019
Location: Greece
Device: Kobo Forma
|
Issue during the importing stage
Hey @davidfor, thanks for all the effort you've put in this :-)
I've been having the following issue with this plugin lately and I don't know if there's something I can do from my end to fix it. I'm on Calibre 3.48, with the 1.10.0 version of the plugin and a Kobo Forma on 4.18.13737. The Import Annotations screen appears normally (the one where you see a list of all the books with the number of annotations for each and you can selectively preview for each book). Unfortunately, during the next step (after pressing the Import Annotations button) the process starts but fails while importing, with the following message: Code:
calibre, version 3.48.0 Error fetching annotations: Unable to fetch annotations from Kobo Forma. Traceback (most recent call last): File "calibre_plugins.annotations.action", line 311, in fetch_device_annotations File "calibre_plugins.annotations.action", line 1052, in process_selected_books File "calibre_plugins.annotations.action", line 160, in add_annotations_to_calibre File "calibre_plugins.annotations.annotations", line 297, in merge_annotations UnboundLocalError: local variable 'regurgitated_soup' referenced before assignment Do you have any idea what could be breaking so I could try to fix it? Thanks in advance! |
![]() |
![]() |
![]() |
#653 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
![]() |
![]() |
![]() |
#654 |
Member
![]() Posts: 12
Karma: 10
Join Date: Apr 2019
Location: Greece
Device: Kobo Forma
|
I've PMed you the log, I hope it's helpful.
The only peculiarity of my setup (which was not a problem up to now), is that I'm using a 3-column setup for my annotations:
The above setup has been working without issues, I don't know what might have changed and at what point. |
![]() |
![]() |
![]() |
#655 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
I will have a look at it over the weekend. But, I think I know what the problem is.
Quote:
|
|
![]() |
![]() |
![]() |
#656 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
I can see the problem. It looks like the annotation has been edited in the library. In fact, it looks like the text in the annotation column was never put there by the plugin. Is this the case?
The code is looking for a div that wraps the annotation. It extracts them and merges them with the new annotations. In this case, it cannot find the old annotation as the div with the class "user_annotations" is missing. This is fragile, and is even worse with calibre 4.x. The change in the HTML editor use is making a lot of changes to the code that will break the way the plugin updates the annotations. I'll have to look at it, but, at this point, I don't have an idea of what to do. |
![]() |
![]() |
![]() |
#657 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,322
Karma: 12117215
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#658 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
I do want people to be able to edit the annotations. At the least, being able to remove any that are no longer needed is needed function. I really don't want to implement an editor of any sort. |
|
![]() |
![]() |
![]() |
#659 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,260
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Qt's rich text editor does not preserve html classes sadly. It might preserve id/name/title attributes, you could try with those.
|
![]() |
![]() |
![]() |
#660 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,322
Karma: 12117215
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
![]() |
![]() |
![]() |
Tags |
sampleexportingapp |
Thread Tools | Search this Thread |
|
![]() |
||||
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 |