module Kana
Defined in:
kana.cr
Constant Summary
-
HIRAGANA_TO_KATAKANA_HASH =
{'ぁ' => 'ァ', 'あ' => 'ア', 'ぃ' => 'ィ', 'い' => 'イ', 'ぅ' => 'ゥ', 'う' => 'ウ', 'ぇ' => 'ェ', 'え' => 'エ', 'ぉ' => 'ォ', 'お' => 'オ', 'か' => 'カ', 'が' => 'ガ', 'き' => 'キ', 'ぎ' => 'ギ', 'く' => 'ク', 'ぐ' => 'グ', 'け' => 'ケ', 'げ' => 'ゲ', 'こ' => 'コ', 'ご' => 'ゴ', 'さ' => 'サ', 'ざ' => 'ザ', 'し' => 'シ', 'じ' => 'ジ', 'す' => 'ス', 'ず' => 'ズ', 'せ' => 'セ', 'ぜ' => 'ゼ', 'そ' => 'ソ', 'ぞ' => 'ゾ', 'た' => 'タ', 'だ' => 'ダ', 'ち' => 'チ', 'ぢ' => 'ヂ', 'っ' => 'ッ', 'つ' => 'ツ', 'づ' => 'ヅ', 'て' => 'テ', 'で' => 'デ', 'と' => 'ト', 'ど' => 'ド', 'な' => 'ナ', 'に' => 'ニ', 'ぬ' => 'ヌ', 'ね' => 'ネ', 'の' => 'ノ', 'は' => 'ハ', 'ば' => 'バ', 'ぱ' => 'パ', 'ひ' => 'ヒ', 'び' => 'ビ', 'ぴ' => 'ピ', 'ふ' => 'フ', 'ぶ' => 'ブ', 'ぷ' => 'プ', 'へ' => 'ヘ', 'べ' => 'ベ', 'ぺ' => 'ペ', 'ほ' => 'ホ', 'ぼ' => 'ボ', 'ぽ' => 'ポ', 'ま' => 'マ', 'み' => 'ミ', 'む' => 'ム', 'め' => 'メ', 'も' => 'モ', 'ゃ' => 'ャ', 'や' => 'ヤ', 'ゅ' => 'ュ', 'ゆ' => 'ユ', 'ょ' => 'ョ', 'よ' => 'ヨ', 'ら' => 'ラ', 'り' => 'リ', 'る' => 'ル', 'れ' => 'レ', 'ろ' => 'ロ', 'ゎ' => 'ヮ', 'わ' => 'ワ', 'ゐ' => 'ヰ', 'ゑ' => 'ヱ', 'を' => 'ヲ', 'ん' => 'ン'}
-
KATAKANA_TO_HIRAGANA_HASH =
HIRAGANA_TO_KATAKANA_HASH.invert
-
VERSION =
"0.1.0"
Class Method Summary
Class Method Detail
def self.
to_hiragana(text : String)
#
def self.
to_katakana(text : String)
#