Repository navigation
feat: Word numbering, section headers and footnote size through HTML - #1
Merged
Merged
Conversation
…en/odd as Word shows them Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… parent labels, ::marker level patterns Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… reading Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Import fidelity for printable (stage 3 of its PDF plan), measured on its Word reference corpus.
Fixed
<w:titlePg/>, even ones only with<w:evenAndOddHeaders/>.Added
<ol start>), a lower level hangs under its parent's number via a label-less parent item (ListItem::$markerHidden), level patterns (ListNode::$levelText:%1.%2.,4.%1.) become::markerrules on per-level classes inImportedDocument::$css; the converter reads them back (Converter::markerStyleOf()keeps them past a CSS inliner) and the writer emits one Word multilevel numbering per list tree.w:ind(ListNode::$indentLeftTwips), written as list/item margins.Footnote::$sizePt— the note's size fromfootnotes.xml, asfont-sizeonspan.footnote.Effect in printable (reference corpus, HTML print path): job description numbered 1.1…5.5 exactly as Word, layout 0.420 → 0.462; mortgage form 0.462 → 0.471.
Tests: new
SectionHeadersTest,WordNumberingRoundTripTest; suite 398 green, phpstan clean (one unmatched baseline entry removed). Docs: README en/ru/de/zh, CHANGELOG Unreleased.Note: README still lists footnotes as out of scope — stale since the reader learned them; not touched here.
🤖 Generated with Claude Code