| Top |
ESpellChecker *
e_spell_checker_new (void);
Creates a new ESpellChecker instance.
GList *
e_spell_checker_list_available_dicts (ESpellChecker *checker);
Returns list of all dictionaries available to the actual spell-checking backend.
new copy of GList of ESpellDictionary. The dictionaries are
owned by the checker
and should not be free'd. The list should be freed
using g_list_free() when not needed anymore. [transfer-list]
ESpellDictionary * e_spell_checker_ref_dictionary (ESpellChecker *checker,const gchar *language_code);
Tries to find an ESpellDictionary for given language_code
.
If language_code
is NULL, the function will return a default
ESpellDictionary.
EnchantDict * e_spell_checker_get_enchant_dict (ESpellChecker *checker,const gchar *language_code);
Returns the EnchantDict for language_code
, or NULL if there is none.
gboolean e_spell_checker_get_language_active (ESpellChecker *checker,const gchar *language_code);
void e_spell_checker_set_language_active (ESpellChecker *checker,const gchar *language_code,gboolean active);
gchar ** e_spell_checker_list_active_languages (ESpellChecker *checker,guint *n_languages);
Returns a NULL-terminated array of language codes actively being used
for spell checking. Free the returned array with g_strfreev().
guint
e_spell_checker_count_active_languages
(ESpellChecker *checker);
Returns the number of languages actively being used for spell checking.
gboolean e_spell_checker_check_word (ESpellChecker *checker,const gchar *word,gsize length);
Calls e_spell_dictionary_check_word() on all active dictionaries in
checker
, and returns TRUE if word
is recognized by any of them.
checker |
an SpellChecker |
|
word |
a word to spell-check |
|
length |
length of |
void e_spell_checker_learn_word (ESpellChecker *checker,const gchar *word);
Calls e_spell_dictionary_learn_word() on all active dictionaries in
the checker
.
void e_spell_checker_ignore_word (ESpellChecker *checker,const gchar *word);
Calls e_spell_dictionary_ignore_word() on all active dictionaries in
the checker
.
struct ESpellChecker;
ESpellChecker represents a spellchecker in Evolution. It can be used as a provider for dictionaries. It also implements WebKitSpellCheckerInterface, so it can be set as a default spell-checker to WebKit editors
“active-languages” property“active-languages” GStrv
Active spell check language codes.
Flags: Read