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.rmTest the parser:
$ python -m src.rmscene print-blocks page_file.rmConvert a .rm file into an SVG file.
$ python -m src.rmscene rm2svg tests/rm/dot.stroke.rm /tmp/foo.svgConvert a .rm file into an PDF file.
$ python -m src.rmscene rm2pdf tests/rm/dot.stroke.rm /tmp/foo.pdfhttps://github.com/ddvk/reader helped a lot in figuring out the structure and meaning of the files.
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.