For example I want to print long dash
I read that it's possible to do with numpad and code of Unicode of character, so I tried doing Alt+Shift+u + code, but without success.
For example I want to print long dash
I read that it's possible to do with numpad and code of Unicode of character, so I tried doing Alt+Shift+u + code, but without success.
You want Ctrl and not Alt. This
ctrl+shift+U then 2014enter
is giving me
—
. Note that the output depends on yourlocale
settings.As stated in Ubuntu help page the proper way is the following:
Alternative approach is to use
printf
(orecho -e
) command in terminal and copy the output. For example, to print copyright sign doPython can do the same, except you need to prepend
u
in the beginning of hexadecimal string. For instance,Command line ways can be useful in conjunction with
xclip
program, which basically copies stuff you give it to clipboard. For example, I could do :