Unicode traps join the pathology report

↗ view on GitHub · Eli Ziff · 2026-07-29 · f2490229

scanDocxPathology now counts what text can hide: bidi controls that
reorder the rendered line, zero-width characters that split words
invisibly, Latin words carrying Cyrillic or Greek homoglyphs,
private-use codepoints, C0 controls beyond tab/newline/CR, and
invisible math operators. Each class keeps up to five 36-char excerpts
with the trap named in place, so a reviewer sees where, not just how
many. Fixture generator grows matching trap fixtures; 28 tests.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012AgUm5EcRKbT3duVFMbrQD
Repository eliziff/Beaver
Author Eli Ziff <eliasziff@gmail.com>
Authored
Parents 991b1ed6
Stats 3 files changed , +488 , -6
Part of SourceDoc / DOCX engine: redlines, tracked changes, editing benchmark

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-f2490229.md from inside the repo you want the change in.

⬇ Download capture-commit-f2490229.md