Repository navigation
feat(hanzi-structure): normalize D2 kana/bopomofo glyph aliases - #315
Merged
Merged
Conversation
- add corpus/d2-glyph-aliases.tsv: リ→刂(j), ㄗ→卩(b), ク→夕(q), same-shape only - build_b0 --glyph-aliases; normalized glyphs still pass standard v1 checks - add 彑 (X) to root inventory; ノ counted as 撇 stroke for recognition-slot drop - B0 1k full 916→928/partial 80→68; 3k full 2578→2614/partial 268→232; zero downgrades - update ADR-359/report 285/standard/schema/provenance/sources/status docs Signed-off-by: wangzhizhou <824219521@qq.com>
…zation Signed-off-by: wangzhizhou <824219521@qq.com>
wangzhizhou
added a commit
that referenced
this pull request
Nov 14, 2026
Signed-off-by: wangzhizhou <824219521@qq.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
内容
标准 v1 下逐条复查 1,000 字语料的 73 条
positionMismatch,把「D2 用假名/注音符号代替汉字部件」的同形写法归一化:modules/hanzi-structure/corpus/d2-glyph-aliases.tsv:リ→刂(j)、ㄗ→卩(b)、ク→夕(q);只做同形归一化,不新增字根、不改键位;build_b0.py --glyph-aliases:归一化后仍走标准 v1 的字根清单与码位校验,别名本身不能把条目送进full;彑(X 键)加入标准字根清单(彖 xeu/椽 sxey/喙 kxey/篆 txeu等 7 例);ノ作撇笔画参与识别码槽判定。结果
fullpartialfullpartialfull零降级:3,000 字运行时逐条比对,36 条全部
partial → full。剩余 232 条 partial 多为 D2 视觉拆法(如
交记作亠八乂,86 取六乂)与占位 PUA,需 canonical 根序数据,继续不猜。验证
validate_b0.pyPASSmake macos-offline-tests67 文件 / 336 例 PASSmake verifyPASS(538 产物零网络符号)test_d2_glyph_aliases_are_normalizedADR-359 / 报告 285。