View Single Post
Old 05-21-2023, 07:52 PM   #35
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,121
Karma: 92500001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by tomsem View Post
Nice work!
Thanks. And thank you for providing all of the data files.

Quote:
Originally Posted by tomsem View Post
- is the Notebook title stored in notebook and decodable? (I'm seeing kindle_title_metadata in there but the properties are encoded and straight uudecode didn't work for me)
The only thing in the kindle_title_metadata for Scribe notebooks is the book_id, which is a random string (a base64 equivalent to a UUID) used as part of the calculation of the "fingerprint" that is designed to prevent those files from being read or altered by non-Amazon software.

Actually in many of the notebooks you provided the fingerprint appears to be set incorrectly. It is correct in some of the notebooks which leads me to believe that I am checking it properly. This is possibly another Scribe bug.

Quote:
Originally Posted by tomsem View Post
- have you worked out how to render templates?
Templates can already be decoded. You can find them in the Scribe firmware in the /app/standalonenotebook/templates folder. The templates in the current 5.16.1.3 firmware are:

checklist_1_col_1860x2480
daily_planner_1860x2480
dotted_1860x2480
graph_1860x2480
habit_tracker_vertical_1860x2480
medium_rule_1860x2480
medium_rule_margin_1860x2480
monthly_planner_1860x2480
music_1860x2480
narrow_rule_1860x2480
narrow_rule_margin_1860x2480
storyboard_1860x2480
vertical_rule_1860x2480
vertical_rule_margin_1860x2480
weekly_planner_1860x2480
wide_rule_1860x2480
wide_rule_margin_1860x2480

Each is a folder containing a single book.kdf file. If you zip one of those folders and then change the file extension from .zip to .kfx-zip you can decode it using the command line interface of the current version of the KFX Input plugin.

Code:
C:\Test>calibre-debug -r "KFX Input" -- narrow_rule_margin_1860x2480.kfx-zip
Software versions: KFX Input 1.51.0, calibre 6.17, Windows-10-10.0.22621-SP0
KFX Input plugin help is available at https://www.mobileread.com/forums/showthread.php?t=291290

Processing narrow_rule_margin_1860x2480.kfx-zip
Processing container: narrow_rule_margin_1860x2480.kfx-zip
Removed 1 KDF SQLite file fingerprint(s)
Adding book_navigation
Built approximate location_map with 1 locations
Features: CanonicalFormat-1, max_id-825, reflow-style-1
Metadata: asset_id=CR!32EMPXC3MFCK6THUW8RQ3Y4WKGHJ, book_id=Eil4x9xgS8ed9MPRIfijhQ0, creator_version=2.15.0, file_creator=YJConversionTools, is_sample=False, kfxgen=kfxlib-20230206, override_kindle_font=False, reading_orders=1, selection=enabled
Converting narrow_rule_margin_1860x2480.kfx-zip to EPUB
Converting book to EPUB 3
Converted book saved to narrow_rule_margin_1860x2480.epub
The resulting EPUB will have a single XHTML file containing the SVG image of the page template. (The EPUB does not render well in calibre but if you save the XHTML file and open it in a web browser you can see the template.)
jhowell is offline   Reply With Quote