adonthell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Adonthell-devel] Re: SDL 1.3 and text input


From: Kai Sterker
Subject: [Adonthell-devel] Re: SDL 1.3 and text input
Date: Fri, 22 Jan 2010 13:01:02 +0100

On Fri, Jan 22, 2010 at 12:07 AM, Kai Sterker <address@hidden> wrote:

> Rendering should be fine now, but input still needs some updates.
> ASCII input appears to work again, but I didn't manage to type
> anything more complex yet.

The textbox for input is now aware of unicode as well. The one
remaining problem is using a font that actually contains the required
glyphs. I guess the best we can do here is allowing to select a font
via the config file, just as with v0.3. This should be simple change.

As for the overall state of unicode support:
* SDL 1.2 has only limited support for unicode text input. Anything
that requires complex input methods is probably not working when using
the 1.2 backend.
* SDL 1.3 supports full unicode text input. Should be possible to
enter any conceivable character using the 1.3 backend.
* Internally, the GUI now uses strings in UTF-8 encoding and can thus
display any character that is part of the chosen font.
* Game data (including the python scripts) should contain plain ASCII
only. Translations into other languages via gettext will be UTF-8
encoded, however. So while it is not possible to directly create games
in non-English languages, games could be translated into any other
language with ease.

Attached is a little snapshot of some simple unicode text I just typed
in (using guitest) :-)

Kai

Attachment: unicode.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]