doujiepin5547 2014-10-03 10:55
浏览 15
已采纳

如何强制附魔在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.

  • 写回答

1条回答 默认 最新

  • ds355020 2014-11-18 15:13
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?