完善 zh2tw 脚本, 增加修复转换表

This commit is contained in:
chai2010 2015-12-18 10:43:02 +08:00
parent 1d9c08c03b
commit 510c741a6f

View File

@ -175,6 +175,11 @@ func init() {
for k, v := range _TSCharactersMap { for k, v := range _TSCharactersMap {
zh2twMap[v] = k zh2twMap[v] = k
} }
// 修正错误的转换
for k, v := range zh2twMapPatch {
zh2twMap[k] = v
}
} }
var ( var (
@ -182,6 +187,19 @@ var (
tw2zhMap = _TSCharactersMap tw2zhMap = _TSCharactersMap
) )
// 修正错误的转换
var zh2twMapPatch = map[rune]rune{
'面': '面',
'发': '發',
'参': '參',
'表': '表',
'同': '同',
'向': '向',
'合': '合',
'針': '针',
'別': '别',
}
var _TSCharactersMap = map[rune]rune{ var _TSCharactersMap = map[rune]rune{
'㑮': '𫝈', '㑮': '𫝈',
'㑯': '㑔', '㑯': '㑔',