标签: hunspell

使 hunspell 使用 emacs 和德语

我想hunspell在 ubuntu 13.04-box 上使用 emacs24 和德语词典。

要做到这一点我安装hunspellhunspell-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 缓冲区(鼠标变成了一个旋转磁盘,指示等待)并且无休止地工作而不显示任何结果。所以我的配置肯定有问题。

没有第二行它可以工作,但仅适用于英文文本。

那么什么是设置的最佳方式hunspellemacs24在Ubuntu 13.04德语字典?是否有任何可能的陷阱?

emacs spell-checking hunspell

9
推荐指数
1
解决办法
7187
查看次数

hunspell:从命令行将单词添加到字典中

hunspell 手册页

...
    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 读取的兼容词典的“通用”程序?

spell-checking hunspell

6
推荐指数
1
解决办法
5028
查看次数

标签 统计

hunspell ×2

spell-checking ×2

emacs ×1