예제 #1
0
        static void Main(string[] args)
        {
            var romaji = String.Join(" ", args);

            if (String.IsNullOrWhiteSpace(romaji))
            {
                return;
            }

            var hiragana = NihonParser.ToHiragana(romaji);
            var katakana = NihonParser.ToKatakana(romaji);

            Console.OutputEncoding = System.Text.Encoding.UTF8;

            Console.WriteLine(hiragana);
            Console.WriteLine(katakana);
        }
 private void CheckParse(string roumaji, string hiragana, bool isWordSpacing = false)
 {
     Assert.Equal(hiragana, NihonParser.ToHiragana(roumaji, isWordSpacing));
 }