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.

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

报告相同问题?

悬赏问题

  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试