Files
ElyOffice/tasks/reviews/P-07-r1.md
T
2026-10-09 22:51:33 -04:00

870 B
Raw Blame History

FAIL

crates/ely-pdf-engine/shim/ely_text.c:85 — Unicode 连字码点仍无法编辑,违反 PRD PDF-03。复现:将新增测试 a_ligature_block_edits_like_any_other 的 ToUnicode 映射 <01> <00660069> 改为 <01> <FB01>,其余内容保持原样;实际读取的文字块仍为 find,但 editable 为 false,调用 put_text 返回 this text is not in the page's own content。U+FB02(fl)与 U+FB03(ffi)同样复现,已独立运行并重复验证。stext 会展开这些码点,而 take_glyph 用原始 Unicode 值匹配目标字符;匹配失败后跳过 spelled,且 spelled 的 ucslen < 2 分支也无法计入展开后的字符。修复方向:在匹配与命中计数前按 stext 的规则展开 Unicode 连字,让整页判定、单块检查与删除使用一致的字符序列,并补充单码点连字的编辑回归测试。