jya-dev / supernote-tool

Unofficial python tool for Supernote
Apache License 2.0
237 stars 26 forks source link

Support for the new fileformat for the latest beta #15

Closed adityam closed 1 year ago

adityam commented 1 year ago

Trying to convert a note file created on the latest beta gives an error:

exceptions.UnsupportedFileFormat('unsupported file format')

Is it possible to support the new file format.

jya-dev commented 1 year ago

Try --policy loose option.

Example:

supernote-tool convert --policy loose -a -t pdf your.note converted.pdf

I prepared the option for future file format changes. When you give the option, the parser try to parse unsupported file. If the beta file format is not big change from stable version, the option is helpful. (Of course if the file format has changed significantly, the parser returns exception.)

I'm not in the Early Testers Program, so I can't support new file format soon. If you could share your note file created by latest beta, I might be able to help you more.

adityam commented 1 year ago

Thanks. --policy loose does the conversion. The new beta version supports both internal and external links. A new version was released today. I'll create a sample file which includes all the features and post it here.

adityam commented 1 year ago

Here is a sample .note file and the corresponding .pdf as exported by the device.

note file exported file

jya-dev commented 1 year ago

Thank you for sharing sample files. Chauvet 2.6.19 was now released while preparing beta support. I have uploaded a support of Chauvet 2.6.19 at the latest commit (19583d484053bf57fede5d317a853729a2709156).