05-13-2023, 06:38 PM | #1 | |||
Grand Sorcerer
Posts: 6,772
Karma: 26974049
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
Kindle Scribe notebook format
I'm curious about how Scribe stores Notebook data, synching behavior, etc, and plan to engage in some experimentation.
It appears that everything is stored in SQLite databases in KPF containers, each with a -journal to manage atomic commit and rollback (undo/redo/sync to cloud?). There is also a thumbnails folder that has a .png render of the first page of each downloaded notebook. Folder structure is like this snapshot of my Scribe: Quote:
@jhowell: Quote:
Quote:
Findings: * it is possible to backup and restore specific notebook versions * it is probably possible to export to SVG once NMDL is sufficiently 'understood' Last edited by tomsem; 05-15-2023 at 01:37 PM. |
|||
05-13-2023, 06:49 PM | #2 |
Enthusiast
Posts: 48
Karma: 50000
Join Date: Nov 2017
Device: Nook, Kindle
|
To contrast
Kindle Scribe - no network connection since one-time-registration.
Creating a local notebook. Root: .notebooks there's an empty .backups directory there's a thumbnails directory with the PNG Then, there's a GUID directory per notebook. Since its not connected to the network, 'nbk' is populated, and nbk-journal is 0-bytes. * Defining Folders doesn't result in a change to the user-store. * I haven't tweaked anything in KFX_CONFIG yet |
Advert | |
|
05-13-2023, 09:30 PM | #3 |
Grand Sorcerer
Posts: 6,772
Karma: 26974049
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
Looks like it is more like: a GUID folder per downloaded Notebook, though that was not reflected in the earlier snapshot.
Still not clear where folders are defined. It's not one of the GUID folders as those are all accounted for as containers for Notebook content, and after adding another I don't see any changes. I'll try to keep initial post up to date. Last edited by tomsem; 05-13-2023 at 10:26 PM. |
05-14-2023, 08:55 AM | #4 | |||
Grand Sorcerer
Posts: 6,754
Karma: 86500093
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
Quote:
Quote:
If someone would post an example of one of these files I could check. Last edited by jhowell; 05-14-2023 at 09:29 AM. |
|||
05-14-2023, 11:42 AM | #5 |
Grand Sorcerer
Posts: 6,754
Karma: 86500093
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Some information is known about Scribe annotation storage from previous examination.
Books and personal documents in KFX format contain a .yjr file found in the .sdr folder associated with the book. For non-Scribe devices that contains all of the annotations made to that book. On a Scribe the .yjr file also has links to handwritten annotations. Those are stored as strokes in an SQLite database which can be found in a folder associated with the book: /.notebooks/{ASIN}!!{CDETYPE}!!notebook/nbk Amazon may have used the same mechanism for annotating notebooks. If so then it is possible that each notebook has main KFX file holding a copy of the template for each page and an associated .sdr folder with a .yjr file linking to the SQLite stroke database for that notebook. It might be worthwhile to search for such a folder structure, possible in a hidden subfolder of the documents folder of the Scribe. Or perhaps these are stored somewhere else, such as in the GUID named folders under .notebooks. |
Advert | |
|
05-14-2023, 11:58 AM | #6 |
Grand Sorcerer
Posts: 6,754
Karma: 86500093
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
The templates for Scribe notebooks are contained in the firmware and stored in individual subfolders under /app/standalonenotebook/templates. These are in KDF format which is a variant of KFX that uses an SQLite database.
I extracted a template named daily_planner_1860x2480 from the Scribe firmware. I was able to convert this template to an HTML equivalent using the CLI mode of my KFX Input plugin. The template contains a single page with an SVG image. This makes sense as it allows scaling without pixelation. The zipped KDF and HTML files are attached. Last edited by jhowell; 05-14-2023 at 12:01 PM. |
05-14-2023, 12:07 PM | #7 |
Grand Sorcerer
Posts: 6,772
Karma: 26974049
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
So it looks like the !!EBOK!! and !!PDOC!! folders are actually Pen annotations for ebooks and personal documents, respectively.
Last edited by tomsem; 05-14-2023 at 12:24 PM. |
05-14-2023, 12:09 PM | #8 |
Grand Sorcerer
Posts: 6,772
Karma: 26974049
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
Here is a zipped up folder for a notebook.
Last edited by tomsem; 05-14-2023 at 12:19 PM. |
05-14-2023, 12:35 PM | #9 | |
Grand Sorcerer
Posts: 6,772
Karma: 26974049
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
Quote:
|
|
05-14-2023, 12:53 PM | #10 | |
Grand Sorcerer
Posts: 5,531
Karma: 100606001
Join Date: Apr 2011
Device: pb360
|
Quote:
|
|
05-14-2023, 12:59 PM | #11 |
Grand Sorcerer
Posts: 6,772
Karma: 26974049
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
It appears you cannot back up and restore older notebook versions using computer.
This worked: - copy notebook folder to computer - remove notebook folder from Scribe - disconnect usb and sync (download is gone) - connect usb and copy notebook folder back - disconnect usb - download is restored This didn't work: - copy notebook folder - disconnect usb - make a change to notebook and sync - remove download - connect usb - copy previous notebook folder to scribe - disconnect usb - no download shown, it ignores older version So to backup a version, it looks like you need to make a copy that also gets saved to cloud. Last edited by tomsem; 05-14-2023 at 01:11 PM. |
05-14-2023, 01:08 PM | #12 | |
Grand Sorcerer
Posts: 6,772
Karma: 26974049
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
Quote:
If they actually wanted to deprecate or replace a template they could hide the old one so it cannot be used to create new notebooks but would still be there for notebooks that referenced the deprecated template. But not clear they'll ever need to update them. They probably will add new ones over time (e.g. 'wide' aspect templates). |
|
05-14-2023, 04:07 PM | #13 |
Grand Sorcerer
Posts: 6,754
Karma: 86500093
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
That is definitely a KDF file, KFX format in an SQLite database with a "fingerprint" to prevent tampering. I tried to convert it using my KFX Input plugin but it uses many new data types that I have not encountered before so very little of it can be decoded at present. It appears to be three pages of content based on the music_1860x2480 template.
I have attached a textual representation of the data contained in that file in Amazon's Ion data format. Last edited by jhowell; 05-14-2023 at 04:11 PM. |
05-14-2023, 04:23 PM | #14 | |
Grand Sorcerer
Posts: 6,754
Karma: 86500093
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
|
|
05-14-2023, 04:32 PM | #15 | |
Grand Sorcerer
Posts: 5,531
Karma: 100606001
Join Date: Apr 2011
Device: pb360
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle Scribe | jhowell | Amazon Kindle | 797 | 06-22-2024 08:38 PM |
Kindle scribe-Stylus | HLS | Amazon Kindle | 6 | 05-03-2023 11:00 AM |
Kindle Scribe | Sonnenfee | Amazon Kindle | 0 | 01-04-2023 09:25 AM |
Kindle Scribe - DS | chrispe | Amazon Kindle | 11 | 12-27-2022 12:10 AM |
Amazon announces the Kindle Scribe - 10.2" Kindle with stylus support | Dazrin | News | 128 | 12-22-2022 03:16 PM |