Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(t Transcriber)
Register instructes TransRune to use the provided Transcriber.
func RegisterFunc ¶
RegisterFunc instructs TransRune to use the provided function.
func Spell ¶
Spell is a convience method. It converts the provided string to a slice of runes and calls SpellSlice on them.
func SpellSlice ¶
SpellSlice will return the phonetic representation (if any) for all the provided runes.
Types ¶
type Transcriber ¶
Transcriber translates a rune to a a representation.
func TransFunc ¶
func TransFunc(f func(r rune) string) Transcriber
Click to show internal directories.
Click to hide internal directories.