Repository navigation
Conversation
- A plus (a dash crossed by a short stem, off centre as real ones are) as the amount's first or last marks, just left of it, or on a line of its own is taken out before Grape reads the row: "+13" read as "+ 13" gave "?", and "+17" read as "-117". - A minus on a line of its own belongs to the row under it; a minus may be 1.6 digits wide (the reporter's was 1.46). - Only ink over the line makes rows; ink beside the column (another sum) joins a row as its label or is ignored, so it never splits or ends it. - Rows one per ruled line in a small hand: a row that lines up with the one under it may stand 2.5 digits off (was 1.6; the reporter's 13 and 18 stood 1.61 apart). The digit height comes from ink near the line. - parseAmount takes a leading "+". Fixtures: the reporter's ink traced from his screenshots, with real pluses from Joost's iPad and Oskar's eval lines, whole px (iPadOS 17). 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.
For #277
What changed
Column sums (
src/model/column-sum.ts) settle more of the layout by geometry before Grape reads a row:parseAmountaccepts a leading "+".Evidence
tests/ink/fixtures/column-sum-277.json: the reporter's ink traced from the issue's screenshots, with real pluses from Joost's iPad and Oskar's eval lines, rounded to whole px as iPadOS 17 records it.tests/model/column-sum-277.test.tscovers all three reported cases plus variants; 8 of its 9 tests fail on main.Not proven on an iPad
How to test (iPad)
🤖 Generated with Claude Code