Both of the tools are meant to be run on .azw3r files. All the azw3 books I have store highlight and note information in azw3r files that are in some strange java related binary format. I had never heard of .han files, but it looks like they are already in a usable format, perhaps JSON. (I am not familiar enough with JSON to tell and do not have time to look into it.)
If kindleunpack works on your azw3 files you can use it to get the raw XHTML file of the book. The startPositions and endPositions in your .han file are very likely byte (or maybe character) offsets in the raw XHTML file of the highlighted text. A link to kindleunpack information is given in post #7 in the KRDS thread linked to above.
|