All Projects → janlelis → Unicopy

janlelis / Unicopy

Licence: mit
Unicode command-line codepoint dumper

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Unicopy

Tiny Utf8
Unicode (UTF-8) capable std::string
Stars: ✭ 322 (+1912.5%)
Mutual labels:  conversion, unicode, utf-8
Unibits
Visualize different Unicode encodings in the terminal
Stars: ✭ 125 (+681.25%)
Mutual labels:  cli-command, unicode, utf-8
Awesome Unicode
😂 👌 A curated list of delightful Unicode tidbits, packages and resources.
Stars: ✭ 693 (+4231.25%)
Mutual labels:  unicode, utf-8
Lingo
Text encoding for modern C++
Stars: ✭ 28 (+75%)
Mutual labels:  unicode, utf-8
libWinTF8
The library handling things related to UTF-8 and Unicode when you want to port your program to Windows
Stars: ✭ 18 (+12.5%)
Mutual labels:  unicode, utf-8
characteristics
Character info under different encodings
Stars: ✭ 25 (+56.25%)
Mutual labels:  unicode, utf-8
simdutf8
SIMD-accelerated UTF-8 validation for Rust.
Stars: ✭ 426 (+2562.5%)
Mutual labels:  unicode, utf-8
unicode-c
A C library for handling Unicode, UTF-8, surrogate pairs, etc.
Stars: ✭ 32 (+100%)
Mutual labels:  unicode, utf-8
jurl
Fast and simple URL parsing for Java, with UTF-8 and path resolving support
Stars: ✭ 84 (+425%)
Mutual labels:  unicode, utf-8
Encoding.js
Convert or detect character encoding in JavaScript
Stars: ✭ 338 (+2012.5%)
Mutual labels:  unicode, utf-8
Bstr
A string type for Rust that is not required to be valid UTF-8.
Stars: ✭ 348 (+2075%)
Mutual labels:  unicode, utf-8
homoglyphs
Homoglyphs: get similar letters, convert to ASCII, detect possible languages and UTF-8 group.
Stars: ✭ 70 (+337.5%)
Mutual labels:  unicode, utf-8
utf8-validator
UTF-8 Validator
Stars: ✭ 18 (+12.5%)
Mutual labels:  unicode, utf-8
UnicodeBOMInputStream
Doing things right, in the name of Sun / Oracle
Stars: ✭ 36 (+125%)
Mutual labels:  unicode, utf-8
ocreval
Update of the ISRI Analytic Tools for OCR Evaluation with UTF-8 support
Stars: ✭ 48 (+200%)
Mutual labels:  unicode, utf-8
UniObfuscator
Java obfuscator that hides code in comment tags and Unicode garbage by making use of Java's Unicode escapes.
Stars: ✭ 40 (+150%)
Mutual labels:  unicode, utf-8
Color
A little library to deal with color conversions
Stars: ✭ 166 (+937.5%)
Mutual labels:  conversion, hex
Portable Utf8
🉑 Portable UTF-8 library - performance optimized (unicode) string functions for php.
Stars: ✭ 405 (+2431.25%)
Mutual labels:  unicode, utf-8
Uniscribe
Know your Unicode ✀
Stars: ✭ 266 (+1562.5%)
Mutual labels:  cli-command, unicode
Tomlplusplus
Header-only TOML config file parser and serializer for C++17 (and later!).
Stars: ✭ 403 (+2418.75%)
Mutual labels:  unicode, utf-8

unicopy [version] [travis]

CLI utility which converts Unicode codepoints to a string (or vice versa). Copies the result to the system clipboard or just prints it to the console.

Can also convert codepoints to many dump formats.

Setup

Make sure you have Ruby installed and installing gems works properly. Then do:

$ gem install unicopy

Usage

Codepoints to String

Codepoints format is hexadecimal, "U+" is permitted, examples:

$ unicopy 52 75 62 79 --print
Ruby
$ unicopy U+0052 U+0075 U+0062 U+0079 --print
Ruby

String to Codepoints

$ unicopy --string Ruby --print
U+0052 U+0075 U+0062 U+0079

Options

--help                |    | this help page
--parse-decimal       |    | interpret given codepoints as decimal, instead of hexadecimal values
--print               | -p | do not copy to system clipboard, but print to screen
--string              | -s | see above
--version             |    | displays version of unicopy
--(dump format)       |    | specify the format to be used for dumping the codepoints (see below)

Dump Formats

Short Hexadecimal

$ unicopy 52 75 62 79 20 1F32B --print --hex
52 75 62 79 20 1F32B
$ unicopy --string "Ruby 🌫" --print --hex
52 75 62 79 20 1F32B

Hexadecimal With U+ Prefix

$ unicopy 52 75 62 79 20 1F32B --print --uplus
U+0052 U+0075 U+0062 U+0079 U+0020 U+1F32B
$ unicopy --string "Ruby 🌫" --print --uplus
U+0052 U+0075 U+0062 U+0079 U+0020 U+1F32B

Hexadecimal With 0x Prefix

$ unicopy 52 75 62 79 20 1F32B --print --0x
0x0052 0x0075 0x0062 0x0079 0x0020 0x1F32B
$ unicopy --string "Ruby 🌫" --print --0x
0x0052 0x0075 0x0062 0x0079 0x0020 0x1F32B

Decimal

$ unicopy 52 75 62 79 20 1F32B --print --dec
82 117 98 121 32 127787
$ unicopy --string "Ruby 🌫" --print --dec
82 117 98 121 32 127787

Ruby Escape Syntax

$ unicopy 52 75 62 79 20 1F32B --print --ruby
\\u{52 75 62 79 20 1F32B}
$ unicopy --string "Ruby 🌫" --print --ruby
\\u{52 75 62 79 20 1F32B}

JavaScript Escape Syntax (Since ES6)

$ unicopy 52 75 62 79 20 1F32B --print --es6
\\u{52}\\u{75}\\u{62}\\u{79}\\u{20}\\u{1F32B}
$ unicopy --string "Ruby 🌫" --print --es6
\\u{52}\\u{75}\\u{62}\\u{79}\\u{20}\\u{1F32B}

JavaScript Escape Syntax (Before ES6)

$ unicopy 52 75 62 79 20 1F32B --print --js
\\u0052\\u0075\\u0062\\u0079\\u0020\\uD83C\\uDF2B
$ unicopy --string "Ruby 🌫" --print --js
\\u0052\\u0075\\u0062\\u0079\\u0020\\uD83C\\uDF2B

CSS Escape Syntax

$ unicopy 52 75 62 79 20 1F32B --print --css
\\52\\75\\62\\79\\20\\1f32b
$ unicopy --string "Ruby 🌫" --print --css
\\52\\75\\62\\79\\20\\1f32b

Hexadecimal HTML Entities

$ unicopy 52 75 62 79 20 1F32B --print --html-hex
Ruby 🌫
$ unicopy --string "Ruby 🌫" --print --html-hex
Ruby 🌫

Decimal HTML Entities

$ unicopy 52 75 62 79 20 1F32B --print --html-dec
Ruby 🌫
$ unicopy --string "Ruby 🌫" --print --html-dec
Ruby 🌫

UTF-8 in Hexadecimal Bytes

$ unicopy 52 75 62 79 20 1F32B --print --bytes-utf8
52 75 62 79 20 F0 9F 8C AB
$ unicopy --string "Ruby 🌫" --print --bytes-utf8
52 75 62 79 20 F0 9F 8C AB

Also see

Copyright (C) 2017-2020 Jan Lelis https://janlelis.com. Released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].