Skip to content

T040: the cover's names and the edit history, read as both books write them - #265

Merged
adamjohnwright merged 4 commits into
mainfrom
t040/names-2
Nov 22, 2026
Merged

adamjohnwright merged 4 commits into
mainfrom
t040/names-2

Conversation

@adamjohnwright

Copy link
Copy Markdown
Contributor

Replaces #263, whose session has closed: its two commits are rebased onto main (after #262 and #264), with a third commit from review:

#263's description follows, with its counts updated.


T040 (specs/001-pathway-pdfs): the cover's names and the edit history, read as both books write them. With this, release 98's open rows for cover names and edits are explained and recorded.

  • Cover, names count (29 files): the two covers name the same people in all 29, by the same rule. Both take the authors of every held event's authored, edited, reviewed and revised edits, each name once, sorted by code units (CoverPage.collectAuthors and render in event-pdf; coverNames in src/model/rules.ts). The difference was only the reading:
    • event-pdf's cover has no label before its names. It ends each name with a full stop and parts them with commas (CoverPage.getName), and its U+2060 is not in the text pdf.js reads. It was read as naming no one.
    • Both books' longest lists run on to the cover's next page, and were read only to the page's end.
    • Any digit ended the names (meant for the date), and a name may hold one (a generational suffix). Now a date alone on its line ends them.
  • Edits, text (1,149 → 7) and order (31 → 38):
    • 1,100 sections were pdf-export's edit-table header, which Chromium repeats atop each page the table runs on to. It was read into the row before it. Fixed.
    • 42 were a short entry read into the edit history before it: one whose name wraps, or whose stable identifier wraps to a line of its own, whole or broken at its hyphen, outside the name's link. Fixed.
    • 7 left, recorded by event: an edit row of more than six people. event-pdf writes the first six and "et al." (Tables.createEditionsTable through References.getAuthorList); pdf-export writes every one. The same six come first on both sides.
    • 38, order, recorded for their 36 sections: rows of one date in another order, the same rows on both sides (Hemostasis 19, Disease 16, ECM 2, Signal Transduction 1). Both sort by date, then the first author's surname (Tables.getEditions). event-pdf takes the first author of graph-core's list as loaded, pdf-export the first by order (research R2). Each book's order fits that sort in all 38. The graph's lists were not read.
    • No section's row grouping differs. The old "Edits, text" reason (the grouping) explained none of these, and is replaced.
  • Name, text (2): the existing record is correct; its reason now gives the cause. event-pdf's font, Source Serif Pro (embedded Identity-H), draws U+2019 and U+02BC with one glyph, which its file maps back to U+02BC.
  • Decided: every person kept. Edit-history rows name every person, as the website's pathway pages do (their description tab lists each edit's authors in full). event-pdf cut them at six and "et al." only because it printed them through its references' author list (References.getAuthorList). Research R2 listed that rule for references alone. The 7 sections' record now gives this reason.
  • The comparison on release 98, after T040: a catalyst's line joins its node within 6 pt #262, T040: lines joined until nothing more joins; a radical's dot recorded #264 and this change: 323 differences, 319 recorded, 4 open: 8 sections' summations. No record matched nothing.
  • Tests: test/compare/cover-names.test.ts and test/compare/short-entries.test.ts (layouts written line by line), plus two in compare.test.ts (printed): a wrapped short entry, and an edit history running on to the next page. 12 new tests: the 9 for the faults were seen failing without the change. The other 3 are guards that pass either way: one edit with no entry, an entry on one line, and a lone identifier that is no entry. Every name in them is a placeholder.
  • npm run check: 467 pass, 4 skipped, licences clean. differences.md and expected-98.json are updated.

🤖 Generated with Claude Code

adamjohnwright and others added 3 commits November 22, 2026 22:04
…e them

The comparison read event-pdf's cover as naming no one, and most edit
histories as differing, from its reading alone:

- event-pdf's cover has no label before its names, ends each with a full
  stop and parts them with commas; its U+2060 is not in the text pdf.js
  reads. Now the names after the title are read, to the institutions.
- Both books' names run on to the cover's next page where they are many:
  read there to their end.
- A digit ended the names (for the cover's date), and a name may hold one:
  now a date alone on its line ends them.
- pdf-export's edit history's header, repeated by Chromium atop each page a
  table runs on to, joined the row before it: no longer a row.
- A short entry whose name wraps, or whose stable identifier wraps to a
  line of its own (whole, or broken at its hyphen) outside the name's link,
  was read into the part before it, a section's edit history: now read to
  its identifier.

Release 98: cover, names count 29 to 0 (the same people on every cover, by
the same rule); edits, text 1,149 to 7 and order 31 to 38. Recorded with
their reasons: the 7, an edit row of more than six people that event-pdf
writes as six and "et al."; the 38, rows of one date in another order.
The comparison now reports 325 differences, 318 recorded, 7 open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Edit-history rows name every person, as the website's pathway pages do
(their description tab lists each edit's authors in full); event-pdf cut
them at six and "et al." only because it printed them through its
references' author list (References.getAuthorList). The 7 sections stay
recorded, now with the decision as their reason.

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

The record of edit rows of one date in another order named no sections,
so it would have hidden any such difference in any file: it now names
the 36 sections it explains. Release 98, after #264 and this change:
323 differences, 319 recorded, 4 not (8 sections' summations).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ci/fixture/expected.json held each fixture cover as naming no one, the
misreading this pull request fixes; written again with
BASELINE=write bash ci/image/run.sh, only the covers' names change (their
counts and hashes), and the fixture's output is then the baseline's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamjohnwright
adamjohnwright merged commit 8998b96 into main Nov 22, 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