mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-06 18:51:26 +00:00
A flat ODT holds the whole document in one `office:document` element (ODF 1.3 Part 3 §2.1.2), its pictures inline as base64 `office:binary-data` and its formulas inline in their `draw:object`. It is opened by taking it apart into a package's files (content, styles, meta, settings; pictures and formulas as entries, each part's root keeping the document's namespaces) and reading that package, and saved by putting a package's files together: one set of automatic styles, every part's namespaces declared once on the root, pictures and formulas inline without the link attributes. `.fodt` opens and saves from Open, Save As, the CLI and the web app. LibreOffice's own flat documents round-trip as their packages do, and the written files validate against the ODF 1.3 schema. The parity doc's ODT fidelity is re-estimated at ~80%, and its status line, which hadn't been updated since the Asian fonts change (a text replacement that matched nothing), now lists every change since. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GBVQLyDnrG8Tn1yDQcUabC