Skip to content

Commit

Permalink
Merge pull request #13 from lvwxx/main
Browse files Browse the repository at this point in the history
修复佣金的繁体
  • Loading branch information
lvwxx committed Jun 6, 2024
2 parents dcad93b + 0abb637 commit a7cff5c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion addition-dictionary/STCharacters.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
厘 厘
厘 厘
佣 佣
3 changes: 2 additions & 1 deletion addition-dictionary/STPhrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
公厘 公厘
厘米 厘米
汇总 匯總
开户 開戶
开户 開戶
佣金 佣金
2 changes: 2 additions & 0 deletions dictionary/HKPhrasesFinance.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,5 @@
開户 開戶
開户 開戶
户 戶
開户 開戶
户 戶
4 changes: 3 additions & 1 deletion dictionary/STCharacters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@
峤 嶠
峥 崢
峦 巒
峰 峯
崂 嶗
崃 崍
崄 嶮
Expand Down Expand Up @@ -3977,4 +3978,5 @@
𰾄 鋂
𰾭 鑀
𱊜 𪈼
厘 厘
厘 厘
佣 佣
3 changes: 2 additions & 1 deletion dictionary/STPhrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49064,4 +49064,5 @@
公厘 公厘
厘米 厘米
汇总 匯總
开户 開戶
开户 開戶
佣金 佣金
5 changes: 3 additions & 2 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, 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)
}
Expand Down Expand Up @@ -73,6 +73,7 @@ func TestSelfSpecialHotfix(t *testing.T) {
cases := map[string]string{
"来自于汇丰,以及汇丰银行,汇入的款项": "來自於滙豐,以及滙豐銀行,匯入的款項",
"汇业银行集团": "滙業銀行集團",
"佣金": "佣金",
}

assertCases(t, cc, cases)
Expand Down

0 comments on commit a7cff5c

Please sign in to comment.