WPF拼写检查特定语言 [英] WPF spell check for an specific language

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

问题描述

大家好。



我们正在开发一个需要多语言拼写检查的应用程序。对于使用英语,法语,西班牙语和德语的情况,应用RichTextBox使用xml属性完美语言:lang = ...但是当我们使用加泰罗尼亚语语言应用遮瑕膏时,这不起作用。我们尝试将属性xml:lang =" ca"这是推荐rfc 3066的代码。我明白.net应该采用我之前提到的语言来检查它是否写得正确。是否必须安装任何加泰罗尼亚语言包?是不是.net支持这种语言?



谢谢和问候。

Hi to all.

We are developing an application that needs a spell checker in multilanguage beginning. For cases in English, French, Spanish and German applying the RichTextBox works perfect language with xml property: lang = ... But when we apply the concealer with the Catalan language, this does not work. We tried putting the property xml: lang = "ca" which is code that recommends rfc 3066. I understand that .net should take the words of the languages I mentioned before somewhere to check whether it is correctly written. Are any language pack for Catalan must be installed? Are not .net support for this language?

Thanks and regards.

推荐答案

按照 http://msdn.microsoft.com/en-us /library/system.windows.controls.spellcheck(v=vs.110).aspx [ ^ ]:



In。 NET Framework 4,WPF提供英语,法语,德语和西班牙语的词典。要添加自定义词典,请将词典文件的位置添加到CustomDictionaries集合中。



欲了解更多信息,请访问:

http://stackoverflow.com/questions/19519804/wpf-spell-check-languages [ ^ ]



如何添加自定义词典:

http:// blogs .msdn.com / b / text / archive / 2009/10/02 / custom-dictionaries.aspx [ ^ ]

http://www.dotnetfunda.com/articles/show/842/spellchecker-in-wpf [ ^ ]

http://msdn.microsoft.com/en-us/library/system.windows。 controls.spellcheck.customdictionaries(v = vs.110).aspx [ ^ ]



谢谢。
As per http://msdn.microsoft.com/en-us/library/system.windows.controls.spellcheck(v=vs.110).aspx[^]:

"In .NET Framework 4, WPF provides dictionaries for English, French, German, and Spanish. To add a custom dictionary, add the location of the lexicon file to the CustomDictionaries collection."

For More have a look on:
http://stackoverflow.com/questions/19519804/wpf-spell-check-languages[^]

How to add custom dictionary:
http://blogs.msdn.com/b/text/archive/2009/10/02/custom-dictionaries.aspx[^]
http://www.dotnetfunda.com/articles/show/842/spellchecker-in-wpf[^]
http://msdn.microsoft.com/en-us/library/system.windows.controls.spellcheck.customdictionaries(v=vs.110).aspx[^]

Thanks.


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

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