[squeak-dev] International text input on X11

Yoshiki Ohshima Yoshiki.Ohshima at acm.org
Sun May 15 21:16:17 UTC 2016


On Sun, May 15, 2016 at 1:32 PM, tim Rowledge <tim at rowledge.org> wrote:
>
>> On 15-05-2016, at 1:29 PM, Yoshiki Ohshima <Yoshiki.Ohshima at acm.org> wrote:
>>
>> Thank you everybody for all the help!  We'll need to fold these
>> changes and I'll test a few more configurations so that a novice user
>> invoking Scratch on Raspbian sees everything al right, but it is
>> getting there!
>
> I wish I could have offered something but unix non-anglo character input is so far outside my area I probably can’t even spell it correctly…
> but once you’ve got it working to your satisfaction I can certainly make sure it gets into the next available Pi release.

Great.  One thing I just started poking around was how Scratch
actually gets executed when you choose it from the menu.  What would
have to happen is that the script executed from there (I presume
/usr/bin/scratch) checks the LANG environment variable (or call the
locale command, and when the result is either ja, ko, or cn (or
actually the value of XMODIFIERS has @im), it invokes the VM with
"-vm-display-X11 -compositioninput".

Then to the image, two changes to ImmX11>> keyboardFocusForMorph and
StringFieldMorph>> keyboardFocusChange.  There are some others that
implement #keyboardFocusChange: but I have not all understood which
ones are relevant to Scratch, and keyboard text input.

With those, and the change to recordPendingKeys(), it will be in good shape.

-- 
-- Yoshiki


More information about the Squeak-dev mailing list