问题标签 [hunspell]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
windows - emacs and hunspell - Can't open affix or dictionary files
I have trouble getting spellchecking to work with Emacs 24.2.1 and Hunspell 1.3.2 on Windows XP.
I have read the help about spelling in the built in manual and searched the internet where I found advice to include these lines to my ~/.emacs.d/init.el
file.
where I made changes regarding the path to the affix and dictionary files and the hunspell.exe.
I verified that hunspell works, by executing it on the command line.
When I type M-x ispell
in emacs I get the following error message
Can't open affix or dictionary flies for dictionary named "german".
@(#) International Ispell Version 3.2.06 (but really Hunspell 1.3.2)
@(#) International Ispell Version 3.2.06 (but really Hunspell 1.3.2)
I tried changing the path to the affix and dictionary files in my init.el to just the name of the affix and dic name, i.e. "de_DE_frami"
since hunspell knows where to find them, but it didn't help in emacs.
iphone - 自定义词典实施:我可以创建自定义词缀文件吗?
我正在使用这个Hunsplell iOS 实现。
我想用我选择的单词创建我的自定义词典和词缀文件。
我知道如何创建 .dic 文件,但我不知道如何为相应的 .dic 文件生成扩展名为 .aff 的附加文件。有没有我通过谷歌搜索没有得到的工具或技术?
utf-8 - Hunspell 中带有 UTF-8 的大写单词
我正在尝试使用Hunspell进行波兰语拼写检查。
我确实将字典的编码从http://wiki.openoffice.org/wiki/Dictionaries转换为 UTF-8。但是,带有非拉丁字符的大写单词(即第一个字母为大写)被视为拼写错误(但拼写检查器建议使用相同的单词)。其他的话就好了。
几年前在他们的错误跟踪中提出了这样的问题带有前导大写字母和 UTF-8 - ID: 1432866 的假阴性。但是,要么这个解决方案不起作用,要么我错过了一些东西。
这个问题有解决方案吗?
在我的pl_PL.aff
文件中,前导行是:
(以防万一,我在 Sublime Text 2 中使用它,但我怀疑它是否有所作为。)
c# - Using the C# NHunspell how do I check words?
Using the C# NHunspell, how do I check if a word is spelled correctly and if not what the correct spelling is?
I've imported the NHunspell.dll into the project. And have looked at the documentation.
But being a bit new at reading documentation it's hard to know where to start. Can someone provide an example on how to check if a word is spelled correctly? Basically I need a Helloworld for NHunspell.
c++ - 使用系统级词典
我一直在研究一个名为 RoboJournal 的基于 Qt 的 C++ 程序。它使用 Hunspell 进行拼写检查。现在,它会自动将自己的字典文件(en_US.dic)安装到用户的主文件夹(即~/.robojournal/en_US.dic)中。这在 Windows 等不提供开箱即用兼容字典的操作系统上可以正常工作,但我想解决一个设计问题:
在 Linux 上,有几个 en_US.dic 实例(最明显的是在 /usr/share/hunspell/en_US.dic 中)这个副本显然是要在所有使用 Hunspell 的程序之间共享,这意味着我的程序应该使用它,如果可能而不是依靠自己的副本。但是/usr/share/hunspell/中的副本需要超级用户权限才能修改;虽然这意味着用户可以从中读取,但除非程序以超级用户权限运行,或者除非我对文件进行 chmod 以允许所有人写入,否则他们无法向其中添加单词。这个问题使 /usr/share/hunspell/en_US.dic 副本的用处大大降低。
有没有办法让用户修改 /usr/share/hunspell/en_US.dic 文件而无需超级用户权限或要求他们先 chmod 文件?我的 Debian 软件包维护者说我的应用程序应该尽可能使用全局系统资源。
spell-checking - 如何将 ispell 字典导入 hunspell?
我下载了字典:American-huge for ispell,我正在尝试从中提取单词列表。我很难将它导入 aspell 并使用 aspell 转储它,但我不想:(
我读到 hunspell 我可以在我的程序中使用 hunspell,所以下一个选择是使用 hunspell 字典,但问题是我没有找到 hunspell 的等效字典(巨大)。
有没有办法将 ispell 字典导入 hunspell ?
lucene - Lucene 4.1:如何使用 HunspellStemmer 搜索文本并获得建议?
我想使用 HunspellStemmer 解析带有 lucene 的文本文件以检查拼写错误。我将使用 Hunspell 词典,这就是我想使用 HunspellStemmer 的原因。
在这一点上,我不确定我应该如何解析文件并进行检查。
如果关键字出现在 HunspellDictionary 中,我可以使用带有 WordFilter 的标准分析器来索引文件中的文本并逐词检查。
我这样做了,它有效,不确定它是否是最佳解决方案,但如果我想按不存在的单词输出 3-5 条建议,我不知道该怎么做。
当我使用 PlainTextDictionnary 时,我可以使用 IndexerSearch,但不知道如何使用 HunspellDictionary 获得该功能。(它没有实现字典)。
任何帮助将不胜感激。
谢谢
我想检查的例子:地狱,你好,大厅,你好。我希望对使用 Hunspell 的“helli”有建议。
aspell - 为什么 aspell 会提示它无法检查的单词?
这是我运行的命令:
为什么 aspell 提示这个词(“文明”),但没有检查它的拼写?相比之下,hunspell 似乎做到了这一点
但这可能是因为两个拼写检查器使用不同的字典。
编辑:在不同的机器和不同/旧的 aspell 版本上运行它似乎可以工作:
c# - 拼写检查有什么好处?谷歌拼写检查器或 Hunspell
对于我的 asp.net 网站,我需要拼写检查功能。我找到了一些有趣的解决方案。
1. 谷歌拼写检查器
2. Hunspell。
两者都是免费的。据我了解,我意识到这两种方法都有一些利弊。
对于谷歌拼写检查器,它为不正确的单词提供了更多正确的单词,但 Hunspell 给出了一些建议。谷歌有最新的建议,但 Hunspell,它依赖于 Open Office 字典。
就我而言,我只需要一个建议。对于缺点,我必须依靠谷歌进行拼写检查。如果 Google 服务关闭,它也会影响我的网站。
那么,什么将适合我的网站。选择 Google 拼写检查器是个好主意吗?是否有任何非免费的拼写检查解决方案?