Skip to content

Commit

Permalink
Move visual components
Browse files Browse the repository at this point in the history
  • Loading branch information
janlelis committed Nov 6, 2024
1 parent b7feb94 commit 1afedf2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 6 additions & 2 deletions lib/unicode/emoji/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

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

Expand Down Expand Up @@ -41,5 +41,9 @@ module Emoji

# 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
4 changes: 0 additions & 4 deletions lib/unicode/emoji/lazy_constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ module Emoji
# (Emoji version of this gem might be more recent than Ruby's Emoji version)
EMOJI_COMPONENT = INDEX[:PROPERTIES].select{ |ord, props| props.include?(:C) }.keys.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]

# The current list of codepoints with the "Emoji_Modifier_Base" property
# Same characters as \p{Emoji Modifier Base} or \p{EBase}
# (Emoji version of this gem might be more recent than Ruby's Emoji version)
Expand Down

0 comments on commit 1afedf2

Please sign in to comment.