Skip to content

feat: P1-U batch three — per-app language, phrase drill, weak chars, double pinyin (ADR-333…336) - #271

Merged
wangzhizhou merged 5 commits into
mainfrom
dev
Nov 12, 2026
Merged

wangzhizhou merged 5 commits into
mainfrom
dev

Conversation

@wangzhizhou

Copy link
Copy Markdown
Contributor

内容

P1-U 里不需要新数据、不需要另定口径的最后一批(docs/待办与积压.md),每项各有 ADR、测试与独立提交。

内容 配置项 ADR
按应用记住中英状态(仅内存,最多 64 个应用) input.remember_english_per_app,默认开 333
练习新增「词组」题型(随包码表最常用 800 个 2–4 字词,讲解按取码规则拆到每个字) — 334
薄弱字清单:混输下靠拼音打出的单字记到本机 weak-chars.tsv,「完整码」练习加权 practice.collect_weak_chars,默认关 335
小鹤双拼(按键展开层,复用全拼后端;仅拼音模式) pinyin.scheme,默认 full 336

另有一个文档提交:积压与交接更新、P1-U 剩余 8 项各自卡在哪、README 过期状态行更正。

隐私

  • 新增一个落盘文件 weak-chars.tsv:默认不记,只存「字 / 次数 / 最近时间」,最多 500 行,重置练习进度即清空,不参与候选排序、不上报。
  • 各应用中英状态只在内存里,宿主退出即清空。
  • 两者都已登记到 docs/隐私与安全.md §5;make verify(含零网络断言)通过。

验证

  • make verify PASS
  • make macos-offline-tests:62 文件 / 328 例 PASS
  • ./platforms/macos/dev-preview.sh --smoke-test PASS
  • ./platforms/macos/build.sh --strict PASS
  • make eval-candidates:与基线一致(ALL 命中 98.2% / 首选 86.4%)
  • 双拼映射用随包 425 个音节穷举核对:419 个可达,其余 6 个是无键位的鼻音叹词与 lo(与 luo 同键)

未验证 / 已知限制

  • 未装机:跨应用中英恢复、薄弱字记录路径、双拼手感、词组题答后讲解区版式都待换包后复验。
  • 双拼预编辑显示原始按键而非展开后的拼音;用户词库里的拼音词在双拼下不会作为额外候选被前缀匹配(ADR-336)。
  • Schema 条目 27 → 30。

Switching to English in one app no longer resets when a new text field in that app gets a fresh controller. The memory is in-process only, bounded to 64 apps, and controlled by input.remember_english_per_app (default on).

Signed-off-by: wangzhizhou <824219521@qq.com>
Practice only had single-character kinds. A phrase kind asks for the four-letter code of the 800 most common two- to four-character words in the bundled table and explains which letters each character contributes.

Signed-off-by: wangzhizhou <824219521@qq.com>
With practice.collect_weak_chars on (default off), single characters committed from pinyin candidates in mixed mode are recorded in a bounded local file and weighted up in the full-code drill. Resetting practice progress clears the list.

Signed-off-by: wangzhizhou <824219521@qq.com>
pinyin.scheme = xiaohe expands every two keys into one full-pinyin syllable before the existing backend runs, so the lexicon, learning and segmented selection are reused. It only applies in pinyin mode; mixed mode keeps full pinyin.

Signed-off-by: wangzhizhou <824219521@qq.com>
Updates the backlog and handoff after ADR-333…336, corrects the stale handoff note about tier two, lists the eight remaining items with the decision or data each needs, and refreshes the README status line that still described 1.0.0.

Signed-off-by: wangzhizhou <824219521@qq.com>
@wangzhizhou
wangzhizhou merged commit 3e428b7 into main Nov 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant