{"id":13772085,"url":"https://github.com/stelzch/rm2anki","last_synced_at":"2026-01-17T09:51:40.733Z","repository":{"id":208671044,"uuid":"722205724","full_name":"stelzch/rm2anki","owner":"stelzch","description":"Convert remarkable notebooks into Anki packages (.apkg)","archived":false,"fork":false,"pushed_at":"2024-01-14T17:56:44.000Z","size":55,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-17T07:34:33.503Z","etag":null,"topics":["anki","cli","remarkable-tablet"],"latest_commit_sha":null,"homepage":"https://ch-st.de/remarkable-anki/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stelzch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-22T16:56:34.000Z","updated_at":"2024-09-22T01:49:57.000Z","dependencies_parsed_at":"2024-01-12T17:34:58.656Z","dependency_job_id":"c69f234f-fad2-4eeb-a9f6-4c4b007fc79a","html_url":"https://github.com/stelzch/rm2anki","commit_stats":null,"previous_names":["stelzch/rm2anki"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelzch%2Frm2anki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelzch%2Frm2anki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelzch%2Frm2anki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelzch%2Frm2anki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stelzch","download_url":"https://codeload.github.com/stelzch/rm2anki/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253518941,"owners_count":21921074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anki","cli","remarkable-tablet"],"created_at":"2024-08-03T17:00:59.763Z","updated_at":"2026-01-17T09:51:40.697Z","avatar_url":"https://github.com/stelzch.png","language":"Rust","funding_links":[],"categories":["Other"],"sub_categories":["Template Builders"],"readme":"# rm2anki\n\n\u003e [!WARNING]\n\u003e rm2anki uses [a library](https://github.com/ax3l/lines-are-rusty) for rendering notebooks that does not support the new lines format version 6.\n\u003e This means that notebooks created with OS versions 3.x will not work as input.\n\u003e OS version 2.15.1.1189 is known to create notebook files that can be parsed.\n\nThis tool allows you to write flashcards on a reMarkable paper tablet and then convert them into Anki Decks.\n\n* 1 notebook = 1 Anki deck\n* The name of the deck is either the notebook name or the filename\n* Editing cards works by reconverting the notebook. Learning progress is not lost.\n\n\n## Usage\n\n```\nUsage: rm2anki [OPTIONS] \u003cOUTPUT\u003e [NOTEBOOKS]...\n\nArguments:\n  \u003cOUTPUT\u003e        Path to the destination .apkg\n  [NOTEBOOKS]...  Path to a notebook in rmapi zip file format\n\nOptions:\n  -a, --anki-media-dir \u003cANKI_MEDIA_DIR\u003e\n          Path to Anki collection.media directory\n  -n, --name-from-filename\n          Use zipfile basename as deck name. Default is to use notebook name.\n  -h, --help\n          Print help\n  -V, --version\n          Print version\n```\n\nThe input to this tool are notebook zip files generated by [rmapi](https://github.com/juruen/rmapi).\n\n## Template\nTo write flashcards, either install the provided template pictured below or provide your own.\n\n\u003cimg src=\"./template/flashcard.png\" style=\"width: 40ch;\"\u003e\n\n### Installation\n\nIf you prefer a GUI to do this, maybe try [rM2 Template Helper](https://www.freeremarkabletools.com/).\n\nThe following commands assume that you have SSH access to your remarkable and your current work directory is this repository.\nThen you can run:\n\n```sh\ncd templates\nscp flashcard.* root@10.11.99.1:/usr/share/remarkable/templates\n```\n\nThen you also need to register the template on the remarkable in a json file by pasting the below lines into the array under the path `/usr/share/remarkable/templates/templates.json`:\n\n```json\n{\n    \"name\": \"Flashcards\",\n    \"filename\": \"flashcard\",\n    \"iconCode\": \"\\ue9d7\",\n    \"categories\": [\n        \"Life/organize\"\n    ]\n}\n```\n\n### Designing your own\n\nRight now, the area of the drawing that is extracted into the cards is fixed.\nThe bounding boxes given relative to width and height respectively are x=0.1740, y=0.1474, w=0.6519, h=0.3326 for the front and y=0.5200 for the back of a card.\nAs long as the cards in your template have the same size and position, they should import just fine.\nThe background is removed during import.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstelzch%2Frm2anki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstelzch%2Frm2anki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstelzch%2Frm2anki/lists"}