Thread: Kindle Scribe
View Single Post
Old 12-11-2022, 10:56 AM   #376
angryAspect
Junior Member
angryAspect began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2022
Device: Kindle Oasis, Kindle Scribe, Kobo Aura One
Quote:
Originally Posted by jhowell View Post
I am curious how sticky notes and PDF annotations are actually stored on a Scribe. Regular text annotations for KFX format are stored in a .yjr file in the .sdr folder associated with the book. In the KFX personal documents posted earlier in this thread the .yjr file associated with the PDF document has a new data structure called "annotation.personal.handwritten_note". Where the text of a regular annotation would appear it instead has the string "cv5GW4xHvSmWMXVPefHzMPQ0". There is no apparent sign of an actual annotation image. Perhaps it is stored elsewhere on the device.
As far as I can tell, that handwritten note is stored in a SQLite3 database (path: /.notebooks/uniqueString!!PDOC!!notebook/nbk for a personal doc, or uniqueString!!EBOK!!notebook/nbk for a purchased eBook). I am unable to actually open the database, though--sqlite3 is coming back with a "malformed schema" error on all of the nbk files I pulled from my Scribe, and running a recover on one just comes back with an empty database file.

Opening one in a text editor, though, does yield some information on how it's stored... For example (cleaned up a bit):

Code:
nmdl.type nmdl.free_form nmdl.stroke nmdl.stroke_group nmdl.color nmdl.brush_type nmdl.max_resolution_x nmdl.max_resolution_y nmdl.thickness nmdl.canvas_width nmdl.canvas_height nmdl.normalized_ppi nmdl.position_x nmdl.position_y nmdl.pressure nmdl.tilt_x nmdl.tilt_y nmdl.num_points nmdl.stroke_points nmdl.stroke_bounds nmdl.chunked nmdl.chunk_threshold nmdl.template_id nmdl.template_type nmdl.thickness_adjust_f
I'm assuming that each stroke gets stored, along with information on where it should be placed on a document. And based on those (assuming again) column names, there may have been a plan to include pressure/tilt information (or perhaps that will be added with a firmware update, assuming the hardware supports it).

That string you referenced is in one of the nbk files (path: /.notebooks/DBE32A7F4E1546E0BF5AEC5ADFD78916!!PDOC!!notebook/nbk).
angryAspect is offline   Reply With Quote