Unicode::SequenceName
Returns the name of a Unicode codepoint sequence, if one exists.
Unicode / Emoji version: 12.1 / 12.0 (May / February 2019)
Supported Rubies: 2.6, 2.5, 2.4
Old Rubies but might still work: 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"
Also See
- uniscribe - cli utility that makes use of unicode_sequence-name
- unicode-name - single codepoint names
- unicode-x - more Unicode related micro libraries
MIT License
- Copyright (C) 2017-2019 Jan Lelis http://janlelis.com. Released under the MIT license.
- Unicode data: http://www.unicode.org/copyright.html#Exhibit1