有没有人有在Silverlight中实现Hunspell的好方法?我看到一些第三方TextBox控件可供购买,但我只是希望在后端利用Hunspell。
发布于 2012-01-07 22:11:16
设计一个WCF Ria服务,列出拼写错误的单词及其建议。然后就是找出如何突出拼写错误的单词的问题。
[Invoke]
public IEnumerable<WrongWord> SpellCheck(string Passage)
{
}
public class WrongWord
{
[Key] public property int Id {get; set; }
public string Word {get; set; }
public IEnumerable<string> Suggestions {get; set; }
}你可以使用.NET绑定,例如http://nhunspell.sourceforge.net/,或者你也可以自己包装hunspell。
https://stackoverflow.com/questions/8449815
复制相似问题