On device offline dictionary for reMarkable
✓ Published0🌍 Public
UUtopiah
Last edited Jan 26, 2022
Created on Jan 19, 2022
This script generates an offline dictionary ePub for the reMarkable tablet, converting highlighted words into a reference document. It first extracts single-word highlights from existing ePub files using `grep` and `sed`, then queries the wordset-dictionary JSON files via `jq` to fetch definitions. New definitions are appended to an HTML content file, wrapped in the epubTemplate structure, and compressed into a new ePub using `7z`. The result is automatically copied into the xochitl data directory, with metadata and content JSON created via shell commands, and the xochitl service restarted to load the updated dictionary.
AI-generated description