View Single Post
Old 06-08-2024, 09:50 PM   #697
Kluyg
Member
Kluyg ought to be getting tired of karma fortunes by now.Kluyg ought to be getting tired of karma fortunes by now.Kluyg ought to be getting tired of karma fortunes by now.Kluyg ought to be getting tired of karma fortunes by now.Kluyg ought to be getting tired of karma fortunes by now.Kluyg ought to be getting tired of karma fortunes by now.Kluyg ought to be getting tired of karma fortunes by now.Kluyg ought to be getting tired of karma fortunes by now.Kluyg ought to be getting tired of karma fortunes by now.Kluyg ought to be getting tired of karma fortunes by now.Kluyg ought to be getting tired of karma fortunes by now.
 
Posts: 24
Karma: 200000
Join Date: May 2010
Device: Kindle Scribe, Sony PRS-950
Hi! I'm using "KFX Input" plugin to convert my Kindle Scribe notebooks to ePub. The new Kindle Scribe firmware (5.16.9) introduced a new feature - support for "per page" notebook templates. When trying to convert a notebook that uses "per page" templates feature, I get the following error:

Code:
ERROR: section cxl0JYIquQ_yu1yd2nlYRTw1 has extra data: {nmdl.template_id: zxl0JYIquQ_yu1yd2nlYRTw6}
ERROR: section cxl0JYIquQ_yu1yd2nlYRTw12 has extra data: {nmdl.template_id: zxl0JYIquQ_yu1yd2nlYRTw2G}
ERROR: section cxl0JYIquQ_yu1yd2nlYRTw1E has extra data: {nmdl.template_id: zxl0JYIquQ_yu1yd2nlYRTw6}
The notebook is still converted successfully but all pages use the same "default" template, all "per page" templates are lost.

Is there a tracking bug on GitHub? I would be interested in poking around to maybe add "per page" support for the "KFX Input" plugin.
UPDATE: I couldn't find the source code hosted anywhere, so I just uploaded it to GitHub, since the license seems to be GPLv3, please let me know if that's not OK: https://github.com/kluyg/calibre-kfx-input

Looks like the support is almost there, since I see that each page references the template it's using and all templates are recognized by the plugin:
Code:
Notebook template: medium_rule_1860x2480
Notebook template: daily_planner_1860x2480
Full command and output:
Spoiler:
strebkov-mac:~ strebkov$ /Applications/calibre.app/Contents/MacOS/calibre-debug -r "KFX Input" -- /Users/strebkov/kindle_scribe/.notebooks/1850ba62-93b2-8d4a-2b29-ce734b002402 ~/kindle_scribe/converted_notebooks/mynotebook-2.epub
Software versions: KFX Input 2.12.0, calibre 7.12, macOS-14.5-arm64-arm-64bit
KFX Input plugin help is available at https://www.mobileread.com/forums/sh...d.php?t=291290

Processing /Users/strebkov/kindle_scribe/.notebooks/1850ba62-93b2-8d4a-2b29-ce734b002402
Processing container: /Users/strebkov/kindle_scribe/.notebooks/1850ba62-93b2-8d4a-2b29-ce734b002402/nbk
Removed 1 KDF SQLite file fingerprint(s)
Found local_action_fragments table
Found local_delta_fragments table
Adding 37 missing fragments from local_delta_fragments
Features: db.delta_update-1, db.schema-1, max_id-825, note-2
Metadata: book_id=GcZ60iWhREaLqvFLR-_d-w0, reading_orders=2
Converting /Users/strebkov/kindle_scribe/.notebooks/1850ba62-93b2-8d4a-2b29-ce734b002402 to EPUB
Converting book to EPUB 3
Book symbol format is base64
ERROR: section cxl0JYIquQ_yu1yd2nlYRTw1 has extra data: {nmdl.template_id: zxl0JYIquQ_yu1yd2nlYRTw6}
ERROR: section cxl0JYIquQ_yu1yd2nlYRTw12 has extra data: {nmdl.template_id: zxl0JYIquQ_yu1yd2nlYRTw2G}
ERROR: section cxl0JYIquQ_yu1yd2nlYRTw1E has extra data: {nmdl.template_id: zxl0JYIquQ_yu1yd2nlYRTw6}
Notebook template: medium_rule_1860x2480
Notebook template: daily_planner_1860x2480
Format is fixed layout notebook
Converted book saved to /Users/strebkov/kindle_scribe/converted_notebooks/mynotebook-2.epub

Last edited by Kluyg; 06-08-2024 at 10:56 PM.
Kluyg is offline   Reply With Quote