Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

uim-xim and xterm [SOLVED]

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
Robstar
Tux's lil' helper
Tux's lil' helper
Posts: 91
Joined: Fri Apr 06, 2007 12:36 pm
Location: Milton Keynes
Contact:
Contact Robstar
Website

uim-xim and xterm [SOLVED]

  • Quote

Post by Robstar » Tue Jul 01, 2008 6:23 pm

I have been learning my languages, Japanese and Chinese.
I began with SCIM, but I had a huge issue that I couldn't type Japanese or Chinese into xterm, so I moved to UIM.
UIM has uim-fep, which would give me the ability to do so, but this wouldn't do.
Using uim-fep, means I can't do a Ctrl + Space (I changed the Shift + Space to Ctrl + Space) and it would active UIM.

I was able to make uim-xim work. I could Ctrl + Space and I can write Japanese or Chinese.
The way I did it was by putting `uim-xim &` at the end of my .xinitrc :

export GTK_IM_MODULE=uim
export QT_IM_MODULE=uim
export XMODIFIERS=@im=uim
export XIM_PROGRAM=uim-xim
exec /usr/local/bin/enlightenment_start
uim-xim &

I would then put uim-xim in the front of commands. In Enlightenment, you are able to have apps on a bar, like a Mac, and edit the icons do it did a certain command.
My xterm was : uim-xim ; xterm -u8 -fa "Ming(of ISO10646)" -fs 10

It worked until I started playing around. The reason is that after it loads I would have to click xterm twice before a window appears. It would also slow down my machine so I wanted to see if there is a quiker way. I haven't found any yet, so this is why I am here. I would like to know if there is a quick way or suggestions of other ways.
What I did realise is that uim-xim after the exec of enlightenment does nothing. Well it doesn't appear on ps -ALF.
Last edited by Robstar on Tue Jul 01, 2008 9:53 pm, edited 1 time in total.
Please put [SOLVED] when you've found the solution. It makes everyone's lives easier.
From FreeBSD to Gentoo. Now lets have ago at Arch. (It's just not the same)
My Quote: Yes, I know I am a geek. Your just pointing out the obvious.
Top
Robstar
Tux's lil' helper
Tux's lil' helper
Posts: 91
Joined: Fri Apr 06, 2007 12:36 pm
Location: Milton Keynes
Contact:
Contact Robstar
Website

uim-xim and xterm [SOLVED]

  • Quote

Post by Robstar » Tue Jul 01, 2008 9:52 pm

It took me all day and 10 months to get me where I am. I have finally solved my problem.

My original .xinitrc file wasn't how i wrote it, it is infact:

. ~/.zshenv
exec /usr/local/bin/enlightenment_start
uim-xim &

(that gives the hint im using zsh shell) which gave the required variables in every new shell, .zshenv:

export GTK_IM_MODULE=uim
export QT_IM_MODULE=uim
export XMODIFIERS=@im=uim
export XIM_PROGRAM=uim-xim

So have that putting back to its original manner, I then worked on solving my loading problem.
I knew if I put uim-xim & above the exec, as I previously stated, nothing executes after exec, so:

. ~/.zshenv
uim-xim &
exec /usr/local/bin/enlightenment_start

Rebooted and it work, well not completely. I got latin characters instead of the chinese. Something wasn't being UTF-8. This was the system console you login into tty1. It was POSIX instead of en_GB.UTF-8 so I would get latin characters. So my next job was to make my system locales UTF8.
After I go into Xorg my locales change from POSIX to the neeeded en_GB.UTF-8, so it would would work inside. After reading a a ponitless wiki, I soon discovered what to do.

I placed my UTF8 locales into a file /etc/env.d/02locale and env-update.
After rebooting my system, my locales became en_GB.UTF-8 and once in Xorg, the chinese charters came out all right.
Please put [SOLVED] when you've found the solution. It makes everyone's lives easier.
From FreeBSD to Gentoo. Now lets have ago at Arch. (It's just not the same)
My Quote: Yes, I know I am a geek. Your just pointing out the obvious.
Top
Post Reply

2 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic