Skip to content

Commit

Permalink
prepare for v2.8 release
Browse files Browse the repository at this point in the history
  • Loading branch information
studyzy committed Apr 4, 2020
1 parent 8b96908 commit e639d9a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/IME WL Converter Win/Forms/HelpForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ private void HelpForm_Load(object sender, EventArgs e)
helpString += "2.5版支持微软五笔,支持Linux和macOS和更多命令行功能\r\n";
helpString += "2.6版增加了对Emoji颜文字的支持,微软拼音自定义短语支持小鹤双拼编码\r\n";
helpString += "2.7版增加了对QQ拼音新细胞词库qcel格式的支持,增加了MacOS原生拼音自定义短语plist的支持。升级dotnet core到3.1。\r\n";
helpString += "关于各种输入法的词库转换操作方法可以参见项目网站(https://github.com/studyzy/imewlconverter/)\r\n";
helpString += "2.8版增加了对微软拼音自学习词库的导入导出功能,增强了微软拼音自定义短语对双拼的支持,增加错误日志输出,启用新的CI和CD。";
helpString += "关于各种输入法的词库转换操作方法或提交新的Issue,请前往项目网站(https://github.com/studyzy/imewlconverter/)\r\n";
helpString +=
"如果您觉得深蓝词库转换能够给您的生活带来了极大的方便,可以通过微信或者支付宝捐赠该软件(https://github.com/studyzy/imewlconverter/wiki/Donate)。\r\n";
helpString += "有任何问题和建议请联系我:[email protected]\r\n";
Expand Down
1 change: 1 addition & 0 deletions src/IME WL Converter Win/Readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ QQ的分类词库格式还没有研究出来怎么解析。
2.5版增加了Win10微软五笔的用户自定义短语的导入导出,增加了Linux和macOS命令行模式的支持,增强了命令行的设置,修复了一些发现的Bug。
2.6版增加了对Emoji颜文字的支持,微软拼音自定义短语支持小鹤双拼编码。
2.7版增加了对QQ拼音新细胞词库qcel格式的支持,增加了MacOS原生拼音自定义短语plist的支持。升级dotnet到3.1。
2.8版增加了对微软拼音自学习词库的导入导出功能,增强了微软拼音自定义短语对双拼的支持,增加错误日志输出,启用新的CI和CD。

如果还有更多的词库需要转换,或者对该词库转换工具有什么建议,请联系我:[email protected]
我的博客:http://studyzy.cnblogs.com
Expand Down
6 changes: 6 additions & 0 deletions src/ImeWlConverterCore/Helpers/FileOperationHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ namespace Studyzy.IMEWLConverter.Helpers
{
public static class FileOperationHelper
{
public static string GetCurrentFolderPath()
{
var type = (new MainBody()).GetType();
return Path.GetDirectoryName(type.Assembly.Location);
}

/// <summary>
/// 根据词库的格式或内容判断源词库的类型
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/ImeWlConverterCore/IME/Win10MsPinyinSelfStudy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ public IList<string> Export(WordLibraryList wlList)
var fileList = "";
for (var i = 0; i < list.Count; i++)
{
string tempPath = Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName) + "\\Win10微软拼音自学习词库"+i+".dat";
string tempPath = Path.Combine(FileOperationHelper.GetCurrentFolderPath(), "Win10微软拼音自学习词库" + i + ".dat");
if (!string.IsNullOrEmpty(this.ExportFilePath))//For test
{
tempPath = this.ExportFilePath;
Expand Down
2 changes: 1 addition & 1 deletion src/ImeWlConverterCoreTest/Win10MsPinyinSelfStudyTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void TestExport1()
wl.Add(wl1);

var export = new Win10MsPinyinSelfStudy();
export.ExportFilePath = "c:\\Temp\\win10selfstudy5.dat";
//export.ExportFilePath = "c:\\Temp\\win10selfstudy5.dat";
var filePath =export.Export(wl);
Debug.WriteLine(filePath[0]);
}
Expand Down

0 comments on commit e639d9a

Please sign in to comment.