Bug 140638 - [GTK] Add API to determine which spell checking dictionaries are available
Summary: [GTK] Add API to determine which spell checking dictionaries are available
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Enhancement
Assignee: Michael Catanzaro
URL:
Keywords:
Depends on:
Blocks: 153291
  Show dependency treegraph
 
Reported: 2015-01-19 13:00 PST by Michael Catanzaro
Modified: 2016-01-29 08:48 PST (History)
5 users (show)

See Also:


Attachments
Patch (8.80 KB, patch)
2015-01-19 13:06 PST, Michael Catanzaro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2015-01-19 13:00:32 PST
We either need to install missing spell checking dictionaries (either automatically or via new API), or else provide API for applications to figure out what they need to install for spell checking to work. Carlos requested the later.
Comment 1 Michael Catanzaro 2015-01-19 13:06:00 PST
Created attachment 244921 [details]
Patch
Comment 2 Michael Catanzaro 2015-01-19 14:34:39 PST
mrobinson:  So I guess the issue with the API is this:
mrobinson:  The API allows us to get the list without making implementation details assumptions, but the installation requires making the same assumptions.

I'd really like to pair it with a function to install the dictionaries, something like:

void
webkit_web_context_install_spell_checking_dictionaries (WebKitWebContext*, char** dictionaries, GCancellable*, GAsyncReadyCallback, gpointer)

gboolean
webkit_web_context_install_spell_checking_dictionaries_finish(WebKitWebContext*, GAsyncResult*, GError**)