mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2024-11-05 05:53:45 +00:00
完善 zh2tw 脚本, 增加修复转换表
This commit is contained in:
parent
1d9c08c03b
commit
510c741a6f
18
zh2tw.go
18
zh2tw.go
@ -175,6 +175,11 @@ func init() {
|
||||
for k, v := range _TSCharactersMap {
|
||||
zh2twMap[v] = k
|
||||
}
|
||||
|
||||
// 修正错误的转换
|
||||
for k, v := range zh2twMapPatch {
|
||||
zh2twMap[k] = v
|
||||
}
|
||||
}
|
||||
|
||||
var (
|
||||
@ -182,6 +187,19 @@ var (
|
||||
tw2zhMap = _TSCharactersMap
|
||||
)
|
||||
|
||||
// 修正错误的转换
|
||||
var zh2twMapPatch = map[rune]rune{
|
||||
'面': '面',
|
||||
'发': '發',
|
||||
'参': '參',
|
||||
'表': '表',
|
||||
'同': '同',
|
||||
'向': '向',
|
||||
'合': '合',
|
||||
'針': '针',
|
||||
'別': '别',
|
||||
}
|
||||
|
||||
var _TSCharactersMap = map[rune]rune{
|
||||
'㑮': '𫝈',
|
||||
'㑯': '㑔',
|
||||
|
Loading…
Reference in New Issue
Block a user