View Single Post
Old 06-19-2018, 09:25 PM   #35
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 Gergely View Post
"Since I learned later that annotations are also available in xml files I did not continue this project."

Where are these xml files in a Kobo Aura device and how can I process them with python?
They are in "Digitial Editions/Annotations". There will be one file for each epub and PDF in the main memory of the device that is has been opened. The file type is .annot.

This file is maintained by the Adobe RMSDK library as annotations are made. It is also used by other ADE and other RMSDK readers. I have, as an experiment, copied the file between a Kobo device and ADE with a couple of modifications (mainly in ids). This let me see the annotations from one system in the other.

For the Kobo device, these files are sort of useful, but they have problems. One of them is that they are only changed when reading a book. If you open the annotations list from the library list on the device, and edit an annotation it will update the database, but not the file. When the book is opened, the annotations in the file are merged with those in the database and the database is updated. They get written back the the file at some point. I've never looked at exactly when that happens, but at the latest it will be when an annotation is updated or added while reading.

As you are interested in annotations, they have been discussed here plenty of times. I'd suggest some more searching as the points above, and where these files are, has been discussed. I do tend to get involved in the discussions, so a search for posts by me with "annotation" in them will probably find most threads.
davidfor is offline   Reply With Quote