Hello,
There seems to be a bug in wxStyledTextControl (STC) displaying
composing characters in unicode. I have the following setup:
Windows XP, wxPython 2.4.2, Python 2.3
When I type composing Devanagari characters in the STC frame, the cursor
seems to be offset from the actual text input location. To elaborate: In
Devanagari (like many other scripts), certain characters which occupy
a single glyph are "composed" from multiple characters. This is where
STC seems to have a problem. When I type 'ka' in Devanagari, I get
a single glyph displayed on the frame as expected. However, the cursor
is positioned one more space to the right, as if the character had
occupied two glyphs... Seems like the cursor position in
wxStyledTextControl is calculated by simply counting the individual
characters without taking care of composition.
I hope this is the correct place to report this bug.
On a side note, wxTextCtrl (which is also great! does _not_ have this
problem. The cursor is always positioned correctly. However, I would
like to use STC since it has builtin syntax highlighter for HTML.
Thanks,
Srinath