[Etoys] Squeak VM status concerning language encodings

Chris Petsos chrispetsos at sch.gr
Fri Nov 30 03:21:30 EST 2007


>  The OLPC branch should be better,
Yes, i agree on that...Really? Has anyone from the greek team tested the 
olpc image and VM? Since i was away for a while, it looks like now utf-8 
input comes "out of the box" for eToys, so it doesn't seem to be needing any 
effort from our side.

>  Bert said that when he set the
> keyboard on XO to greek keyboard, normal character input works, but
> key strokes with modifier keys (like Alt-) reports a greek character
> with modifier bits, so when you would like to do Alt-b (for example)
> it comes as Alt-beta and Squeak's command key mapping cannot handle
> it.
Yes, that was the problem with multi-byte utf-8 characters. How can one map 
a unicode code-point to a shortcut since the app can react only to simple 
one-byte modidied characters. My workaround was a bit naive but can suffice 
if nothing else can be done. I had mapped all the greek unicode characters 
to their equivelant latin ones that squeak is expecting as a shortcut if a 
modifier key is pressed. So, every time the user presses alt+"beta" the 
charcode send is actually alt+"b" and the shortcut is executed correctly.. 
It is a job done inside the greek InpuInterpreter...

Chris. 




More information about the etoys-dev mailing list