Skip to content
/ rmscene Public
forked from chemag/rmscene

Read v6 .rm files from the reMarkable tablet

License

Notifications You must be signed in to change notification settings

hersle/rmscene

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rmscene

Python library to read v6 files from reMarkable tables (software version 3).

In particular, this version introduces the ability to include text as well as drawn lines. Extracting this text is the original motivation to develop this library, but it also can read much of the other types of data in the reMarkable files.

Includes some experimental command line tools to dump block structure and text content:

$ python -m rmscene print-text file.rm

$ python -m rmscene print-blocks file.rm

operation

Test the parser:

$ python -m src.rmscene print-blocks page_file.rm

Convert a .rm file into an SVG file.

$ python -m src.rmscene rm2svg tests/rm/dot.stroke.rm /tmp/foo.svg

Convert a .rm file into an PDF file.

$ python -m src.rmscene rm2pdf tests/rm/dot.stroke.rm /tmp/foo.pdf

Acknowledgements

https://github.com/ddvk/reader helped a lot in figuring out the structure and meaning of the files.

SVG/PDF Conversion Status

Right now the conversor (it is the same for svg and pdf) works well while there are no text boxes. If you add text boxes, there are 2x issues:

  • (1) if the text box contains multiple lines, the lines are actually printed in the same line, and
  • (2) the position of the strokes gets corrupted.

About

Read v6 .rm files from the reMarkable tablet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.6%
  • Makefile 0.4%