发布

  • fix: preserve whitespace chunk positions to restore missing spaces (#358)

    frostbyte_neo 发布于 2026-04-03 07:57:29 +00:00

    TextLineProcessor dropped whitespace chunks then relied solely on
    physical gap detection to re-insert spaces. PDFs with tight kerning
    (gap < threshold) lost all word spacing. Now the position of each
    dropped whitespace chunk is recorded via an IdentityHashMap-backed Set
    and used as an additional signal for space insertion alongside the
    existing gap-based logic. Space BoundingBox coordinates are clamped
    with min/max to handle overlapping chunks from tight kerning.

    Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

    下载附件