rmstrokes
Printable pages with movable pieces, for the reMarkable.
The how-to page, fill in the gaps, and the character mix example, as PDF. On the tablet, every word tag and character part is pen strokes you can lasso and move.
reMarkable documents with a PDF background and movable pen strokes: draw the fixed part of a page as a vector PDF,
put the things people move (tokens, word tags, pictures, pins) on named layers as real pen strokes, and write it all as an
.rmdoc the tablet opens like any notebook. Select the layer, lasso a thing, drag it.
Features
- SVG and shapes to strokes: any SVG (or a primitive: circle, star, pin, tag, arrow, ...) becomes fineliner strokes: a contour along the edge, a scanline hatch inside, thin features patched; filled, grey, outline or over opaque white ink. Each object is one compact, contiguous cluster, so one lasso takes exactly one object.
- Layer API: a page is one PDF background plus any number of named stroke layers and an optional empty
handwriting layer (
Page,Layer,Document). - Tokens: a shape with an optional icon, label or number, and an optional blank name tag attached on the same layer: write a name in the tag and one lasso moves the token and the name together.
- Trays: where tokens start: a grid of slots (
grid_cells), with an optional label and frame. - Write-in fields: a label and a ruled line or box on the background (
Today I will ________ first). - Templates as data: a TOML file declares the parameters, the background, the tokens and their trays
(docs/templates.md). Built in:
gaps(fill in the gaps: a passage with gaps and a bank of word tags to drag into them). - One parameter schema per template drives the CLI flags, recipe files and the docs.
- Recipes: one TOML or JSON file describes a whole document, mixing page types (docs/recipes.md).
- Intro page: an optional first page explaining how to use the document on the tablet, with small diagrams, a practice token, and each template's own steps and a miniature of its page.
- Design system: one set of type, colour, line and spacing tokens (
rmstrokes.design), chosen per template with--theme. Two themes are built in:default(Atkinson Hyperlegible Next, greys tuned for the rM2) andcolor(the same, plus a soft Paper Pro palette). Another package can add its own withdesign.register_theme.rmstrokes specimenprints them (docs/design-system.md). - Fonts: three faces of Atkinson Hyperlegible Next are bundled, enough for every page. A font package (entry
point group
rmstrokes.fonts) orfonts.add_font_sourcecan add more, found by name; the themes then use a display face for titles and a monospace for tabular numbers where one is installed. - Devices: reMarkable 2 (checked on hardware), Paper Pro and Paper Pro Move (from published specs, unverified). Pages are sized to each device's pixel grid, 1 px = 72/dpi pt, so PDF and strokes line up.
Install
rmstrokes isn't on PyPI yet. Install it from GitHub (Python 3.11 or later):
pipx install git+https://github.com/marcinkevicius/rmstrokes
# or: uv tool install git+https://github.com/marcinkevicius/rmstrokes
rmstrokes make gaps --intro -o gaps.rmdoc
Copy gaps.rmdoc to the tablet, open it, pick the "Words" layer in the layers menu, lasso a word and drag it.
PNG previews (rmstrokes explain, specimen, the gallery's pictures) also need pypdfium2:
pipx install "rmstrokes[preview] @ git+https://github.com/marcinkevicius/rmstrokes". To work on rmstrokes itself, see CONTRIBUTING.md.
Usage
The example files live in this repository's examples/ folder.
rmstrokes make gaps --words sun --words rain --intro -o gaps.rmdoc # one template, flags from its schema
rmstrokes make examples/templates/sorting.toml -o sorting.pdf # a template file of your own (PDF: strokes printed)
rmstrokes build examples/reading.toml -o reading.rmdoc # a recipe: intro, two gaps pages, a sorting page
rmstrokes make examples/character_mix/character_mix.py -o mix.rmdoc # a Python template file with SVG art
rmstrokes templates # what can be built (installed packages add their own)
rmstrokes params gaps # a template's parameters
rmstrokes specimen -o specimen/ # the design system on rm2 and pro (rmdoc, PDF, PNG)
rmstrokes gallery # every template and example, for review (gallery.toml)
rmstrokes explain gaps -o explain/ # how a page is built, step by step, as PNGs
rmstrokes explain [TEMPLATE ...] draws how a template's first page is built, in five pictures: what goes in
(parameter text, token shapes and SVGs), the layout in device pixels, one token becoming pen strokes, the layers,
and the finished page as .rmdoc and PDF. It writes a PNG per step plus the page itself (--markdown FILE: the
steps as a markdown page too). docs/how-a-page-is-built.md is its output for gaps
and the character mix example, and the gallery shows it at the top of the contact sheet for the templates its
config lists under explain.
rmstrokes gallery builds every template (its defaults, with the intro page) and every example listed in a gallery
config, for the reMarkable 2 and the Paper Pro (--with-move: the Move too), as .rmdoc, .pdf and a PNG of the
first page, with an index.html contact sheet: the reMarkable 2 in the default design theme, the Paper Pro in
color (where a template has them), and the design system's specimen on each. It writes into a new
~/rmstrokes-gallery/<date>-<time>-<commit>/ folder (-o DIR: a new or empty folder of your choice; --dry-run:
list and check only). This repository's gallery.toml lists the examples; templates from installed
packages show up by themselves. The config format is in the docstring of rmstrokes/gallery.py.
From Python:
from rmstrokes import Document, Layer, NameTag, Page, Rect, Token, get_device, grid_cells, token_art
dev = get_device("rm2")
art = token_art(Token("star", size_mm=10, number=1, name_tag=NameTag(width_mm=20)), dev)
cells = grid_cells(Rect(150, 1400, 1100, 400), 6, art.width + 20, art.height + 20)
strokes = [s for cell in cells for s in art.placed(*cell.center)]
page = Page(draw=lambda p: p.text("Stars", 150, 200, "AtkinsonHyperlegibleNext-SemiBold", 60, "#000000"),
layers=[Layer("Tokens", strokes)], handwriting="Notes")
Document(dev, [page], title="Stars").write("stars.rmdoc")
Templates written in Python subclass rmstrokes.Template and are found through the rmstrokes.templates entry
point group, so another package can add its own (name = "package.module:TEMPLATE"), or are given by path as a
.py file that defines TEMPLATE.
Documentation
| docs/how-a-page-is-built.md | from text and SVGs to the finished page, step by step, in pictures (rmstrokes explain) |
| docs/design-system.md | the design system: fonts, type scale, greys, Paper Pro colours, lines, knock-outs, spacing, themes, and why |
| docs/intro.md | the intro page: its cards and scenes, how to write a template's steps |
| docs/templates.md | template files: parameters, background elements, tokens, trays, layers, expressions |
| docs/recipes.md | recipe files: one document from several templates |
| docs/format-notes.md | the .rmdoc and .rm v6 formats as we write them, what's verified |
| docs/architecture.md | what the engine is made of: pipeline, modules, CLI and hooks, dependencies, files, format |
| examples/ | a recipe (reading.toml), a template file (templates/sorting.toml) and a Python template file with SVG art, character_mix/ (build people from Open Peeps parts, CC0; Paper Pro and Move output unverified) |
| CONTRIBUTING.md | setting up, trying it on a tablet, pull requests |
| CHANGELOG.md | release notes |
| SECURITY.md | reporting a security problem |
Development
uv sync, then uv run pytest. CONTRIBUTING.md has the rest; every font and image is listed in
ATTRIBUTION.md.
Acknowledgements and prior art
The .rmdoc and .rm v6 formats aren't officially documented. rmstrokes writes them with
rmscene, and learnt them from open-source projects that read and write
them: rmc, rmrl,
ddvk/rmapi, drawj2d and the
remarquee rmdoc package.
docs/format-notes.md says what came from where. The character mix example uses
Open Peeps by Pablo Stanley, and the pages are set in
Atkinson Hyperlegible Next by the Braille Institute.
Licensing
- The engine (source, built-in template, examples, docs) is MIT (LICENSE).
- Dependencies are installed from PyPI, not bundled, and are under permissive licences: MIT, BSD or Apache-2.0 (reportlab, rmscene, shapely, svgelements, numpy; the dev tools pytest, pypdf, pypdfium2, Pillow).
- GEOS, the geometry library inside shapely's wheels, is LGPL-2.1. rmstrokes uses it only through shapely, as the unmodified shared library shapely ships, so it can be swapped for another build; nothing of GEOS is in this repository.
- Fonts: Atkinson Hyperlegible Next Regular, Italic and SemiBold, unmodified, under the SIL Open Font License
1.1. The licence text is next to them (
src/rmstrokes/fonts/OFL-AtkinsonHyperlegibleNext.txt) and goes into the wheel. PDFs made with them embed font subsets; such documents are not themselves under the OFL. - Art: the character parts in
examples/character_mix/parts/are Open Peeps by Pablo Stanley, CC0 1.0.
Sources, versions and hashes of every non-code file are in ATTRIBUTION.md.
License
MIT. See also NOTICE and ATTRIBUTION.md.
"reMarkable" is a trademark of reMarkable AS; this project is not affiliated with or endorsed by reMarkable.
Metadata
Release files for rmstrokes 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rmstrokes-0.1.1.tar.gz | 1.7 MB | With provenance | Details for rmstrokes-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rmstrokes-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for rmstrokes-0.1.1-py3-none-any.whl |
Total release size: 1.9 MB
Release files / rmstrokes-0.1.1.tar.gz
| Download URL | rmstrokes-0.1.1.tar.gz |
|---|---|
| Size | 1.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f60de2a5aed986a9ca32ba1bd8201e667b0414c2927d6e1b0f81eb75a7a0c1ea
|
|
BLAKE2b-256 checksum How to use checksums |
fa0afd7cdd424289d9ddbe22599530fa0d008a02880da843e2571b689d9ef324
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / rmstrokes-0.1.1-py3-none-any.whl
| Download URL | rmstrokes-0.1.1-py3-none-any.whl |
|---|---|
| Size | 216.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8ac12af5bcb8e8cc1e9c81ed81dd2a171022c2979e108807817aa22ab14ca5e
|
|
BLAKE2b-256 checksum How to use checksums |
0bdad8624b9e645d055120455ae7be2c422b0897f0053d2ef0bec9e44f986e89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logSecurity for rmstrokes 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for rmstrokes-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.