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; }); }
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; })); }
public ImeTextConverter() { _imeLanguage = new ImeLanguage(); }