mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-09 04:22:20 +00:00
Deleting one word from a recognised line covered the whole line and redrew it in Helvetica, though nothing but that word had changed. A text edit of an OCR phrase now covers and redraws only the words it changes; the rest stay as the scan shows them, still invisible text. Each changed stretch is rewritten as a phrase of its own, on a copy of the document, and the edit falls back to the whole-phrase rewrite when words can't be told apart or a kept word would move. A deleted word leaves its gap. A replacement a little too wide is squeezed across to fit, by up to a quarter; wider than that it takes over the next word. A change of formatting, or a typed line break, still redraws the whole phrase. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>