Skip to content

Accessing characters and symbols from the console?

This is an issue I've had for years: if I want to include a symbol such as ë in an email (such as for the name Zoë), I need to find it first. I generally have done this by "man latin1" which includes a standard 7-bit ascii code. Then I just copy and paste from that man page. Crude, but very simple and effective. But how can I easily find other characters, such as greek characters, or mathematical symbols? (Alright, greek can be found with "man iso-8859_7"). Is there a program which will print a character set to the console? I know I can use kcharselect, or even xfontsel, but I don't want to go about opening up more windows - I'd rather stick within the console if I can.

Thanks!

1 points3 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
5lemi2

Author

122
posts
145
comments
1
media
View profile

3 comments

I am using this krunner plugin.

https://github.com/domschrei/krunner-symbols

Type the name of the variable, press enter and the symbol is copied to the clipboard.

You could probably do domething similar with dmenu.

1 points

Very nice! I've just added it to my system, and it's great for symbols. It doesn't do accented characters though. I know I can obtain these with a compose key, but that means remembering the compose sequences. It'd be nice if there was some sort of popup available via long-press of a key (like on my on-screen Android keyboard), which gives a little menu of characters to choose from.

1 points

If you use vim, try to look at :help digraphs

http://vimdoc.sourceforge.net/htmldoc/digraph.html

Edit: if you have enough time you could hack the keyboard map. I've tweaked the programmers-dvorak in order to add the Italian accent plus some Greek letter. I can insert them with alt gr + some key

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.