Quote:
Originally Posted by DrChiper
I've seen in \Digital Editions\Annotations\, sub-directories A - Z with annotation files of (by Calibre) removed books which were still left behind.
This is even more curious as I'm always manually remove all annotations in the books themselves before removing the book. Those annotations files still contained, well, "annotations".
|
When you delete a book from calibre, it does so in the same way as the device does (with the exception of cleaning up empty directories). So, it doesn't delete those files.
The files are created when the book is first opened on the device (though it might be different if you use ADE to put the book on the device). The annotations files are maintained when reading an epub. As you add and remove annotations they are changed in both the database and the file. The latter is done by the RMSDK and I doubt there is a way to turn it off. It is handled a little differently if you edit the annotations from outside a book. From memory, it updates the annotations in the database, but only updates the file when the books is opened and a merge is done.
Not removing these files does allow an epub to be deleted and then added again and the annotations not lost. But, I'll look at adding an option to the driver to clean them up. And sometime I have to write a cleanup function for the Kobo Utilities plugin to do this a well.