Repository navigation
T040: event-pdf's raised text, at its line's own size, read in its line - #266
Merged
Merged
Conversation
event-pdf sets a summation's <sup> at the line's 10 pt, raised 3.3 pt; #258's rule joined only smaller text, so it was read as a row of its own, before its line. A row no larger and shorter than a line, within half a size of it, now joins it where it starts within the line or at its end: not a page number well to the right of its entry, as event-pdf's index sets it 2 pt above, nor through the space pdf.js gives as wide as the gap. Release 98: summations 8 to 3, the contents read as before; 320 differences, 319 recorded, 1 not. 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.
Spec 001, T040.
What was misread: event-pdf sets a summation's
<sup>at the line's own size (10 pt), raised 3.3 pt; measured in Metabolism of proteins, R-HSA-4084989. #258's rule joins only rows of 85% of the line's size or less, so event-pdf's "2+" stayed a row of its own and was read before its line. Five summations differed only in where a superscript landed.Change (
linesOf): a row no larger than a line, and shorter, within half a size of the line's baseline, now joins the line. It must start within the line or at its end, within half a size of its last mark. Two cases are kept out:linesOfandPieceare exported for the tests.Tests:
units.test.ts, the raised case: event-pdf's pieces as read. Fails without the equal-size rule.units.test.ts, the index case: an entry, its stretched space and its raised page number, as read from Autophagy. Fails without the "within" condition, and fails again if spaces count towards a line's end.layouts.test.ts: the raised case printed by Chromium (vertical-align: 3.3ptat full size). Fails on main.Release 98, against the comparison after #265: summations 8 → 3: R-HSA-4084989, R-HSA-217271, R-HSA-211897, R-HSA-156587, R-HSA-75158. The contents and every other row read as before, recorded or not. The result is 320 differences, 319 recorded and 1 open (3 Developmental Biology summations holding tables).
npm run checkpasses.🤖 Generated with Claude Code