我想hunspell
在 ubuntu 13.04-box 上使用 emacs24 和德语词典。
要做到这一点我安装hunspell
和hunspell-de
并添加以下到我的.emacs
文件:
(setq ispell-program-name "hunspell")
(setq ispell-dictionary "deutsch8")
Run Code Online (Sandbox Code Playgroud)
当我在 emacs 中打开一个文件并启动时,flyspell-buffer
我得到了Starting new Ispell process [[hunspell::deutsch8]]
但它阻塞了 emacs 缓冲区(鼠标变成了一个旋转磁盘,指示等待)并且无休止地工作而不显示任何结果。所以我的配置肯定有问题。
没有第二行它可以工作,但仅适用于英文文本。
那么什么是设置的最佳方式hunspell
为emacs24
在Ubuntu 13.04德语字典?是否有任何可能的陷阱?
...
When in the -a mode, hunspell will also accept lines of single
words prefixed with any of '*', '&', '@', '+', '-', '~', '#',
'!', '%', '`', or '^'. A line starting with '*' tells hunspell
to insert the word into the user's dictionary (similar to the I
command).
...
Run Code Online (Sandbox Code Playgroud)
我尝试过类似的事情:echo "* my_word" | hunspell -a
但是这个词不在我的字典中,因为解析示例文件再次将其显示为拼写错误的词
这是如何工作的,如何添加自定义单词?
或者使用 Aspell,或者任何写入 Hunspell/Aspell 读取的兼容词典的“通用”程序?