DOCX
- Lossless round-trip: hand-rolled ZIP writer copies untouched entries byte-for-byte, ZIP64 and unknown extensions included — 399/399 corpus files in CI.
- Line breaking and pagination: Knuth-Plass optimal breaks, UAX#14 rules, CJK anywhere / Latin at whitespace.
- Page geometry from
sectPr, real font-metric shaping, golden break-point snapshots. - Incremental pagination with budgeted background reflow; incremental rebuilds are provably identical to full rebuilds.