Re: [gentoo-user] japanese input

2003-11-09 Thread mathieu perrenoud
On Sunday 09 November 2003 03:08, Jeff Ames wrote:
  I've tried to launch kinput2 with different args

 I launch kinput2 as 'kinput2 -canna ' (make sure canna is running)

  (process:11009): Gtk-WARNING **: Locale not supported by C library.
  Using the fallback 'C' locale.

 Try 'locale -a | grep ja_JP' and see what you do have support for.  Then
 to launch an application with Japanese input support, I think you only
 need to set LC_CTYPE.

locale -a give me lots of locales (368) but no ja_JP.UTF-8
how can I add support for this one?

 Then you should be able to open an application and use Japanese by
 hitting the windows key.  I know aterm and rxvt support Japanese...  You
 might also want to check whether you have the 'cjk' USE flag set.

 HTH,
 Jeff

thanks for the help. I had still to play with lots of config files, but now 
everything is working. But for one small problem: every application started 
with LC_CTYPE=ja_JP is displayed with a default cursive font. It's quite nice 
but totally unusable! Not only kanjis and cannas are in cursive. Latin 
characters also show up in cursive. I think it's an unicode font because 
there are accentuated letters: éàà (and not squares).
I've tried to change fonts in kde, in xftconfig, XF86Config, acticvated / 
desactived xfs. But still no cigar.
How do I choose the default font for kde? X? for unicode / japanese /  
iso-latin, ...

TIA

-- 
mathieu


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] japanese input

2003-11-09 Thread Jason Stubbs
On Sunday 09 November 2003 22:11, mathieu perrenoud wrote:
 On Sunday 09 November 2003 03:08, Jeff Ames wrote:
   I've tried to launch kinput2 with different args
 
  I launch kinput2 as 'kinput2 -canna ' (make sure canna is running)
 
   (process:11009): Gtk-WARNING **: Locale not supported by C library.
   Using the fallback 'C' locale.
 
  Try 'locale -a | grep ja_JP' and see what you do have support for.  Then
  to launch an application with Japanese input support, I think you only
  need to set LC_CTYPE.

 locale -a give me lots of locales (368) but no ja_JP.UTF-8
 how can I add support for this one?

There is a howto for this at forums.gentoo.org.

  Then you should be able to open an application and use Japanese by
  hitting the windows key.  I know aterm and rxvt support Japanese...  You
  might also want to check whether you have the 'cjk' USE flag set.

 thanks for the help. I had still to play with lots of config files, but now
 everything is working. But for one small problem: every application started
 with LC_CTYPE=ja_JP is displayed with a default cursive font. It's quite
 nice but totally unusable! Not only kanjis and cannas are in cursive. Latin
 characters also show up in cursive. I think it's an unicode font because
 there are accentuated letters: éàà (and not squares).
 I've tried to change fonts in kde, in xftconfig, XF86Config, acticvated /
 desactived xfs. But still no cigar.
 How do I choose the default font for kde? X? for unicode / japanese /
 iso-latin, ...

You can do some of that using qtconfig, but for the most part it depends on 
how your fonts are set up. More than likely you should use /etc/fonts.

Jason

--
[EMAIL PROTECTED] mailing list



[gentoo-user] japanese input

2003-11-08 Thread mathieu perrenoud
Hi, I would like to input kanji  cannas. I used to do it under mandrake 
without problems. But now with gentoo it won't work at all.

I have canna  freewnn servers running.
my .i18n defines everything to be ja_JP, especially:
XIM=kinput2
XMODIFIERS=@im=kinput2

I've mapped the windows key to the Kanji key.
I've tried to launch kinput2 with different args
-canna
-xim
-kinput
...

but nothing works! 
ctrl + kanji / shift + space don't do anything.
I've absolutely no clue of why it won't work.

The only error I see is this:

(process:11009): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.

but I don't know how to compile the japase locale in the C library.

thanks in adavance.

-- 
mathieu


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] japanese input

2003-11-08 Thread Jason Stubbs
On Sunday 09 November 2003 10:23, mathieu perrenoud wrote:
 Hi, I would like to input kanji  cannas. I used to do it under mandrake
 without problems. But now with gentoo it won't work at all.

 I have canna  freewnn servers running.
 my .i18n defines everything to be ja_JP, especially:
 XIM=kinput2
 XMODIFIERS=@im=kinput2
 I've mapped the windows key to the Kanji key.
 I've tried to launch kinput2 with different args
 -canna
 -xim
 -kinput
 ...

 but nothing works!
 ctrl + kanji / shift + space don't do anything.
 I've absolutely no clue of why it won't work.

 The only error I see is this:

 (process:11009): Gtk-WARNING **: Locale not supported by C library.
 Using the fallback 'C' locale.

You need to have kinput2 running before the application you want to use is 
run. Use the -wnn switch to use it with freewnn. You also need to have 
compile kinput2 with freewnn in your use flags unless you had freewnn 
installed previous to installing kinput2.

Before running kinput2 you also need to set the locale. I've exported LC_LANG 
and LC_CTYPE as ja_JP but LC_CTYPE is the only necessary one. I've built 
glibc with nls use flag but I don't know if it is necessary. Hmm, it was in 
the default use flags at one stage but it has been removed.

That's about all there is to it. My /etc/X11/Sessions/kde-3.1.4 looks like 
this:
#!/bin/sh
export LC_LANG=ja_JP
export LC_CTYPE=ja_JP
/usr/X11R6/bin/kinput2 -canna 
/usr/kde/3.1/bin/startkde

That gives me Japanese in any program. The only thing I had to do in KDE was 
to change the qt engine to use over-the-spot instead of on-the-spot - and 
that was only to get a couple of applications that didn't like on-the-spot to 
work.


Jason

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] japanese input

2003-11-08 Thread Jeff Ames
 I've tried to launch kinput2 with different args

I launch kinput2 as 'kinput2 -canna ' (make sure canna is running)

 (process:11009): Gtk-WARNING **: Locale not supported by C library.
 Using the fallback 'C' locale.

Try 'locale -a | grep ja_JP' and see what you do have support for.  Then 
to launch an application with Japanese input support, I think you only 
need to set LC_CTYPE.

Then you should be able to open an application and use Japanese by 
hitting the windows key.  I know aterm and rxvt support Japanese...  You 
might also want to check whether you have the 'cjk' USE flag set.

HTH,
Jeff

-- 
Jeff Ames http://vorlon.cwru.edu/~ames/

--
[EMAIL PROTECTED] mailing list