[squeak-dev] International text input on X11

Yoshiki Ohshima Yoshiki.Ohshima at acm.org
Thu Jun 2 02:13:23 UTC 2016


On Wed, Jun 1, 2016 at 6:53 PM, tim Rowledge <tim at rowledge.org> wrote:
> We-eell, I’ve built a VM with the ImmX11 plugin. And added your suggested hacks to the two methods. And started my vm with -vm-sound-alsa -vm-display-X11 -compositioninput etc and … nothing much happens. It starts, it runs it behaves just as normal. The plugin is loaded and the CompositionWindowManager var is set. No extra pop-up windows. What am I missing?

If the settings described below is not properly set, the behavior you
mentioned is what is expected.  (Even the settings below are there,
you can still activate and deactivate the XIM client so it still can
happen.)

- The LC_ALL environment variable (and LANGUAGE, if I'm not mistaken)
has to be set.  The variable I believe has to be set for the X server
so it has to be done before launching the X server.
- an XIM client, such as ibus, scim, and Matchbox if I'm not mistaken,
has to be running.
- and the XIM client is configured to handle the language set to
LC_ALL. (On the Raspbian environment, you see an icon in the menu bar,
where you can see what languages it handles.)

With those, start a Squeak session.  You can activate/deactivate the
XIM client by its own key combination.  When you try to type into a
text field in Squeak, the overlay would be displayed around the text
field.

If you have a spare Raspian installation, you can do the following:
(But I am writing this from my memory, so it may not be exactly
correct. Sorry).

- From raspi-config, go to the "Internationalisation Options" and add
ja_JP.UTF8.

- From terminal install a few things:

sudo apt-get install ibus
sudo apt-get install ibus-anthy

This will add a new menu item to the Raspian menu.  IIRC, you need to
"add language" and select Japanese from the ibus configuration menu.

- Add the following lines to .bashrc
  export LANG=ja_jp.UTF8
  export LC_ALL=$LANG
  export LANGUAGE=$LANG

close X, do something like ". .bashrc" and restart X.  You should see
that Raspian menus are shown in Japanese.  (You can still start
raspi-config later and remove Japanese, so don't panic)

- Start Scratch, activate ibus from the ibus icon in the Raspian menu
(choose Japanese/日本語), click on somewhere such as the sprite name
field.
- type in some strings with enough vowels in it.  Hit enter and
composed characters should go into the text field.






-- 
-- Yoshiki


More information about the Squeak-dev mailing list