wx.STC and Unicode

Has anybody on the list been able to get wx.STC to work on a Mac with
Chinese, Korean, or any other Unicode-heavy language?

I've done okay with the Northern-European languages; for example, I have a
Swedish document that displays correctly. I'm sure I've got the appropriate
Chinese fonts installed, and can see the expected Chinese characters in a
wx.TreeCtrl and in a wx.TextCtrl in my program. I seem to be able to work
with Chinese fine on Windows with wx.STC.

If I load a Chinese document in my wx.STC on my Mac, I see nothing, yet if I
export the contents of that widget through my RTF Parser, I can see the
Chinese characters when I load the resulting document in Word for the Mac.
That tells me the characters are "there" but I can't see them. If I mix
Chinese and English, lines with only English characters are displayed, but
any line with Chinese characters on it appears blank, and not even the
English characters on the same line are displayed. Of course, my Print
Preview of the same document, taken from the wx.STC's methods, displays all
the text.

I'm using wxPython 2.6.1.0-Unicode, OS X 10.3.9, and the Python that comes
with Panther.

Any ideas?

David K. Woods, Ph.D.
Transana Lead Developer
STELLAR Lead Developer
Wisconsin Center for Education Research
University of Wisconsin, Madison

  "Quick. Cheap. Good. Pick two."

Robin,

Welcome back. Here's a re-submission of something I posted a couple of
months ago that got no response, now that you've had a couple of days to
re-orient and catch your breath. Any ideas?

David

···

Has anybody on the list been able to get wx.STC to work on a
Mac with Chinese, Korean, or any other Unicode-heavy language?

I've done okay with the Northern-European languages; for
example, I have a Swedish document that displays correctly.
I'm sure I've got the appropriate Chinese fonts installed,
and can see the expected Chinese characters in a wx.TreeCtrl
and in a wx.TextCtrl in my program. I seem to be able to
work with Chinese fine on Windows with wx.STC.

If I load a Chinese document in my wx.STC on my Mac, I see
nothing, yet if I export the contents of that widget through
my RTF Parser, I can see the Chinese characters when I load
the resulting document in Word for the Mac. That tells me the
characters are "there" but I can't see them. If I mix
Chinese and English, lines with only English characters are
displayed, but any line with Chinese characters on it appears
blank, and not even the English characters on the same line
are displayed. Of course, my Print Preview of the same
document, taken from the wx.STC's methods, displays all the text.

I'm using wxPython 2.6.1.0-Unicode, OS X 10.3.9, and the
Python that comes with Panther.

Any ideas?

David K. Woods, Ph.D.
Transana Lead Developer
STELLAR Lead Developer
Wisconsin Center for Education Research
University of Wisconsin, Madison

  "Quick. Cheap. Good. Pick two."

David Woods wrote:

Robin,

Welcome back. Here's a re-submission of something I posted a couple of
months ago that got no response, now that you've had a couple of days to
re-orient and catch your breath. Any ideas?

David

Has anybody on the list been able to get wx.STC to work on a Mac with Chinese, Korean, or any other Unicode-heavy language?

I've done okay with the Northern-European languages; for example, I have a Swedish document that displays correctly. I'm sure I've got the appropriate Chinese fonts installed, and can see the expected Chinese characters in a wx.TreeCtrl and in a wx.TextCtrl in my program. I seem to be able to work with Chinese fine on Windows with wx.STC.

If I load a Chinese document in my wx.STC on my Mac, I see nothing, yet if I export the contents of that widget through my RTF Parser, I can see the Chinese characters when I load the resulting document in Word for the Mac. That tells me the characters are "there" but I can't see them. If I mix Chinese and English, lines with only English characters are displayed, but any line with Chinese characters on it appears blank, and not even the English characters on the same line are displayed. Of course, my Print Preview of the same document, taken from the wx.STC's methods, displays all the text.

I'm using wxPython 2.6.1.0-Unicode, OS X 10.3.9, and the Python that comes with Panther.

Any ideas?

Sorry, nothing comes to mind.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!