The project is in a healthy, maintained state
[Unicode 14.0.0][Emoji 14.0] Returns the name of a Unicode code point sequence, if one exists
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
 Dependencies
 Project Readme

Unicode::SequenceName [version] [ci]

Returns the name of a Unicode codepoint sequence, if one exists.

Unicode version: 14.0.0 (September 2021)

Emoji version: 14.0 (September 2021)

IVD version: 2020-11-06 (November 2020)

Supported Rubies: 3.0, 2.7

Old Rubies which might still work: 2.6, 2.5, 2.4, 2.3, 2.2, 2.1, 2.0

Usage

require "unicode/sequence_name"

Unicode::SequenceName.of "‼︎" # => "DOUBLE EXCLAMATION MARK (text style)"
Unicode::SequenceName.of "㓟︀" # => "CJK COMPATIBILITY IDEOGRAPH-2F81F"
Unicode::SequenceName.of "င︀" # => "MYANMAR LETTER NGA (dotted form)"
Unicode::SequenceName.of "நி" # => "TAMIL SYLLABLE NI"
Unicode::SequenceName.of "🇺🇳" # => "Flag: UNITED NATIONS"
Unicode::SequenceName.of "🏴󠁧󠁢󠁳󠁣󠁴󠁿" # => "SCOTLAND"
Unicode::SequenceName.of "🧑‍🦱" # => "PERSON: CURLY HAIR"
Unicode::SequenceName.of "👨‍🍼" # => MAN FEEDING BABY
Unicode::SequenceName.of "❤️‍🔥" # => HEART ON FIRE

Names for singular codepoints are not included, you can use unicode-name for that purpose.

Also See

  • uniscribe - cli utility that makes use of unicode_sequence-name
  • unicode-x - more Unicode related micro libraries

MIT License