From 8ba802ea6ae9a1927b922a3e7852b43a4fe92cf1 Mon Sep 17 00:00:00 2001 From: Lei Zhao Date: Tue, 30 Jun 2026 01:20:12 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E7=B9=81=E7=AE=80=E8=BD=AC=E6=8D=A2=EF=BC=8C=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E4=BA=86=E4=B8=80=E4=BA=9B=E4=BC=98=E5=85=88=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 增加了从“批覆”到“批复”的繁简转换,参见[rime/rime-essay#69][1]。 * 增加了人名“杨联陞”“梁章钜”的繁简转换。 * 增加了“沉厚”的繁简转换。 * 调整了“锺繇”和“魏徵”在繁简转换过程中的优先顺序。“锺”字在《通用规范 汉字表》中,专门用作人名和姓氏用字,且“锺繇”在今天要比“钟繇”更为常 见。虽然“徵”在《通用规范汉字表》中,只用作“宫商角徵羽”的“徵”,但在 今天的实际行文中,“魏徵”要比“魏征”常见得多。 * 增加了从“搧”到“扇”的繁简转换。 * 调整了“陞”字在繁简转换过程中的优先顺序。这是因为“陞”字的处理,理应 同“昇”字的处理等同。如果按照原顺序,“步步高陞”简化后依然是“步步高陞”, 这显然不对。 * 增加了“咪唎𫪄”的“𫪄”字的繁简转换。 * 增加了“芝柏表”的简繁转换。 * 增加了繁简转换的两个测试用例,分别为“杨联陞”和“步步高升”。 [1]: https://github.com/rime/rime-essay/issues/69 --- data/dictionary/STPhrases.txt | 1 + data/dictionary/TSCharacters.txt | 4 +++- data/dictionary/TSPhrases.txt | 7 ++++++- test/testcases/testcases.json | 14 ++++++++++++++ 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/data/dictionary/STPhrases.txt b/data/dictionary/STPhrases.txt index 1a005c8e3..6985e922e 100644 --- a/data/dictionary/STPhrases.txt +++ b/data/dictionary/STPhrases.txt @@ -40401,6 +40401,7 @@ 芒果干 芒果乾 芒种 芒種 芙蓉出水 芙蓉出水 +芝柏表 芝柏錶 芟秋 芟秋 芥子气恶病质 芥子氣惡病質 芥子纳须弥 芥子納須彌 diff --git a/data/dictionary/TSCharacters.txt b/data/dictionary/TSCharacters.txt index 0a8f9960f..d630c80b3 100644 --- a/data/dictionary/TSCharacters.txt +++ b/data/dictionary/TSCharacters.txt @@ -1026,6 +1026,7 @@ 損 损 搖 摇 搗 捣 +搧 扇 搵 揾 搶 抢 # @tofu-risk: not covered by PingFang/Source Han baseline: 𢫬 U+22AEC @@ -3550,7 +3551,7 @@ 阪 阪 坂 陘 陉 陝 陕 -陞 陞 升 +陞 升 陞 陣 阵 陰 阴 陳 陈 @@ -4425,6 +4426,7 @@ 𠠎 𠠎 𠚳 # @tofu-risk: not covered by PingFang/Source Han baseline: 𪠡 U+2A821 𠬙 𠬙 𪠡 +𠼤 𫪄 # @tofu-risk: not covered by PingFang/Source Han baseline: 𪠺 U+2A83A 𠽃 𠽃 𪠺 # @tofu-risk: not covered by PingFang/Source Han baseline: 𪜎 U+2A70E diff --git a/data/dictionary/TSPhrases.txt b/data/dictionary/TSPhrases.txt index d3c401965..fc472fc31 100644 --- a/data/dictionary/TSPhrases.txt +++ b/data/dictionary/TSPhrases.txt @@ -117,6 +117,7 @@ 打坏 打坯 扞格 扞格 扭轉乾坤 扭转乾坤 +批覆 批复 找藉口 找借口 折戟沈沙 折戟沉沙 折戟沈河 折戟沉河 @@ -177,7 +178,9 @@ 東氾 东氾 林甦 林甦 校讎 校雠 +梁章鉅 梁章钜 楊甦棣 杨甦棣 +楊聯陞 杨联陞 樊於期 樊於期 橡椀 橡椀 死氣沈沈 死气沉沉 @@ -192,6 +195,7 @@ 沈不住氣 沉不住气 沈住氣 沉住气 沈冤 沉冤 +沈厚 沉厚 沈吟 沉吟 沈寂 沉寂 沈得住氣 沉得住气 @@ -437,7 +441,7 @@ 鍊錘 链锤 鍊鎖 链锁 鍛鍾 锻锺 -鍾繇 钟繇 锺繇 +鍾繇 锺繇 钟繇 鍾萬梅 锺万梅 鍾重發 锺重发 鍾鍛 锺锻 @@ -467,6 +471,7 @@ 顛倒乾坤 颠倒乾坤 顧藉 顾借 馮甦 冯甦 +魏徵 魏徵 魏征 魚沈雁杳 鱼沉雁杳 麼些族 麽些族 黃甦 黄甦 diff --git a/test/testcases/testcases.json b/test/testcases/testcases.json index 74c2b95a8..94a1c2aec 100755 --- a/test/testcases/testcases.json +++ b/test/testcases/testcases.json @@ -371,6 +371,20 @@ "tw2t": "在廚房裏做手擀麪" } }, + { + "id": "case_053", + "input": "楊聯陞", + "expected": { + "t2s": "杨联陞" + } + }, + { + "id": "case_054", + "input": "步步高陞", + "expected": { + "t2s": "步步高升" + } + }, { "id": "BYVoid_OpenCC_Issue_475_s2twp", "input": "仙童半导体厂 人工智能借用", From 8f6f1aca6bcea683572578350cf2e53c447dcf8f Mon Sep 17 00:00:00 2001 From: Lei Zhao Date: Tue, 30 Jun 2026 02:04:45 +0800 Subject: [PATCH 2/3] =?UTF-8?q?Add=20@tofu-risk=20annotation=20for=20?= =?UTF-8?q?=F0=AB=AA=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As per @frankslin. [1]: https://github.com/BYVoid/OpenCC/pull/1365#discussion_r3493682113 --- data/dictionary/TSCharacters.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/dictionary/TSCharacters.txt b/data/dictionary/TSCharacters.txt index d630c80b3..93811255c 100644 --- a/data/dictionary/TSCharacters.txt +++ b/data/dictionary/TSCharacters.txt @@ -4426,7 +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 From a9ac83e23a14b9efb6fa165bada42aa01670a683 Mon Sep 17 00:00:00 2001 From: frankslin Date: Mon, 29 Jun 2026 13:43:04 -0700 Subject: [PATCH 3/3] =?UTF-8?q?Preserve=20=E6=B2=88=E5=8E=9A=20in=20conver?= =?UTF-8?q?sions=20with=20TSPhrases.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/dictionary/TSPhrases.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/dictionary/TSPhrases.txt b/data/dictionary/TSPhrases.txt index fc472fc31..f71bc5d7f 100644 --- a/data/dictionary/TSPhrases.txt +++ b/data/dictionary/TSPhrases.txt @@ -195,7 +195,7 @@ 沈不住氣 沉不住气 沈住氣 沉住气 沈冤 沉冤 -沈厚 沉厚 +沈厚 沈厚 沉厚 沈吟 沉吟 沈寂 沉寂 沈得住氣 沉得住气