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.