RE: Entering Czech Latin2 characters


Subject: RE: Entering Czech Latin2 characters
From: Henrik Berg (henrik@lansen.se)
Date: Wed Mar 22 2000 - 09:26:55 CST


> May be I'm wrong or may be I'm not understand something....

> But when I press russian "a" on keyboard, i'v got a 0x06C1 as keyval (FreeBSD,
> X11R6)
> Unicode for russian "a" - 0x0410
> Under console text editor in unix this char will be 0xC1 (Koi8-R), in windows -
> 0xE0.
> And after it i see only one way to working - convert all chars after keyboard to
> Unicode, internally working only with Unicode, and covert it to proper platform
> charset when calling "drawchars" function.

Yes, all keybord input should be translated to Unicode. This works fine in Windows platform so the XP code is good.

Us iconv to translate, it's a good tool. I have created UT_iconv... functions so translation can be done platform specific.

One thing to do when translating is to send a 8bit (1-255) value to key mapping (ctrl and alt translations). This could be low byte of Unicode until keymapping routines is rewritten to handle this.

The Windows platform has a working drawing of simple Unicode (including Russian) but its done using system calls, so similar calls must be found on other platforms.

--hb



This archive was generated by hypermail 2b25 : Wed Mar 22 2000 - 10:01:04 CST