View Single Post
Old 02-20-2022, 11:03 AM   #1008
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: 33
Karma: 100180
Join Date: Apr 2020
Device: none
Quote:
Originally Posted by aik099 View Post
I've finished the Onyx Boox device plugin at https://github.com/davidfor/calibre-annotations/pull/21 . Please review (I've attached some screenshots in there as well).

However, the only issue I'm facing is imported annotations not being sorted chronologically, even though I've specified the "ann_mi.location_sort" property as an integer offset from the book start.

Any idea why this might be happening?
Figured that out. Even though I've specified "location_sort" as integer internally this plugin inserts them into SQLite table where the "location_sort" column is text and sorts them as text The only way to make it work (as I've found in other device classes) is to format it as a zero-padded string, which I've done.

Now it's ready to merge.
aik099 is offline   Reply With Quote