mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-25 10:57:14 -06:00
Word 2024 saves Strict Open XML with measures written out with their unit: the issue's file carries `w:spacing w:after="8pt" w:line="13.90pt" w:lineRule="auto"` in its paragraph defaults. The reader sent `13.90` straight into the `auto` branch, where a bare number counts 240ths of a line (240 = single), so 13.90pt became a 13.9 multiple: 191.8 pt lines, and the issue's document laid out as 10 pages against Word's 1. Under `lineRule="auto"` a unit-suffixed height now reads through twips, as Word renders it (ISO 29500 `ST_SignedTwipsMeasure`: 13.90 pt = 278 twips = the 1.1583 multiple). A bare number still counts 240ths of a line; `exact`/`atLeast` already read units as points. Checked with the issue's file: 1 page with baselines on Word's (15.98 pt line advance against Word's 16.10/15.96; paragraph advance 23.99 against 24.00; table lines 12.65 against 12.60/12.72), and a save/reopen keeps it. Co-authored-by: Brandon Thomas <echelon@gmail.com>