Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions data/dictionary/STPhrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40401,6 +40401,7 @@
芒果干 芒果乾
芒种 芒種
芙蓉出水 芙蓉出水
芝柏表 芝柏錶
芟秋 芟秋
芥子气恶病质 芥子氣惡病質
芥子纳须弥 芥子納須彌
Expand Down
5 changes: 4 additions & 1 deletion data/dictionary/TSCharacters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,7 @@
損 损
搖 摇
搗 捣
搧 扇
搵 揾
搶 抢
# @tofu-risk: not covered by PingFang/Source Han baseline: 𢫬 U+22AEC
Expand Down Expand Up @@ -3550,7 +3551,7 @@
阪 阪 坂
陘 陉
陝 陕
陞 陞 升
陞 升 陞

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

《通規》附件一腳註:

Image

《現代漢語詞典》:

Image Image Image

據此「陞」應認為是中國大陸規範字體系之內的字,用於專有名詞,在缺少上下文的情況下可不轉換。
雖然「昇」的註腳幾乎完全一樣,但是「昇」字作「升」義明顯比「陞」更常用。「昇」字在簡體中也僅限個別人名,所以採用了默認轉為「升」、例外保留的做法。

如果繁體語料中「陞」也是主要用於人名、地名,可以比照「甦」的做法,採用默認保留、詞組級例外轉「升」。

@LeeiFrankJaw LeeiFrankJaw Jun 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我还是觉得这两个字的处理方式应该是一样的。其实在繁体的实际语料中,“昇” 也没有那么常见,大多也是用在人名之中,可能在复合词中,略微比 “陞” 字多一些吧。

我是 RIME 用户,之前看到用户没法自造 “龚昇” 这样的名字,即使在繁体状态下输入,回到简体后显示的依然还是 “龚升”。我自己之前在本地的解决方法是,就类似你们之前处理 “陞” 字的方案,把从 “昇” 映射到 “昇 升”。这样所有含有 “昇” 的人名,都能在第一次输入后,自动记忆新词。但是,这样我后来发现在简体状态下,出现了 “昇华” 这样的词。我后来比较了 “昇” 在普通词汇和专有名词中出现的概率。其实还是在专有名词中更常见。参见《重編國語辭典修訂本》和维基百科中含 “昇” 字的人名。我昨天看到在 commit 97afc82a 中已经添加了这一行。但是光是维基百科中的含 “昇” 的名人就已经那么多,更不用说在实际生活中会遇到的含 “昇” 的人名。理论上,如果按照现在对 “昇” 字的处理方式,你们至少要把维基百科上的那些含 “昇” 的名人,加到 TSPhrases.txt 文件中。

另外一种方式,就是我更推荐的,就是把 “昇” 字也按照之前 “陞” 字的方式处理。然后把《重編國語辭典修訂本》出现的那些词汇加入到 TSPhrases.txt 文件中,当然啦,会用作人名的 “高昇” 除外。

陣 阵
陰 阴
陳 陈
Expand Down Expand Up @@ -4425,6 +4426,8 @@
𠠎 𠠎 𠚳
# @tofu-risk: not covered by PingFang/Source Han baseline: 𪠡 U+2A821
𠬙 𠬙 𪠡
# @tofu-risk: not covered by PingFang/Source Han baseline: 𫪄 U+2BA84
𠼤 𠼤 𫪄
# @tofu-risk: not covered by PingFang/Source Han baseline: 𪠺 U+2A83A
𠽃 𠽃 𪠺
# @tofu-risk: not covered by PingFang/Source Han baseline: 𪜎 U+2A70E
Expand Down
7 changes: 6 additions & 1 deletion data/dictionary/TSPhrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
打坏 打坯
扞格 扞格
扭轉乾坤 扭转乾坤
批覆 批复
找藉口 找借口
折戟沈沙 折戟沉沙
折戟沈河 折戟沉河
Expand Down Expand Up @@ -177,7 +178,9 @@
東氾 东氾
林甦 林甦
校讎 校雠
梁章鉅 梁章钜
楊甦棣 杨甦棣
楊聯陞 杨联陞
樊於期 樊於期
橡椀 橡椀
死氣沈沈 死气沉沉
Expand All @@ -192,6 +195,7 @@
沈不住氣 沉不住气
沈住氣 沉住气
沈冤 沉冤
沈厚 沈厚 沉厚
沈吟 沉吟
沈寂 沉寂
沈得住氣 沉得住气
Expand Down Expand Up @@ -437,7 +441,7 @@
鍊錘 链锤
鍊鎖 链锁
鍛鍾 锻锺
鍾繇 钟繇 锺繇
鍾繇 锺繇 钟繇
鍾萬梅 锺万梅
鍾重發 锺重发
鍾鍛 锺锻
Expand Down Expand Up @@ -467,6 +471,7 @@
顛倒乾坤 颠倒乾坤
顧藉 顾借
馮甦 冯甦
魏徵 魏徵 魏征
魚沈雁杳 鱼沉雁杳
麼些族 麽些族
黃甦 黄甦
Expand Down
14 changes: 14 additions & 0 deletions test/testcases/testcases.json
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,20 @@
"tw2t": "在廚房裏做手擀麪"
}
},
{
"id": "case_053",
"input": "楊聯陞",
"expected": {
"t2s": "杨联陞"
}
},
{
"id": "case_054",
"input": "步步高陞",
"expected": {
"t2s": "步步高升"
}
},
{
"id": "BYVoid_OpenCC_Issue_475_s2twp",
"input": "仙童半导体厂 人工智能借用",
Expand Down
Loading