iceball icon indicating copy to clipboard operation
iceball copied to clipboard

Unicode support

Open rakiru opened this issue 10 years ago • 4 comments

Foreign languages and stuff. I'm not sure how it's handled in configs and stuff, but chat is ascii-only atm (that will need #75 implemented to be of any use).

rakiru avatar Feb 05 '15 00:02 rakiru

Configs are quite likely to explode if you use unicode at the moment.

Chat should be fine but yeah, that would require TTF support and I believe that'll be a pain.

iamgreaser avatar Feb 05 '15 00:02 iamgreaser

JSON documents should be UTF-8 eventually (technically, they're supposed to be).

TTF is one of my top priorities, since I can barely read chat currently due to it being so small.

rakiru avatar Feb 05 '15 00:02 rakiru

The upgrade to SDL2 added a text event which will pass through the full unicode char sequence that was input from the keyboard (including through IME etc.). Some font stuff needs to get fixed before we can actually display these lucrative characters (see #75).

Other than that i can imagine we need some unicode variants of some functions from string.h that we may not have thought of from the start.

fkaa avatar Jan 02 '16 10:01 fkaa

One possibility on the C side: https://github.com/sheredom/utf8.h I'm not sure about the Lua functions. I think there's an in-Lua library for it available, which might be fine.

rakiru avatar Jan 02 '16 18:01 rakiru