From 0abb637e8b9472c44e71dff0bc564c6151d659af Mon Sep 17 00:00:00 2001 From: wangbiao Date: Thu, 6 Jun 2024 16:36:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BD=A3=E9=87=91=E7=9A=84?= =?UTF-8?q?=E7=B9=81=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addition-dictionary/STCharacters.txt | 3 ++- addition-dictionary/STPhrases.txt | 3 ++- dictionary/HKPhrasesFinance.txt | 2 ++ dictionary/STCharacters.txt | 4 +++- dictionary/STPhrases.txt | 3 ++- opencc_test.go | 5 +++-- 6 files changed, 14 insertions(+), 6 deletions(-) diff --git a/addition-dictionary/STCharacters.txt b/addition-dictionary/STCharacters.txt index 162f533..a14d957 100644 --- a/addition-dictionary/STCharacters.txt +++ b/addition-dictionary/STCharacters.txt @@ -1 +1,2 @@ -厘 厘 +厘 厘 +佣 佣 \ No newline at end of file diff --git a/addition-dictionary/STPhrases.txt b/addition-dictionary/STPhrases.txt index 055bbdb..c88dbea 100644 --- a/addition-dictionary/STPhrases.txt +++ b/addition-dictionary/STPhrases.txt @@ -6,4 +6,5 @@ 公厘 公厘 厘米 厘米 汇总 匯總 -开户 開戶 \ No newline at end of file +开户 開戶 +佣金 佣金 \ No newline at end of file diff --git a/dictionary/HKPhrasesFinance.txt b/dictionary/HKPhrasesFinance.txt index e9f2508..e8b3a47 100644 --- a/dictionary/HKPhrasesFinance.txt +++ b/dictionary/HKPhrasesFinance.txt @@ -86,3 +86,5 @@ 開户 開戶 開户 開戶 户 戶 +開户 開戶 +户 戶 diff --git a/dictionary/STCharacters.txt b/dictionary/STCharacters.txt index e1943bf..4655e39 100644 --- a/dictionary/STCharacters.txt +++ b/dictionary/STCharacters.txt @@ -581,6 +581,7 @@ 峤 嶠 峥 崢 峦 巒 +峰 峯 崂 嶗 崃 崍 崄 嶮 @@ -3977,4 +3978,5 @@ 𰾄 鋂 𰾭 鑀 𱊜 𪈼 -厘 厘 +厘 厘 +佣 佣 \ No newline at end of file diff --git a/dictionary/STPhrases.txt b/dictionary/STPhrases.txt index c461cbd..cacd7a9 100644 --- a/dictionary/STPhrases.txt +++ b/dictionary/STPhrases.txt @@ -49064,4 +49064,5 @@ 公厘 公厘 厘米 厘米 汇总 匯總 -开户 開戶 \ No newline at end of file +开户 開戶 +佣金 佣金 \ No newline at end of file diff --git a/opencc_test.go b/opencc_test.go index 6f0855d..6cef3b4 100644 --- a/opencc_test.go +++ b/opencc_test.go @@ -5,11 +5,11 @@ import ( "testing" ) -func assertCases(t *testing.T, s2t *OpenCC, cases map[string]string) { +func assertCases(t *testing.T, cc *OpenCC, cases map[string]string) { t.Helper() for k, v := range cases { - str, err := s2t.Convert(k) + str, err := cc.Convert(k) if err != nil { t.Error(err) } @@ -73,6 +73,7 @@ func TestSelfSpecialHotfix(t *testing.T) { cases := map[string]string{ "来自于汇丰,以及汇丰银行,汇入的款项": "來自於滙豐,以及滙豐銀行,匯入的款項", "汇业银行集团": "滙業銀行集團", + "佣金": "佣金", } assertCases(t, cc, cases)