Package org.omegat.core.spellchecker
Class DictionaryManager
java.lang.Object
org.omegat.core.spellchecker.DictionaryManager
Dictionary manager. Spell checking dictionaries' utility functions.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDictionaryNameList(List<String> aList) returns a list of full names of dictionaries from a dictionary code listreturns the dictionary directoryreturns a list of codes (xx_YY) of installable dictionariesreturn a list of names of installable dictionaries (e.g.returns a list of available dictionaries in the xx_YY formreturns a list of available dictionaries.return a list of full names of the local dictionariesvoidinstallRemoteDictionary(String langCode) Deprecated.booleanuninstallDictionary(String lang) Deprecated.
-
Constructor Details
-
DictionaryManager
Creates a new instance of DictionaryManager.- Parameters:
dir- : the directory where the spell checking dictionary files (*.(aff|dic) are available locally
-
-
Method Details
-
getDirectory
returns the dictionary directory -
getDictionaryNameList
returns a list of full names of dictionaries from a dictionary code list -
getLocalDictionaryNameList
return a list of full names of the local dictionaries -
getLocalDictionaryCodeList
returns a list of available dictionaries in the xx_YY form -
getLocalDictionaryEntries
returns a list of available dictionaries. -
uninstallDictionary
Deprecated.Uninstall (delete) a given dictionary from the dictionary directory- Parameters:
lang- : the language code (xx_YY) of the dictionary to be deleted- Returns:
- true upon success, otherwise false
-
getInstallableDictionaryNameList
return a list of names of installable dictionaries (e.g. en_US - english (USA))- Throws:
IOException
-
getInstallableDictionaryCodeList
returns a list of codes (xx_YY) of installable dictionaries- Throws:
IOException
-
installRemoteDictionary
Deprecated.installs a remote dictionary by downloading the corresponding zip file from the net and by installing the aff and dic file to the dictionary directory.- Parameters:
langCode- : the language code (xx_YY)- Throws:
IOException
-