2010년 10월 24일 일요일

Ubuntu에서 한글 입력 도구 설정하기

Ubuntu에서 한글 입력 도구 설정하기

다음과 같은 방법으로 현재 사용하는 Desktop의 Hangul Input Method를 확인 할 수 있다.
#im-switch -l

codeguru@Boleo:/etc/alternatives$ im-switch -l
Your input method setup under ko_KR locale as below.
=======================================================
The configuration "/home/codeguru/.xinput.d/ko_KR" is defined as a link pointing to
nabi
This private configuration supersedes the system wide default.
=======================================================
The system wide default is pointed by "/etc/alternatives/xinput-ko_KR" .
xinput-ko_KR - auto mode
링크가 현재 ibus을(를) 가리키는 중
ibus - 우선순위 60
imhangul - 우선순위 49
nabi - 우선순위 50
현재 가장 '좋은' 버전은 ibus입니다.
=======================================================
The available input method configuration files are:
default default-xim ibus ibus-kde imhangul lo-gtk nabi none th-gtk th-xim
=======================================================

만일 KDE 와 Gnome 사이를 왔다 갔다 하면서 Application을 사용하는 User라면
위의 im-switch -l 을 통하여
현재의 im module이 어떤 우선 순위를 가지고 쓰이는 알게된다.
우선순위를 조절하려면 해당 파일을 조정하면 원하는 대로 선택 할 수 있게 된다.

#sudo im-switch -c
위의 command를 통하면 현재 가지고 있는 System IME 중 하나를 선택 할 수 있게 된다.

아래의 예제를 참조하길

codeguru@Boleo:~$ im-switch -c

There are 10 candidates which provide IM for /home/codeguru/.xinput.d/ko_KR:

Selection Alternative
-----------------------------------------------
1 default
2 default-xim
3 ibus
4 ibus-kde
5 imhangul
6 lo-gtk
* 7 nabi
8 none
9 th-gtk
10 th-xim
System wide default for ko_KR (or all_ALL) locale is marked with [+].
Press enter to keep the current selection[*], or type selection number: 2