Module: Pinny

Extended by:
ModuleMethods
Defined in:
lib/pinny.rb

Defined Under Namespace

Modules: ModuleMethods

Constant Summary collapse

TONES =
{
  "a" => [nil, "ā", "á", "ǎ", "à"],
  "e" => [nil, "ē", "é", "ě", "è"],
  "i" => [nil, "ī", "í", "ǐ", "ì"],
  "o" => [nil, "ō", "ó", "ǒ", "ò"],
  "u" => [nil, "ū", "ú", "ǔ", "ù"],
  "v" => [nil, "ǖ", "ǘ", "ǚ", "ǜ"]
}

Method Summary

Methods included from ModuleMethods

add_tone_mark, extract_tone, is_pinyin?, lowest_vowel, to_pinyin