Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 07-23-2021, 03:19 AM   #976
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 squizzie View Post
Since the Kindle reader on iPad and Android now sync annotations and highlights with each other and with Kindle devices I just wanted to check whether those made on another device and synced across to the connected Kindle device will also import into Calibre, or will it only work for annotations/highlights made on the device USB connected Kindle itself?
The plugin reads the "My Clippings.txt" file on the device. I'm pretty sure that only has the annotations made on the device.
davidfor is offline   Reply With Quote
Old 07-23-2021, 04:17 AM   #977
Iroman
Junior Member
Iroman began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2021
Device: Kindle
Quote:
Originally Posted by davidfor View Post
No. The way the annotations plugin imports them is not compatible with the way calibre does annotations. I intend to change this, but, haven't gotten to it yet. And, it will depend on the device. I'm not sure I can do it for the Kindle devices as the location information the plugin sees is not enough to match to the actual location in the book.
Thank your for your reply and great work Dave!
I would like to help if it is possible for someone with limited experience in python?

This is an important feature for my workflow and I haven't found a solution yet.
Iroman is offline   Reply With Quote
Advert
Old 07-23-2021, 08:52 AM   #978
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,000
Karma: 89771343
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by davidfor View Post
...I'm not sure I can do it for the Kindle devices as the location information the plugin sees is not enough to match to the actual location in the book.
Kindles store more detailed annotation information in a separate file associated with each book. Using those instead of My Clippings would have some advantages since they use exact positions within the book text, include annotations made using other devices, and don't include annotations that have been deleted by the user. A big disadvantage is that they do not include any content from the book. The position information must be used to obtain the annotated text from the format of the book found on the Kindle.

Most Kindle books delivered by Amazon will be in KFX format with unbroken DRM so there will be no way to extract the annotated content. Because the positions are tied to that particular Kindle format they will not be usable to locate text within a copy of the same book obtained elsewhere. However the annotation positions would be usable with sideloaded books and personal documents since they don't use KFX format or DRM.

For more information see the threads azw3r highlight and note extraction info and KRDS - A parser for Kindle reader data store files.
jhowell is online now   Reply With Quote
Old 07-28-2021, 03:45 AM   #979
squizzie
Junior Member
squizzie began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2021
Device: Kindle Gen1 (want to move to Android and iPad non-kindle alternative)
Quote:
Originally Posted by davidfor View Post
The plugin reads the "My Clippings.txt" file on the device. I'm pretty sure that only has the annotations made on the device.
This is helpful information - many thanks.
squizzie is offline   Reply With Quote
Old 09-15-2021, 05:57 PM   #980
lsacher
Junior Member
lsacher began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jul 2017
Device: iPhone 6
SampleExportingApp Not Working Properly

Long time user of Calibre, but now I want to import annotations. I tried your SampleExportingApp modified to use your highlight example. Using a mockup epub of the "John Smith" book, I get as far as the Import Annotations pop-up showing all the correct info including the 3 annotations. But then I get error messages: Unable to import annotations from SampleExportingApp -and- UnboundLocalError:local variable 'updated_annorations' referenced before assignment. The console log shows:

File "calibre_plugins.annotations.annotations", line 165, in to_HTML
TypeError: '<' not supported between instances of 'NoneType' and 'NoneType'
-and-
File "calibre_plugins.annotations.action", line 1057, in present_annotated_books
UnboundLocalError: local variable 'updated_annotations' referenced before assignment.

I'm using Windows 10 10.0.19041 [64bit] and calibre 5.27 [64bit]

Attached are the my actions, debug console listing and the mockup epub

Thanks
Larry
Attached Files
File Type: txt My_Actions.txt (586 Bytes, 275 views)
File Type: txt Console_Listing.txt (3.6 KB, 278 views)
File Type: epub A Book With Some Exported Annot - John Smith.epub (3.9 KB, 409 views)
lsacher is offline   Reply With Quote
Advert
Old 09-15-2021, 11:39 PM   #981
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,144
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What sampleexportingapp?? You can ust opena bug report and attach the original book to it: https://calibre-ebook.com/bugs
kovidgoyal is offline   Reply With Quote
Old 09-16-2021, 02:07 AM   #982
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 lsacher View Post
Long time user of Calibre, but now I want to import annotations. I tried your SampleExportingApp modified to use your highlight example. Using a mockup epub of the "John Smith" book, I get as far as the Import Annotations pop-up showing all the correct info including the 3 annotations. But then I get error messages: Unable to import annotations from SampleExportingApp -and- UnboundLocalError:local variable 'updated_annorations' referenced before assignment. The console log shows:

File "calibre_plugins.annotations.annotations", line 165, in to_HTML
TypeError: '<' not supported between instances of 'NoneType' and 'NoneType'
-and-
File "calibre_plugins.annotations.action", line 1057, in present_annotated_books
UnboundLocalError: local variable 'updated_annotations' referenced before assignment.

I'm using Windows 10 10.0.19041 [64bit] and calibre 5.27 [64bit]

Attached are the my actions, debug console listing and the mockup epub
Those errors look like they are coming from the Annotations plugin. Which does have a "SampleExportingApp.py" supplied with it. That is sample code for creating an extra method of importing annotations. This is used for ereader applications that do annotations and have function to export the annotations to a file. The SampleExportingApp.py file contains the sample for a new source of annotations. You would need to modify this to support the format of the file you are importing. The errors above are because no annotations were found when using this.
davidfor is offline   Reply With Quote
Old 09-16-2021, 02:43 PM   #983
lsacher
Junior Member
lsacher began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jul 2017
Device: iPhone 6
Thanks, I'll take your advice.

THIS POST HAS BEEN MOVED TO CALIBRE BUGS
lsacher is offline   Reply With Quote
Old 09-21-2021, 11:52 AM   #984
Savate
Enthusiast
Savate will become famous soon enoughSavate will become famous soon enoughSavate will become famous soon enoughSavate will become famous soon enoughSavate will become famous soon enoughSavate will become famous soon enough
 
Posts: 41
Karma: 608
Join Date: Feb 2019
Device: Kindle Signature
Hello

Is it possible to print annotations that are stored in Calibre? I cannot find a print action but I may be missing it.

Thanks
Savate is offline   Reply With Quote
Old 09-21-2021, 09:57 PM   #985
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 Savate View Post
Is it possible to print annotations that are stored in Calibre? I cannot find a print action but I may be missing it.
Not directly. You can generate a catalog and include the column with the annotations in it. Then you can print that.
davidfor is offline   Reply With Quote
Old 09-23-2021, 01:18 PM   #986
aik099
Enthusiast
aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!
 
Posts: 31
Karma: 100180
Join Date: Apr 2020
Device: none
Support for AlReader on the Android-based devices

Hi,

When using AlReader app on the Onyx Boox (or other Android-based devices) it creates a "cites.txt" file in the main memory of the device (readable by Calibre) at "/AlReaderXE-Ink/Sync/cites.txt" location (the first folder name in path likely needs to be configurable, because it depends on the AlReader build).

The file is formatted like this (each citation is separated with 2 new lines):

Code:
**> date here
**> book filename without path here
**> book name and author from meta data
citation text (can be multi-line)

**> date here
**> book filename without path here
**> book name and author from meta data
citation text (can be multi-line)

...
Could you please support this?
aik099 is offline   Reply With Quote
Old 09-24-2021, 02:30 AM   #987
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 aik099 View Post
Hi,

When using AlReader app on the Onyx Boox (or other Android-based devices) it creates a "cites.txt" file in the main memory of the device (readable by Calibre) at "/AlReaderXE-Ink/Sync/cites.txt" location (the first folder name in path likely needs to be configurable, because it depends on the AlReader build).

The file is formatted like this (each citation is separated with 2 new lines):

Code:
**> date here
**> book filename without path here
**> book name and author from meta data
citation text (can be multi-line)

**> date here
**> book filename without path here
**> book name and author from meta data
citation text (can be multi-line)

...
Could you please support this?
It should be supportable. It will really depend on the exact format and whether it is easily reachable when the device is connected. To do it, someone would need more details about the exact format of the file. IFor example, what is the date format? Or how are the title and author split? How does it handle simple highlights versus annotations. Looking at a real example should show this.

But, I don't usually code the support for devices or apps that I don't use. The plugin is expandable and I encourage people to do this. Then I can add it to the plugin for others to use. And, I don't remember hearing about AlReader before. I don't know anything about it including how popular it is.

If you can post a real example, I might have a look at it. But, I am making no promises as to if or when I do it.
davidfor is offline   Reply With Quote
Old 09-24-2021, 04:12 AM   #988
aik099
Enthusiast
aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!
 
Posts: 31
Karma: 100180
Join Date: Apr 2020
Device: none
Quote:
Originally Posted by davidfor View Post
It should be supportable. It will really depend on the exact format and whether it is easily reachable when the device is connected. To do it, someone would need more details about the exact format of the file. IFor example, what is the date format? Or how are the title and author split? How does it handle simple highlights versus annotations. Looking at a real example should show this.

But, I don't usually code the support for devices or apps that I don't use. The plugin is expandable and I encourage people to do this. Then I can add it to the plugin for others to use. And, I don't remember hearing about AlReader before. I don't know anything about it including how popular it is.

If you can post a real example, I might have a look at it. But, I am making no promises as to if or when I do it.
Here is the real file fragment (note 2 empty lines after each citation even after last one):

Code:
**>2021-09-17 22:09  3.66% +
**>/Dieti kapitana Granta - Zhiul' Viern.mobi
**>Дети капитана Гранта • Жюль Верн
К чему было еще больше огорчать этих бедных детей и омрачать только что засиявшую перед ними надежду!


**>2021-09-17 22:15  2.65% +
**>/Dieti kapitana Granta - Zhiul' Viern.mobi
**>Дети капитана Гранта • Жюль Верн
Шотландии многие мелкие фермеры, которые не могли заплатить высокую арендную плату бывшим вождям кланов, были изгнаны.


**>2021-09-23 19:51  4,28% +
**>/Prp. ighum. Sierghii Radoniezhskii - Dimitrii Rostovskii.azw3
**>Прп. игум. Се́ргий Радонежский • Димитрий Ростовский
Не любил он детских игр и старательно избегал их; не по сердцу ему приходились веселье и смех сверстников, ибо он знал, что «худые сообщества развращают добрые нравы» (1Кор.15:33).
The name of the book and the author (separated by a circle) in the 3rd citation line, like "Прп. игум. Се́ргий Радонежский • Димитрий Ростовский" could be used to locate the book in the Calibre database.

You've said, that plugin is expandable. Are there anywhere any step-by-step instructions for adding support for different e-readers, that I can use to add support for this reader?
aik099 is offline   Reply With Quote
Old 09-24-2021, 08:34 AM   #989
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
There is some information on the Github page - https://github.com/davidfor/calibre-annotations. And some in the samples. Or look at the code for the other devices. And ask questions here. I'll answer as well a I can.
davidfor is offline   Reply With Quote
Old 09-24-2021, 09:46 AM   #990
Savate
Enthusiast
Savate will become famous soon enoughSavate will become famous soon enoughSavate will become famous soon enoughSavate will become famous soon enoughSavate will become famous soon enoughSavate will become famous soon enough
 
Posts: 41
Karma: 608
Join Date: Feb 2019
Device: Kindle Signature
Quote:
Originally Posted by davidfor View Post
Not directly. You can generate a catalog and include the column with the annotations in it. Then you can print that.
Thanks for the tip, I tried that.

Very difficult to use and the procedure does not seem to allow me to select individual books - it always prints the entire library, and the formatting of the outputs is always rudimentary.

Do you know of any plugins that might do the job?

OR

Is there another way to print the contents of my annotations field individually?

OR

is there a chance that a print/export action could be added to the Annotations plugin?

Thanks for any advice
Savate is offline   Reply With Quote
Reply

Tags
sampleexportingapp

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 514 03-23-2025 10:26 AM
[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


All times are GMT -4. The time now is 02:43 PM.


MobileRead.com is a privately owned, operated and funded community.