Author Topic: How can I add chinese support?  (Read 895 times)

googletime

  • Wayfarer
  • *
  • Posts: 1
    • View Profile
How can I add chinese support?
« 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?
« Last Edit: October 21, 2008, 03:35:26 pm by googletime »

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: How can I add chinese support?
« Reply #1 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.

Vengeance

  • Veteran
  • *
  • Posts: 1452
    • View Profile
Re: How can I add chinese support?
« Reply #2 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?

Khaki

  • Hydlaa Resident
  • *
  • Posts: 85
    • View Profile
Re: How can I add chinese support?
« Reply #3 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.

Khaki

  • Hydlaa Resident
  • *
  • Posts: 85
    • View Profile
Re: How can I add chinese support?
« Reply #4 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.

screwballl

  • Guest
Re: How can I add chinese support?
« Reply #5 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