[Tuxpaint-devel] win32 test version with simple character composition
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
|
From: John P. <jo...@jo...> - 2006-01-05 10:56:26
|
Hi All, I've had a go at fixing the input composition problem on Windows for simple cases like Spanish and German (French? Italian?). Seems to work OK on WinXP and Win98, and I believe it will work on Win95, but I don't have a Win95 machine to test on. Here is a link to a test version: http://johnnypops.demon.co.uk/files/tuxpaint-0.9.15/tuxpaint-0.9.15-unicode-test.zip (size 190K). Just drop the replacement files over the existing ones in the tuxpaint directory. It includes a new 'tuxpaint.exe' and a new 'SDL.dll' with only the 'windib' driver and a small patch to make the Unicode field of SDL_keysym contain a UTF-16 character. No extra dependency e.g. iconv was required for 'SDL.dll' as I was able to use MultiByteToWideChar() to convert from the code-page dependent ANSI character to a UTF-16 one. I also had to make a few changes to Tux Paint as the existing code wasn't handling the characters from SDL correctly (as bill! predicted). The modified Tux Paint code builds OK on Linux, and the non-composed characters above 127 are correctly displayed. I assume the faulty composed characters are a problem with the X11 back-end and will look into it later. Here is a link to patches for SDL-1.2.9 and the current Tux Paint CVS: http://johnnypops.demon.co.uk/files/tuxpaint-0.9.15/unicode-patch-sdl-and-tuxpaint.zip I would appreciate some testing. I've tried with German (I've got a German keyboard for testing) and Spanish (learning the keys by trial-and-error). You might need to experiment with the fonts a bit - not all of them display correctly. Good Luck, I'm off to get some sleep, John Popplewell. P.S. I tried to have a look at SDL_inputmethod first, but was unable to get the source-code from SourceForge :-( |