Input Unicode by It's Hex Value in Emacs
(last-edit-by: lgfang 10/21/2006 19:29:43>)
To type in unicode chars by their hex value. You can as following:
- M-x set-input-method <ret> ucs <ret>
- Key in u+hex to enter a char. For example, unicode of alpha(α) is 03b1 so
you would key in 'u03b1' to get the char.
Tip 1:
I experienced errors entering some chars when I set
set-keyboard-coding-system as euc-cn. After I change it to nil,
errors fixed.
Tip 2:
To tell Emacs a file was encoded with utf-8 you can add
-*- coding:utf-8 -*-
in the first line of it if Emacs can't detect that by itself.
Tip 3:
To see the unicode of a char, move point on it and then "C-x ="
Table:
There are some freequently used unicodes:
| alpha |
α |
03b1 |
Α |
0391 |
| beta |
β |
03b2 |
Β |
0392 |
| gama |
γ |
03b3 |
Γ |
0393 |
| delta |
δ |
03b4 |
Δ |
0394 |
| epsilon |
ε |
03b5 |
Ε |
0395 |
| theta |
θ |
03b8 |
Θ |
0398 |
| xi |
ξ |
03be |
Ξ |
039e |
| pi |
π |
03c0 |
Π |
03a0 |
| sigma |
σ |
03c3 |
Σ |
03a3 |
| omega |
ω |
03c9 |
Ω |
03a9 |
| pound |
£ |
00a3 |
| yen |
¥ |
00a5 |
| lira |
₤ |
20a4 |
| euro |
€ |
20ac |
| copyright |
© |
00a9 |
|
≈ |
2248 |