From 9696689d3655e2063a904b130f846fc49c235415 Mon Sep 17 00:00:00 2001 From: stantheman0128 Date: Sat, 18 Jul 2026 04:46:34 +0800 Subject: [PATCH] =?UTF-8?q?t2s:=20add=20=E8=94=95=20->=20=E8=92=82=20conve?= =?UTF-8?q?rsion=20(#905)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Map the variant 蔕 to standard 蒂 in TSCharacters. Keep 谿 -> 溪 谿 (default 溪 first); phrase-level 谿 exceptions remain with #901. Co-authored-by: Cursor --- data/dictionary/TSCharacters.txt | 1 + test/testcases/testcases.json | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/data/dictionary/TSCharacters.txt b/data/dictionary/TSCharacters.txt index fbe891206..c52a8530a 100644 --- a/data/dictionary/TSCharacters.txt +++ b/data/dictionary/TSCharacters.txt @@ -2304,6 +2304,7 @@ 蓽 荜 蔄 𬜬 蔔 卜 +蔕 蒂 蔘 参 蔞 蒌 蔣 蒋 diff --git a/test/testcases/testcases.json b/test/testcases/testcases.json index 896f7a549..fef22f556 100755 --- a/test/testcases/testcases.json +++ b/test/testcases/testcases.json @@ -1844,6 +1844,26 @@ "tw2s": "雇员", "hk2s": "雇员" } + }, + { + "id": "BYVoid_OpenCC_Issue_905_di_variant", + "input": "花蔕 並蔕蓮 煙蔕", + "expected": { + "t2s": "花蒂 并蒂莲 烟蒂", + "tw2s": "花蒂 并蒂莲 烟蒂", + "hk2s": "花蒂 并蒂莲 烟蒂", + "tw2sp": "花蒂 并蒂莲 烟蒂", + "hk2sp": "花蒂 并蒂莲 烟蒂" + } + }, + { + "id": "BYVoid_OpenCC_Issue_905_xi_default_溪_first", + "input": "蘭谿 松谿", + "expected": { + "t2s": "兰溪 松溪", + "tw2s": "兰溪 松溪", + "hk2s": "兰溪 松溪" + } } ] }