Class BookGenerator_ru


  • public class BookGenerator_ru
    extends BookGenerator
    All String include kyrillic charcters. If you have not a kyrillic keyboard then only copy and paste it. Do not enter any string with a latin keyboard
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  BookGenerator_ru.Template
      Described the needed informations of a template.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void findRuleAndAddWords​(java.lang.String word, java.lang.String wikiText)
      Find the placholder of templates and add the words that was build with this templates.
      (package private) boolean isValidLanguage​(java.lang.String word, java.lang.String wikiText)
      Check if a word is a valid word of the current language.
      private java.lang.String normalizeString​(java.lang.String str)  
      private java.util.Properties parseRule​(java.lang.String wikiText, int idxStart, int idxEnd)
      Read the inforamtions of the template placeholder
      (package private) void start​(java.io.File file)
      Need 2 run.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BookGenerator_ru

        public BookGenerator_ru()
    • Method Detail

      • start

        void start​(java.io.File file)
            throws java.lang.Exception
        Need 2 run. First are parsed the templates. Then start the real parsing.
        Overrides:
        start in class BookGenerator
        Throws:
        java.lang.Exception
      • isValidLanguage

        boolean isValidLanguage​(java.lang.String word,
                                java.lang.String wikiText)
        Description copied from class: BookGenerator
        Check if a word is a valid word of the current language. With function getBook().addWord() you can add additional Flexion of the word. The current word self does not need added.
        Specified by:
        isValidLanguage in class BookGenerator
        Parameters:
        word - the test word
        wikiText - die decription from Wiktionary
        Returns:
        true if valid
      • findRuleAndAddWords

        private void findRuleAndAddWords​(java.lang.String word,
                                         java.lang.String wikiText)
        Find the placholder of templates and add the words that was build with this templates.
      • parseRule

        private java.util.Properties parseRule​(java.lang.String wikiText,
                                               int idxStart,
                                               int idxEnd)
        Read the inforamtions of the template placeholder
      • normalizeString

        private java.lang.String normalizeString​(java.lang.String str)