如何拼写检查单词而忽略可选的连字符?
我正在使用 RTE (TinyMce) 在浏览器中创建文本。 RTE 在用户写入时将不可见的可选连字符(代码:'' 或 '\u00ad')插入到最小长度的单词中以进行连字符。
我现在遇到的问题是找到一个拼写检查器,能够检查我的单词,即使它们不仅包含字母,还包含可选的连字符。我确实只找到了拼写检查器,即检查单词“goldfish”时,将其视为两个单词,原因是“gold”和“fish”之间有可选的连字符。
是否有一个拼写检查器可以以任何方式修改以忽略它们?有没有办法配置拼写检查器以忽略此类软连字符? (该解决方案不需要是开源的。)
将单词添加到字典中不是一种选择。
该解决方案应该适用于 Safari 或 FireFox。
I am using a RTE (TinyMce) for text creation in a browser. The RTE is inserting non-visible optional hyphens (code: '' or '\u00ad') into words of a minimum length for hyphenation as the user writes.
The problem i got now is to find a spellchecker that is able to check my words even though they consist not only of letters but additionally of optional hyphens. I did only find spell checkers that i.e. checking the word "goldfish" looked at it as two words cause of the optional hyphen between "gold" and "fish".
Is there a spellchecker that is able to be modified in any way to ignore them? Is there a way to configure a spellchecker to ignore such soft-hyphens? (The solution does not need to be open-source.)
Adding words to a dictionary is not an option.
The solution should work for Safari or FireFox.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了解决我的问题的方法,所以我会回答我自己的问题。
Hunspell 似乎忽略了那些软连字符并与 FireFox(插件)一起使用。
I found a solution to my problem, so i'll answer my own question.
Hunspell seems to ignore those soft-hyphens and works with FireFox (plugin).