From 8323561c022008935bb9d5fb8549c45fb1f0d057 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 8 Sep 2026 14:49:57 +0000 Subject: [PATCH] =?UTF-8?q?Keep=20=E5=A4=A5=20unchanged=20in=20t2s=20when?= =?UTF-8?q?=20it=20means=20"many"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes BYVoid/OpenCC#1489. 夥 is only simplified to 伙 in the 伙伴/伙食 sense; in the "many" sense (獲益甚夥, 夥頤, 夥多) it is itself the standard form, so add self-mapping TSPhrases entries for those phrases and cover them with t2s/tw2s/hk2s tests plus an s2t/s2tw/s2hk roundtrip check. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01UZTNTBA97LMM3PVYvQv9he --- data/dictionary/TSPhrases.txt | 3 +++ test/testcases/testcases.json | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/data/dictionary/TSPhrases.txt b/data/dictionary/TSPhrases.txt index fad5e9bac..02aac6ae8 100644 --- a/data/dictionary/TSPhrases.txt +++ b/data/dictionary/TSPhrases.txt @@ -83,6 +83,8 @@ 坏戶 坯户 墨沈沈 墨沉沉 壺裏乾坤 壶里乾坤 +夥多 夥多 +夥頤 夥颐 大目乾連冥間救母變文 大目乾连冥间救母变文 宫商角徵羽 宫商角徵羽 射覆 射覆 @@ -267,6 +269,7 @@ 狐藉虎威 狐借虎威 王彥昇 王彦昇 珍珠項鍊 珍珠项链 +甚夥 甚夥 甚鉅 甚钜 甦生 苏生 甦醒 苏醒 diff --git a/test/testcases/testcases.json b/test/testcases/testcases.json index 93f1a3c42..cd39fb88d 100755 --- a/test/testcases/testcases.json +++ b/test/testcases/testcases.json @@ -2013,6 +2013,24 @@ "expected": { "s2t": "股東鬥毆 服從徵召 散步裏面 向前衝舉起手 姓沈故鄉 鹹魚鹹菜 模範氏族 示範公司 學歷指標 廣泛勝出" } + }, + { + "id": "BYVoid_OpenCC_Issue_1489_huo_many_sense_not_simplified", + "input": "獲益甚夥 為數甚夥 夥頤 夥多 合夥人 夥計 一夥人", + "expected": { + "t2s": "获益甚夥 为数甚夥 夥颐 夥多 合伙人 伙计 一伙人", + "tw2s": "获益甚夥 为数甚夥 夥颐 夥多 合伙人 伙计 一伙人", + "hk2s": "获益甚夥 为数甚夥 夥颐 夥多 合伙人 伙计 一伙人" + } + }, + { + "id": "BYVoid_OpenCC_Issue_1489_huo_many_sense_roundtrip_s2t", + "input": "获益甚夥 为数甚夥 夥颐 合伙人 伙计", + "expected": { + "s2t": "獲益甚夥 爲數甚夥 夥頤 合夥人 夥計", + "s2tw": "獲益甚夥 為數甚夥 夥頤 合夥人 夥計", + "s2hk": "獲益甚夥 為數甚夥 夥頤 合夥人 夥計" + } } ] }