Code Monkey home page Code Monkey logo

unicode-sequence_name's Introduction

Unicode::SequenceName [version] [ci]

Returns the name of a Unicode codepoint sequence (= more than one codepoint involved), if one exists.

Unicode version: 15.1.0 (September 2023)

Emoji version: 15.1 (September 2023)

IVD version: 2022-09-13 (September 2022)

Supported Rubies: 3.2, 3.1, 3.0

Old Rubies which might still work: 2.X

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"
Unicode::SequenceName.of "🫱🏻‍🫲🏾" # => "HANDSHAKE: LIGHT SKIN TONE, MEDIUM-DARK SKIN TONE"
Unicode::SequenceName.of "🐦‍⬛" # => "BLACK BIRD"
Unicode::SequenceName.of "🙂‍↔️" # => "HEAD SHAKING HORIZONTALLY"

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

unicode-sequence_name's People

Contributors

janlelis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

unicode-sequence_name's Issues

Broken

main » require "unicode/sequence_name"
=> true
main » Unicode::SequenceName.of 'ﺍ'
=> nil
main » Unicode::SequenceName.of "‼︎"
=> "DOUBLE EXCLAMATION MARK (text style)"
main » Unicode::SequenceName.of "a"
=> nil
main » Unicode::SequenceName.of "X"
=> nil
main » Unicode::SequenceName.of "நி"
=> "TAMIL SYLLABLE NI"
main » Unicode::SequenceName.of "م"
=> nil

Curiously enough the uniscribe tool works quite well with all of these.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.