From 3eece91598f7175975639b12ac5b95cdb880226f Mon Sep 17 00:00:00 2001 From: stantheman0128 Date: Sat, 18 Jul 2026 03:49:17 +0800 Subject: [PATCH] =?UTF-8?q?s2t:=20prefer=20=E6=B2=96=20over=20=E8=A1=9D=20?= =?UTF-8?q?as=20the=20default=20candidate=20for=20=E5=86=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue #984 retitled the desired mapping to 冲 -> 沖 (衝). Keep 衝 as a non-default candidate so existing STPhrases entries such as 水一冲 and 冲突 still convert correctly. --- data/dictionary/STCharacters.txt | 2 +- test/testcases/testcases.json | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/data/dictionary/STCharacters.txt b/data/dictionary/STCharacters.txt index 8ca05f317..396ff7790 100644 --- a/data/dictionary/STCharacters.txt +++ b/data/dictionary/STCharacters.txt @@ -268,7 +268,7 @@ 冢 冢 塚 冬 冬 鼕 冯 馮 -冲 衝 沖 +冲 沖 衝 决 決 况 況 冻 凍 diff --git a/test/testcases/testcases.json b/test/testcases/testcases.json index 95a95e0b7..4efe71dd0 100755 --- a/test/testcases/testcases.json +++ b/test/testcases/testcases.json @@ -1825,6 +1825,16 @@ "tw2sp": "干红", "hk2sp": "干红" } + }, + { + "id": "BYVoid_OpenCC_Issue_984_chong_variant_priority", + "input": "冲咖啡、冲洗、冲水,再用清水一冲就能清除了。冲突、冲动、冲锋、缓冲、兴冲冲", + "expected": { + "s2t": "沖咖啡、沖洗、沖水,再用清水一衝就能清除了。衝突、衝動、衝鋒、緩衝、興沖沖", + "s2tw": "沖咖啡、沖洗、沖水,再用清水一衝就能清除了。衝突、衝動、衝鋒、緩衝、興沖沖", + "s2twp": "沖咖啡、沖洗、沖水,再用清水一衝就能清除了。衝突、衝動、衝鋒、緩衝、興沖沖", + "s2hk": "沖咖啡、沖洗、沖水,再用清水一衝就能清除了。衝突、衝動、衝鋒、緩衝、興沖沖" + } } ] }