Workbook is now a Ziran package: ziran.toml names the Ziran toolchain and
Kryon, ziran.lock pins both to exact commits, and the vendor/kryon
submodule is gone. The Kry compiler and runtime are no longer involved.
Sources are now .zi:
- src/app.zi is the desktop editor, rewritten on current Kryon widgets
(Button, TabBar, TextField, Box, Text) instead of the old immediate-mode
drawing calls. The sheet tabs sit under the grid, Enter and typing edit a
cell, double click edits in the formula bar, and Ctrl+S saves.
- src/engine.zi is the spreadsheet engine ported statement for statement.
The Kryon C helpers it used (quad, xml, gzip, formula text) are now
src/quad.zi, xml.zi, gzip.zi, and formula_text.zi, and src/c_runtime.zi
holds the C library calls. There is no handwritten C left.
- src/cell.zi replaces the C driver for the headless cell command.
The port matches the previous engine byte for byte on every fixture, and
files written by cell copy read back in Gnumeric with the same values.
tests/desktop_test.py runs the editor on a private Xvfb display and checks
a captured frame, typing, formulas, clicking, Escape, double click,
Delete, the toolbar buttons, sheet tabs, and saving.
The Makefile builds through the package tool. make test-ci is what CI
runs (build, source audit, desktop test); make test adds the Gnumeric
parity suite, which needs a Gnumeric master build for the newest catalog
functions. The old Go/cgo audit scripts are replaced by
scripts/source-audit.sh. Debian packaging, CI, and the README follow the
new build, and a new workbook loads its sheets instead of adding them to
an empty Sheet1.
Replace the fixed 8-column grid with a real spreadsheet engine authored in
Kry (src/engine.kry): sparse 256x65536 cell store, multiple sheets, the
Gnumeric expression language (relative/absolute/cross-sheet references,
ranges, operators with Gnumeric coercion and error semantics) and a
function library spanning math, statistics, text, logical, date, and
information functions with Excel-compatible date serials.
Files load from and save to .gnumeric (Gnumeric XML, gzipped or plain) and
CSV, with the legacy workbook.json profile format still readable. The
desktop app renders any sheet with A1 headers, sheet tabs, and row/column
editing on top of the engine. The new `cell` CLI evaluates workbooks
headlessly.
Every fixture in tests/fixtures is evaluated by the installed Gnumeric and
by this engine and compared cell by cell by scripts/parity-test.sh, plus
round-trips where Gnumeric re-reads files this engine wrote; the suite runs
as part of make test. Bump vendor/kryon for the kry_xml and kry_gzip
primitives the format support builds on.