You are not logged in.

#1 2010-07-14 16:25:08

tabelle
Member
From: Uganda
Registered: 2009-09-09
Posts: 17

[SOLVED] Japanese Input in Terminal? (urxvt)

I'm using uim+anthy and after a quick "space+shift" I can type
Japanese anywhere just fine-- except in my terminal (rxvt-unicode-256color--
Japanese characters are displayed properly by the way)

My ~Xdefaults:

*antialias: true
*hinting: true
*hintstyle: hintfull

Xft.dpi:        96
Xft.antialias:  true
Xft.rgba:       rgb
Xft.hinting:    true
Xft.hintstyle:  hintfull

URxvt.perl-ext-common: default,tabbed
URxvt.title: makutsu

## borderless and no scrollbar
URxvt*scrollBar_right: false
URxvt*scrollBar: false
URxvt*borderLess: false

## transparency
URxvt*inheritPixmap: true
URxvt*tintColor: white
URxvt*shading: 40
 
URxvt.font: xft:Takao:pixelsize=12
            
*background:    #000000
*foreground:    #FFFFFF
!black
*color0 :            #222222
*color8 :            #454545
!red
*color1 :            #B22222
*color9 :            #FA8072
!green
*color2 :            #556B2F
*color10:            #9ACD32
!yellow
*color3 :            #B8860B
*color11:            #DAA520
!blue
*color4 :            #4682B4
*color12:            #6495ED
!magenta
*color5 :            #9932CC
*color13:            #DA70D6
!cyan
*color6 :            #87CEEB
*color14:            #B0E0E6
!white
*color7 :            #C0C0C0
*color15:            #FFFFFF

and in my ~xinitrc:

nitrogen --restore &
cairo-compmgr &
export XMODIFIERS='@im=uim'
export LC_CTYPE=ja_JP.utf8
export GTK_IM_MODULE="uim"
export QT_IM_MODULE="uim"
LANG=zh_CN.utf8 conky &
exec ck-launch-session openbox

[Japanese is working just fine even without the "exports"
but I observed that with "export LC_CTYPE=ja_JP.utf8" the
Japanese characters get antialiased]

My fonts.conf:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
   <match target="font" >
      <edit mode="assign" name="rgba" >
         <const>rgb</const>
      </edit>
   </match>
   <match target="font" >
      <edit mode="assign" name="hinting" >
         <bool>true</bool>
      </edit>
   </match>
   <match target="font" >
      <edit mode="assign" name="hintstyle" >
         <const>hintslight</const>
      </edit>
   </match>
   <match target="font" >
      <edit mode="assign" name="antialias" >
         <bool>true</bool>
      </edit>
   </match>
</fontconfig>

Not sure if it is relevant but I noticed that when I try to do "space+shift"
within the terminal it will only react to the space key--

Last edited by tabelle (2010-07-14 17:44:00)

Offline

#2 2010-07-14 16:54:49

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: [SOLVED] Japanese Input in Terminal? (urxvt)

You need to run uim-xim first—preferably in your .xinitrc.

Offline

#3 2010-07-14 17:43:08

tabelle
Member
From: Uganda
Registered: 2009-09-09
Posts: 17

Re: [SOLVED] Japanese Input in Terminal? (urxvt)

LOL I knew the answer would be simple!

Danke.

Offline

#4 2010-09-09 19:26:31

cthon
Member
Registered: 2008-06-30
Posts: 2

Re: [SOLVED] Japanese Input in Terminal? (urxvt)

From what I recall, running uim-xim in the background significantly slows down urxvt and xterm startup. I recommend running:

% uim-fep

at the beginning of your terminal session. This enables Japanese input only in the current terminal window. I haven't used uim-xim in years.

Last edited by cthon (2010-09-09 19:32:46)

Offline

#5 2010-09-09 19:39:00

xenofungus
Member
From: Spain
Registered: 2009-10-17
Posts: 63

Re: [SOLVED] Japanese Input in Terminal? (urxvt)

cthon wrote:

From what I recall, running uim-xim in the background significantly slows down urxvt and xterm startup. I recommend running:

% uim-fep

at the beginning of your terminal session. This enables Japanese input only in the current terminal window. I haven't used uim-xim in years.

I had that problem with scim and setting imFont fixed it

I have this in my .Xdefaults

urxvt*imFont: -*-song ti-*-*-*-*-*-*-*-*-*-*-*-*

EDIT: I have it set up for chinese, so maybe song ti does not work for you

Last edited by xenofungus (2010-09-09 20:01:03)

Offline

Board footer

Powered by FluxBB