Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions data/dictionary/STPhrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5755,6 +5755,7 @@
公众参与 公衆參與
公余 公餘
公使团 公使團
公元纪年 公元紀年
公克 公克
公公向孙子磕头 公公向孫子磕頭
公共休闲环境 公共休閒環境
Expand Down
2 changes: 2 additions & 0 deletions data/dictionary/TWPhrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ U盤 隨身碟
內聯函數 行內函數
全局 全域性
全角 全形
公元 西元
公元紀年 公元紀年
兼容 相容
冒泡排序 氣泡排序
冰棍 冰棒
Expand Down
2 changes: 2 additions & 0 deletions data/dictionary/TWPhrasesRev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ SQL隱碼攻擊 SQL注入 SQL注入攻擊
全域性 全局
全形 全角
全球資訊網 萬維網
公元紀年 公元紀年
冰棒 冰棍
冷盤 涼菜
函式 函數
Expand Down Expand Up @@ -393,6 +394,7 @@ SQL隱碼攻擊 SQL注入 SQL注入攻擊
表示式 表達式
裝置 設備
複製 拷貝
西元 公元
視窗 窗口
視覺化 可視化
視訊 視頻
Expand Down
7 changes: 7 additions & 0 deletions test/testcases/testcases.json
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,13 @@
"expected": {
"s2t": "上下數千年,縱橫幾萬里"
}
},
{
"id": "s2twp_gong_yuan_to_xi_yuan",
"input": "公元前100年,公元1949年,采用公元纪年",
"expected": {
"s2twp": "西元前100年,西元1949年,採用公元紀年"
}
}
]
}
Loading