Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 7

Qt-interest Archive, December 2001
QT in Englsih Linux with Jap support.


Message 1 in thread

Dear Cutes,

I already asked the same question before !!!

I created a text edit application in QT 3.0.0 uner Linux OS {Redhat 7.1}
English version.

How can I enter the japanese characters in the Edit boxes and other editable
areas.

Please Help.

Your Help is greatly appreciated.

Regards
Sajeesh


Message 2 in thread

dear Sajesh,
I have done something related to ur problem, but it deosnot support the
interactive input and output.  Infact there is a mechanism but i havenot
tried for  that.  In My application, i have changed the menu into local
language like, Tamil.

For example if u want  to display the tamil menu, then u have to use TSCII
Codec proided by QT itslef.  
The process is as follows

char *ch={ 0x0804,0805, 0}; //Unicode equivalent code for tamil
QTextCodec  *codec =new TsciiCodec();

QString str=codec->toUnicode(ch);

//now display the string in button or menu or anywhere.

For Japanese, u need to Instantiate TJisCodec instead of TsciiCodec.

Now u need to look for unicode equivalent  for japanese and additional
TJis encoded fonts.

U can write ur own codec for another japanese encoding system as well...

If u need interactive,  then ur keyboard layout sud be changed and it sud
produce Unicode equivalent for Japanese when u press any key.

If u are just worrying for typing some japanese character,( bypassing
encoding scheme), then  in ur textbox, there must be setfont method, set
the font to some ttf-japanese font  .  if  direct setfont method isnot
available for editing widget ( like QLineEdit), then rewrite the paint
method of that widget with  japanese font.

I amnot quite sure, whether it serves your purpose or not.  
I will be very much happy if u are also working in this area.  Further
discussin is most welcome.

Regards

Anup Banskta
Dept. of COMPSCI
Indian Institute of Technology, Madras
INDIA



On Wed, 19 Dec 2001, SAJEESH MOHAN P wrote:

> Dear Cutes,
> 
> I already asked the same question before !!!
> 
> I created a text edit application in QT 3.0.0 uner Linux OS {Redhat 7.1}
> English version.
> 
> How can I enter the japanese characters in the Edit boxes and other editable
> areas.
> 
> Please Help.
> 
> Your Help is greatly appreciated.
> 
> Regards
> Sajeesh
> 
> --
> List archive and information: http://qt-interest.trolltech.com
>