From 2fe3c4112449994af55981ea1a82ffd26d749b0c Mon Sep 17 00:00:00 2001 From: Frank Lin Date: Fri, 9 Jan 2026 19:16:02 -0800 Subject: [PATCH] Add Nvidia translation to TWPhrasesOther with additional test cases --- data/dictionary/TWPhrasesOther.txt | 1 + test/testcases/testcases.json | 22 +++++++++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/data/dictionary/TWPhrasesOther.txt b/data/dictionary/TWPhrasesOther.txt index d0e6f68ef..2615feeae 100644 --- a/data/dictionary/TWPhrasesOther.txt +++ b/data/dictionary/TWPhrasesOther.txt @@ -39,3 +39,4 @@ 鐦 鉲 鑥 鎦 黃宏 黃宏 +英偉達 輝達 diff --git a/test/testcases/testcases.json b/test/testcases/testcases.json index 723f709a8..28e2aa76a 100755 --- a/test/testcases/testcases.json +++ b/test/testcases/testcases.json @@ -375,6 +375,26 @@ "tw2sp": "写一个解算器程序来解决方程式", "t2s": "写一个解算器程式来解决方程式" } + }, + { + "id": "nVidia_naming_s2t", + "input": "英伟达", + "expected": { + "s2twp": "輝達", + "s2t": "英偉達", + "s2tw": "英偉達", + "s2hk": "英偉達" + } + }, + { + "id": "nVidia_naming_t2s", + "input": "輝達", + "expected": { + "tw2sp": "英伟达", + "t2s": "辉达", + "tw2s": "辉达", + "hk2s": "辉达" + } } ] -} \ No newline at end of file +}