refactor(spellcheck): remove ink marks on the page image, keep spellcheck on the transcription #61

Merged
jfro merged 1 commit from refactor/remove-ink-marks into main 2026-10-31 20:15:28 +00:00
Owner

Jeremy decided spelling and grammar marks stay on the transcription only, unless a better way to line ink up with it turns up. This reverts the ink-mark part of #53 that came in with #59.

Removed

  • The SVG overlay of marks on the page image (RemarkableComponents.page_preview's ink/viewbox) and its CSS, and the panel's "Also marked on the page" / "Couldn't line the handwriting up" notes
  • Remarkable.Lines.WordBoxes (stroke word boxes) and Remarkable.Lines.InkAlign (deslant, per-line run gaps, n-l cuts, confidence gate)
  • Spellcheck.InkMarks, Spellcheck.InkCheck, mix spellcheck.ink_check, Release.ink_check/1
  • The ink_align setting: its switch on OCR settings, Spellcheck.ink_align/1, SPELLCHECK_INK_ALIGN (runtime config + README); new migration RemoveInkAlignFromSpellcheckSettings drops the column (reversible: down adds it back with default true)
  • Their tests and audits, the synthetic handwriting fixtures, and the two rmscene sample pages only they used

Kept

  • Transcription underlines and the hit list from #58 (LanguageTool), unchanged
  • Prompt v2 (keep the page's line breaks) and search across those line breaks, including the rejoined-text trigram index

Docs

docs/spellcheck.md: the "On the handwriting" section is replaced by a short "Not on the handwriting" note on why it's gone. AGENTS.md had nothing on it.

Checks

  • mix precommit: 1020 passed (2 doctests, 1018 tests), 1 excluded (:live_lt); 312 fewer than main, all ink-mark tests and audits
  • Migration up / rollback / up on the test DB
  • Commit message isn't marked breaking on purpose, so mise run release's auto bump stays a minor; SPELLCHECK_INK_ALIGN is simply no longer read
Jeremy decided spelling and grammar marks stay on the **transcription** only, unless a better way to line ink up with it turns up. This reverts the ink-mark part of #53 that came in with #59. ### Removed - The SVG overlay of marks on the page image (`RemarkableComponents.page_preview`'s `ink`/`viewbox`) and its CSS, and the panel's "Also marked on the page" / "Couldn't line the handwriting up" notes - `Remarkable.Lines.WordBoxes` (stroke word boxes) and `Remarkable.Lines.InkAlign` (deslant, per-line run gaps, n-l cuts, confidence gate) - `Spellcheck.InkMarks`, `Spellcheck.InkCheck`, `mix spellcheck.ink_check`, `Release.ink_check/1` - The `ink_align` setting: its switch on OCR settings, `Spellcheck.ink_align/1`, `SPELLCHECK_INK_ALIGN` (runtime config + README); new migration `RemoveInkAlignFromSpellcheckSettings` drops the column (reversible: down adds it back with default true) - Their tests and audits, the synthetic handwriting fixtures, and the two rmscene sample pages only they used ### Kept - Transcription underlines and the hit list from #58 (LanguageTool), unchanged - Prompt v2 (keep the page's line breaks) and search across those line breaks, including the rejoined-text trigram index ### Docs `docs/spellcheck.md`: the "On the handwriting" section is replaced by a short "Not on the handwriting" note on why it's gone. AGENTS.md had nothing on it. ### Checks - `mix precommit`: 1020 passed (2 doctests, 1018 tests), 1 excluded (`:live_lt`); 312 fewer than main, all ink-mark tests and audits - Migration up / rollback / up on the test DB - Commit message isn't marked breaking on purpose, so `mise run release`'s auto bump stays a minor; `SPELLCHECK_INK_ALIGN` is simply no longer read
refactor(spellcheck): remove ink marks on the page image, keep spellcheck on the transcription
All checks were successful
CI / test (pull_request) Successful in 1m8s
c0cd4c2127
Spellcheck and grammar stay on the transcription only: the ink didn't line
up with the transcription surely enough on real pages. This reverts the
ink-mark part of #53 that came in with #59:

- the SVG overlay of marks on the page image and its CSS
- stroke word boxes (Lines.WordBoxes) and lining ink up with the words
  (Lines.InkAlign: deslant, per-line run gaps, n-l cuts, confidence gate)
- Spellcheck.InkMarks, Spellcheck.InkCheck, mix spellcheck.ink_check and
  Release.ink_check/1
- the ink_align setting, its OCR settings switch and SPELLCHECK_INK_ALIGN;
  a migration drops spellcheck_settings.ink_align
- their tests, audits, the synthetic handwriting fixtures and the rmscene
  sample pages only they used

Kept: the transcription underlines and hit list (#58), prompt v2 with the
page's line breaks, and search across those line breaks.

SPELLCHECK_INK_ALIGN is no longer read; setting it does nothing.
jfro merged commit 22e85ccfff into main 2026-10-31 20:15:28 +00:00
jfro deleted branch refactor/remove-ink-marks 2026-10-31 20:15:29 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/rm-analyzer!61
No description provided.