Aspell - 自定义词典中的特殊字符

发布于 2025-01-12 10:03:28 字数 305 浏览 2 评论 0原文

我想将 Aspell 与自定义词典一起使用,以在 Angular + PHP 应用程序(扩展名 mekras/php-speller)中进行拼写检查。问题是我无法将一些特定单词添加到用户提供的词典中(默认词典效果很好)。

是否甚至可以添加带有“特殊字符”的自定义单词,例如 ProductDW40 或 Special©?目前代码返回消息:单词“productDW40”无效。字符“4”(U+34) 可能不会出现在单词中间。\n"。

默认编码是 UTF-8。

如果不可能,那么也许有人可以推荐其他解决方案或外部服务进行拼写检查?

谢谢你提前。

I want to use Aspell with the custom dictionaries for spell checking in Angular + PHP application (extension mekras/php-speller). The problem is that I can't add some specific words to the dictionary provided by the users (default dictionaries works great).

Is it even possible to add custom words with "special characters" like productDW40 or Special©? For now code returns message: The word "productDW40" is invalid. The character '4' (U+34) may not appear in the middle of a word.\n".

Default encoding is UTF-8.

If it's not possible then maybe someone can recommend another solutions or external services for spell checking?

Thank you in advance.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文