We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › need help! Input chinese with multiple keys typing
Page Index Toggle Pages: 1
need help! Input chinese with multiple keys typing (Read 402 times)
need help! Input chinese with multiple keys typing
Apr 16th, 2010, 4:25am
 
i am doing a project that allowing typing in words, hopefully chinese. I was sucked in the stage that showing chinese properly for some chinese characters which are typed in code. But i can't got it right with live typing.

I know it should be some problem at:
void keyPressed() {
// If the return key is pressed, save the String and clear it
if (key == '\n' ) {
  saved = typing;
  // A String can be cleared by setting it equal to ""
  typing = "";
} else {
  // Otherwise, concatenate the String
  // Each character typed by the user is added to the end of the String variable.
 
 typing = typing + key;
}
}


but i cannot solve it. Typing chinese needed to input multiple keys, such as "hi7" to give "我" one single chinese character.
Is it possible to do that? having a live typing chinese words in processing?

Thanks
Page Index Toggle Pages: 1