为Windows内置拼写检查提供程序添加拼写检查语言

问题描述 投票:2回答:1

我想在我的c ++应用程序中使用Windows内置拼写检查程序。我正在通过官方拼写检查客户端样本找到here

运行示例时,ISpellCheckerFactory::get_SupportedLanguages为我的机器返回4种语言:en-CA,en-LR,en-PH和en-US。 ISpellCheckerFactory::CreateSpellChecker返回Windows内置拼写检查程序,可以通过调用分别返回“MsSpell”和“Microsoft Windows Spellchecker”的ISpellChecker::get_IdISpellChecker::get_LocalizedName来看到。

这4种语言来自哪里?如何为内置拼写检查器安装更多拼写检查语言?我的应用程序是否可以请求Windows为MsSpell提供程序安装新的拼写检查语言?

MSDN doc似乎没有关于内置拼写检查提供程序的任何信息。我尝试在Windows设置中添加新语言,更改“默认”语言和添加键盘输入,但无论我尝试什么,支持的拼写检查语言列表都不会更改。

c++ windows winapi spell-checking
1个回答
1
投票

您可以添加新语言(法国)并安装基本类型。我使用官方样本Spell Checking Client在Windows 10 17763上测试,它可以工作。

在安装新语言之前:

enter image description here

安装新语言后:

enter image description here

enter image description here

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.