Inheritance: IDisposable
示例#1
0
        public string Convert(string input)
        {
            if(_imeLanguage == null)
            {
                _imeLanguage = new ImeLanguage();
            }

            return DispatcherHelper.UIDispatcher.Invoke(() =>
            {
                string result = _imeLanguage.GetYomi(input);

                if (ReplaceAlphabetToKatakana)
                {
                    result = ConvertAlphabetToKatakana(result);
                }

                if (RemoveCharsNotSupportedInAquesTalk)
                {
                    result = Regex.Replace(result, @"[^ぁ-んァ-ンー、。!?,.!?/+_]", "");
                }

                return result;
            });
        }
示例#2
0
        public string Convert(string input)
        {
            if (_imeLanguage == null)
            {
                _imeLanguage = new ImeLanguage();
            }

            return(DispatcherHelper.UIDispatcher.Invoke(() =>
            {
                string result = _imeLanguage.GetYomi(input);

                if (ReplaceAlphabetToKatakana)
                {
                    result = ConvertAlphabetToKatakana(result);
                }

                if (RemoveCharsNotSupportedInAquesTalk)
                {
                    result = Regex.Replace(result, @"[^ぁ-んァ-ンー、。!?,.!?/+_]", "");
                }

                return result;
            }));
        }
示例#3
0
 public ImeTextConverter()
 {
     _imeLanguage = new ImeLanguage();
 }
示例#4
0
 public ImeTextConverter()
 {
     _imeLanguage = new ImeLanguage();
 }