Repository navigation
T040: the cover's names and the edit history, read as both books write them - #265
Merged
Merged
Conversation
…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>
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.
Replaces #263, whose session has closed: its two commits are rebased onto main (after #262 and #264), with a third commit from review:
differences.mdare measured after T040: a catalyst's line joins its node within 6 pt #262 and T040: lines joined until nothing more joins; a radical's dot recorded #264. A full comparison was run on this branch.#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.CoverPage.collectAuthorsandrenderin event-pdf;coverNamesinsrc/model/rules.ts). The difference was only the reading:CoverPage.getName), and its U+2060 is not in the text pdf.js reads. It was read as naming no one.Tables.createEditionsTablethroughReferences.getAuthorList); pdf-export writes every one. The same six come first on both sides.Tables.getEditions). event-pdf takes the first author of graph-core's list as loaded, pdf-export the first byorder(research R2). Each book's order fits that sort in all 38. The graph's lists were not read.References.getAuthorList). Research R2 listed that rule for references alone. The 7 sections' record now gives this reason.test/compare/cover-names.test.tsandtest/compare/short-entries.test.ts(layouts written line by line), plus two incompare.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.mdandexpected-98.jsonare updated.🤖 Generated with Claude Code