Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notes in horizontal orientation appear to be parsed incorrectly #27

Open
james-xli opened this issue May 18, 2024 · 1 comment
Open

Comments

@james-xli
Copy link
Contributor

james-xli commented May 18, 2024

Notes that were created on a Supernote in the "horizontal" orientation appear to be parsed incorrectly by the plugin. Recognized text appears fine, but the image of the note looks corrupted.

I'm attaching a test .note file here (as .zip file so that Github will accept it):
horizontal.note.zip

Here is the PNG export of this note from the Supernote, to show what it is supposed to look like:
horizontal_Page_1

Here is how it looks in Obsidian:
image

It's interesting that the image is messed up horizontally, but the vertical relationship of the things on the page is maintained. It seems like the 1872x1404px data of the horizontal note is being shown in the 1404x1872px resolution of a vertical note, so the pixels overflow across rows.

The image also still looks corrupted after using the Obsidian plugin to export to PNG.

I'm guessing this might be an issue in the underlying supernote-typescript library? Maybe there's some flag in the .note file format or something that identifies when a note is supposed to be horizontal...

Steps to create a new .note file to reproduce this issue:

  1. On the Supernote, open the "Create New Note" window
  2. Either "Standard" or "Real-Time Recognition" types will reproduce this issue.
  3. Under "Templates," select "Horizontal"
  4. Create the .note, write in it, and sync to Obsidian vault as normal.
@philips
Copy link
Owner

philips commented May 18, 2024

Yeah that is 100% a library issue. There are zero examples of horizontal notes in the unit tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants