[squeak-dev] Re: Accented character input

José Luis Redrejo jredrejo at gmail.com
Thu Mar 20 09:41:43 UTC 2008


Well, it almost work.
Using a non-olpc image it does not work at all (tested with 3.7, 3.8, 3.9 &
3.10).

Using an olpc image, dead  keys work, but not other non-english characters:
spanish ñ, german ß,  euro € symbol (but not with the US Dollar $ ;-), etc.

I've also seen in the svn commit that you've moved the  Squeak3D  &
FileCopyPlugin  plugins from internals to externals. Why did yo do it?

Anyway, this is the output activating debugging in the vm when typing ñ and
€. You can check that for ñ the string symbol returned is wrong, as it
returns two symbols, for € it's correct. On the other hand the ucs4 code it
returns (241 & 8364) are correct.


X KeyPress      state 0x10 keycode 47
KeyPress window=stWindow
X mod 0 -> Sq mod 0 (default)
keycode 47
lookupKeys: 'ñ�'
x2sqKey XLookupBoth count 2
x2sqKey string 'ñ�' count 2
x2sqKey symbol 0x000000f1 => 0x000000f1
  2 pending key 16=0xc3
signalInputEvent
EVENT: key down  ` ' (195 = 0xc3) ucs4 0
signalInputEvent
EVENT: key char  ` ' (195 = 0xc3) ucs4 0
  1 pending key 15=0xb1
signalInputEvent
EVENT: key down  ` ' (177 = 0xb1) ucs4 0
signalInputEvent
EVENT: key char  ` ' (177 = 0xb1) ucs4 0
keyCode, ucs4: -1, 241
pressed, buffer: 0, 0
multi_key reset
keyCode, ucs4, multi_key_buffer: -1, 241, 0
signalInputEvent
EVENT: key down  ` ' (-1 = 0xffffffff) ucs4 241
signalInputEvent
EVENT: key char  ` ' (-1 = 0xffffffff) ucs4 241

X KeyRelease    state 0x10 keycode 47
KeyRelease window=stWindow
X mod 0 -> Sq mod 0 (default)
X mod 0 -> Sq mod 0 (default)

X KeyPress      state 0x10 keycode 113
KeyPress window=stWindow
X mod 0 -> Sq mod 0 (default)
keycode 113
lookupKeys: ''
x2sqKey XLookupKeySym
SYM fe03 -> -1
keyCode, ucs4: -1, 0
pressed, buffer: 0, 0
multi_key reset
keyCode, ucs4, multi_key_buffer: -1, 0, 0

X KeyPress      state 0x90 keycode 26
KeyPress window=stWindow
X mod 0 -> Sq mod 0 (default)
keycode 26
lookupKeys: '€'
x2sqKey XLookupBoth count 3
x2sqKey string '€' count 3
x2sqKey symbol 0x000020ac => 0x000020ac
  3 pending key 16=0xe2
signalInputEvent
EVENT: key down  ` ' (226 = 0xe2) ucs4 0
signalInputEvent
EVENT: key char  ` ' (226 = 0xe2) ucs4 0
  2 pending key 15=0x82
signalInputEvent
EVENT: key down  ` ' (130 = 0x82) ucs4 0
signalInputEvent
EVENT: key char  ` ' (130 = 0x82) ucs4 0
  1 pending key 14=0xac
signalInputEvent
EVENT: key down  ` ' (172 = 0xac) ucs4 0
signalInputEvent
EVENT: key char  ` ' (172 = 0xac) ucs4 0
keyCode, ucs4: -1, 8364
pressed, buffer: 0, 0
multi_key reset
keyCode, ucs4, multi_key_buffer: -1, 8364, 0
signalInputEvent
EVENT: key down  ` ' (-1 = 0xffffffff) ucs4 8364
signalInputEvent
EVENT: key char  ` ' (-1 = 0xffffffff) ucs4 8364

X KeyRelease    state 0x90 keycode 26
KeyRelease window=stWindow
X mod 0 -> Sq mod 0 (default)

X KeyRelease    state 0x90 keycode 113
KeyRelease window=stWindow
X mod 0 -> Sq mod 0 (default)



Regards.
José L.



2008/3/20, Yoshiki Ohshima <yoshiki at vpri.org>:
>
> >   We finally get around to attack the accented character input problem
> > (mainly thanks to Hiroshima-san).  At least on OLPC, the "dead-key"
> > style accented character input seems to work fine with the new VM.
>
>
>   Oh, I forgot to mention that you have to use the latest OLPC etoys
> image.  To try it, please get:
>
>         http://tinlizzie.org/olpc/etoys-dev-3.0.zip
> and
>         http://tinlizzie.org/olpc/EtoysV3.sources
>
> and SVN the source code for the VM from:
>
>         http://squeakvm.org/svn/squeak/branches/olpc/
>
>
> -- Yoshiki
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20080320/3196ed32/attachment.htm


More information about the Squeak-dev mailing list