Documentation ¶
Overview ¶
Package pinyin provides functions to convert text between Pinyin diacritic and tone markings, e.g. wo3 <-> wǒ.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToDiacritics ¶
ConvertToDiacritics converts any length Pinyin text marked with numerals, to Pinyin marked by diacritics. Tone 5 is an absence of diacritics. Ex. ConvertToDiacritics("wo3 hen3 hao3 a5") // wǒ hěn hǎo a
func ConvertToNumerals ¶
ConvertToNumerals converts Pinyin text marked with diacritics, to Pinyin marked by numerals. Ex. ConvertToNumerals("wǒ hěn hǎo") // wo3 hen3 hao3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.