View previous topic :: View next topic |
Author |
Message |
leo n00b
Joined: 25 Feb 2003 Posts: 70 Location: Milano - Italy
|
Posted: Fri Aug 01, 2003 10:14 pm Post subject: Again on japanese input/support |
|
|
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 |
|
|
sa Guru
Joined: 10 Jun 2002 Posts: 450
|
Posted: Sat Aug 02, 2003 12:32 am Post subject: |
|
|
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 |
|
|
leo n00b
Joined: 25 Feb 2003 Posts: 70 Location: Milano - Italy
|
Posted: Sat Aug 02, 2003 12:08 pm Post subject: |
|
|
It does work very well!
¤¢¤ê¤¬¤È ¤´¤¶¤¤¤Þ¤¹
Leo |
|
Back to top |
|
|
zhenlin Veteran
Joined: 09 Nov 2002 Posts: 1361
|
Posted: Sat Aug 02, 2003 2:26 pm Post subject: |
|
|
EUC-JP... Shouldn't that be in UTF-8? Perhaps something is broken in iconv. |
|
Back to top |
|
|
leo n00b
Joined: 25 Feb 2003 Posts: 70 Location: Milano - Italy
|
Posted: Sat Aug 02, 2003 11:14 pm Post subject: |
|
|
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 |
|
|
sa Guru
Joined: 10 Jun 2002 Posts: 450
|
Posted: Sun Aug 03, 2003 12:22 am Post subject: |
|
|
instead of LANG=it_IT you should try LANG=it_IT.UTF-8
hopefully this helps,
sa |
|
Back to top |
|
|
leo n00b
Joined: 25 Feb 2003 Posts: 70 Location: Milano - Italy
|
Posted: Sun Aug 03, 2003 11:15 am Post subject: |
|
|
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 |
|
|
sa Guru
Joined: 10 Jun 2002 Posts: 450
|
Posted: Sun Aug 03, 2003 10:13 pm Post subject: |
|
|
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 |
|
|
Miaowara n00b
Joined: 09 Sep 2003 Posts: 41
|
Posted: Wed Sep 10, 2003 6:07 am Post subject: |
|
|
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 |
|
|
sa Guru
Joined: 10 Jun 2002 Posts: 450
|
Posted: Sun Sep 14, 2003 2:13 am Post subject: |
|
|
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 |
|
|
|