Skip to content

Commit

Permalink
fixed Google Pinyin bug
Browse files Browse the repository at this point in the history
  • Loading branch information
studyzy committed Jan 23, 2017
1 parent 088ff11 commit 997e4eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions IME WL Converter/IME WL Converter/IME/GooglePinyin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,16 @@ public WordLibraryList Import(string path)
public WordLibraryList ImportText(string str)
{
var wlList = new WordLibraryList();
string[] lines = str.Split(new[] {"\r\n"}, StringSplitOptions.RemoveEmptyEntries);
string[] lines = str.Split(new[] {'\r','\n'}, StringSplitOptions.RemoveEmptyEntries);
CountWord = lines.Length;
for (int i = 0; i < lines.Length; i++)
{
string line = lines[i];
CurrentStatus = i;
wlList.AddWordLibraryList(ImportLine(line));
if (line.Length > 0 && line[0] != '#')//注释行
{
wlList.AddWordLibraryList(ImportLine(line));
}
}
return wlList;
}
Expand Down
4 changes: 2 additions & 2 deletions IME WL Converter/IME WL Converter/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("2.1.2.0")]
[assembly: AssemblyFileVersion("2.1.2.0")]
[assembly: AssemblyVersion("2.1.3.0")]
[assembly: AssemblyFileVersion("2.1.3.0")]

0 comments on commit 997e4eb

Please sign in to comment.