Windows App拼写检查 [英] Windows App spellcheck

查看:127
本文介绍了Windows App拼写检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否还有另一种拼写检查Windows应用程序的方法,而不是我一直使用的方法:"Microsoft.Office.Interop.Word".我无法购买拼写检查附件.我也不能使用开源,并且希望拼写检查是动态的.有什么建议吗?

I was wondering if there is another way to spell check a Windows app instead what I've been of using: "Microsoft.Office.Interop.Word". I can't buy a spell checking add-on. I also cannot use open source and would like the spell check to be dynamic..any suggestions?

我已经看到了几个类似的问题,问题在于它们都建议使用开源应用程序(我很喜欢)或Microsoft Word.

I have seen several similar questions, the problem is they all suggest using open source applications (which I would love) or Microsoft Word.

我当前正在使用Word进行拼写检查,这会使我当前的应用程序变慢,并在我的应用程序中引起一些故障. Word不是一个干净的解决方案,所以我真的很想找到其他方法..将我的应用程序重新创建为WPF应用程序是我的唯一选择,这样我就可以利用

I am currently using Word to spell check and it slows my current application down and causes several glitches in my application. Word is not a clean solution so I'm really wanting to find some other way.. Is my only other option to recreate my app as a WPF app so I can take advantage of the SpellCheck Class?

推荐答案

如果我是我,我将从英语维基词典中下载数据并进行解析,以获取所有英语单词的列表(例如).然后,您可以自己轻松地至少编写一个原始的拼写检查器.实际上,我在自己的数学应用程序 AlgoSim 中使用了英语维基词典的解析版本.如果您愿意,我可以向您发送数据文件.

If I were you I would download the data from the English Wiktionary and parse it to obtain a list of all English words (for instance). Then you could rather easily write at least a primitive spell-checker yourself. In fact, I use a parsed version of the English Wiktionary in my own mathematical application AlgoSim. If you'd like, I could send you the data file.

更新

我现在已经在 english.zip中发布了已解析的单词列表(942 kB,383735个条目,zip) .数据来源于英语维基词典,因此,它是受知识共享署名/类似共享许可的许可.

I have now published a parsed word list at english.zip (942 kB, 383735 entries, zip). The data originates from the English Wiktionary, and as such, is licensed under the Creative Commons Attribution/Share-Alike License.

要获得这样的列表,您可以将Wiktionary上的所有文章下载为一个巨大的XML文件,其中包含所有Wiki和HTML格式的文章.因此,这或多或少是微不足道的解析.或者,您可以在网站上运行漫游器.我得到了Wiktionary的用户的帮助以获取经过解析的文件(尽管我似乎已经忘记了他的名字...),并且该文件(english.txt中english.zip的文件)是我得到的文件的进一步处理版本

To obtain a list like this, you can either download all articles on Wiktionary as a huge XML file containing all Wiki- and HTML-formatted articles. This is then more or less trivial to parse. Alternatively, you can run a bot on the site. I got help to obtain a parsed file from a user at Wiktionary (I seem to have forgotten his name, though...), and this file (english.txt in english.zip) is a further processed version of the file I got.

这篇关于Windows App拼写检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆