lib/unicode/emoji/constants.rb in unicode-emoji-3.8.0 vs lib/unicode/emoji/constants.rb in unicode-emoji-4.0.0
- old
+ new
@@ -1,12 +1,12 @@
# frozen_string_literal: true
module Unicode
module Emoji
- VERSION = "3.8.0"
+ VERSION = "4.0.0"
EMOJI_VERSION = "16.0"
- CLDR_VERSION = "45"
+ CLDR_VERSION = "46"
DATA_DIRECTORY = File.expand_path('../../../data', __dir__).freeze
INDEX_FILENAME = (DATA_DIRECTORY + "/emoji.marshal.gz").freeze
# Unicode properties, see https://www.unicode.org/Public/16.0.0/ucd/emoji/emoji-data.txt
PROPERTY_NAMES = {
@@ -39,7 +39,11 @@
# Zero-width-joiner to enable combination of multiple Emoji in a sequence
ZWJ = 0x200D
# Two regional indicators make up a region
REGIONAL_INDICATORS = [*0x1F1E6..0x1F1FF].freeze
+
+ # The current list of Emoji components that should have a visual representation
+ # Currently skin tone modifiers + hair components
+ VISUAL_COMPONENT = [*0x1F3FB..0x1F3FF, *0x1F9B0..0x1F9B3]
end
end