Documentation
¶
Overview ¶
Package pinyin the chinese pinyin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CcReg = regexp.MustCompile("^[\u4E00-\u9FA5]$") ChineseToneMap = map[string]map[string]int{ "ue": map[string]int{ "üē": 1, "üé": 2, "üě": 3, "üè": 4, }, "a": map[string]int{ "ā": 1, "á": 2, "ǎ": 3, "à": 4, }, "e": map[string]int{ "ē": 1, "é": 2, "ě": 3, "è": 4, }, "i": map[string]int{ "ī": 1, "í": 2, "ǐ": 3, "ì": 4, }, "o": map[string]int{ "ō": 1, "ó": 2, "ǒ": 3, "ò": 4, }, "u": map[string]int{ "ū": 1, "ú": 2, "ǔ": 3, "ù": 4, }, } )
Functions ¶
func GetLinesFromFile ¶
GetLinesFromFile the line from file
func IsChineseCharacters ¶
IsChineseCharacters check if the string is chinese character
func ReadDickFromIni ¶
ReadDickFromIni read file and parse from ini files
Types ¶
type Pinyin ¶
Pinyin the pinyin dick creator
func (*Pinyin) GetPyToneAlpha ¶
GetPyToneAlpha get pinyin without tone
func (*Pinyin) GetPyToneFunc ¶
GetPyToneFunc get pinyin with tone by callback Func
func (*Pinyin) GetPyToneNumber ¶
GetPyToneNumber get pinyin with tone that replace by number (1-4)
Click to show internal directories.
Click to hide internal directories.