https://github.com/janlelis/unicode-sequence_name
Unicode sequence names in Ruby
https://github.com/janlelis/unicode-sequence_name
emoji names ruby sequence unicode unicode-data
Last synced: 6 months ago
JSON representation
Unicode sequence names in Ruby
- Host: GitHub
- URL: https://github.com/janlelis/unicode-sequence_name
- Owner: janlelis
- License: mit
- Created: 2017-04-02T21:20:33.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2025-09-09T15:23:42.000Z (7 months ago)
- Last Synced: 2025-10-10T00:36:04.615Z (6 months ago)
- Topics: emoji, names, ruby, sequence, unicode, unicode-data
- Language: Ruby
- Homepage: https://character.construction/name
- Size: 4.25 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: MIT-LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-starred - janlelis/unicode-sequence_name - Unicode sequence names in Ruby (emoji)
README
# Unicode::SequenceName [![[version]](https://badge.fury.io/rb/unicode-sequence_name.svg)](https://badge.fury.io/rb/unicode-sequence_name) [![[ci]](https://github.com/janlelis/unicode-sequence_name/workflows/Test/badge.svg)](https://github.com/janlelis/unicode-sequence_name/actions?query=workflow%3ATest)
Returns the name of a Unicode codepoint sequence (= more than one codepoint involved), if one exists.
Unicode version: **17.0.0** (September 2025)
Emoji version: **17.0** (September 2025)
IVD version: **2025-07-14** (July 2025)
## Usage
```ruby
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"
Unicode::SequenceName.of "🫱🏻🫲🏾" # => "HANDSHAKE: LIGHT SKIN TONE, MEDIUM-DARK SKIN TONE"
Unicode::SequenceName.of "🐦⬛" # => "BLACK BIRD"
Unicode::SequenceName.of "🙂↔️" # => "HEAD SHAKING HORIZONTALLY"
Unicode::SequenceName.of "‘︁" # => "LEFT SINGLE QUOTATION MARK (right-justified fullwidth form)"
```
Names for singular codepoints are not included, but you can use [unicode-name](https://github.com/janlelis/unicode-name) for that purpose. This is how you could use both libraries together to get the most relevant name of a character:
```ruby
name = Unicode::SequenceName.of(char) || Unicode::Name.readable(char)
```
## Also See
- [uniscribe](https://github.com/janlelis/uniscribe) - cli utility that makes use of unicode_sequence-name
- [unicode-x](https://github.com/janlelis/unicode-x) - more Unicode related micro libraries
- [unicode-name.js](https://github.com/janlelis/unicode-name.js) - JavaScript implementation of name and sequence_name
## MIT License
- Copyright (C) 2017-2025 Jan Lelis . Released under the MIT license.
- Unicode data: https://www.unicode.org/copyright.html#Exhibit1