View Single Post
Old 12-23-2017, 10:10 AM   #19
SynrG
Junior Member
SynrG will become famous soon enoughSynrG will become famous soon enoughSynrG will become famous soon enoughSynrG will become famous soon enoughSynrG will become famous soon enoughSynrG will become famous soon enough
 
Posts: 3
Karma: 640
Join Date: Dec 2011
Device: Kobo Touch
Quote:
Originally Posted by stumped View Post
There are actually 2 files per book , the other one looks gibberish in notepad but I think it holds annotations and highlights
The .an file does indeed contain annotations. To read it, you need to zlib-decompress it. It is raw zlib, so you need to add back the "magic number" as per https://unix.stackexchange.com/a/49066

e.g.

Code:
$ printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" |cat - ~/Dropbox/Apps/Books/.Moon+/Cache/Beyond\ Common\ Ground\ -\ Alden\ Thompson.epub.an |gzip -dc
Further reverse-engineering will be needed if we want to do something with this. But some of the numbers contained within it are bound to correspond to the position information I reverse-engineered from the .po files in my prior post.
SynrG is offline   Reply With Quote