mirror of
https://github.com/ALLFATHER-BV/wadamesh.git
synced 2026-11-07 14:17:18 +00:00
Asked for on Discord (prepper use: books and documentation offline on the card). - The Reader opens a .txt or .md file on the card as a 16 KB window at an offset carried in the URL (sd:/x.txt?o=49152), cut back to a line (or a whole UTF-8 character), with Next page / Previous page / Back to the start links and the position in percent. A book of any size pages through; Back works as usual. - Files opens HTML on the card in the Reader (its links work there, so a folder of pages browses offline) and text or markdown too big for the 8 KB editor; small text files keep the editor. - scripts/sdpack.py (standard library only): an EPUB becomes /library/<name>/ with one page per chapter (long chapters split under 30 KB, linked in order) and a contents page; .txt/.md are copied as they are; /home.htm lists everything, so the Reader, which opens sd:/home.htm, starts on the library. Tested with a generated EPUB. ZIM (Wikipedia) files are not read on the device: their clusters are zstd/xz blobs of 1-2 MB and the files run to tens of GB on FAT32; converting on a computer keeps the device side small. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>