Files
docx/scripts
Dolan 673e7d5963 feat(layout): number lists and place their numbers as Word does (#3656)
docx/layout counted each list on its own, ignored w:lvlOverride, w:lvlJc,
w:lvlRestart and w:isLgl, wrote "1" for a number format it couldn't write,
and measured a number in its paragraph style's formatting, as text. Word's PDF
of a new probe, word-lists, settles each, and the layout now follows it:

- lists made from one definition count on from one another, and a list's own
  first number for a level starts that level there at its first paragraph of
  the level, once; a level a list gives starts at its own first number
- a right-aligned number ends at the start of the first line, with the space
  after it, and a centred one is centred there; the text goes on from its end
- w:lvlRestart and legal numbering, as the schema has them
- a number is in its paragraph mark's formatting, but for its level's, and
  makes its line taller only above the baseline; the space after it is
  measured in Arial, as Word draws it

Where Word hasn't shown what it does, the layout stops: formats it can't
write, a level not counted yet that its list starts elsewhere, a centred
number followed by a space, the tab after a right-aligned number at a stop
Word hasn't been seen to use, picture bullets, Word 6 numbering and lists
defined by list styles.
2026-10-02 20:06:17 +01:00
..