[etoys-notify] [JIRA] Commented: (SQ-554) Etoys does not work with Chinese input

K. K. Subramaniam (JIRA) tracker at squeakland.org
Fri Oct 1 07:21:02 EDT 2010


    [ http://tracker.squeakland.org/browse/SQ-554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=39525#action_39525 ] 

K. K. Subramaniam commented on SQ-554:
--------------------------------------

Currently input interpreters associated with HandMorph is selected only on locale change. CJVK and Indic locales require UTF-8 input interpreters, but because LocalePlugin ignores the codeset (UTF-8) part, locale change picks the default (Latin-1) input interpreter. Japanese locales use a specific environment class to provide UnixUTF8JPInterpreter which handles the input sequence correctly.

This can be checked by printing (CTRL-P) in a TextMorph:
   ActiveHand keyboardInterpreter
and
   LanguageEnvironment currentPlatform class inputInterpreterClass

A second issue is that input stream (even from US keyboard layouts) may be encoded into UTF-8 by input method engines, regardless of the layout, locale or language setting. But HandMorph treats incoming keystrokes as ASCII-encoded characters.

W‌ith an VM started with -compositioninput and dropping the m17nchk.1.cs hack,‌ I ‌was able to type into a TextMorph in three languages - English, Kannada and Hindi (see picture). I would like someone else to see if this can handle CJVK too. Don't save the image with the hack, though.

> Etoys does not work with Chinese input
> --------------------------------------
>
>                 Key: SQ-554
>                 URL: http://tracker.squeakland.org/browse/SQ-554
>             Project: squeakland
>          Issue Type: Bug
>          Components: etoys, etoys-linux, etoys-olpc, etoys-sugar
>            Reporter: Bert Freudenberg
>             Fix For: etoys 2011
>
>
> Original report at http://dev.laptop.org/ticket/9620 (OLPC F11-1.5)
> Sayamindu's steps to reproduce:
> 1. Install OS 36
> 2. Change value of LANG in /home/olpc/.i18n to zh_CN.UTF-8
> 3. Change value of XKB_VARIANT in /etc/sysconfig/keyboard to olpc2 (XKB_LAYOUT should be US)
> 4. Restart Sugar
> 5. Verify that Chinese input is working by trying the language-switch button and typing something in the mesh-search-bar.
> 6. Start Etoys and try to type something in Chinese.
> Expected results:
> Chinese characters should appear, along with the PinYin input bar in the lower left corner
> Actual Results:
> Characters from the standard QWERTY keyboard appear
> Additional Notes:
> The squeak VM needs to be started with the -compositioninput option (this can be done via the etoys script in /usr/bin). However, even after that, Chinese characters appear correctly only after the locale (LANG, LC_ALL env variables) are set to ja_JP.UTF-8

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tracker.squeakland.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       


More information about the etoys-notify mailing list