Sometimes, I'd like to know the name of a glyph. For example, if I see −
, I may want to know if it's a hyphen -
, an en-dash –
, an em-dash —
, or a minus symbol −
. Is there a way that I can copy-paste this into a terminal to see what it is?
I am unsure if my system knows the common names to these glyphs, but there is certainly some (partial) information available, such as in /usr/share/X11/locale/en_US.UTF-8/Compose
. For example,
<Multi_key> <exclam> <question> : "‽" U203D # INTERROBANG
Another example glyph: ?
.
Best Answer
Try the unicode utility:
Or the
uconv
utility from the ICU package:You can also get information via the
recode
utility:Or with Perl:
Note that those give information on the characters that make-up that glyph, not on the glyph as a whole. For instance, for
é
(e with combining acute accent):Different from the standalone é character:
You can ask
uconv
to recombine those (for those that have a combined form):(é has a combined form, but not b́).