Stressing Greek characters doesn't seem to work on Windows

Tux Paint received a bug report that it’s “Text” tool doesn’t
support stressed Greek characters (e.g., ?? ?? ?? ?? ?? ?? ??).

I looked into how this is done, and it seems that on
Windows, Mac OS X and Linux, what you do is press the key
to the right of the [L] key (on my US QWERTY, that’s [;]),
and then press the key to stress (on my keyboard, e.g., [A]
normally makes ‘??’, so [;][A] makes ‘??’). I tested on Ubuntu
by using the KDE Keyboard Layout Switcher and switching to 'gr’
input mode, then back to ‘us’ when I was done.

It sounds like the stresses aren’t working on Windows 7, and
I’m not sure if there’s something else the user needs to do
(I imagine not, because they’re able to type Greek in other apps),
if there’s anything Tux Paint needs (I imagine not, because I’m
able to type in Greek on Ubuntu), or if there’s a bug in SDL
(it seems unlikely, but obviously I’m here, asking :wink: )

See: https://sourceforge.net/tracker/index.php?func=detail&aid=3153689&group_id=66938&atid=516295

Any ideas? If you’ve got Windows 7, can grab a copy of
Tux Paint 0.9.21 ( http://www.tuxpaint.org/download/windows/ ),
and can test typing in Greek, can you let me know if it works,
and/or what you needed to do to make it work?

Thanks!–
-bill!
Sent from my computer

I can try to have a look at it later today, when I return home.

Currently I am at work, where I still have to deal with XP.–
Paulo

On Tue, Jan 11, 2011 at 6:37 PM, Bill Kendrick wrote:

Tux Paint received a bug report that it’s “Text” tool doesn’t
support stressed Greek characters (e.g., ?? ?? ?? ? ?? ?? ??).

I looked into how this is done, and it seems that on
Windows, Mac OS X and Linux, what you do is press the key
to the right of the [L] key (on my US QWERTY, that’s [;]),
and then press the key to stress (on my keyboard, e.g., [A]
normally makes ‘??’, so [;][A] makes ‘??’). I tested on Ubuntu
by using the KDE Keyboard Layout Switcher and switching to 'gr’
input mode, then back to ‘us’ when I was done.

It sounds like the stresses aren’t working on Windows 7, and
I’m not sure if there’s something else the user needs to do
(I imagine not, because they’re able to type Greek in other apps),
if there’s anything Tux Paint needs (I imagine not, because I’m
able to type in Greek on Ubuntu), or if there’s a bug in SDL
(it seems unlikely, but obviously I’m here, asking :wink: )

See:
https://sourceforge.net/tracker/index.php?func=detail&aid=3153689&group_id=66938&atid=516295

Any ideas? If you’ve got Windows 7, can grab a copy of
Tux Paint 0.9.21 ( http://www.tuxpaint.org/download/windows/ ),
and can test typing in Greek, can you let me know if it works,
and/or what you needed to do to make it work?

Thanks!


-bill!
Sent from my computer


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hi,

I just had a look and all letters are shown without stress characters,
Windows 7 64 bit.–
Paulo

On Tue, Jan 11, 2011 at 6:37 PM, Bill Kendrick wrote:

Tux Paint received a bug report that it’s “Text” tool doesn’t
support stressed Greek characters (e.g., ?? ?? ?? ? ?? ?? ??).

I looked into how this is done, and it seems that on
Windows, Mac OS X and Linux, what you do is press the key
to the right of the [L] key (on my US QWERTY, that’s [;]),
and then press the key to stress (on my keyboard, e.g., [A]
normally makes ‘??’, so [;][A] makes ‘??’). I tested on Ubuntu
by using the KDE Keyboard Layout Switcher and switching to 'gr’
input mode, then back to ‘us’ when I was done.

It sounds like the stresses aren’t working on Windows 7, and
I’m not sure if there’s something else the user needs to do
(I imagine not, because they’re able to type Greek in other apps),
if there’s anything Tux Paint needs (I imagine not, because I’m
able to type in Greek on Ubuntu), or if there’s a bug in SDL
(it seems unlikely, but obviously I’m here, asking :wink: )

See:
https://sourceforge.net/tracker/index.php?func=detail&aid=3153689&group_id=66938&atid=516295

Any ideas? If you’ve got Windows 7, can grab a copy of
Tux Paint 0.9.21 ( http://www.tuxpaint.org/download/windows/ ),
and can test typing in Greek, can you let me know if it works,
and/or what you needed to do to make it work?

Thanks!


-bill!
Sent from my computer


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Probably related to composite glyphs which are a special case during
unicode mapping (i.e. see the comments here
http://fontforge.sourceforge.net/accented.html and
the specs on unicode compositions
http://www.cs.tut.fi/~jkorpela/chars.html#compose) and does not seem to
be supported in freetype1: “Freetype …does simple (non-complex)
mapping of Unicode characters …” (http://behdad.org/text/). The good
news is that freetype2 should support it quite well – the freetype2 API
documentation mentions the (internal) type: FT_GLYPH_FORMAT_COMPOSITE
"The glyph image is a composite of several other images. This format is
only used with FT_LOAD_NO_RECURSE, and is used to report compound glyphs
(like accented characters)."
(http://www.freetype.org/freetype2/docs/reference/ft2-basic_types.html)
– but SDL_ttf may not be in sync with the latest freetype2 API to use
this functionality.

It could be that the rendering code either needs to enable a look ahead
in the unicode stream to see if the next characters is a combining mark
and then render the pre-composed glyph for the combination OR one needs
to implement an algorithm as shown here
http://www.unicode.org/notes/tn2/ using a 1-to-1 one-to-one character to
glyph processing model and some on-screen combining as a workaround.

Or maybe your freetype2.dll is out of date. What’s the version? The link
I found on the web seems a bit old now:
http://gnuwin32.sourceforge.net/packages/freetype.htm

Cheers,
–Andreas

Note: BTW one good way to “see” these characters on Windows is to open
the “On-Screen Keyboard” and then switch the locale for the SDL process
to another languages (which need to be enabled/installed as input
language first).On 1/12/11 12:52 PM, Paulo Pinto wrote:

Hi,

I just had a look and all letters are shown without stress characters,
Windows 7 64 bit.


Paulo

On Tue, Jan 11, 2011 at 6:37 PM, Bill Kendrick <nbs at sonic.net <mailto:nbs at sonic.net>> wrote:

Tux Paint received a bug report that it's "Text" tool doesn't
support stressed Greek characters (e.g., ?? ?? ?? ?  ?? ?? ??).

I looked into how this is done, and it seems that on
Windows, Mac OS X and Linux, what you do is press the key
to the right of the [L] key (on my US QWERTY, that's [;]),
and then press the key to stress (on my keyboard, e.g., [A]
normally makes '??', so [;][A] makes '??').  I tested on Ubuntu
by using the KDE Keyboard Layout Switcher and switching to 'gr'
input mode, then back to 'us' when I was done.

It sounds like the stresses aren't working on Windows 7, and
I'm not sure if there's something else the user needs to do
(I imagine not, because they're able to type Greek in other apps),
if there's anything Tux Paint needs (I imagine not, because I'm
able to type in Greek on Ubuntu), or if there's a bug in SDL
(it seems unlikely, but obviously I'm here, asking ;) )

See:
https://sourceforge.net/tracker/index.php?func=detail&aid=3153689&group_id=66938&atid=516295
<https://sourceforge.net/tracker/index.php?func=detail&aid=3153689&group_id=66938&atid=516295>

Any ideas?  If you've got Windows 7, can grab a copy of
Tux Paint 0.9.21 ( http://www.tuxpaint.org/download/windows/ ),
and can test typing in Greek, can you let me know if it works,
and/or what you needed to do to make it work?

Thanks!

--
-bill!
Sent from my computer
_______________________________________________
SDL mailing list
SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org