pinyinchinesechar

package
v0.0.0-...-dd73aa9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

main.go

rawchinesechar.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChineseCharToDigit

func ChineseCharToDigit(char string) []int

a single chinese char to digits, might be multiple pronouncation, so might be multiple results

func ChineseStrToDigitStr

func ChineseStrToDigitStr(str string) string

Convert a Chinese str(may contain multiple chars) to a number(multiple digits) A char may contributate multiple digits

func ChinseCharToPinyin

func ChinseCharToPinyin(theChar string) ([]string, error)

return list of pinyin ( multiple pinyin for a char may exist) theChar shall be a single chinese char

func DigitToConsonant

func DigitToConsonant(digit int) []string

func DigitToConsonantTable

func DigitToConsonantTable() string

Get a string with the mappings from digit to pinyin char

func InputToOutput

func InputToOutput(input string) (output string)

func NumStrToChineseStr

func NumStrToChineseStr(numStr string) string

Convert a number(might be several digits) to possible Chinese chars The output format is fixed

func PinyinStrToChineseStr

func PinyinStrToChineseStr(pyList string) string

A list of pinyin(separated by comma, space char) to string that separated by predefined delimiters

func PinyinToChinseChar

func PinyinToChinseChar(py string) []string

the py is supposed to be only for a single char, like zhong, not zhong guo. py may also be partial prefix like zh

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL