【问题标题】:issue installing hunspell on the command line在命令行上安装 hunspell 的问题
【发布时间】:2020-04-11 19:12:03
【问题描述】:

我安装了 hunspell,因为它是 lint on atom 所必需的。虽然当我在命令行上运行hunspell 时,我得到:Can't open affix or dictionary files for dictionary named "en_US".

当我运行hunspell -D 时,我得到:

SEARCH PATH:
.::/usr/share/hunspell:/usr/share/myspell:/usr/share/myspell/dicts:/Library/Spelling:/Users/jessiematias/.openoffice.org/3/user/wordbook:/Users/jessiematias/.openoffice.org2/user/wordbook:/Users/jessiematias/.openoffice.org2.0/user/wordbook:/Users/jessiematias/Library/Spelling:/opt/openoffice.org/basis3.0/share/dict/ooo:/usr/lib/openoffice.org/basis3.0/share/dict/ooo:/opt/openoffice.org2.4/share/dict/ooo:/usr/lib/openoffice.org2.4/share/dict/ooo:/opt/openoffice.org2.3/share/dict/ooo:/usr/lib/openoffice.org2.3/share/dict/ooo:/opt/openoffice.org2.2/share/dict/ooo:/usr/lib/openoffice.org2.2/share/dict/ooo:/opt/openoffice.org2.1/share/dict/ooo:/usr/lib/openoffice.org2.1/share/dict/ooo:  /opt/openoffice.org2.0/share/dict/ooo:/usr/lib/openoffice.org2.0/share/dict/ooo
AVAILABLE DICTIONARIES (path is not mandatory for -d option):

我的印象是我的 Mac OS Catalina 已经安装了英语词典。我必须手动安装另一个字典吗?我该如何解决这个问题?

【问题讨论】:

    标签: macos command-line homebrew zsh hunspell


    【解决方案1】:

    README, 中所述,您需要单独下载字典,例如:

    wget -O en_US.aff  https://cgit.freedesktop.org/libreoffice/dictionaries/plain/en/en_US.aff?id=a4473e06b56bfe35187e302754f6baaa8d75e54f
    wget -O en_US.dic https://cgit.freedesktop.org/libreoffice/dictionaries/plain/en/en_US.dic?id=a4473e06b56bfe35187e302754f6baaa8d75e54f
    

    【讨论】:

      猜你喜欢
      • 2016-07-25
      • 2017-10-01
      • 2021-06-18
      • 2020-09-27
      • 2017-06-07
      • 2019-10-03
      • 2013-07-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多