View Single Post
Old 07-19-2016, 08:09 PM   #26
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 marp68 View Post
It seemed to work with all books with annotations copied to the comment field but one. After adding the synopsis part to the comment field, where the annotations was already copied to using Annotation program, and then updating the metadata of the the book on the device, the annotation text ended up in the synopsis field together with the synopsis.

What can have happened? And only for one of the books. This is why I assumed that there must be some sort of categorizing code in the comment field, telling calibre/device which text is synopsis and which is annotations (or other text).

The strange thing is that for other books that I had copied the annotations to the comment field, only the synopsis text was updated to the synopsis field in the book on the device.
There is no code in calibre that I know of to strip the annotations from the comments when a book is sent sent to the device. And the experiments I have done show that the annotations are sent. But, I don't usually put the annotations in the comments field, so maybe I have missed something.

If the annotations are not going to the device as part of the comments, it probably means you are resending the books. If you replace a book on the device without first deleting it, the book does not get reprocessed. The processing extracts the metadata and puts it into a database. The device uses this when displaying the book list and details. As the new version of the book isn't processed, the old metadata is still there. Which will mean the annotations will not be in the synopsis.

To achieve the above, the driver does cheat a little bit. The above behaviour is how older firmware worked. For current firmware, if the book is changed, it will be removed from the database and reprocessed as a new book. This means the reading status, annotations and collections are lost for the book. The driver updates the database to make sure this doesn't happen. Personally, this fits my usage a lot better than the way the device works. And you can always delete the book first before resending if you want to clear the status.

To update the metadata on the device, you can use my Kobo Utilities plugin. That will write the metadata directly to the database without touching the actual files. I will probably be adding function to the driver to do these updates automatically, but, that probably won't happen very soon.
davidfor is offline   Reply With Quote