MFC 中的拼写检查
我一直在寻找一种多语言(特别是英语和瑞典语)支持拼写检查解决方案,可以插入商业 MFC/C++ 应用程序。
我的 Google 搜索排名靠前的是 Wintertree,它出现了满足所有标准,但站点许可证的价格并不便宜,为 3500 美元。现在我知道使用一些开源选项可能需要几天的时间才能工作,这本身就是有成本的,但我仍然想知道是否有任何备受推崇且更便宜的选项。或者当然是免费的,但我们的产品是闭源的,我看到的许多免费选项都是 GPL。
感谢您的任何建议或个人经验。
I was looking for a multi-language (specifically English & Swedish) supporting spell-check solution that can plug into a commercial MFC/C++ application.
Top of my Google search was Wintertree, which appears to meet all criteria but is hardly cheap at $3500 for a site license. Now I know that using some open-source option could take several days' work to get working, which has a cost all of its own, but still I wondered if there any well-regarded options out there of a cheaper nature. Or free of course, but our product is closed source and many free options I saw are GPL.
Thanks for any suggestions, or personal experience.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Aspell。它支持瑞典语并使用 GNU Lesser General Public License,这应该适合您的项目。
Aspell. It supports Swedish and uses the GNU Lesser General Public License, which should be OK for your project.
查看拼写检查编辑控件(使用 HunSpell)。
它使用 Hunspell,它是“OpenOffice.org 和 Mozilla Firefox 3 & Thunderbird 的默认拼写检查器”。并且它是“根据 GPL/LGPL/MPL 三重许可证”获得许可的。
Have a look at Spell Checking Edit Control (Using HunSpell).
It uses Hunspell which is "the default spell checker of OpenOffice.org and Mozilla Firefox 3 & Thunderbird." and it is licensed "under GPL/LGPL/MPL tri-license.".
SpellEdit 是一个很好的控件(您可能需要稍微调整一下,以便它使用较新的 VS 版本进行编译)。
它使用 MySpell,它是 BSD 许可的,可以在商业产品中使用。
通常唯一获得 GPL 许可的是不同语言的词典。但这不是一个大问题:您可以告诉您的用户与您的商业应用程序分开下载/安装它们。
SpellEdit is a nice control (you might have to tweak it a little bit so it compiles with newer VS versions).
It uses MySpell which is BSD licensed and can be used in commercial products.
The only thing that is usually GPL licensed are the dictionaries for different languages. But that's not a big problem: you can just tell your users to download/install those separately from your commercial app.
我编写了一个使用 Microsoft Word 拼写检查功能的 DLL。您可以使用一些 COM 调用,例如
CheckSpelling
或GetSpellingSuggestions
。麻烦的部分是将这些函数包装成真正有用的东西,你知道很多COleVariant
在四处飞翔。选择建议的对话框总共需要大约一个小时的时间。该解决方案的最大好处是使用用户的词典,因此“他的”单词已经可用。
I have written a DLL that uses the spell-checking-capabilities of Microsoft Word. There are some COM-calls like
CheckSpelling
orGetSpellingSuggestions
you can use. The cumbersome part is the wrapping of this functions into something really useful, you know a lot ofCOleVariant
s flying around an so on.The dialog for selecting a suggestions is about one hour of work altogether. The big bonus of this solution is the use of the dictionary of the user, so "his" words are already available.