An unofficial converter library for Ratta Supernote
Project description
supernote-tool
supernote-tool
is an unofficial python tool for Ratta Supernote.
It allows converting a Supernote's *.note
file into PNG image file
without operating export function on a real device.
This tool is under development and may change.
Installation
$ pip install supernotelib
Usage
To convert first page of your note into PNG image:
$ supernote-tool convert your.note output.png
To convert all pages:
$ supernote-tool convert -a your.note output.png
If you want to specify page number to convert:
$ supernote-tool convert -n 3 your.note output.png
You can colorize a note by specifing alternative color codes in order of black, darkgray, gray and white.
Note that use #fefefe
for white because #ffffff
is used for transparent.
To convert black into red:
$ supernote-tool convert -c "#ff0000,#9d9d9d,#c9c9c9,#fefefe" your.note output.png
To convert into SVG file format:
$ supernote-tool convert -t svg your.note output.svg
To convert all pages into PDF file format:
$ supernote-tool convert -t pdf -a your.note output.pdf
You can also convert your handwriting to vector format and save it as PDF with --pdf-type vector
option.
Note that converting to a vector takes time.
$ supernote-tool convert -t pdf --pdf-type vector -a your.note output.pdf
To extract text from a real-time recognition note introduced from Chauvet2.7.21:
$ supernote-tool convert -t txt -a your.note output.txt
For developers, dump note metadata as JSON format:
$ supernote-tool analyze your.note
Supporting files
*.note
file created on Supernote A5 (Firmware SN100.B000.432_release)*.note
file created on Supernote A6X (Firmware Chauvet 2.11.26)*.note
file created on Supernote A5X (Firmware Chauvet 2.11.26)*.note
file created on Supernote A6X2 (Firmware Chauvet 3.14.27)
License
This software is released under the Apache License 2.0, see LICENSE file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file supernotelib-0.5.0.tar.gz
.
File metadata
- Download URL: supernotelib-0.5.0.tar.gz
- Upload date:
- Size: 25.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae96bd2e31332a5f25c130522ad422ff69a1a337708f76abd28cbb028cd7df75 |
|
MD5 | a8ba2a0a1ef9b9509196fe6eeb387ac7 |
|
BLAKE2b-256 | 314e49440de9cc1382c997546439ea446dbd565626672d133e1591f43714d32c |
File details
Details for the file supernotelib-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: supernotelib-0.5.0-py3-none-any.whl
- Upload date:
- Size: 36.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 561b0533d044a8a2ece77d25f33c52312198b5c42d390a86bac7e61f4782f126 |
|
MD5 | d17b6fc18f8fe5e51084da30d04969b3 |
|
BLAKE2b-256 | bb70ebbafa19913c487637461853ca8a017ae7bd389f42f61e76cd43d86f97cc |