Repository navigation
合并万象化学式/数学符号直打与雾凇 rime-lua 功能(拆字反查、错音、Unicode、农历、中英混输) - #294
Open
macOS-Terminal wants to merge 1 commit into
Open
macOS-Terminal wants to merge 1 commit into
macOS-Terminal wants to merge 1 commit into
Conversation
- 万象:化学式(H₂SO₄、Fe³⁺、NaOH,chem.tsv)、数学符号(√ π ≈ ≠ ∫ ∑ ∈ ∴ 及希腊字母,mathsym.tsv) - 雾凇 rime-lua:拆字反查(uu+部件码)、错音提示、Unicode(U62fc)、农历、中英混输补全 - 均为编译期静态表/算法,雾凇、万象词库下都生效
macOS-Terminal
force-pushed
the
feat/symbols-and-rime-lua
branch
from
November 22, 2026 01:48
1999778 to
ed36973
Compare
Owner
|
谢谢花这么多功夫把这些功能搬过来,测试也写得细。逐项看过了,现在这个样子合不进来,主要是下面几点。 1. 平常打字的候选被改了 用雾凇词库实际跑了一遍:英文前缀补全会在几乎每个短输入的第 6~8 个位置塞进三个英文词,都在第一页上。 为这个还改掉了一条现有测试(「缩写编码(Jan -> January)不当作英文词」),那条规则是特意定的。 化学式、数学符号、农历是插在首选后面( 2. 许可证
3. 没有开关,也没有文档 七个功能都是默认开、关不掉。 4. 流程上
建议 拆成几个小 PR,一个功能一个,这样能一个一个看、一个一个合:
这个 PR 先开着,拆出来的小 PR 我会优先看。 |
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.
概述
合并两部分上游输入法的能力,用 Rust 搬进 core:
全部是编译期静态表或算法(
include_str!+OnceLock),不依赖词库内容,雾凇、万象词库下都生效。新增功能
liusuan→ H₂SO₄,tielizi→ Fe³⁺,na→ Nachem.tsvgenhao→ √,pi→ π,budengyu→ ≠,jifen→ ∫,suoyi→ ∴,希腊字母音译mathsym.tsv(198 条)uu/uU+ 部件拼音:uukoushu→ 中radical.tsvjǐ yǔcorrector.tsvU62fc→ 拼unicode_input.rsnl、N20261121lunar.rsjetb→ JetBrains,py→ python行为说明
uu、uU都认。真机上 Shift+u 常被报成小写,且uu不是合法音节,不会和普通拼音冲突。改动范围
仅
core/:新增chem/mathsym/radical/lunar/unicode_input模块与数据表,并在lib.rs、session.rs接入。未改动data/*.tsv和词库脚本。测试
新增
core/tests/lua_features.rs,14 个端到端用例走真实Session,覆盖以上功能。