private void LoadHunspell(string dictionary) { _currentDictionary = dictionary; _hunspell?.Dispose(); _hunspell = null; _hunspell = Hunspell.GetHunspell(dictionary); }
internal void LoadDictionary(string Dic) { if (!File.Exists(Dic + ".aff") || !File.Exists(Dic + ".dic")) { return; } SpellChecker = Hunspell.GetHunspell(Dic); }
private void LoadHunspell() { var dictionary = Utilities.DictionaryFolder + GetLanguageCode(); _hunspell?.Dispose(); _hunspell = null; _hunspell = Hunspell.GetHunspell(dictionary); }
private void LoadHunspell(string dictionary) { _currentDictionary = dictionary; if (_hunspell != null) { _hunspell.Dispose(); } _hunspell = Hunspell.GetHunspell(dictionary); }