Documentation ¶
Overview ¶
Package nihongo implements simple transliteration between romaji and the two syllabic Japanese scripts, hiragana and katakana, encoded as UTF-8-encoded Unicode. Romaji output may include injected spaces to separate converted text from unconverted, and other markers. Invalid sequences, such as small kanas with no preceding kana, are passed unaltered. Hiragana and katakana may be inaccurate due to false matches. Katakana may be further inaccurate because of the inability to generate the tsu consonant-extending symbol.
Index ¶
- func Hiragana(romaji []byte) []byte
- func HiraganaReader(rd io.Reader) io.Reader
- func HiraganaString(romaji string) string
- func Katakana(romaji []byte) []byte
- func KatakanaReader(rd io.Reader) io.Reader
- func KatakanaString(romaji string) string
- func Romaji(text []byte) []byte
- func RomajiReader(rd io.Reader) io.Reader
- func RomajiString(text string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HiraganaReader ¶
HiraganaReader returns an io.Reader that will translate romaji in its input into hiragana.
func HiraganaString ¶
HiraganaString translates romaji into hiragana and returns the result.
func KatakanaReader ¶
KatakanaReader returns an io.Reader that will translate romaji in its input into katakana.
func KatakanaString ¶
KatakanaString translates romaji into katakana and returns the result.
func RomajiReader ¶
RomajiReader returns an io.Reader that will translate its input into romaji.
func RomajiString ¶
RomajiString translates text into romaji and returns the result.
Types ¶
This section is empty.