Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Again on japanese input/support
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Languages
View previous topic :: View next topic  
Author Message
leo
n00b
n00b


Joined: 25 Feb 2003
Posts: 70
Location: Milano - Italy

PostPosted: Fri Aug 01, 2003 10:14 pm    Post subject: Again on japanese input/support Reply with quote

Hi,

I followed the instructions posted by Kawada (thank you) to get japanese input/support working.

The problem is that, setting LANG to japanese, bash writes some messages as kanji (for example "total" when you do an "ls -l"). This is not what I want, how can I avoid it?

Thank you very much

leo
Back to top
View user's profile Send private message
sa
Guru
Guru


Joined: 10 Jun 2002
Posts: 450

PostPosted: Sat Aug 02, 2003 12:32 am    Post subject: Reply with quote

you can set LANG=en_US.UTF-8 in your .bashrc
and then start kinput2 like this from your .xinitrc.
LC_CTYPE=ja_JP /usr/X11R6/bin/kinput2 -canna &
you might need to creat the utf-8 locale like this:
localedef -c -i en_US -f UTF-8 en_US.UTF-8
have fun,
sa
Back to top
View user's profile Send private message
leo
n00b
n00b


Joined: 25 Feb 2003
Posts: 70
Location: Milano - Italy

PostPosted: Sat Aug 02, 2003 12:08 pm    Post subject: Reply with quote

It does work very well!

¤¢¤ê¤¬¤È ¤´¤¶¤¤¤Þ¤¹

Leo
Back to top
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Sat Aug 02, 2003 2:26 pm    Post subject: Reply with quote

EUC-JP... Shouldn't that be in UTF-8? Perhaps something is broken in iconv.
Back to top
View user's profile Send private message
leo
n00b
n00b


Joined: 25 Feb 2003
Posts: 70
Location: Milano - Italy

PostPosted: Sat Aug 02, 2003 11:14 pm    Post subject: Reply with quote

1) Why did it work good in my Konqueror window and now is unreadable?

Please remember that I'm new to multi-byte localization problems...

2) There is a little problem too: I'm native italian speaker, so I need to represent accents on characters (such as è à ò). If I set the LANG=it_IT in .bashrc this does not affect programs lauched by KDE panel, which refuses to represent such characters...

How can I manage this? I only need to write some japanese in texts and mails.

Thank you very much

Leo
Back to top
View user's profile Send private message
sa
Guru
Guru


Joined: 10 Jun 2002
Posts: 450

PostPosted: Sun Aug 03, 2003 12:22 am    Post subject: Reply with quote

instead of LANG=it_IT you should try LANG=it_IT.UTF-8

hopefully this helps,
sa
Back to top
View user's profile Send private message
leo
n00b
n00b


Joined: 25 Feb 2003
Posts: 70
Location: Milano - Italy

PostPosted: Sun Aug 03, 2003 11:15 am    Post subject: Reply with quote

No it does not change. Moreover I have to write

export LC_CTYPE=ja_JP
/usr/X11R6/bin/kinput2 -canna&

instead of

LC_CTYPE=ja_JP /usr/X11R6/bin/kinput2 -canna&

or it does not work.
Back to top
View user's profile Send private message
sa
Guru
Guru


Joined: 10 Jun 2002
Posts: 450

PostPosted: Sun Aug 03, 2003 10:13 pm    Post subject: Reply with quote

Ok, I remember something, I think you have to edit /etc/X11/app-defaults/Kinput2 and add some locales like this:

Code:
! X Input Method Protocol
*IMProtocol.locales: ja_JP.SJIS, ja_JP.EUC, ja_JP, japanese, japan, ja, it_IT, it_IT-UTF-8


all this locale stuff can drive a person crazy。

:) 一二三
Back to top
View user's profile Send private message
Miaowara
n00b
n00b


Joined: 09 Sep 2003
Posts: 41

PostPosted: Wed Sep 10, 2003 6:07 am    Post subject: Reply with quote

Sa, I've heard linux doesn't support inputting SJIS. Do you know if this is true? If it is true how does one go about doing it?
Back to top
View user's profile Send private message
sa
Guru
Guru


Joined: 10 Jun 2002
Posts: 450

PostPosted: Sun Sep 14, 2003 2:13 am    Post subject: Reply with quote

I'm not sure, I dont seem to have a *.SJIS locale installed.
But I would think its possible, because /etc/X11/app-defaults/Kinput2 mentions ja_JP.SJIS as one of its default IMProtocol.locales. I think you would just need to start kinput2 like "LANG=ja_JP kinput2 -canna", but have your locale as ja_JP.SJIS.

I'll have to figure out how to get a sjis locale, then I'll get back to you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Languages All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum