Numbering resolver: rendered labels from numbering.xml

↗ view on GitHub · Eli Ziff · 2026-07-29 · 0cca8efb

Auto-numbered DOCX render their "2.1"/"(a)" labels only at display
time; no converter synthesizes them. This walks numPr (direct and
style-carried, basedOn chains, overrides, numStyleLink, isLgl) with
counters per level and formats decimal, letter, roman, and decimalZero;
bullets advance silently and unsupported formats leave a typed note.
Indexes mirror extractDocxBodyText's paragraph walk, pinned by tests.
400-document sweep: every numPr document labels cleanly, zero notes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012AgUm5EcRKbT3duVFMbrQD
Repository eliziff/Beaver
Author Eli Ziff <eliasziff@gmail.com>
Authored
Parents 239cfce5
Stats 2 files changed , +991
Part of SourceDoc / DOCX engine: redlines, tracked changes, editing benchmark

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-0cca8efb.md from inside the repo you want the change in.

⬇ Download capture-commit-0cca8efb.md