Skip to content

Commit

Permalink
Update Readme about version remark.
Browse files Browse the repository at this point in the history
  • Loading branch information
studyzy committed Jun 8, 2019
1 parent 9396b70 commit 08fa93f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 11 deletions.
4 changes: 3 additions & 1 deletion src/IME WL Converter Win/Forms/HelpForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ private void HelpForm_Load(object sender, EventArgs e)
helpString += "2.2支持手心输入法和最新版Win10微软拼音(用户自定义短语)\r\n";
helpString += "2.3支持Win10微软拼音(用户自定义短语)对其他输入法编码的支持\r\n";
helpString += "2.4版增加了最新搜狗输入法备份词库的解析,目前解析后只有词语和词频,没有拼音,所以拼音是根据词语重新生成的。(感谢GitHub上的h4x3rotab提供python版的解析算法,感谢tmxkn1提供了C#版的实现)\r\n";
helpString += "2.5版支持微软五笔,支持Linux和macOS和更多命令行功能\r\n";
helpString += "2.6版增加了对Emoji颜文字的支持,微软拼音自定义短语支持小鹤双拼编码\r\n";
helpString += "关于各种输入法的词库转换操作方法可以参见项目网站(https://github.com/studyzy/imewlconverter/)\r\n";
helpString +=
"如果您觉得深蓝词库转换能够给您的生活带来了极大的方便,可以通过Paypal或者支付宝捐赠该软件(https://github.com/studyzy/imewlconverter/wiki/Donate)。\r\n";
"如果您觉得深蓝词库转换能够给您的生活带来了极大的方便,可以通过微信或者支付宝捐赠该软件(https://github.com/studyzy/imewlconverter/wiki/Donate)。\r\n";
helpString += "有任何问题和建议请联系我:[email protected]\r\n";

richTextBox1.Text = helpString;
Expand Down
23 changes: 16 additions & 7 deletions src/IME WL Converter Win/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,7 @@ private void btnConvert_Click(object sender, EventArgs e)
mainBody.BatchFilters = GetBatchFilters();
mainBody.ReplaceFilters = GetReplaceFilters();

mainBody.ProcessNotice+=new ProcessNotice((string notice) => {
richTextBox1.Invoke(new Action(() => richTextBox1.AppendText(notice + "\r\n")));
});
mainBody.ProcessNotice+=new ProcessNotice((string notice) => { RichTextBoxShow(notice); });
timer1.Enabled = true;
backgroundWorker1.RunWorkerAsync();
}
Expand Down Expand Up @@ -502,7 +500,7 @@ private void timer1_Tick(object sender, EventArgs e)
}
catch (Exception ex)
{

Debug.WriteLine(ex.Message);
}
}
}
Expand Down Expand Up @@ -530,7 +528,7 @@ private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
catch(Exception ex)
{
mainBody.Dispose();
this.richTextBox1.AppendText(ex.Message);
RichTextBoxShow(ex.Message);
throw ex;
}
}
Expand All @@ -541,19 +539,30 @@ private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
}
timer1.Enabled = false;
}

private void RichTextBoxShow(string msg)
{
if (richTextBox1.InvokeRequired)
{
richTextBox1.Invoke(new Action(() => richTextBox1.AppendText(msg + "\r\n")));
}
else
{
richTextBox1.AppendText(msg + "\r\n");
}
}

private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
timer1.Enabled = false;
mainBody.StopNotice();
toolStripProgressBar1.Value = toolStripProgressBar1.Maximum;
ShowStatusMessage("转换完成", false);
if (e.Error != null)
{
MessageBox.Show("不好意思,发生了错误:" + e.Error.Message);
if (e.Error.InnerException != null)
{
richTextBox1.Text = (e.Error.InnerException.ToString());
RichTextBoxShow(e.Error.InnerException.ToString());
}
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/IME WL Converter Win/Readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ QQ的分类词库格式还没有研究出来怎么解析。
2.3版增加了文件夹作为源的功能,可以指定一个文件夹,将文件夹中的所有词库文件转换为另一种词库。支持Windows界面(拖拽或手动编辑源词库路径为文件夹路径)和命令行的操作。修复了Rime输入法的一个Bug。
2.4版增加了最新搜狗输入法备份词库的解析,目前解析后只有词语和词频,没有拼音,所以拼音是根据词语重新生成的。(感谢GitHub上的h4x3rotab提供python版的解析算法,感谢tmxkn1提供了C#版的实现)
2.5版增加了Win10微软五笔的用户自定义短语的导入导出,增加了Linux和macOS命令行模式的支持,增强了命令行的设置,修复了一些发现的Bug。

2.6版增加了对Emoji颜文字的支持,微软拼音自定义短语支持小鹤双拼编码。
如果还有更多的词库需要转换,或者对该词库转换工具有什么建议,请联系我:[email protected]
我的博客:http://studyzy.cnblogs.com

Expand Down
2 changes: 1 addition & 1 deletion src/ImeWlConverterCmd/Readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ QQ的分类词库格式还没有研究出来怎么解析。
2.3版增加了文件夹作为源的功能,可以指定一个文件夹,将文件夹中的所有词库文件转换为另一种词库。支持Windows界面(拖拽或手动编辑源词库路径为文件夹路径)和命令行的操作。修复了Rime输入法的一个Bug。
2.4版增加了最新搜狗输入法备份词库的解析,目前解析后只有词语和词频,没有拼音,所以拼音是根据词语重新生成的。(感谢GitHub上的h4x3rotab提供python版的解析算法,感谢tmxkn1提供了C#版的实现)
2.5版增加了Win10微软五笔的用户自定义短语的导入导出,增加了Linux和macOS命令行模式的支持,增强了命令行的设置,修复了一些发现的Bug。

2.6版增加了对Emoji颜文字的支持,微软拼音自定义短语支持小鹤双拼编码。
如果还有更多的词库需要转换,或者对该词库转换工具有什么建议,请联系我:[email protected]
我的博客:http://studyzy.cnblogs.com

Expand Down
10 changes: 9 additions & 1 deletion src/ImeWlConverterCore/MainBody.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public class MainBody:IDisposable
private IWordRankGenerater wordRankGenerater;
private Timer timer;


public IList<string> ExportContents { get; set; }
public MainBody()
{
Expand Down Expand Up @@ -157,7 +158,14 @@ public int Count

public IList<IBatchFilter> BatchFilters { get; set; }


public void StopNotice()
{
this.timer.Stop();
}
public void StartNotice()
{
this.timer.Start();
}
//public List<string> GetRealPath(IList<string> filePathes)
//{
// var list = new List<string>();
Expand Down

0 comments on commit 08fa93f

Please sign in to comment.