Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,33 @@ follow semantic versioning; release dates are ISO 8601.

### Public API

- **A DOCX export no longer stands what follows a width anchor, or a paragraph Word sets taller,
lower than the page.** Both reached past the block in Word, and neither was taken out of the
space below or named. Each now hangs below its block, as a line held to its icon does: the
space below takes it, and what it cannot take is named (`space above`).
- **A spacer shorter than its line** — a width anchor of no height, as `Panel`'s and
`PanelLetter`'s cards open with — is written as a paragraph a tenth of a point tall, as a
spacer in the flow is; the rest of that tenth stood every card that much taller in Word.
- **A paragraph whose lines Word sets taller than the page.** Word sets every line of a
paragraph at one height, which for a paragraph of lines in more than one size the export
writes as its tallest line's; the page sets each at its own, so a wrapped line after a large
first one stands closer on the page. Lines rounded up to the twip, over enough of them, pass
the page too and hang the same way: `OrangeOps`' achievement lines, a 0.08pt gap between
them written as a tenth (measured). What rounding takes from a paragraph written at its
tallest line is not owed: owed, it stood `ModernInvoice`'s lines a step or two of Word's grid
lower (measured). A tenth of a point or less is left either way: Word sets lines on a grid
0.12pt apart.
- A paragraph the layout opens a page with, with no top edge of its own to hold there, leaves
what the block above leaves below itself on the page above, as one with an edge does.

In the DOCX fidelity corpus 9 of the 62 documents change, and the report names nothing more.
In Word all nine stand nearer the page in median — `cv-panel`'s median line from 0.83pt to
0.46pt, `cv-compact_mono`'s ninetieth percentile from 0.91pt to 0.36pt, the foot of its sidebar a
point higher, where the page sets it — and in LibreOffice on Windows seven do. `letter-panel`'s
text now starts where the page sets its card, and stands as far off its baseline as both
editors seat it in an exact line: its ninetieth percentile from 0.21pt to 0.29pt in Word, its
median 0.06pt further in LibreOffice.

- **A DOCX export sets what follows a panel where the page sets it, and names what Word sets
lower.** Word sets a panel's content below its whole top border and its margin inside the
table's row, and ends the row its margin and its whole bottom border past the content; the
Expand Down
12 changes: 7 additions & 5 deletions docs/recipes/docx-export.md

Large diffs are not rendered by default.

464 changes: 232 additions & 232 deletions qa/src/test/resources/docx-fidelity/libreoffice-linux-lines.tsv

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions qa/src/test/resources/docx-fidelity/libreoffice-linux.tsv
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# libreoffice build 420(Build:2) on linux
document engine_pages editor_pages lines matched median p90 over2
cv-blue_banner 2 2 54 52 0.14 0.46 0
cv-blue_banner 2 2 54 52 0.13 0.45 0
cv-boxed_sections 2 2 58 58 0.26 0.37 0
cv-centered_headline 2 2 58 56 0.14 0.32 0
cv-charcoal_gold 1 1 85 83 0.17 0.24 0
cv-classic_serif 2 2 57 54 0.26 0.31 0
cv-compact_mono 1 1 58 58 0.24 0.83 0
cv-compact_mono 1 1 58 58 0.17 0.32 0
cv-editorial_blue 2 2 82 82 0.08 0.30 0
cv-engineering_resume 1 1 57 57 0.28 0.41 0
cv-engineering_resume 1 1 57 57 0.26 0.38 0
cv-executive 2 2 60 60 0.26 0.50 0
cv-midnight_navy 1 1 86 84 0.28 0.87 0
cv-minimal_underlined 2 2 59 59 0.35 0.64 0
cv-mint_editorial 2 2 59 59 0.27 0.60 0
cv-modern_professional 2 2 61 59 0.23 0.25 0
cv-monogram_sidebar 1 1 53 50 0.25 0.62 0
cv-monogram_sidebar 1 1 53 50 0.22 0.44 0
cv-navy_sidebar 1 1 71 71 0.20 0.45 0
cv-nordic_clean 1 1 63 58 0.25 0.43 0
cv-orange_ops 1 1 108 106 0.26 0.53 0
cv-panel 1 1 79 74 0.75 1.21 0
cv-orange_ops 1 1 108 106 0.18 0.38 0
cv-panel 1 1 79 74 0.39 0.73 0
cv-professional_sidebar 1 1 68 64 0.36 0.58 0
cv-serif_headline 1 1 103 103 0.44 0.88 0
cv-sidebar_portrait 1 1 49 49 0.17 0.31 0
cv-slate_orange 1 1 87 86 0.42 1.02 0
cv-slate_orange 1 1 87 86 0.32 1.02 0
cv-teal_pulse 1 1 57 57 0.22 0.63 0
cv-terracotta_rail 1 1 102 102 0.44 0.94 0
cv-timeline_minimal 2 2 89 87 0.45 0.49 0
Expand Down Expand Up @@ -53,7 +53,7 @@ letter-mint-editorial-letter 1 1 10 10 0.29 0.29 0
letter-modern_professional 1 1 12 12 0.08 0.22 0
letter-monogram_sidebar 1 1 12 12 0.23 0.37 0
letter-nordic_clean 1 1 15 15 0.16 0.38 0
letter-panel 1 1 13 13 0.13 0.17 0
letter-panel 1 1 13 13 0.19 0.27 0
letter-sidebar_portrait 1 1 12 12 0.43 0.51 0
letter-timeline_minimal 1 1 15 15 0.33 0.53 0
proposal-editorial 2 2 132 129 44.49 45.38 72
Expand Down
368 changes: 184 additions & 184 deletions qa/src/test/resources/docx-fidelity/libreoffice-windows-lines.tsv

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions qa/src/test/resources/docx-fidelity/libreoffice-windows.tsv
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# libreoffice build bce0998afefd on windows
document engine_pages editor_pages lines matched median p90 over2
cv-blue_banner 2 2 54 52 0.14 0.46 0
cv-blue_banner 2 2 54 52 0.13 0.45 0
cv-boxed_sections 2 2 58 58 0.26 0.37 0
cv-centered_headline 2 2 58 56 0.14 0.32 0
cv-charcoal_gold 1 1 85 83 0.17 0.24 0
cv-classic_serif 2 2 57 54 0.26 0.31 0
cv-compact_mono 1 1 58 58 0.24 0.83 0
cv-compact_mono 1 1 58 58 0.17 0.32 0
cv-editorial_blue 2 2 82 82 0.08 0.30 0
cv-engineering_resume 1 1 57 57 0.28 0.41 0
cv-engineering_resume 1 1 57 57 0.26 0.38 0
cv-executive 2 2 60 60 0.26 0.50 0
cv-midnight_navy 1 1 86 84 0.28 0.87 0
cv-minimal_underlined 2 2 59 59 0.35 0.64 0
cv-mint_editorial 2 2 59 59 0.27 0.60 0
cv-modern_professional 2 2 61 59 0.28 0.30 0
cv-monogram_sidebar 1 1 53 50 0.25 0.62 0
cv-monogram_sidebar 1 1 53 50 0.22 0.44 0
cv-navy_sidebar 1 1 71 71 0.20 0.45 0
cv-nordic_clean 1 1 63 58 0.25 0.41 0
cv-nordic_clean 1 1 63 58 0.21 0.38 0
cv-orange_ops 1 2 108 5 77.92 77.92 5
cv-panel 1 1 79 74 0.75 1.21 0
cv-panel 1 1 79 74 0.39 0.73 0
cv-professional_sidebar 1 1 68 64 0.36 0.58 0
cv-serif_headline 1 1 103 103 0.44 0.88 0
cv-sidebar_portrait 1 1 49 49 0.17 0.31 0
cv-slate_orange 1 1 87 86 0.42 1.02 0
cv-slate_orange 1 1 87 86 0.32 1.02 0
cv-teal_pulse 1 1 57 57 0.22 0.64 0
cv-terracotta_rail 1 1 102 102 0.44 0.94 0
cv-timeline_minimal 2 2 89 87 0.45 0.49 0
Expand Down Expand Up @@ -53,7 +53,7 @@ letter-mint-editorial-letter 1 1 10 10 0.29 0.29 0
letter-modern_professional 1 1 12 12 0.03 0.27 0
letter-monogram_sidebar 1 1 12 12 0.23 0.37 0
letter-nordic_clean 1 1 15 15 0.16 0.38 0
letter-panel 1 1 13 13 0.13 0.17 0
letter-panel 1 1 13 13 0.19 0.27 0
letter-sidebar_portrait 1 1 12 12 0.43 0.51 0
letter-timeline_minimal 1 1 15 15 0.33 0.53 0
proposal-editorial 2 2 132 129 44.49 45.38 72
Expand Down
Loading
Loading