Skip to content

T034: the figure comparison crops exactly and finds the figure's own link - #271

Merged
adamjohnwright merged 2 commits into
mainfrom
t034/exact-crop
Nov 24, 2026
Merged

adamjohnwright merged 2 commits into
mainfrom
t034/exact-crop

Conversation

@adamjohnwright

Copy link
Copy Markdown
Contributor

The single-event half of T034, run on ten of the service's PDFs (release
98) with each figure drawn as serve draws it: all 111 figures within the
1% bound, the largest 0.93%. The run found two faults in the comparison:

  • rasterise cut the PDF page at the box's rounded corner, the figure up
    to half a pixel off the one printed alone; a diagram's thin lines then
    differed everywhere (7-9.6% on figures that were the same drawing). The
    page is drawn offset by where the box starts, fractions and all.
  • figureBox took the first link to the figure's address; a reaction's
    figure links to the reaction's page, as its heading may. It takes the
    largest.

test/check/figures.test.ts: a figure at four fractional heights (44.6%
on the old crop), a recoloured drawing still caught, and a heading
linking to the same page (failing on the old pick).

Spec 001, task T034 (left open for the book's half).

🤖 Generated with Claude Code

adamjohnwright and others added 2 commits November 24, 2026 06:30
…link

The single-event half of T034, run on ten of the service's PDFs (release
98) with each figure drawn as serve draws it: all 111 figures within the
1% bound, the largest 0.93%. The run found two faults in the comparison:

- rasterise cut the PDF page at the box's rounded corner, the figure up
  to half a pixel off the one printed alone; a diagram's thin lines then
  differed everywhere (7-9.6% on figures that were the same drawing). The
  page is drawn offset by where the box starts, fractions and all.
- figureBox took the first link to the figure's address; a reaction's
  figure links to the reaction's page, as its heading may. It takes the
  largest.

test/check/figures.test.ts: a figure at four fractional heights (44.6%
on the old crop), a recoloured drawing still caught, and a heading
linking to the same page (failing on the old pick).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamjohnwright
adamjohnwright merged commit 3f7bc6e into main Nov 24, 2026
3 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