Sha256: 869d017f2ab35d647b94de4719955ad99f41dec66fa9b0281e9def442674a29a
Contents?: true
Size: 764 Bytes
Versions: 24
Compression:
Stored size: 764 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 module TwitterCldr module Resources module Properties class EmojiImporter < PropertyImporter DATA_FILE = 'ucd/emoji/emoji-data.txt' requirement :unicode, Versions.unicode_version, [DATA_FILE] output_path 'unicode_data/properties' ruby_engine :mri private def source_path requirements[:unicode].source_path_for(DATA_FILE) end def load super do |data, ret| code_points = expand_range(data[0]) property_name = format_property_value(data[1]) ret[property_name][nil] += code_points end end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems