1 (edited by Prakta 2012-04-04 23:01:50)

Topic: Greek letters & max char limit in player names

aaaaaaaaaaaaaaa

versus

ααααααα

Apparently, Latin alphabet is allowed up to 15 characters whilst the Greek one can accept only 7 characters.
I am sad.

2 (edited by KillaBilla 2012-04-04 23:52:24)

Re: Greek letters & max char limit in player names

Unicode characters (like the alpha) use two bytes. The player name has 16 bytes (one being the null-terminator, so only 15 bytes can be used for your name). Normal characters only use one byte so you can use up to 15 normal character or 15/2 = 7 unicode characters in your name.

3

Re: Greek letters & max char limit in player names

KillaBilla wrote:

Unicode characters (like the alpha) use two bytes.

That's exactly what I was thinking, I remember that past version(s) allowed more than 15 character names, it was probably reduced due to spam or simply unnecessary name length.
But 7 characters is still sad.

4

Re: Greek letters & max char limit in player names

Prakta wrote:

I remember that past version(s) allowed more than 15 character names, it was probably reduced due to spam or simply unnecessary name length.
But 7 characters is still sad.

It was reduced because name and clan were seperated and now the name only contains the real name and not also the clan. The name is limited to 16 bytes because of the networking stuff. I think the size of the name should be increased to 32 bytes, but only 16 characters should be allowed, so that 16 unicode characters are possible too.

5 (edited by Prakta 2012-04-05 09:13:06)

Re: Greek letters & max char limit in player names

KillaBilla wrote:

I think the size of the name should be increased to 32 bytes, but only 16 characters should be allowed, so that 16 unicode characters are possible too.

Shall we sacrifice a tee now, pleasing the omnipotent Developers and persuading them to grant us this wish?

6 (edited by TeePhoenix 2012-06-10 16:26:27)

Re: Greek letters & max char limit in player names

Deleted.

The face of terrorism is called United States of America!

7

Re: Greek letters & max char limit in player names

I would increase max clan tag characters by 2.

Once in a century...

8 (edited by KillaBilla 2012-04-05 14:28:22)

Re: Greek letters & max char limit in player names

TeePhoenix wrote:
KillaBilla wrote:

Unicode characters (like the alpha) use two bytes.

Only the half truth (if you meant all unicode characters and not the greece ones).

It matters which charset is used: UTF 8 => 1 - 4 bytes, UTF 16 => 2 - 4 bytes and UTF 32 => 4 bytes.
Because the ASCII characters are part of Unicode too, so they are also Unicode characters, that are represented by 1 byte (UTF8), also there are characters that need more than 2 bytes in the Unicode standard.

Teeworlds uses UTF-8 with 1-4 bytes per character.
Sorry I didn't look it up in the source code, I just checked my windows unicode charset and every character used 2 bytes.

TeePhoenix wrote:
KillaBilla wrote:

I think the size of the name should be increased to 32 bytes, but only 16 characters should be allowed, so that 16 unicode characters are possible too.

I would increase it to 4x of the allowed characters of the name, because an unicode character (as mentioned above) can also be 4 bytes long.

I'm not sure if this is needed, as I don't know if there is support for asian characters (which need more then two bytes) planned (I think the current font does not support them).


TeePhoenix wrote:
Prakta wrote:

Shall we sacrifice a tee now, pleasing the omnipotent Developers and persuading them to grant us this wish?

I doubt. Setting the limit to 32  is just impossible or wouldnt work everywhere and there is no way to solve this problem when necessary.

TeePhoenix wrote:

All in all => still possible and for those that doesnt know what the word means: Possible = you can do it, not possible = you cant do it...

Why shouldn't it be possible? In Teeworlds 0.5 the name was 24 bytes long, what's the matter with increasing the length to 32 or 64 bytes?

9 (edited by TeePhoenix 2012-06-10 16:26:21)

Re: Greek letters & max char limit in player names

Deleted.

The face of terrorism is called United States of America!

10

Re: Greek letters & max char limit in player names

TeePhoenix wrote:
KillaBilla wrote:

I'm not sure if this is needed, as I don't know if there is support for asian characters (which need more then two bytes) planned (I think the current font does not support them).

Just as an example: I am using this character in my clan name: ☯ and it needs 3 characters.

That's not really an asian character. I didn't mean that all characters with more then 2 bytes are not supported, I just meant the asian characters.


TeePhoenix wrote:
KillaBilla wrote:

Why shouldn't it be possible? In Teeworlds 0.5 the name was 24 bytes long, what's the matter with increasing the length to 32 or 64 bytes?

Dont argue with me, it isnt my opinion, just the default answer that is usually given by some teeworlds devs to nearly everything...

I am interested if a teeworlds dev will comment this topic. I dont think that a dev will do the same answer (because I did it) but maybe he had did it, if I hadnt.

I'm taking part in the development too and I'm sure that this is possible without much effort, but it will need a compatibility break.