All Projects → lptstr → Chmap

lptstr / Chmap

Licence: other
The Windows `charmap` utility for Linux

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Chmap

Executor
Watch for file changes and then execute command. Very nice for test driven development.
Stars: ✭ 14 (-64.1%)
Mutual labels:  utility, command
Unidump
hexdump(1) for Unicode data
Stars: ✭ 31 (-20.51%)
Mutual labels:  utility
Bonjourmadame
Say "Hello ma'am!"
Stars: ✭ 9 (-76.92%)
Mutual labels:  utility
Pixelart
video to character animation magic
Stars: ✭ 20 (-48.72%)
Mutual labels:  character
Vercel
Develop. Preview. Ship.
Stars: ✭ 8,015 (+20451.28%)
Mutual labels:  command
Text Minimap
Generate text minimap/preview using Braille Patterns
Stars: ✭ 21 (-46.15%)
Mutual labels:  utility
Pothosblocks
A collection of core processing blocks
Stars: ✭ 7 (-82.05%)
Mutual labels:  utility
Shifty
☀️ A macOS menu bar app that gives you more control over Night Shift.
Stars: ✭ 990 (+2438.46%)
Mutual labels:  utility
Pinku
A Pinboard-to-buku importation utility
Stars: ✭ 30 (-23.08%)
Mutual labels:  utility
Concur
Sugar for infectious JavaScript inheritance, metaprogramming & mixins
Stars: ✭ 14 (-64.1%)
Mutual labels:  utility
Vsphere Connect
A modern vSphere Client
Stars: ✭ 14 (-64.1%)
Mutual labels:  command
Sketchdiff
💎 Generate visual differences between two Sketch files or a previous git commit
Stars: ✭ 14 (-64.1%)
Mutual labels:  utility
Goat
POSIX-compliant shell movement boosting hack for real ninjas (aka `cd x` and `cd ...`)
Stars: ✭ 27 (-30.77%)
Mutual labels:  utility
Object.reduce
Reduces an object to a value that is the accumulated result of running each property in the object through a callback. JavaScript/node.js utility.
Stars: ✭ 11 (-71.79%)
Mutual labels:  utility
Cmd
The standard library flag package with its missing features
Stars: ✭ 32 (-17.95%)
Mutual labels:  command
Serve
Static file serving and directory listing
Stars: ✭ 7,444 (+18987.18%)
Mutual labels:  command
Python Common Cache
This project is a cache component based on the memory and it is lightweight, simple and customizable. 🐍 😃
Stars: ✭ 21 (-46.15%)
Mutual labels:  utility
Nodejs Security Must Know
It is a note about security on nodejs
Stars: ✭ 38 (-2.56%)
Mutual labels:  command
Itt
Iteration tools.
Stars: ✭ 32 (-17.95%)
Mutual labels:  utility
Invite Contributors
automatically invite authors of merged pull requests to your organization
Stars: ✭ 30 (-23.08%)
Mutual labels:  utility

chmap (formerly lcharmap)

A CLI utility to get information for Unicode characters.

What?

chmap is a little utility to get information on Unicode characters, such as its description, hexadecimal/octal representation, Unicode category, UTF-8 encoding, and more.

$ chmap -r 9-10,13935,255-258
codepoint  glyph  encoded     case   description
        9         9           other  character tabulation
       10         A           other  line feed (lf)
    13935  㙯     E3 99 AF    other  modifier letter chinese tone yin ping
      255  ÿ      C3 BF       lower  latin small letter y with diaeresis
      256  Ā      C4 80       upper  latin capital letter a with macron
      257  ā      C4 81       lower  latin small letter a with macron
      258  Ă      C4 82       upper  latin capital letter a with breve

chmap was inspired by the charmap.exe tool present in Windows XP and later.

Where?

Tarballs are available from GitHub releases for Linux-x86_64 and Linux-armv6l. Extract, cd, and run:

$ sudo ./install.sh /usr/local

Building from Source

Build dependencies

  • a C99 compiler, GNU Make
  • scdoc (manpage)

Download the latest source tarball from GitHub releases (chmap-v$VERSION.tar.xz), extract, and build:

# make clean install

How?

Run chmap with the -r flag (for range) to get info for a range of Unicode runes:

$ chmap -r 0-5
codepoint  glyph  encoded      case   description
        0                      other  null
        1         1            other  start of heading
        2         2            other  start of text
        3         3            other  end of text
        4         4            other  end of transmission
        5         5            other  enquiry

Example ranges: 0-1, 355-369, 34, 189-192,12,45-49.

You may also list info for a list of given characters with the -c flag:

$ chmap -c Lovecraft
codepoint  glyph  encoded      case   description
       76  L      4C           upper  latin capital letter l
      111  o      6F           lower  latin small letter o
      118  v      76           lower  latin small letter v
      101  e      65           lower  latin small letter e
       99  c      63           lower  latin small letter c
      114  r      72           lower  latin small letter r
       97  a      61           lower  latin small letter a
      102  f      66           lower  latin small letter f
      116  t      74           lower  latin small letter t

You can search for characters that match a regex, too, with the -s flag:

$ chmap -s '^latin.*capital letter z'                                                       
codepoint  glyph  encoded      case   description
       90  Z      5A           upper  latin capital letter z
      377  Ź      C5 B9        upper  latin capital letter z with acute
      379  Ż      C5 BB        upper  latin capital letter z with dot above
      381  Ž      C5 BD        upper  latin capital letter z with caron
      437  Ƶ      C6 B5        upper  latin capital letter z with stroke
      548  Ȥ      C8 A4        upper  latin capital letter z with hook
     7824  Ẑ      E1 BA 90     upper  latin capital letter z with circumflex
     7826  Ẓ      E1 BA 92     upper  latin capital letter z with dot below
     7828  Ẕ      E1 BA 94     upper  latin capital letter z with line below
    11371  Ⱬ      E2 B1 AB     upper  latin capital letter z with descender
    11391  Ɀ      E2 B1 BF     upper  latin capital letter z with swash tail
    42950  Ᶎ      EA 9F 86     upper  latin capital letter z with palatal hook

Adding the -l flag causes chmap to print more information:

$ chmap -l -r 13000                                                                         
codepoint    13000 0x32C8  0o31310
encoding     UTF8(E3 8B 88)
glyph        ㋈ (2 columns)
description  ideographic telegraph symbol for september
case         other
category     Symbol (other)

See man chmap for more.

Why?

I miss some Windows utilities.

I found chars, but it lacked several features which I'd like:

  • A table-like output mode (which chmap has by default). This makes viewing many entries more comfortable in a short terminal.
  • A category field to specify the Unicode category that the rune falls under.

Inspiration

License

This lame little utility is licensed under the MIT License. See the LICENSE.md file for more information.

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].