Re: New Win32lib & wxEuphoria
- Posted by mattlewis (admin) Sep 24, 2010
- 1423 views
I went to see W_SPRINTF() and then looked for documentation on the "built-in sprintf()" but did not see any.
Take a look at your euphoria documentation for sprintf().
So far I have found wxWidgets (worked on by friends) and wrappings derived from wxwidgets somewhat deffective when one wants to extract a substring out of a Indic Unicode string. This is because, unlike European languages, there are many Unicode Indic characters that can't exist on their own. स्मशानयात्रा (smashan-yatra स्म शा न या त्रा) in Hindi is 5 characters. Unicode represents this as 12 characters (3 2 1 2 4) and if I were to extract the third and fourth characters I should get न या. I get varying results and the only place I have had some sensible results is in Java. Perhaps I am doing something wrong.
I really don't know that much about unicode and working with it. With wxEuphoria, you might try building that using something like:
constant smashan_yatra = {#2360,#2381,#2350,#2358,#2366,#2344,#2351,#2366,#2340,#2381,#2352,#2366}
And see how that displays with a font that covers those code points. I tried it here, and got gibberish. Alternatively, if you can encode it in UTF-8, you can use from_utf8() in wxEuphoria to get whatever wxWidgets expects that to look like.
Matt