mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-16 15:53:54 +00:00
#2539 review: a decomposed "Müller" in a UTF-16BE /Title, a U+FB01 ligature from a ToUnicode map and full-width letters never matched their plain forms. Both sides are now normalized to NFKC and lower case (unicode-normalization, already in the build through pdfcraft-crypt's stringprep, so no new crate). Normalized text more than four times its input's length (U+FDFA and the like) isn't searched: it counts as holding the text. Tests: unicode_forms_of_the_removed_text_match (failed before: Title, Subject and Keywords kept), a_value_that_normalizes_to_far_more_text_counts_as_holding_it (failed with the growth limit raised to 100: 0 removed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv