类似于这篇文章的问题:How to disable default English dictionary in Pspell and use only Custom dictionary?
我创造了我的定制字典。在控制台里进行测试--一切正常。控制台查询如下:
echo Engenier | aspell -a -d /var/www/Lib/profiles.rws结果-只有1项建议。正确的结果
但我不能用拼字重复这个结果
我试过这个变体(http://board.phpbuilder.com/showthread.php?10298706-Resolved-pspell-hell),但这对我没有帮助。
所有的时间在许多变体加载基"EN“字典与我的自定义。但我只需要定制
我怎么能只用我的老二?
PS: p拼写-用于php http://www.php.net/manual/en/ref.pspell.php的拼写
发布于 2014-12-15 11:49:59
嗨,我遵循下面的步骤,只允许我的自定义字典。
自定义字典的创建:
touch ~/custom.txtsudo aspell --lang=en create master /usr/lib/aspell/custom.rws < ~/custom.txt
cd /usr/lib/aspell/en.multi
并添加以下一行:
add custom.rws5 .Then新词应该在拼写中提供给你。如果以后要向此列表中添加单词,请编辑~/custom.txt文件并再次运行以下命令:
sudo aspell --lang=en create master /usr/lib/aspell/custom.rws < ~/custom.txt删除默认英语词典:
打开usr/lib/aspell/en.multi文件。并注释以下一行
#add en-wo_accents.multi然后,定制的词应该只适用于你的阿法尔。
https://stackoverflow.com/questions/23133601
复制相似问题