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.
You are not logged in. Please login or register.
Teeworlds Forum → Development → 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.
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.
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.
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.
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?
Deleted.
I would increase max clan tag characters by 2.
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.
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).
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.
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?
Deleted.
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.
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.
Teeworlds Forum → Development → Greek letters & max char limit in player names
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.