Chinese "input methods" with perl/Tk?
Nick Ing-Simmons <[email protected]>
| Newsgroups | gmane.comp.lang.perl.tk |
|---|---|
| Message-ID | <[email protected]> |
Xiaohong Han <[email protected]> writes: >Hello, > I have problem to enable multi-byte characters input to Perl/Tk widget. >I have post the question to [email protected]. I didn't get any reply >back. So I send this e-mail to you to ask for help. Okay, but I am not best person to ask about this kind of thing so I have copied the list again. > I have a Perl/Tk script to created a DialogBox which contains a entry >widget. When I run this script on Solaris, I try to type in multiple-byte >characters, e.g. Chinese characters, in the popup dialog box entry field. Okay. >However, the entry field would accept multiple-byte characters. There seems to be a "not" missing in that sentence. Do you get nothing at all or bytes of "rubbish" - if rubbish can you tell us what rubbish you see and the Unicode number of character you were trying to type? >On my >Solaris machine, I have the language and locale setup. What are language and locale settings you are using? perl/Tk is using Unicode internally, so it is important that Tk has access to a perl Encode module that handles your locale's encoding. So which version of perl and Tk are you using. >So I could type >multiple-byte characters from the command line. Good start. Does input of chinese work for things other than "terminal". e.g. Does it work for browser like "mozilla"? >I have tried to use >$widget -> useinputmethods(1) in my script. It didn't help. I think that on most modern X systems the input methods code is now enabled by default. >Do you know >what do I miss? Would you please point me some document how to enable >input multiple-byte characters in Perl/Tk widget on UNIX > thanks for your advice > xiao > >------------------------------------------------------------------------------- >Xiaohong Han mailto: [email protected] >Rational software phone: (781) 676-2683 >IBM software Group fax: (781) 676-2420 >20 Maguire Road >Lexington MA 02421 >--------------------------------------------------------------------------------- -++**==--++**==--++**==--++**==--++**==--++**==--++**== This message was posted through the Stanford campus mailing list server. If you wish to unsubscribe from this mailing list, send the message body of "unsubscribe ptk" to [email protected]