From: Simon F. <sim...@bb...> - 2002-10-24 11:42:56
|
> -----Original Message----- > From: Jouke Visser [mailto:jo...@pv...] > Subject: [wxperl-users] Unicode support > > I wondered in what sense wxPerl supports Unicode. I have written a > program I want to make as multi-lingual as possible, and to do so I'm > using Locale::Maketext::Lexicon to translate all text my > program uses, > for menus, dialog boxes etc. I can't really comment on the Unicode support. If you're using a Perl module like Locale::Maketext::Lexicon, it might depend on your version of perl. But did you know that you can use your gettext .po/.mo files with Wx::Locale? There's a Wx::Locale demo in wxperl/demo/demo.pl. SF BBCi at http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system, do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. |
From: Mattia B. <mb...@ds...> - 2002-10-24 19:24:24
|
> > > > > >I can't really comment on the Unicode support. If you're using a Perl module > >like Locale::Maketext::Lexicon, it might depend on your version of perl. But > >did you know that you can use your gettext .po/.mo files with Wx::Locale? > >There's a Wx::Locale demo in wxperl/demo/demo.pl. > > > Thanks Simon, > > Hmm...that's very nice :) I'm inclined to think that since wxWindows > supports Unicode, poEdit (the translation tool built using wxWindows) > uses and supports Unicode, Wx::Locale uses the .po files directly and > Wx::Locale probably handles everything internally in wxWindows-native > stuff, Unicode should work that way... > > It would be nice tho' to hear from someone actually using Unicode in > wxPerl... I would like to know, too... ...however, if you don't mind, you can get some advice from a non-user :-) wxWindows can be compiled in "Unicode" and "non-Unicode" mode. Unicode-mode is currently supported only under Windows NT/2K/XP[1]; 2.4.0 will hopefully support Unicode-mode with GTK 2, too. In Unicode-mode wxWindows manipulates Unicode strings internally (UCS-2 under Win32, whatever the system supports under *NIX), and uses Unicode-aware system calls where appropriate. In non-Unicode mode strings are stored internally in whatever the system encoding is. Now let's talk about wxPerl; wxPerl compiles in Unicode-mode (modulo a couple small errors in 0.12; 0.11 should be fine (if you disable stc & xrc)); and when in Unicode mode it should fully support passing Unicode strings to wxPerl[wxWindows] methods. In non-Unicode mode, you probably need to use Encode.pm to encode Unicode string in system encoding. But since I do not have (easy) access to anything but Italian Windows 2000, I can't know for sure. HTH, at least a bit Mattia [1] there is a thing from MS, called "Microsoft Layer for Unicode" (unicows.dll), that emulates Unicode system calls under Win95/98/ME, and calls "true" Unicode calls under NT/2K/XP; poEdit is compiled that way; I don't know if wxPerl compiles against unicows.dll; this can be used to provide a single binary that works in Unicode-mode in NT/2K/XP, and pseudo-Unicode under 95/98/ME. |
From: Jouke V. <jo...@pv...> - 2002-10-25 08:02:40
|
> > > Now let's talk about wxPerl; wxPerl compiles in Unicode-mode (modulo >a couple small errors in 0.12; 0.11 should be fine (if you disable stc & xrc)); >and when in Unicode mode it should fully support passing Unicode strings to >wxPerl[wxWindows] methods. > That leaves me with only one question: I'm using wxPerl 0.12 (by means of the pre-compiled ppm you supply on the wxperl.sf.net download page). Is that compiled in Unicode mode? Or should I revert to 0.11? Regards, -- -------------------------------------------------------------------- | Jouke Visser | http://jouke.pvoice.org (personal) | | | http://www.pvoice.org (pVoice & pStory)| | Perl GUI Geek | http://wxperl.pvoice.org (wxPerl) | -------------------------------------------------------------------- |
From: Mattia B. <mb...@ds...> - 2002-10-28 18:33:53
|
On Fri, 25 Oct 2002 10:02:33 +0200 Jouke Visser <jo...@pv...> wrote: > > > > > > Now let's talk about wxPerl; wxPerl compiles in Unicode-mode (modulo > >a couple small errors in 0.12; 0.11 should be fine (if you disable stc > & xrc)); > >and when in Unicode mode it should fully support passing Unicode > strings to > >wxPerl[wxWindows] methods. > > > That leaves me with only one question: I'm using wxPerl 0.12 (by means > of the pre-compiled ppm you supply on the wxperl.sf.net download page). > Is that compiled in Unicode mode? Or should I revert to 0.11? I will upload an unicode-capable snapshot today. Note that this will only work in Windows NT/2k/XP. Regards Mattia |
From: Jouke V. <jo...@pv...> - 2002-10-24 11:56:46
|
> > >I can't really comment on the Unicode support. If you're using a Perl module >like Locale::Maketext::Lexicon, it might depend on your version of perl. But >did you know that you can use your gettext .po/.mo files with Wx::Locale? >There's a Wx::Locale demo in wxperl/demo/demo.pl. > Thanks Simon, Hmm...that's very nice :) I'm inclined to think that since wxWindows supports Unicode, poEdit (the translation tool built using wxWindows) uses and supports Unicode, Wx::Locale uses the .po files directly and Wx::Locale probably handles everything internally in wxWindows-native stuff, Unicode should work that way... It would be nice tho' to hear from someone actually using Unicode in wxPerl... -- -------------------------------------------------------------------- | Jouke Visser | http://jouke.pvoice.org (personal) | | | http://www.pvoice.org (pVoice & pStory)| | Perl GUI Geek | http://wxperl.pvoice.org (wxPerl) | -------------------------------------------------------------------- |