Skip to content

Spec 001 T028: the book's contents, second pass - #152

Merged
adamjohnwright merged 4 commits into
mainfrom
t028/contents-2
Nov 3, 2026
Merged

adamjohnwright merged 4 commits into
mainfrom
t028/contents-2

Conversation

@adamjohnwright

Copy link
Copy Markdown
Contributor

Spec 001, task T028. Replaces #151 after its review (one medium, fixed in the second-last commit).

Everything in #151 (reprintFront: the front part reprinted with each contents entry's real page and swapped in before links and stamps; refusals if the reprint changes length or a heading moves; T027's lows), plus, from #151's review:

  • A regression in marginText: collapsing only CSS white space let U+3000, U+2028 and U+1680 through to the stamp, which no margin face draws, so the PDF was refused. A space no face draws now becomes U+0020; spaces a face draws (NBSP, thin) are kept. Tested by stamping, not only in the unit test.
  • Form feed no longer called CSS white space (dropped as a control character); a name of spaces only is refused as no header; the stamped-twice guard is set only after the faces' files are found, so a refusal leaves the PDF stampable.

Tests: 332 in all. Mutants in tasks.md.

🤖 Generated with Claude Code

adamjohnwright and others added 4 commits November 3, 2026 20:43
…gain

reprintFront reads each probe's page in the joined PDF, prints the front
part again with the numbers and swaps its pages in before the links are
rewritten and the pages stamped, deleting what only the first print held.
A reprint whose pages or front headings move is refused.

From #148's review: the stamp-twice guard is held before the first await;
marginText collapses only CSS's collapsible white space; a name leaving no
header is refused; the join measurement embeds Roboto's WOFF file; T027's
note corrected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…aces

marginText keeps a space a stamp face draws and stamps any other as
U+0020, so an ideographic space, line separator or Ogham space mark no
longer refuses the PDF. A form feed is left out, not collapsed. The
stamped-twice guard is set only after each face's file is read, so a
refusal there leaves the PDF unmarked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamjohnwright
adamjohnwright merged commit d29969a into main Nov 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant