Class DictionariesManager

    • Constructor Detail

      • DictionariesManager

        public DictionariesManager​(IDictionaries pane)
    • Method Detail

      • addDictionaryFactory

        public void addDictionaryFactory​(IDictionaryFactory dict)
        Add dictionary factory.
        Parameters:
        dict - factory to register.
      • removeDictionaryFactory

        public void removeDictionaryFactory​(IDictionaryFactory factory)
        Remove dictionary Factory.
        Parameters:
        factory - factory to unregister.
      • addOnlineDictionary

        public void addOnlineDictionary​(IDictionary dict)
        Add online dictionary(dictionary without local data).
        Parameters:
        dict - dictionary lookup driver.
      • removeOnlineDictionary

        public void removeOnlineDictionary​(IDictionary dict)
        Remove online dictionary.
        Parameters:
        dict - dictionary lookup driver to remove from registration.
      • start

        public void start​(java.io.File dictDir)
      • stop

        public void stop()
      • addIgnoreWord

        public void addIgnoreWord​(java.lang.String word)
        Add new ignore word.
      • findWords

        public java.util.List<DictionaryEntry> findWords​(java.util.Collection<java.lang.String> words)
        Find words list in all dictionaries.
        Parameters:
        words - words list
        Returns:
        articles list
      • setIndexLanguage

        public void setIndexLanguage​(Language indexLanguage)
      • setTokenizer

        public void setTokenizer​(ITokenizer tokenizer)
      • doFuzzyMatching

        public boolean doFuzzyMatching()
      • getStemmedWords

        public java.lang.String[] getStemmedWords​(java.lang.String word)