我想在我的c ++应用程序中使用Windows内置拼写检查程序。我正在通过官方拼写检查客户端样本找到here。
运行示例时,ISpellCheckerFactory::get_SupportedLanguages
为我的机器返回4种语言:en-CA,en-LR,en-PH和en-US。 ISpellCheckerFactory::CreateSpellChecker
返回Windows内置拼写检查程序,可以通过调用分别返回“MsSpell”和“Microsoft Windows Spellchecker”的ISpellChecker::get_Id
和ISpellChecker::get_LocalizedName
来看到。
这4种语言来自哪里?如何为内置拼写检查器安装更多拼写检查语言?我的应用程序是否可以请求Windows为MsSpell提供程序安装新的拼写检查语言?
MSDN doc似乎没有关于内置拼写检查提供程序的任何信息。我尝试在Windows设置中添加新语言,更改“默认”语言和添加键盘输入,但无论我尝试什么,支持的拼写检查语言列表都不会更改。