You are not logged in.

#1 2022-06-19 20:23:43

algir
Member
Registered: 2022-06-19
Posts: 3

[SOLVED] urxvt ignoring ibus japanese input

Hi, I can't type in japanese in urxvt unless I start a new urxvt terminal from urxvt. This also happens with xterm, but not with xfce4-terminal.

Fonts are installed and urxvt displays japanese characters properly. Also, when I start a new urxvt terminal from urxvt it takes a little longer to open, so I assume is loading something to properly write in japanese.

Locale and .Xresources looks fine but i'm out of ideas, thanks for your help.



$ locale -a
C
C.UTF-8
en_US
en_US.iso88591
en_US.utf8
es_CL
es_CL.iso88591
es_CL.utf8
ja_JP
ja_JP.eucjp
ja_JP.ujis
ja_JP.utf8
japanese
japanese.euc
POSIX
.Xresources
XTerm*faceName: ProFont
XTerm*faceSize: 10
!XTerm*utf8: 1
XTerm.vt100.locale: false
XTerm.vt100.utf8: true

xterm*background: #141A1B
xterm*foreground: #FFFFFF

Xft.rgba: none
Xft.antialias: 1

URxvt.color0: #000000
URxvt.color8: #555555
URxvt.color1: #AA0000
URxvt.color9: #FF5555
URxvt.color2: #00FF00
URxvt.color10: #55FF55
URxvt.color3: #AA5500
URxvt.color11: #FFFF55
URxvt.color4: #0000AA
URxvt.color12: #5555FF
URxvt.color5: #AA00AA
URxvt.color13: #FF55FF
URxvt.color6: #00AAAA
URxvt.color14: #55FFFF
URxvt.color7: #AAAAAA
URxvt.color15: #FFFFFF

URxvt.scrollBar:false
URxvt.background: #111111
URxvt.foreground: #D3D3D3
URxvt.cursorColor:#D3D3D3
URxvt.cursorBlink:true
URxvt.font: xft:ProFont:pixelsize=13.2
URxvt.boldFont: xft:ProFont:pixelsize=13.2

UXTerm*renderFont: true
UXTerm*faceName: ProFont
UXTerm*faceSize: 10
URxvt.perl-ext-common: default,tabbed
URxvt.imLocale: ja_JP.utf8

Last edited by algir (2022-06-21 21:16:09)

Offline

#2 2022-06-19 20:56:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,573

Re: [SOLVED] urxvt ignoring ibus japanese input

I can't type in japanese in urxvt unless I start a new urxvt terminal from urxvt.

Means the IM environment isn't exported to whatever starts the first urxvt but likely just your shell or alternatively the .Xresources are loaded only after you start that urxvt process.

=> How and where do you setup XMODIFIERS=@im=ibus, load .Xresources and start the misbehaving urxvt process?

Offline

#3 2022-06-20 00:05:12

algir
Member
Registered: 2022-06-19
Posts: 3

Re: [SOLVED] urxvt ignoring ibus japanese input

I setup ibus in .bashrc.

export GTK_IM_MODULE='ibus'
export QT_IM_MODULE='ibus'
export XMODIFIERS=@im='ibus'

I start urxvt through key combination or rofi in openbox, in both cases the condition is the same. When I start urxvt from xfce-appfinder in a xfce-session japanese input is ignored even if I start a new urxvt process from urxvt.

I'm not sure how .Xresources is loaded, only that the changes I made seems to be properly applied.

Offline

#4 2022-06-20 05:35:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,573

Re: [SOLVED] urxvt ignoring ibus japanese input

I setup ibus in .bashrc.

What is *very* most likely not gonna have any impact on your xfce session, explaining the perceived behavior.
How do you start the session? (but most likely you want to export those in ~/.xprofile)

Offline

#5 2022-06-21 05:29:04

algir
Member
Registered: 2022-06-19
Posts: 3

Re: [SOLVED] urxvt ignoring ibus japanese input

seth wrote:

I setup ibus in .bashrc.

What is *very* most likely not gonna have any impact on your xfce session, explaining the perceived behavior.
How do you start the session? (but most likely you want to export those in ~/.xprofile)

Well, that was it. Now that I think about it I'm not sure why I put ibus variables in .bashrc when i have them in .xprofile in another laptop. Everything works now, thank you.

Offline

#6 2022-06-21 06:17:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,573

Re: [SOLVED] urxvt ignoring ibus japanese input

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB