Switching the keyboard input method

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Hubert
Posts: 2
Joined: Thu Mar 29, 2007 4:38 pm

Switching the keyboard input method

Post by Hubert » Tue Sep 18, 2012 11:34 am

I cannot make the input method switch to a Chinese keyboard. According to the LC dictionary: "If the textFont of a field or a chunk includes a language, selecting in that field or chunk automatically switches the keyboard input method to the one for that language, ready to type text in the language." This simply does not work with OS 10.7. If the active keyboard is English, selecting a field whose textfont is "Apple LiSung Light,Chinese" does not change anything and the input text will be in English. (Conversely, if the active keyboard is "Pinyin-Traditional", the input will be Chinese even if the textfont of the selected field is "Arial".)
I am wondering if anyone has successfully managed to input Chinese characters into a field without first switching manually to a Chinese input method (traditional or simplified). Thanks for any hints.
Hubert

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Switching the keyboard input method

Post by Mark » Thu Sep 20, 2012 11:35 am

Hi Hubert,

The form "Apple LiSung Light,Chinese" is no longer supported (since LC 5.5, IIRC). This is probably the reason why LC is no longer able to detect which language is being used. It only knows that the current string is unicode.

I have a command line utility for Mac OS X, which gets or sets the input method. Contact me for more info.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply