![]() |
#571 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,658
Karma: 85000001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Thanks for the error reports! I will take a look at them today and will let you know if I need any additional information to help solve them.
I apologize for relying on you so much to do testing and provide samples. I have been considering picking up a Scribe for reading and experimentation but have been reluctant because of the cost and the fact that I have no interest in using it for note taking. The low end Essentials Bundle is $285 right now for Prime members. That is tempting me. |
![]() |
![]() |
![]() |
#572 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,658
Karma: 85000001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
That relates to a feature (local_delta_fragments) used in Scribe notebooks. I made some assumptions about how to handle that based on the samples I had seen, but your new example includes a case that I didn't account for. This will be fixed in the next plugin release, at least for all of the cases I have encountered so far.
That notebook uses a brush type (value 0 internally) that I have not encountered before. Strokes for that are missing some of the data that is present for other brush types causing the plugin to fail. I have seen "brush pen" mentioned as a possible brush type in the Scribe software. Is that what you used to draw in this notebook? Quote:
Quote:
It is possible that error results from deleted sticky note annotations not being completely removed from the notebook. One way to test this would be to add a sticky note to a book that has not been previously annotated and then delete the note. I suspect that the resulting annotation notebook will exhibit this problem. If so then I will change this from an error to a more specific warning in the plugin. If that is not the actual cause then more research will be needed. This appears to be a relatively new behavior, since sequential points of a stroke never had the same location in any of the Scribe notebook I examined previously. I will handle this case in the next release of the plugin. |
||
![]() |
![]() |
Advert | |
|
![]() |
#573 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,658
Karma: 85000001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
I have spent several weeks working on and off to understand how the Scribe derives the thickness and density adjustment factors from the more primitive data (x/y coordinates, tilt angle, and pressure applied.) Earlier this week I had a breakthrough and was able to exactly replicate the thickness and density of the hundreds of thousands of points in the Scribe notebook samples I have seen so far.
I did some more testing and that one notebook sample you provided (95E4A4423B184AE1B3DCF747F659B0CD!!PDOC!!notebook) breaks all of those rules. Do you have any idea what might be different about that notebook as compared with all of the other notebooks you have shared so far? Last edited by jhowell; 07-07-2023 at 06:46 PM. |
![]() |
![]() |
![]() |
#574 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,631
Karma: 26963509
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
Quote:
The document in this case started life as a PDF containing 8 Sudoku puzzles. I generally 'permanently delete' these as soon as I have solved the puzzles. This removes it from cloud, as well as the KFX, .sdr folder, and (in this case) the associated .notebook folder. The fact that this folder had been orphaned suggests that it was deleted on my other Scribe. This was probably while I was doing experiments to see how sync of pen annotations worked in various scenarios. So this document may have been one that I annotated with both Scribes. It may be some situation due to sync sequencing. I remember one case (but maybe not this one) where I had two solutions overlaid, for example. Or it might be a simpler matter of having done a Delete Page operation along the way, and having things in undo buffer when document was closed? At any rate, these are some scenarios that might factor in here (I'll try the Delete Page one to see what results) Note that Permanently Delete does not remove personal documents from all devices, just from the one that initiated it, and from cloud storage. So you need to also Delete from the other device(s). It still seems like this should not orphan anything however. (A few weeks ago I wrote a Python script to clean up orphaned .sdr folders, empty folders, and content specific temp files. At the time I had not observed any of these in .notebook folder so it does not look for any. Clearly I need to update it now...) |
|
![]() |
![]() |
![]() |
#575 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,007
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
|
![]() |
![]() |
Advert | |
|
![]() |
#576 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,658
Karma: 85000001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Thanks. However I wasted a lot more time than I should have trying to find a simple formula that fit the data. In the end I went though the actual Scribe firmware to discover that it uses cubic Bézier curves to map raw data from the pen into the factors that control the thickness and density of strokes.
|
![]() |
![]() |
![]() |
#577 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,658
Karma: 85000001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
Quote:
----- At this point I believe that I have accounted for all of the problems in the last set of sample notebooks and will release the updated plugin after a bit of further testing. Thanks again for all of the help. |
||
![]() |
![]() |
![]() |
#578 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,658
Karma: 85000001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Version 2.2.0 - 10 Jul 2023
Miscellaneous improvements in the conversion of Scribe notebooks including handling of empty notebooks, unreferenced pages, original firmware "pen" brush type, repeated point locations, and local_delta_fragments. |
![]() |
![]() |
![]() |
#579 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jul 2023
Device: kindle
|
incompatible layout error
Conversion fails with following error for one book. is there any solution?
Latest Calibre and plugins on Win. WARNING: This book contains PDF content, which can be extracted using the KFX Input plugin CLI. ERROR: This book has a layout that is incompatible with calibre conversion. For best results use the KFX Input plugin CLI for conversion. Converting book to EPUB 3 Format is fixed layout Traceback (most recent call last): File "calibre_plugins.kfx_input.__init__", line 115, in convert Exception: This book has a layout that is incompatible with calibre conversion. For best results use the KFX Input plugin CLI for conversion. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "runpy.py", line 196, in _run_module_as_main File "runpy.py", line 86, in _run_code File "site.py", line 83, in <module> File "site.py", line 78, in main File "site.py", line 50, in run_entry_point File "calibre\utils\ipc\worker.py", line 215, in main File "calibre\gui2\convert\gui_conversion.py", line 38, in gui_convert_override File "calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert File "calibre\ebooks\conversion\plumber.py", line 1108, in run File "calibre\customize\conversion.py", line 242, in __call__ File "calibre_plugins.kfx_input.__init__", line 126, in convert calibre.ebooks.conversion.ConversionUserFeedBack: {"msg": "<b>Cannot convert ABC - X : Pqr stu vwxyz</b><br><br>Exception('This book has a layout that is incompatible with calibre conversion. For best results use the KFX Input plugin CLI for conversion.')", "level": "error", "det_msg": "", "title": "KFX conversion failed"} |
![]() |
![]() |
![]() |
#580 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,658
Karma: 85000001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
See the Command Line Interface section in the first post of this thread for instructions on using the plugin's CLI to convert fixed layout books. |
|
![]() |
![]() |
![]() |
#581 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,658
Karma: 85000001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Version 2.3.0 - 07 Aug 2023
Handle new heading level metadata. (Fixes "Unexpected Ion symbols used: $798, $799, $800" and "nav_container xxx has unknown type: $798") Fix error when processing the cover of fixed layout books converted from KPF format. (Fixes "YJFragmentList item is missing: '$389'") |
![]() |
![]() |
![]() |
#582 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: May 2020
Device: KindlePW5
|
This plugin seems to treat KPF and KFX files the same. Say if I have a KPF file, and try to use your other plugin to convert to to KFX, it will create an intermediate EPUB file, while the KFX Output plugin handles KPF files.
|
![]() |
![]() |
![]() |
#583 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,658
Karma: 85000001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
KPF is closely related to KFX. Either can be used as an input format for the KFX Input plugin. And the CLI of KFX Output can transform KPF directly into KFX. |
|
![]() |
![]() |
![]() |
#584 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7
Karma: 123456
Join Date: Aug 2023
Location: BC, Canada
Device: Kindle Scribe
|
![]()
Hello, I am trying to write a script that will let me extract PDFs from the Kindle in their annotated form without contacting amazon. Do the annotation "notebooks" (each write-on PDF on the Kindle seems to have a corresponding notebook folder that when put through KFX Input gives me the SVG of all my annotations.) Do these "notebooks" contain info on which SVG goes with which page of each PDF? (Even if it is not in the corresponding epub file and only tells me which pen traces go on each page in the KFX nbk file.) If so where is this data stored?
|
![]() |
![]() |
![]() |
#585 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,658
Karma: 85000001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
Quote:
Each annotated page will have an entry such as: Code:
"annotation.cache.object": { "annotation.personal.handwritten_note": [ { "startPosition": "201.0:13974", "endPosition": "201.0:13974", "creationTime": "2023-08-26T09:09:38.130000", "lastModificationTime": "2023-08-26T09:09:38.130000", "template": "0\ufffc0", "handwritten_note_nbk_ref": "crEq-GhRTSa63nk5j3KC6Qw0" } ] }, The handwritten_note_nbk_ref is the KFX section ID of the associated annotation page in the notebook. Currently those IDs are not reflected in the EPUB generated by the KFX Input plugin for an annotation notebook. I will update the plugin to include this data in the EPUB so that these can be matched. The margins of the PDF page may be been trimmed during conversion to KFX format for delivery to the Scribe. Also the SVG produced will have the aspect ratio of the Scribe screen which might not match the PDF page. Because of this some image manipulation may be needed to properly overlay the SVG image onto the original PDF page. Last edited by jhowell; 08-26-2023 at 04:13 PM. |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Conversion Input] Microsoft Doc Input Plugin | igi | Plugins | 76 | 06-28-2019 04:47 AM |
KFX conversion, transfer back to library issue. | shoelesshunter | Conversion | 2 | 08-22-2017 06:40 PM |
[Conversion Input] LaTeX Formulas Input Conversion Plugin | sevyls | Plugins | 0 | 03-23-2015 05:52 AM |
[Input Plugin] DOCX Input | SauliusP. | Plugins | 42 | 06-05-2013 04:01 AM |
Looking For MHT Input Conversion Plugin | FlooseMan Dave | Plugins | 4 | 03-30-2010 05:52 PM |