Google Chrome中的自定义拼写

3
Google Chrome是否允许对默认的拼写词典进行任何操作?我已经搜索了相关资料,但找不到答案。我正在尝试开发一个适用于Google Chrome Web应用(如Google文档)的拼写检查器。目前,我的拼写检查应用程序无法在与Google文档或Office 365相关的任何文本字段或区域中工作。此外,我有自己的单词列表,想将其纳入Chrome的拼写词典中。这可行吗?第三方自定义字典可以添加到Google Chrome的拼写工具中吗?我只是希望能找到一些解释这个问题的资源,因为我找不到任何资料。
1个回答

6

问题跟踪器上快速搜索后,我找到了一个问题,它为扩展平台添加了(文档不好的)功能。

根据提交消息,你可以在清单文件中使用“spellcheck”键添加新词典。

{
  "name": "Dictionary Test",
  "description": "Load a spellcheck dictionary.",
  "version": "1.0",
  "manifest_version": 2,

  "spellcheck": {
    "dictionary_language": "testEnglish",
    "dictionary_locale": "te",
    "dictionary_format": "hunspell",
    "dictionary_path": "testEnglish.bdic"
  }
}

由于该功能的文档不存在,如果您想知道如何使用此功能,则必须阅读Chromium的源代码。这是添加新功能到扩展API的提交差异:https://chromiumcodereview.appspot.com/download/issue14064004_10001.diff 以下是有关字典格式的一些文档:http://www.chromium.org/developers/how-tos/editing-the-spell-checking-dictionaries

非常感谢您提供的信息! - user3221247

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接