mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
Use Unidecoder instead of ChineseToPinYin
// Please do not use the binary version on NuGet since there are some issues with the data table
This commit is contained in:
@@ -148,7 +148,7 @@ namespace Wox.Plugin.SystemPlugins
|
||||
set
|
||||
{
|
||||
m_Name = value;
|
||||
PinyinName = ChineseToPinYin.ToPinYin(m_Name).Replace(" ", "").ToLower();
|
||||
PinyinName = m_Name.Unidecode();
|
||||
}
|
||||
}
|
||||
public string PinyinName { get; private set; }
|
||||
|
||||
@@ -28,8 +28,8 @@ namespace Wox.Plugin.SystemPlugins
|
||||
set
|
||||
{
|
||||
m_Title = value;
|
||||
string pinyin = ChineseToPinYin.ToPinYin(m_Title);
|
||||
PinyinTitle = pinyin.Replace(" ", "").ToLower();
|
||||
string pinyin = m_Title.Unidecode();
|
||||
PinyinTitle = pinyin;
|
||||
AbbrTitle = AbbrRegexp.Replace(global::System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(pinyin), "");
|
||||
if (AbbrTitle.Length < 2) AbbrTitle = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user