Class: TwitterCldr::Resources::HyphenationImporter

Inherits:
Importer
  • Object
show all
Defined in:
lib/twitter_cldr/resources/hyphenation_importer.rb

Constant Summary collapse

GIT_SHA =
'0d3b5e5314e68c3cf5d573b2e7bdc11143dcb821'
REPO_URL =
'[email protected]:LibreOffice/dictionaries.git'
ENCODING_MAP =
{
  'microsoft-cp1251' => Encoding::Windows_1251
}

Constants inherited from Importer

Importer::DEFAULT_ENGINE

Instance Attribute Summary

Attributes inherited from Importer

#params, #requirements

Instance Method Summary collapse

Methods inherited from Importer

#can_import?, default_params, #import, #initialize, locales, output_path, parameter, parameters, #prepare, requirement, requirements, ruby_engine

Constructor Details

This class inherits a constructor from TwitterCldr::Resources::Importer

Instance Method Details

#executeObject



21
22
23
24
25
26
27
# File 'lib/twitter_cldr/resources/hyphenation_importer.rb', line 21

def execute
  FileUtils.mkdir_p(output_path)

  each_dictionary do |path, locale|
    import_dictionary(path, locale)
  end
end