[haiku-development] Re: AltGr Key, key_map, and the US-International Keyboard

  • From: François Revol <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 30 Mar 2012 04:10:38 +0200

On 30/03/2012 00:04, John Scipione wrote:
> On Thu, Mar 29, 2012 at 3:29 PM, Rimas Kudelis <rq@xxxxxx> wrote:
>> I actually managed to get to testing where that keymap failed a month or so
>> ago, and it did reliably fail with long dead key definitions such as the one
>> I showed you. I may have added the spaces you are talking about, but I don't
>> think they are to blame.
>>
>> You can try editing any keymap file. Paste line 209 to it, and the keymap
>> app should crash, unless it's been fixed without me knowing. :)
> 
> Ahh, now I see what the problem is. Keymap only supports UTF-8
> characters 1 through 4-bytes wide.
> 
> 0xc4afcc87cc81 is 6 bytes, which is allowed by UTF-8, but not by

No it's not.

What you are trying to use here is a 2-bytes character + 2 2-bytes
diacritics as a single entity.
Isn't there precomposed versions instead ??

cf.
http://en.wikipedia.org/wiki/Precomposed_character

> keymap. Asian languages will also run into similar problems. To
> support 6-byte wide UTF-8 characters we need to increase the length of
> the maps from 128 to 192 and the deadkey maps from 32 to 48.

Asian languages have all their glyphs encoded as a single codepoint
which should fit 4 bytes.

François.

Other related posts: