12-01-2013, 04:57 PM | #31 |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
The source for the plugin is here. Take a look at the developer notes for information about how to add support for another device. You can use the existing supported formats to see how highlights are extracted from the sqlite DBs.
Highlights are added to a custom column assigned by the user. Calibre does not merge annotations into the book when converting from one format to another. G |
12-02-2013, 02:32 PM | #32 |
Enthusiast
Posts: 28
Karma: 10
Join Date: May 2012
Device: Sony PRS-T1
|
Ok, thank you very much - I will have a look at it.
|
Advert | |
|
12-02-2013, 06:16 PM | #33 |
Grand Sorcerer
Posts: 24,908
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
I started having a look at this again to add support for the Kobo devices. I found some problems.
Firstly, if you change the column used to store the the annotations, you are prompted that the existing annotations will be moved. The choices are "Yes do it", or "No don't change the column". I think there should be a "Change the column but don't move the current annotations". Then, when I clicked "Yes", I had the following error: Code:
calibre, version 1.13.0 ERROR: Unhandled exception: <b>AttributeError</b>:'Struct' object has no attribute 'log_location' calibre 1.13 isfrozen: True is64bit: False Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE') ('Windows', '7', '6.1.7601') Python 2.7.5 Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free') Traceback (most recent call last): File "calibre_plugins.annotations.config", line 292, in annotations_destination_changed File "calibre_plugins.annotations.common_utils", line 889, in move_annotations AttributeError: 'Struct' object has no attribute 'log_location' Code:
calibre, version 1.13.0 ERROR: Unhandled exception: <b>TypeError</b>:'NoneType' object has no attribute '__getitem__' calibre 1.13 isfrozen: True is64bit: False Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE') ('Windows', '7', '6.1.7601') Python 2.7.5 Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free') Traceback (most recent call last): File "calibre_plugins.annotations.config", line 273, in annotations_destination_changed File "calibre_plugins.annotations.common_utils", line 737, in existing_annotations TypeError: 'NoneType' object has no attribute '__getitem__' The problem here is that custom columns are library specific. This option should be in the library specific preferences rather than the calibre preferences. |
12-03-2013, 06:11 AM | #34 | |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
Quote:
G |
|
12-03-2013, 04:50 PM | #35 |
null operator (he/him)
Posts: 20,457
Karma: 26645808
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
In first post there is no table after opening paragraph, and some of the spoilers have lost whatever is intended to be behind them.
Spoiler:
BR |
Advert | |
|
12-03-2013, 05:03 PM | #36 |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
@BetterRed, are you logged in to MR? I believe the images are only visible when you are logged in.
G |
12-03-2013, 05:31 PM | #37 | |
null operator (he/him)
Posts: 20,457
Karma: 26645808
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
I thought something in firefox might 'blocking' them so I tried it in safe mode, I also tried vanilla Chrome and IE10, same story Maybe I don't have enough Karma to be allowed to see the images If they are images I assume they're stored on an image host, maybe my firewall is blocking the site (although nothing I have in there leaps out at me) or maybe my ISP or some government security agency is looking over my shoulder - nothing would surprise me... Where are the images stored ? I'll do a test at imgbox.com I can see that when I'm logged on - I'll log off and report back - hang on Update : and I can see it when I'm logged off BR Last edited by BetterRed; 12-03-2013 at 05:39 PM. |
|
12-03-2013, 05:38 PM | #38 |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
All of the images are stored at MR.
G |
12-03-2013, 05:49 PM | #39 |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
Try refreshing, I reset the permissions on the album they're stored in.
G |
12-03-2013, 05:55 PM | #40 |
null operator (he/him)
Posts: 20,457
Karma: 26645808
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Hmmmm, I never tried putting an image I uploaded to MR in-line before - here goes
I can see that Now lets put it in a spoiler Spoiler:
I can also see that So how come I can't see yours - bizarre, I'm not inclined to pursue any further unless you want me to BR Last edited by BetterRed; 12-03-2013 at 05:58 PM. |
12-03-2013, 06:01 PM | #41 |
null operator (he/him)
Posts: 20,457
Karma: 26645808
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
12-03-2013, 06:15 PM | #42 |
Grand Sorcerer
Posts: 24,908
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
I didn't think of it until later, but the database used for annotations will also need to be changed to handled multiple libraries. The book_id is not unique across libraries.
|
12-05-2013, 01:31 AM | #43 |
Grand Sorcerer
Posts: 24,908
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Adding the Kobo ereaders
I have this working, but, I am seeing some things I don't understand and have hit a problem.
Firstly, if I have no books selected and try to run the import, I get the "Select a book to receive annotations" prompt. Reading that, it says that a selected book is needed in case the annotations can't be matched to a book. That sounds OK if only one book can't be matched, but what if more than one can't be matched? Do all the annotations for these books get put into the one selected book? The next issue is the book matching. I happened to have three short stories with the same title but different authors. All were on the device and only one had annotations. The "Import Annotations" shows the book with the title and author. When I click the import button, it comes back showing a match only on the title and picked the wrong book. The book definitely has the correct author. And selecting the correct book doesn't help. I haven't looked at the code enough to see what is going wrong, but... Why aren't you using the book id? Calibre and the driver for the device have already matched the book in the library to that on the device. I have This gives an exact mapping to get the annotations to the correct book. Or is there something I missed in the interface that would force this? |
12-05-2013, 07:19 AM | #44 |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
@davidfor, I am working on adding multi-library support for the plugin. Once I've got that working I'll address your other questions. In the meantime, I've created two issues at the plugin's GutHub tracker, one for multi-library support, one for changing the dialog box options when changing the destination field. Please subscribe to those issues, as I will post a link to a provisional build with the improvements you requested as soon as they are available.
G |
12-05-2013, 08:09 AM | #45 |
Grand Sorcerer
Posts: 24,908
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
@GRiker, I have tried the test version with no luck on the configuration. I've posted the results to the bug.
And while I think of it, I think part of the matching problem is unicode. I just need to work out where I added a conversion or missed one. Last edited by davidfor; 12-05-2013 at 08:28 AM. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Annotations | davidfor | Plugins | 1152 | 03-22-2024 09:38 PM |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 492 | 10-25-2022 08:13 AM |
[GUI Plugin] Marvin XD (closed) | GRiker | Plugins | 141 | 06-15-2014 05:36 PM |
Plugin thread closed? | BookJunkieLI | Calibre | 3 | 10-05-2013 02:56 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |