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

File Format v3 #15

Closed
ax3l opened this issue Jan 9, 2019 · 4 comments
Closed

File Format v3 #15

ax3l opened this issue Jan 9, 2019 · 4 comments

Comments

@ax3l
Copy link
Owner

ax3l commented Jan 9, 2019

The file format was updated to v3. Investigate the changes.

@lobre
Copy link

lobre commented Jan 29, 2019

Hello,

Apparently, there are answers here.

I've just thrown a look quickly but will try to grasp it better by playing with the device.

Loric

@lobre
Copy link

lobre commented Jan 30, 2019

I little bit more info.

The extension of encoded files is now .rm and we have one .rm file per page, meaning the top level object in the binary is now the Layer. Here is the .zip file structure for a 2 pages note.

├── 7f33a26e-3fb6-415a-b18f-814716853013
│   ├── 0-metadata.json
│   ├── 0.rm
│   ├── 1-metadata.json
│   └── 1.rm
├── 7f33a26e-3fb6-415a-b18f-814716853013.content
├── 7f33a26e-3fb6-415a-b18f-814716853013.pagedata
└── 7f33a26e-3fb6-415a-b18f-814716853013.thumbnails
   ├── 0.jpg
   └── 1.jpg

And taken from the link I attached in my previous comment, here is the binary format.

#  header: 'reMarkable .lines file, version=3          '
#  4 bytes integer: number of layers
#  for each layer: 
#      4 bytes integer: number of strokes
#      for each stroke:
#          4 bytes integer: pen
#          4 bytes integer: colour
#          4 bytes: unknown
#          4 bytes floating point: width
#          4 bytes integer: number of segments
#          for each segment:
#              6 floating point numbers: x, y, speed, direction, width, pressure

With strokes being what you call lines and segments what you call points.

Loric

@ax3l
Copy link
Owner Author

ax3l commented Feb 9, 2019

Thanks!

I updated the low-level, per-page read and write handling in #16.

@ax3l
Copy link
Owner Author

ax3l commented Feb 10, 2019

Functionality restored as of #18 :)

@ax3l ax3l closed this as completed Feb 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants