Unicode charset for keymaps?
Posted: Sat Feb 07, 2009 4:24 am
Hi, Gentoo forums! I have a "why is that?" question I hope someone would be kind enough to answer.
I was thinking... when setting a keymap, the mappings between keysyms and char codes are determined by the charset you choose for this purpose. So, in essence, the charset selects what character encoding the keyboard driver uses when talking to the rest of the system. Now, it seems to me that if this is different from the character encoding you've told the rest of the system to use, you have a potential problem. So, one would think that the set of available charsets would be the same as the set of available character encodings in general. In fact, one might even expect that they would be rigged to automatically be identical in all cases.
Unfortunately, this appears to be totally different from reality. I'm amazed to learn that no Unicode charset exists. So, if you use Unicode, your keyboard driver will always give you "wrong" values in some cases, right? Why is there no Unicode charset? Surely there is some technical reason that my tiny, shriveled brain has not yet clued in on?
That was my main question. But I also wonder, why would you ever want the charset for the keyboard driver to be different from the rest of the system? And in fact, why can't you just make your own charsets? I mean if it's just a mapping between keysyms and char codes, that sounds like a simple text file.
Excuse my ignorance on the subject. I've searched around a fair bit and I just feel like there must be something I'm missing.
Thanks!
I was thinking... when setting a keymap, the mappings between keysyms and char codes are determined by the charset you choose for this purpose. So, in essence, the charset selects what character encoding the keyboard driver uses when talking to the rest of the system. Now, it seems to me that if this is different from the character encoding you've told the rest of the system to use, you have a potential problem. So, one would think that the set of available charsets would be the same as the set of available character encodings in general. In fact, one might even expect that they would be rigged to automatically be identical in all cases.
Unfortunately, this appears to be totally different from reality. I'm amazed to learn that no Unicode charset exists. So, if you use Unicode, your keyboard driver will always give you "wrong" values in some cases, right? Why is there no Unicode charset? Surely there is some technical reason that my tiny, shriveled brain has not yet clued in on?
That was my main question. But I also wonder, why would you ever want the charset for the keyboard driver to be different from the rest of the system? And in fact, why can't you just make your own charsets? I mean if it's just a mapping between keysyms and char codes, that sounds like a simple text file.
Excuse my ignorance on the subject. I've searched around a fair bit and I just feel like there must be something I'm missing.
Thanks!