3

有人对Hunspell在 Silverlight 中实施的好方法有任何想法吗?我看到一些 3rd 方TextBox控件可供购买,但我只是想Hunspell在后端使用。

4

1 回答 1

0

设计一个包含拼写错误单词列表及其建议的 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。

于 2012-01-07T14:11:15.937 回答