Package org.omegat.core.dictionaries
Class LingvoDSL
java.lang.Object
org.omegat.core.dictionaries.LingvoDSL
- All Implemented Interfaces:
IDictionaryFactory
Dictionary implementation for Lingvo DSL format.
Lingvo DSL format described in Lingvo help. See also links below.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSimple HTML filter for LingvoDSL parser. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanisSupportedFile(File file) Determine whether or not the supplied file is supported by this factory.final IDictionaryLoad the given file and return anIDictionarythat wraps it.static voidPlugin loader.static voidPlugin unloader.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.omegat.core.dictionaries.IDictionaryFactory
loadDict
-
Constructor Details
-
LingvoDSL
public LingvoDSL()
-
-
Method Details
-
loadPlugins
public static void loadPlugins()Plugin loader. -
unloadPlugins
public static void unloadPlugins()Plugin unloader. -
isSupportedFile
Description copied from interface:IDictionaryFactoryDetermine whether or not the supplied file is supported by this factory. This is intended to be a lightweight check, e.g. looking for a file extension.- Specified by:
isSupportedFilein interfaceIDictionaryFactory- Parameters:
file- The file to check- Returns:
- Whether or not the file is supported
-
loadDict
Description copied from interface:IDictionaryFactoryLoad the given file and return anIDictionarythat wraps it. Deprecated; useIDictionaryFactory.loadDict(File, Language)instead.- Specified by:
loadDictin interfaceIDictionaryFactory- Parameters:
file- The file to load- Returns:
- An IDictionary file that can read articles from the file
- Throws:
Exception- If the file could not be loaded for reasons that were not determined byIDictionaryFactory.isSupportedFile(File)
-