特别是,我想下载希腊语和德语的。那可能吗?
如果没有,那么据我所知,我必须通过使用 libreoffice 项目中的相应文件来构建自己的字典。我对吗?
如果您使用 linux,例如 Ubuntu
从终端类型:
sudo apt-get install myspell-de-de hunspell-el
您可以从 Python 提示符类型中检查它是否可用:
import enchant
print enchant.list_languages()
要检查它是否有效,请从 Python 提示符键入:
import enchant
d = enchant.Dict('de_DE') # or 'el_GR'
d.check("Hello") # False
d.check("Guten") # True
有关更完整的字典列表,请参阅:
http://packages.ubuntu.com/xenial/myspell-dictionary
http://packages.ubuntu.com/xenial/aspell-dictionary
http://packages.ubuntu.com/source/xenial/libreoffice-dictionaries