如何强制附魔在php中使用Hunspell

如何强制附魔在php中使用Hunspell

问题描述:

Is there a way to force php's enchant module to use a particular spell checking engine?

I have libs for aspell, myspell, hunspell, etc. installed. When requesting a dict, it seems I can only specify a language tag like 'en_US', etc without any real control over which underlying implementation to use while checking. Is there a way I can force enchant to prioritize using hunspell (or any other preferred/supported engine) when spell-checking.

有没有办法强制php的附魔模块使用特定的拼写检查引擎? p>

我安装了aspell,myspell,hunspell等的库。 在请求dict时,我似乎只能指定一个类似'en_US'等的语言标记,而无法真正控制在检查时使用哪个底层实现。 有没有办法在拼写检查时强制附魔优先使用hunspell(或任何其他首选/支持的引擎)。 p> div>

There should be a enchant.ordering file. It is used to tell enchant which spell checker in which sequence to use for a language.
I am using it on ubuntu, the path of the file is /usr/local/share/enchant/enchant.ordering
I don't know for windows.