https://github.com/donatj/mblen
Simple CLI for Unicode character decomposition and information
https://github.com/donatj/mblen
decomposition unicode utf-8
Last synced: 4 months ago
JSON representation
Simple CLI for Unicode character decomposition and information
- Host: GitHub
- URL: https://github.com/donatj/mblen
- Owner: donatj
- License: mit
- Created: 2017-05-23T17:29:24.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-01-01T04:20:03.000Z (6 months ago)
- Last Synced: 2025-01-11T16:49:07.733Z (5 months ago)
- Topics: decomposition, unicode, utf-8
- Language: Makefile
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# mblen
Simple CLI for decomposing / inspecting UTF-8 strings.
## Installation
Binaries are availible for Darwin (macOS), Linux and Windows on the release page:
https://github.com/donatj/mblen/releases
### From Source
```bash
go install github.com/donatj/mblen@latest
```## Examples
```bash
$ mblen 🌋
rune: 🌋
ord: 127755
byte length: 4
name: VOLCANO$ mblen 🇰🇷
rune: 🇰
ord: 127472
byte length: 4
name: REGIONAL INDICATOR SYMBOL LETTER Krune: 🇷
ord: 127479
byte length: 4
name: REGIONAL INDICATOR SYMBOL LETTER R
```Also if no arguments are given it will read from STDIN.
```bash
$ echo 日本語 | mblen
rune: æ—¥
ord: 26085
byte length: 3
name: SUN; DAY; DAYTIMErune: 本
ord: 26412
byte length: 3
name: ROOT, ORIGIN, SOURCE; BASISrune: 語
ord: 35486
byte length: 3
name: LANGUAGE, WORDS; SAYING, EXPRESSION
```