Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/valerauko/sirius

Tiny library to find the name of Unicode characters
https://github.com/valerauko/sirius

clojure emoji hacktoberfest unicode

Last synced: 2 months ago
JSON representation

Tiny library to find the name of Unicode characters

Awesome Lists containing this project

README

        

# Sirius

[Why so serious?](https://www.youtube.com/watch?v=F_5dP_83O7o) ðŸĪŠ Emoji are all over the place, but they [can be a burden for accessibility](https://www.ashleysheridan.co.uk/blog/Emoji+and+Accessibility#making_accessible_to_assistive_tech). Look at that tiny yellow face and figure out if it's crying in joy or horror...

Things would be easier if all the emoji had nice `aria-label` attributes that showed up on hover, right? While Sirius won't generate HTML for you, it will give you the Unicode name of any character you give it.

## Installation

[![Clojars Project](https://img.shields.io/clojars/v/net.valerauko/sirius.svg)](https://clojars.org/net.valerauko/sirius)

```
[net.valerauko/sirius "1.1.0"]
```

```
net.valerauko/sirius {:mvn/version "1.1.0"}
```

## Usage

Ask it about a single character you have at hand. It can be a Character like `\a`, a single-character string (`"a"`), even numeric or byte representations of letters.

```
=> (name-of "♎")
"LIBRA"

=> (name-of \☕)
"HOT BEVERAGE"
```

As you can see, the names are the raw, all-caps name from the [Unicode database](http://www.unicode.org/Public/UNIDATA/UnicodeData.txt). If you need it in any other shape (and you probably will), please convert it yourself.

## License

Copyright ÂĐ 2020 @valerauko

This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0.

This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the Eclipse
Public License, v. 2.0 are satisfied: GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or (at your
option) any later version, with the GNU Classpath Exception which is available
at https://www.gnu.org/software/classpath/license.html.

Also see the [license of the Unicode "DATA FILES"](https://www.unicode.org/license.html).