[squeak-dev] Re: Accented character input

José Luis Redrejo jredrejo at gmail.com
Thu Mar 20 23:06:58 UTC 2008

2008/3/20, Yoshiki Ohshima <yoshiki at vpri.org>:
>   José,
> >       Everything, including accented character input with "dead_keys"?
> >     Hmm.
> >
> > Yes, but there is one problem: clicking on the alt or arrow keys
> > raises a blank square.
>   The blank square problem is fixed in the OLPC version and should be
> merged to the trunk version.

Yes, but the olpc version misses the non-english & non-dead-keys characters
as ñ,ß, etc. and with the image patch that works.

  But, I'm still puzzled to hear that dead
> key works for you on the VM.  My experimental Spanish setting on my
> Fedora might be wrong, but here is my reasoning:
>   With a dead key ("'" for example), first time you pressed it, it
> doesn't give you the character, right?  Then, you can press "e" to get
> e with accent, or you can press "'" again to get a single "'".  This
> means that there should be a state kept in the VM to remember the
> previous character, but before the patch, there was no such thing.
>   Maybe there is some input method in front of the VM that processes
> the keyboard input first (like Japanese have)?

mmm, if you mean in the X libraries called by the vm, I think that's the
case. In fact that works that way whenever you use x2sqKeyInput instead of
x2sqKeyPlain at vm-display-X11/sqUnixX11.c. I.e.: if , calling the vm, you
use -nointl or your locale is not UTF-8, you'll use   x2sqKey= x2sqKeyPlain
instead of x2sqKey= x2sqKeyInput, then you'll get the accent and the vowel
separated. Using x2sqKeyInput you will only get one keycode. That's worked
always that way, the problem was that the keycode was wrongly interpreted by
the image because it was using the MacRomanInputInterpreter instead of the
UTF32InputInterpreter class.

>     Actually, we should take care of the case when somebody trys to run
> >     the new image on an old VM (UTF32InputInterpreter should look at the
> >     third entry in the event array when sixth is zero...)
> >
> > Yes, but the alternative is worst, so I think that's the best solution.
>   Sorry but what was "the alternative"?

Having a new  vm that does not work correctly typing non-english texts with
old and new images. With this change it will, at least, work typing using
new images.

José L.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20080321/3307c3ea/attachment.htm

More information about the Squeak-dev mailing list