KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
unicode-name
★ 15
Open GitHub ↗
Unicode character names in Ruby
Download README (.md)
Explore Similar Repositories
car-ad-web
:
车载广告投放系统Web端-同济软院2016专业综合项目
rounded-polygon
:
Create any size of regular rounded polygon.
fsharp-data-processing-pipeline
:
Provides an extensible solution for creating Data Processing Pipelines in F#.
lets-learn-hangul
:
Interactive lessons to learn to read Hangul
swagger-editor-electron
:
Run standalone Swagger Editor in Electron shell
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
unicode-name
?
Download (.md)
# Unicode::Name [![[version]](https://badge.fury.io/rb/unicode-name.svg)](https://badge.fury.io/rb/unicode-name) [![[ci]](https://github.com/janlelis/unicode-name/workflows/Test/badge.svg)](https://github.com/janlelis/unicode-name/actions?query=workflow%3ATest) Return Unicode codepoint names, aliases, and labels. Unicode version: **17.0.0** (September 2025) ## Usage ```ruby require "unicode/name" # Name Unicode::Name.of "A" # => "LATIN CAPITAL LETTER A" Unicode::Name.of "🚡" # => "AERIAL TRAMWAY" Unicode::Name.of "丁" # => "CJK UNIFIED IDEOGRAPH-4E01" Unicode::Name.of "한" # => "HANGUL SYLLABLE HAN" # Unicode 17 (2025) example Unicode::Name.of "" # => "TOLONG SIKI LETTER I" # Aliases, by type Unicode::Name.aliases "\t" # => {:control=>["CHARACTER TABULATION", "HORIZONTAL TABULATION"], :abbreviation=>["HT", "TAB"]} # Corrections (via .aliases[:correction], then name) Unicode::Name.correct "A" # => "LATIN CAPITAL LETTER A" Unicode::Name.correct "Ƣ" # => "LATIN CAPITAL LETTER GHA" # Codepoint labels Unicode::Name.label("\0") # => "<control-0000>" Unicode::Name.label("\u{D800}") # => "<surrogate-D800>" Unicode::Name.label("\u{FFFFF}") # => "<noncharacter-FFFFF>" Unicode::Name.label("\u{10C50}") # => "<reserved-10C50>" # Best readable representation Unicode::Name.readable("A") # => "LATIN CAPITAL LETTER A" Unicode::Name.readable("\0") # => "NULL" Unicode::Name.readable("\u{FFFFD}") # => "<private-use-FFFFD>" ``` See [unicode-sequence_names](https://github.com/janlelis/unicode-sequence_name) for character names of more complex codepoint sequences. 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) ``` See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related micro libraries. See [unicode-name.js](https://github.com/janlelis/unicode-name.js) for a JavaScript implementation of this gem. ## MIT License - Copyright (C) 2016-2025 Jan Lelis <https://janlelis.com>. Released under the MIT license. - Unicode data: https://www.unicode.org/copyright.html#Exhibit1