Skip to content

Commit

Permalink
Revert "修复佣金的繁体"
Browse files Browse the repository at this point in the history
This reverts commit 0abb637.
  • Loading branch information
huacnlee committed Jun 6, 2024
1 parent a7cff5c commit 2c14a42
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 14 deletions.
3 changes: 1 addition & 2 deletions addition-dictionary/STCharacters.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
厘 厘
佣 佣
厘 厘
3 changes: 1 addition & 2 deletions addition-dictionary/STPhrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
公厘 公厘
厘米 厘米
汇总 匯總
开户 開戶
佣金 佣金
开户 開戶
2 changes: 0 additions & 2 deletions dictionary/HKPhrasesFinance.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,3 @@
開户 開戶
開户 開戶
户 戶
開户 開戶
户 戶
4 changes: 1 addition & 3 deletions dictionary/STCharacters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,6 @@
峤 嶠
峥 崢
峦 巒
峰 峯
崂 嶗
崃 崍
崄 嶮
Expand Down Expand Up @@ -3978,5 +3977,4 @@
𰾄 鋂
𰾭 鑀
𱊜 𪈼
厘 厘
佣 佣
厘 厘
3 changes: 1 addition & 2 deletions dictionary/STPhrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49064,5 +49064,4 @@
公厘 公厘
厘米 厘米
汇总 匯總
开户 開戶
佣金 佣金
开户 開戶
5 changes: 2 additions & 3 deletions opencc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"testing"
)

func assertCases(t *testing.T, cc *OpenCC, cases map[string]string) {
func assertCases(t *testing.T, s2t *OpenCC, cases map[string]string) {
t.Helper()

for k, v := range cases {
str, err := cc.Convert(k)
str, err := s2t.Convert(k)
if err != nil {
t.Error(err)
}
Expand Down Expand Up @@ -73,7 +73,6 @@ func TestSelfSpecialHotfix(t *testing.T) {
cases := map[string]string{
"来自于汇丰,以及汇丰银行,汇入的款项": "來自於滙豐,以及滙豐銀行,匯入的款項",
"汇业银行集团": "滙業銀行集團",
"佣金": "佣金",
}

assertCases(t, cc, cases)
Expand Down

0 comments on commit 2c14a42

Please sign in to comment.