View Single Post
Old 01-20-2025, 07:37 PM   #36
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 6,949
Karma: 27060153
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
I've updated krds.py to handle the new underline (so far Scribe-only) annotation type:

Code:
    ANNOT_CLASS_NAMES = {
        0: "annotation.personal.bookmark",
        1: "annotation.personal.highlight",
        2: "annotation.personal.note",
        3: "annotation.personal.clip_article",  # value not verified
        10: "annotation.personal.handwritten_note",
        11: "annotation.personal.sticky_note",
        13: "annotation.personal.underline",
    }
It appears Active Canvas notes use type 10 ('annotation.personal.handwritten_note'), just as they do in Print Replica.

JSON output example for each:
Code:
  "annotation.cache.object": {
       [ ... ]
       "annotation.personal.underline": [
            {
                "startPosition": "AcsPAAB6AQAA:342909",
                "endPosition": "AcsPAACaAQAA:342941",
                "creationTime": "2025-01-20T15:16:39.771000",
                "lastModificationTime": "2025-01-20T15:16:39.771000",
                "template": "0\ufffc0"
            }
        ],
        "annotation.personal.handwritten_note": [
            {
                "startPosition": "AcsPAAAAAAAA:342531",
                "endPosition": "AcsPAAAAAAAA:342531",
                "creationTime": "2025-01-20T15:20:36.451000",
                "lastModificationTime": "2025-01-20T15:20:36.451000",
                "template": "0\ufffc0",
                "handwritten_note_nbk_ref": "clWfVWeqbQviRtOrSGYnf0A0"
            }
I think there was a 3rd highlight type (Outline? Box? - like what Kindle 1 did?) that was referenced in recent update files but has not been enabled. Guessing that would be type '12' if and when it shows up.
Attached Files
File Type: zip krds.py.zip (4.3 KB, 165 views)
tomsem is offline   Reply With Quote