Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Add the support for other double byted languages  (Read 6137 times)

0 Members and 1 Guest are viewing this topic.

Feng

  • Guest
Add the support for other double byted languages
« on: February 07, 2004, 09:01:25 PM »

Can you add the support for other double byted languages?
ex:chinese,Japanese
Having the feature implemented may attract much more people from all over the globe into using wme,and can internationalize the game.

Thank you....
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re:Add the support for other double byted languages
« Reply #1 on: February 08, 2004, 10:00:42 AM »

I can consider it, but it would certainly require vast internal changes to the engine. Plus, I'm not really sure what exaxctly would it take. Would the scripts need to be in unicode too?
Do you know how does that work for other programming languages, like C?
Sorry for my ignorance but I didn't have to deal with double-byted languages before...
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

McCoy

  • The cocido eater
  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 365
  • Spurrrrrrring
    • View Profile
    • Spur Games
Re:Add the support for other double byted languages
« Reply #3 on: February 08, 2004, 12:13:06 PM »

Hm... But I'm thinking, how to do a bitmap font for chinese or japanese?!?! You have to do a very huge texture with every kanji you'll use in the game (and it can be really lots), and in the correct order, and who knows wich else!!
Logged

Click here to sign my sig!

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re:Add the support for other double byted languages
« Reply #4 on: February 08, 2004, 12:59:13 PM »

Yes, I'm aware of unicode since I've used it before in some other program. But I was asking about the scripts, because I've seen files containing chinese texts, while the file stays single-byted. How's that done?

Here's an example: http://dead-code.org/misc/PROMPTS.RC

(at least I *think* those are chinese strings :))
« Last Edit: February 08, 2004, 01:00:36 PM by Mnemonic »
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re:Add the support for other double byted languages
« Reply #5 on: February 08, 2004, 01:00:22 PM »

And, yes, McCoy is right, the font would have to be qiute large in case of bitmap fonts.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Feng

  • Guest
Re:Add the support for other double byted languages
« Reply #6 on: February 09, 2004, 04:51:39 PM »

As a Big5 Code Traditional Chinese character,it contains two ascii code(height byte and low byte)
When the height byte is greater than 127(no containing 127),
the two bytes(height byte and low byte) will be regarded as a Chinese character.
When the height byte is smaller than 127 or equal to 127,
the one byte will be regarded as a English character.

Example:

74 65 73 74 20 BD 64 A8 D2 53 61 6D 70 6C 65

the result:
test 範例Sample

Explain:

74->  is smaller than or equal to 127  =>the result is "t"
65->  is smaller than or equal to 127  =>the result is "e"
73->  is smaller than or equal to 127  =>the result is "s"
74->  is smaller than or equal to 127  =>the result is "t"
20->  is smaller than or equal to 127  =>the result is " "
BD->  is greater than 127,so the byte(height byte:BD) and the next byte(low byte:64) will be regarded as a Chinese character  =>the result is "範"
A8->  is greater than 127,so the byte(height byte:A8) and the next byte(low byte:D2) will be regarded as a Chinese character  =>the result is "例"
53->  is smaller than or equal to 127  =>the result is "S"
61->  is smaller than or equal to 127  =>the result is "a"
6D->  is smaller than or equal to 127  =>the result is "m"
70->  is smaller than or equal to 127  =>the result is "p"
6C->  is smaller than or equal to 127  =>the result is "l"
65->  is smaller than or equal to 127  =>the result is "e"

If the script is not in Unicode,you must understand all other code formation for internationalization.(ex:GB code of Simple Chinese , EUC code of Japanese....)
So use Unicode overall in script and use TTF Font is a best method.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re:Add the support for other double byted languages
« Reply #7 on: February 09, 2004, 04:55:54 PM »

Oh, I see, so the file I posted contains double-byte characters embedded into an ASCII file, right? Thanks.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re:Add the support for other double byted languages
« Reply #8 on: February 14, 2004, 06:49:39 PM »

Well I think the only feasible way would be to embed double-byted characters into an ASCII file. Implementing unicode all over WME would take enormous amount of work.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.05 seconds with 20 queries.