将 Hunspell 与 Silverlight 结合使用

发布于 2024-12-20 05:56:36 字数 114 浏览 2 评论 0原文

有人知道在 Silverlight 中实现 Hunspell 的好方法吗?我看到一些第三方 TextBox 控件可供购买,但我只是想在后端使用 Hunspell

Does anybody have any ideas of a good way to implement Hunspell in Silverlight? I see some 3rd party TextBox controls available for purchase, however I'm just looking to utilize Hunspell in the backend.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

|煩躁 2024-12-27 05:56:36

设计一个 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/ 或者您可以包装自己拼写。

Design a WCF Ria Services that a list of misspelled words and their suggestions. Then it is a matter of figuring out how to highlight the mispelled words.

[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; }
}

You probably can use the .NET bindings, e.g. http://nhunspell.sourceforge.net/ or you can wrap hunspell yourself.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文