开发者

How to convert character names to character codes on linux

I'm looking for a way to convert the character names found in the files in the /usr/share/X11/xkb/symbols/ folder like:

key <AE01> { [ 1, copyright, registered, trademark ] };
key <AE03> { [ 3, numbersign, section, paragraph ] };
key <AE04> { [ 4, EuroSign, dollar, st开发者_运维技巧erling ] };
key <AE11> { [ masculine, ordfeminine, dead_circumflex, dead_caron ] };
key <AE12> { [apostrophe, asterisk, plus, dead_abovering ] };
key <AD11> { [dead_acute, dead_grave, dead_diaeresis, dead_macron ] };
key <AD12> { [question, exclam, questiondown, slash ] };
key <AC10> { [ ccedilla, Ccedilla, dead_acute, dead_doubleacute ] };
key <AC11> { [dead_tilde, dead_circumflex, dead_diaeresis, dead_breve] };
key <TLDE> { [ backslash, bar, notsign, notsign ] };

key <BKSL> { [question, exclam, questiondown, slash ] };

to character codes. can you help me? i thing there must be a file listing these, but i cannot find it. by the way, i'm using ubuntu 10.04.

Thanks in advance, Adam


They are all here, in the Git repository: http://cgit.freedesktop.org/xorg/proto/xproto/tree/keysymdef.h

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜