https://github.com/janlelis/symbolify
␀ ␁ ␂ ␃ ␄ ␅ ␆ ␇ ␈ ␉ ␊ ␋ ␌ ␍ ␎ ␏ ␐ ␑ ␒ ␓ ␔ ␕ ␖ ␗ ␘ ␙ ␚ ␛ ␜ ␝ ␞ ␟ ␠ ␡
https://github.com/janlelis/symbolify
control-characters unicode unicode-characters unicode-data unicode-symbols whitespace
Last synced: 7 months ago
JSON representation
␀ ␁ ␂ ␃ ␄ ␅ ␆ ␇ ␈ ␉ ␊ ␋ ␌ ␍ ␎ ␏ ␐ ␑ ␒ ␓ ␔ ␕ ␖ ␗ ␘ ␙ ␚ ␛ ␜ ␝ ␞ ␟ ␠ ␡
- Host: GitHub
- URL: https://github.com/janlelis/symbolify
- Owner: janlelis
- License: mit
- Created: 2017-03-25T15:44:04.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2023-10-01T18:53:24.000Z (over 2 years ago)
- Last Synced: 2025-09-12T09:39:27.671Z (9 months ago)
- Topics: control-characters, unicode, unicode-characters, unicode-data, unicode-symbols, whitespace
- Language: Ruby
- Homepage:
- Size: 23.4 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- 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
README
# Symbolify [![[version]](https://badge.fury.io/rb/symbolify.svg)](https://badge.fury.io/rb/symbolify) [![[ci]](https://github.com/janlelis/symbolify/workflows/Test/badge.svg)](https://github.com/janlelis/symbolify/actions?query=workflow%3ATest)
Safely print all codepoints from Unicode and single-byte encodings in UTF-8. It replaces control and non-printable characters with readable equivalents and wraps most blank characters in `]` and `[`.
Programs that make use of this library: [unibits](https://github.com/janlelis/unibits), [uniscribe](https://github.com/janlelis/uniscribe)
## Setup
Add to your `Gemfile`:
```ruby
gem 'symbolify'
```
## Usage
```ruby
puts Symbolify.symbolify "A" # A
puts Symbolify.symbolify "🌫" # 🌫
puts Symbolify.symbolify "\0" # ␀
puts Symbolify.symbolify "\n" # ␊
puts Symbolify.symbolify "\x7F" # ␡
puts Symbolify.symbolify "\u{84}" # IND
puts Symbolify.symbolify "\u{200F}" # RLM
puts Symbolify.symbolify "\u{2067}" # RLI
puts Symbolify.symbolify "\u{0300}" # ◌̀
puts Symbolify.symbolify " " # ] [
puts Symbolify.symbolify "\u{FFF9}" # IAA
puts Symbolify.symbolify "\u{FFFC}" # OBJ
puts Symbolify.symbolify "\u{E0020}" # TAG ␠
puts Symbolify.symbolify "\u{E01D7}" # VS232
puts Symbolify.symbolify "\u{D0000}" # n/a
puts Symbolify.symbolify "\u{E0000}" # n/a*
puts Symbolify.symbolify "\u{10FFFF}" # n/c
puts Symbolify.symbolify "\x80" # �
```
## MIT License
Copyright (C) 2017-2022 Jan Lelis . Released under the MIT license.