【发布时间】:2017-09-28 19:55:08
【问题描述】:
我想在英语、匈牙利语和斯洛伐克语中使用 pspell。我已经使用apt-get install aspell-hu 和apt-get install aspell-sk 安装了hu 和sk 语言包。如果我在 aspell 中检查已安装的字典,我可以看到它没问题:
/# aspell dicts
en
en-variant_0
...
en_US-wo_accents
hu
sk
sk-extended
sk_SK
sk_SK-extended
如果我在命令行中使用 aspell 检查文件,它也可以:
/# aspell --lang=hu check README.txt
但在 PHP 中我遇到以下错误:
pspell_new(): PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "hu".
对于英语来说,它工作得很好。
【问题讨论】: