PlaneShift

Support => Technical Help: Problems BEFORE entering the game => Topic started by: googletime on October 21, 2008, 03:31:57 pm

Title: How can I add chinese support?
Post by: googletime on October 21, 2008, 03:31:57 pm
I want to  input chinese at client side.What shoud i do?
How can I add IME to planeshife client?
Title: Re: How can I add chinese support?
Post by: Caarrie on October 21, 2008, 03:59:04 pm
as you have been told on irc a few times, this is not an easy job yet something that can be done due to many changes needed. please listen to what you have been told.
Title: Re: How can I add chinese support?
Post by: Vengeance on October 21, 2008, 04:14:02 pm
Perhaps the people on irc don't know how to do it but a forum reader does?

Anyone?
Title: Re: How can I add chinese support?
Post by: Khaki on October 23, 2008, 03:10:55 am
IME is most naturally added at the Crystal Space level since it is platform-dependent and we use platform-independent widgets. We already support chinese display.

For Windows, CS will need to handle WM_IME_* messages and translate these to the appropriate characters. http://msdn.microsoft.com/en-us/library/ms776154(VS.85).aspx

For Mac OS, CS will need to handle unicode input events: http://developer.apple.com/documentation/Carbon/Conceptual/UnderstandTextInput_TSM/tinptsm_concepts/chapter_2_section_3.html#//apple_ref/doc/uid/TP30000091-BHJDDIBI

AFAIK, this is pretty painful for Linux.
Title: Re: How can I add chinese support?
Post by: Khaki on October 24, 2008, 02:55:11 am
Actually it seems IME is already supported in Crystal Space for Windows. The PS client code for text boxes just needs to be modified to accept unicode characters.
Title: Re: How can I add chinese support?
Post by: screwballl on October 24, 2008, 05:34:09 am
Look into something called "dark domain" which is a project where someone seems to be already making a translation