Files
Dolan 16bdaa1b25 feat(layout): write caption numbers (SEQ fields) clean with pageNumbers, counted as Word counts them (#3630)
A SEQ field's number counts the SEQ fields of its identifier before it, so it
doesn't depend on the layout. With pageNumbers each is written clean with its
number, counted as Word's PDF of word-seq showed, and left blank where Word's
count isn't known. Footnotes, endnotes and comments have their page references
and SEQ fields written clean too, the page numbers of a table of contents with
seqFieldIdentifierForPrefix are left blank, and a simple field written without a
result no longer throws when it is given one.

Adds scripts/layout-probes/word-seq.ts, with Word's PDFs and word-seq.py.
2026-10-02 02:56:04 +01:00

81 KiB