From 02b972aa90633fbbbf007967306fa6f841ecfe7f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Jul 2026 00:35:09 +0000 Subject: [PATCH 1/2] Initial plan From 69d1897d63279480eae7e8e0301f80293362e18d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Jul 2026 00:41:20 +0000 Subject: [PATCH 2/2] =?UTF-8?q?Fix=20t2s=20over-conversion=20for=20?= =?UTF-8?q?=E4=B9=BE=E6=96=B7=E9=A3=9F=20and=20=E4=B9=BE=E7=B4=85=20(Issue?= =?UTF-8?q?=20#621)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add TSPhrases entry for 乾斷食 → 干断食 so the dry-fasting term takes priority over the shorter 乾斷 → 乾断 match. Update 乾紅 to carry 干红 as the primary candidate (dry red wine) alongside 乾红 as an alternative. Add corresponding test cases for t2s, tw2s, hk2s, tw2sp, and hk2sp. --- data/dictionary/TSPhrases.txt | 3 ++- test/testcases/testcases.json | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/data/dictionary/TSPhrases.txt b/data/dictionary/TSPhrases.txt index d8b175c8a..fad5e9bac 100644 --- a/data/dictionary/TSPhrases.txt +++ b/data/dictionary/TSPhrases.txt @@ -31,11 +31,12 @@ 乾安鎮 乾安镇 乾州 乾州 乾斷 乾断 +乾斷食 干断食 乾旦 乾旦 乾曜 乾曜 乾清宮 乾清宫 乾盛世 乾盛世 -乾紅 乾红 +乾紅 干红 乾红 乾綱 乾纲 乾縣 乾县 乾象 乾象 diff --git a/test/testcases/testcases.json b/test/testcases/testcases.json index 4beecf0f1..c2ce266a6 100755 --- a/test/testcases/testcases.json +++ b/test/testcases/testcases.json @@ -1773,6 +1773,28 @@ "s2twp": "信託、請託、屬託、囑託、交託、委託、託辭、託詞、託之空言、受託、受人之託、所託非人、寄託、委託行、委託書、託物寓興、依託、拜託、徒託空言、託夢、託附、託付、託管", "s2hk": "信託、請託、屬託、囑託、交託、委託、託辭、託詞、託之空言、受託、受人之託、所託非人、寄託、委託行、委託書、託物寓興、依託、拜託、徒託空言、託夢、託附、託付、託管" } + }, + { + "id": "BYVoid_OpenCC_Issue_621_qian_duan_shi", + "input": "乾斷食", + "expected": { + "t2s": "干断食", + "tw2s": "干断食", + "hk2s": "干断食", + "tw2sp": "干断食", + "hk2sp": "干断食" + } + }, + { + "id": "BYVoid_OpenCC_Issue_621_qian_hong", + "input": "乾紅", + "expected": { + "t2s": "干红", + "tw2s": "干红", + "hk2s": "干红", + "tw2sp": "干红", + "hk2sp": "干红" + } } ] }