1.16 part 2/11: Reading: split ZIMs, big PDFs and EPUBs, previews, voices, MCP, health, debug log
Part 2 of 11 of Zimi 1.16: reading: split ZIMs, big PDFs and EPUBs, previews, voices, MCP, health, debug log.
The release is split into 11 parts so each one can be reviewed whole. Each part's base is the part before it, so this diff is only its own files; a part on its own is not a running state. CI runs once, on the release PR that carries every part into main.
Every part was reviewed before it was opened, and the full suite (quick tier, node tests, every browser test under software GL) ran on the combined tree.
Summary by cubic
Part 2 of 11 of the Zimi 1.16 release is on reading: split ZIMs, entries over the 50 MB cap, big EPUBs, previews, voices, MCP, health, and a new debug log.
The release is split into 11 parts so each can be reviewed whole. Each part bases on the part before it, so this diff is only its own files; a part alone is not a running state, and CI runs once on the release PR that carries every part into main.
Reading
- A split book (
name.zimaa,name.zimab, ...) is now one book in the library, served, sized, deleted and checked as one;zimblobreads across chunk boundaries. - An uncompressed entry over the cap is streamed in windows, by Range or window by window; a compressed one over the cap is still refused, with words that say why.
- Big EPUBs are read member by member from a seekable file, never held whole in memory; one whose central directory is oversized is refused up front.
- The Almanac's 3D view opens from a mission, spacecraft, landing or body's own article, linked from the Q-IDs in the view's data files.
Around the library
- New debug log (
zimi/debuglog.py) rolls signed-in windows' events as JSON lines; off by default, on via the Manage switch orZIMI_DEBUG_LOG. A persistent server keeps health, Manage and the log reachable while a long stream or check runs. - Manage's deep check reads every byte of each book, reports progress by bytes and book, and can be stopped.
- The MCP
--toolsoption (andZIMI_MCP_TOOLS) now takes a comma list of tool names and sets. - A "did you mean" correction only fires for a word the library has seen a handful of times, so a common word is never rewritten to a rare one.
- Voices: a per-language region choice, engines set up on demand into the data folder, and a removal during fetch no longer crashes.
- The Discover card's Say speaks the language the server knows; preview blurbs drop script and style tags in any case and skip crude-word senses.
- Static assets now load at their content hash, the Moon's 2048 map waits for a disc that needs it, and the 4096 one for the 3D view.
- On a phone the search box keeps its room in an article, and its suggestions use the screen's width.
- Add-ons fetch into the data folder — the Reddit maker's Python where no interpreter exists, and Almanac HD from any server — under
ZIMI_ADDONSandZIMI_ALMANAC_HD_URL.