Important: I am not associated with Ratta in any way. This library is entirely unofficial.
WIP library for working with SuperNote .note files. Currently able to output stroke data as an
SVG for notebooks created on the SuperNote Nomad.
At the moment, it's in an "as-is" state since it works for my usecase. It provides a ~1:1 view of the file in memory. It's not ergonomic, it's probably not memory safe (lifetimes are cast away to keep the self-referential stuff simple), but it can output pages as SVGs pretty trivially.
Additionally, there is an ImHex pattern file so you can inspect the raw files yourself. If you are able to fill in any of the unknown field, please let me know and I'll update them.
Current list of problems:
- No support for Manta or older devices
- Layers are not accounted for, all strokes are added to the SVG in the order they are listed in the file
- Marker strokes (i.e. strokes with opacity) layer instead of merging
- Advanced features are not handled (e.g. text elements, headers, links, keywords)
- Thickness calculation for pressure-aware strokes is not 100% accurate.
- Background layer processing can currently handle the built-ins (compressed BMP's) and PNG. Since I'm using the
imagecrate anyway, adding support for jpg, jpeg, and webp should be trivial. I haven't gotten around to making the test files for it yet, but when I do I'll add them. Adding PDF support looks reasonable, but I definitely need to fiddle with that more. - Probably other things I'm forgetting