| View previous topic :: View next topic |
| Author |
Message |
zendal n00b


Joined: 30 Nov 2002 Posts: 23 Location: Amberg, Germany
|
Posted: Mon May 02, 2005 11:02 am Post subject: Korean Keyboard Support |
|
|
How do I setup XOrg and KDE 3.4 to use my korean keyboard.
I speak English so I don´t understand the stuff on the gentoo.or.kr site.
I´m studying korean now and want to be able to type notes and homework out w/o having to use my windows computer.
My girlfriend will want to be able to look at her cyworld and everything else.
I have skim working for typing in korean as the IME by hitting CTRL-SPACE.
but How do I setup the 한자 and 한/영 key to work.
I put the lines Baeksu mentioned in the .Xmodmap, but How do I get that to start up when I run startx.
| Code: | xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b 0067
export LANG=en_US.UTF-8
export LC_CTYPE="ko_KR.UTF-8"
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=scim
export QT_IM_SWITCHER=imsw-multi
export QT_IM_MODULE=scim
export CONSOLE_NOT_LOCALIZED=yes
startkde
skim -d |
| Code: | Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us_intl" |
I tried ko but it gave an error and didn´t load.
| Code: | HOST="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-tbird -fomit-frame-pointer -pipe"
CXXFLAGS="${CFLAGS}"
ACCEPT_KEYWORDS="x86"
PORTAGE_TMPDIR=/var/tmp
PORTDIR=/usr/portage
DISTDIR=${PORTDIR}/distfiles
PKGDIR=${PORTDIR}/packages
PORT_LOGDIR=/var/log/portage
PORTDIR_OVERLAY=/usr/local/portage
PORTAGE_TMPSFS="/dev/shm"
GENTOO_MIRRORS="http://ftp.gentoo.or.kr"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT=180
MAKEOPTS="-j1"
PORTAGE_NICENESS=3
AUTOCLEAN="yes"
FEATURES="ccache distlocks sandbox userpriv usersandbox"
CCACHE_SIZE="512M"
RSYNC_EXCLUDEFROM=/etc/portage/rsync_excludes
USE="hal samba nptl nls unicode immqt-bc alsa java qt kde samba mozilla mozsvg dvd dvdr"
ALSA_CARDS="emu10k1 bt87x" |
| Code: | keycode 113 = Hangul
keycode 109 = Hangul_Hanja
|
|
|
| Back to top |
|
 |
Sudrien Apprentice

Joined: 01 Oct 2003 Posts: 206 Location: Michigan
|
Posted: Mon May 02, 2005 3:12 pm Post subject: Re: Korean Keyboard Support |
|
|
I generally don't do korean - but...
| zendal wrote: |
| Code: | Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us_intl" |
|
Are you sure this is the right keyboard, and that Xorg doesn't include a standard Korean one?
*reads again*
Ah... What are the USE flags currently compiled with? they should include nls and cjk.
Also, this could be a kde issue. I'm quite sure it has a keyboard control panel. Have you checked there?
-Sud. _________________ ... |
|
| Back to top |
|
 |
zendal n00b


Joined: 30 Nov 2002 Posts: 23 Location: Amberg, Germany
|
Posted: Mon May 02, 2005 9:52 pm Post subject: |
|
|
There is a keyboard option which is ¨ko¨ but that gives an error in Xorg when loaded.
I also tried the ko xkbmap in kde control center, but it also didn´t load.
I had to disable the CJK flag it caused errors with kde 3.4 and skim.
Your documentation is very good, but I think korean support in X is broken. I don´t know enough to tell. |
|
| Back to top |
|
 |
khmirage n00b


Joined: 01 May 2005 Posts: 9 Location: Heavens Knight Kingdom
|
Posted: Tue May 03, 2005 2:04 am Post subject: hum... |
|
|
do you editing kernel source?
both kernersourcedir/dirver/input/input.c and kernersourcedir/dirver/input/keyboard/atkbd.c edit...
if not, no korean key use.
other method below
setkeycodes 71 122
setkeycodes 72 123
xmodmap -e 'keycode 122 = Hangul'
xmodmap -e 'keycode 121 = Hangul_Hanja'
above contents make script....
boot autorun setup
but keycode 122 and 121 is different you keycode.
maybe i guess 209 and 210...
**additionally**
your keboard hangul keyboard?
if not, hangul key instead right alt key use....
xev - alt keycode above context ......
ps. sorry i can't english well
i wish you understood my explanation..... |
|
| Back to top |
|
 |
zendal n00b


Joined: 30 Nov 2002 Posts: 23 Location: Amberg, Germany
|
Posted: Tue May 03, 2005 3:15 am Post subject: |
|
|
Yes. My keyboard is a standard MS-IME2002 Hangul Samsung keyboard from the Yongsan Electronics Market.
I added korean in the languages settings of the kernel, but I will have to go home and check some of this other stuff out when I finish work. I would really would like to get this working and improve on my korean. |
|
| Back to top |
|
 |
khmirage n00b


Joined: 01 May 2005 Posts: 9 Location: Heavens Knight Kingdom
|
Posted: Tue May 03, 2005 4:00 am Post subject: Good Luck ^^ |
|
|
| zendal wrote: | Yes. My keyboard is a standard MS-IME2002 Hangul Samsung keyboard from the Yongsan Electronics Market.
I added korean in the languages settings of the kernel, but I will have to go home and check some of this other stuff out when I finish work. I would really would like to get this working and improve on my korean. |
My Gentoo Korean Environment (^^;
First. Korea fonts emerge
#emerge -s alee unfonts
#emerge ??-alee unfonts (sorryl full package name do not think)
Second. Locale and Input module setting
| Quote: |
/etc/env.d/00basic
export LANG=ko_KR.eucKR (or UTF8)
export LC_ALL=ko_KR.eucKR
export XMODIFIERS="@im=nabi" (nabi is typically korean input program)
export XIMPROGRAM=/usr/bin/nabi
|
Third. Hangul and Hanja Key Setting
| Quote: |
~/.kde/Autostart/korkey.sh
setkeycodes 71 122
setkeycodes 72 123
xmodmap -e 'keycode 122 = Hangul'
xmodmap -e 'keycode 121 = Hangul_Hanja'
|
and Xmodmapt make
| Quote: |
~/.Xmodmap
keycode 209 = Hnagul
keycode 210 = Hangul_Hanja
|
edit ~/.kde/Autostart/korkey.sh end line add below
| Quote: |
xmodmap /home/account/.Xmodmap
|
Finally, I Wish My comments help few for you....
English comment do not good.....
I wish you work success~ ^^;;;
a fake my english to read, very thank for you ;;;;; |
|
| Back to top |
|
 |
zendal n00b


Joined: 30 Nov 2002 Posts: 23 Location: Amberg, Germany
|
Posted: Tue May 03, 2005 8:39 am Post subject: |
|
|
emerge alee-fonts unfonts unfonts-extra
I don't know what you are talking about with modifying kernel source.
Please, explain. I have Korean in the NLS.
I do not know what you are talking about with the input.c and atkb.c |
|
| Back to top |
|
 |
khmirage n00b


Joined: 01 May 2005 Posts: 9 Location: Heavens Knight Kingdom
|
Posted: Tue May 03, 2005 10:28 am Post subject: Hum... |
|
|
That's mean kernel source editing.
For example
#emerge gentoo-sources
#cd /usr/src/linux
#vim driver/input/input.c
| Quote: |
case EV_KEY:
if (code > KEY_MAX || !test_bit(code, dev->keybit) || !!test_bit(code, dev->key) == value)
return;
if (value == 2)
break;
|
above section edit below
| Quote: |
case EV_KEY:
if (code > KEY_MAX || !test_bit(code, dev->keybit) || !!test_bit(code, dev->key) == value)
return;
if (code != KEY_HANGUEL && code != KEY_HANJA){
if (code > KEY_MAX || !test_bit(code, dev->keybit) || !!test_bit(code, dev->key) == value)
return;
}
if (value == 2)
break;
|
and
#vim driver/input/keboard/atkbd.c
| Quote: |
static unsigned char atkbd_set2_keycode[512] = {
0, 67, 65, 63, 61, 59, 60, 88, 0, 68, 66, 64, 62, 15, 41,117,
0, 56, 42, 93, 29, 16, 2, 0, 0, 0, 44, 31, 30, 17, 3, 0,
0, 46, 45, 32, 18, 5, 4, 95, 0, 57, 47, 33, 20, 19, 6,183,
0, 49, 48, 35, 34, 21, 7,184, 0, 0, 50, 36, 22, 8, 9,185,
0, 51, 37, 23, 24, 11, 10, 0, 0, 52, 53, 38, 39, 25, 12, 0,
0, 89, 40, 0, 26, 13, 0, 0, 58, 54, 28, 27, 0, 43, 0, 85,
0, 86, 91, 90, 92, 0, 14, 94, 0, 79,124, 75, 71,121, 0, 0,
82, 83, 80, 76, 77, 72, 1, 69, 87, 78, 81, 74, 55, 73, 70, 99,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
217,100,255, 0, 97,165, 0, 0,156, 0, 0, 0, 0, 0, 0,125,
173,114, 0,113, 0, 0, 0,126,128, 0, 0,140, 0, 0, 0,127,
159, 0,115, 0,164, 0, 0,116,158, 0,150,166, 0, 0, 0,142,
157, 0, 0, 0, 0, 0, 0, 0,155, 0, 98, 0, 0,163, 0, 0,
226, 0, 0, 0, 0, 0, 0, 0, 0,255, 96, 0, 0, 0,143, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,107, 0,105,102, 0, 0,112,
110,111,108,112,106,103, 0,119, 0,118,109, 0, 99,104,119, 0,
0, 0, 0, 65, 99,
};
|
above bold number edit below
| Quote: |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
217,100,255, 0, 97,165, 0, 0,156, 0, 0, 0, 0, 0, 0,125,
173,114, 0,113, 0, 0, 0,126,128, 0, 0,140, 0, 0, 0,127,
159, 0,115, 0,164, 0, 0,116,158, 0,150,166, 0, 0, 0,142,
157, 0, 0, 0, 0, 0, 0, 0,155, 0, 122, 0, 0,163, 0, 0,
226, 123, 0, 0, 0, 0, 0, 0, 0,255, 96, 0, 0, 0,143, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,107, 0,105,102, 0, 0,112,
110,111,108,112,106,103, 0,98, 0,118,109, 0, 99,104,119, 0,
0, 0, 0, 65, 99,
|
and
also edit atkbd.c
| Quote: |
#define ATKBD_RET_HANGUEL 0xf1
#define ATKBD_RET_HANJA 0xf2
to
#define ATKBD_RET_HANGUEL 0xf2
#define ATKBD_RET_HANJA 0xf1
|
above box context place...vim :set nu mode
line number 151 and 152....
save and exit ...
finish to edit
starting Kernel compile.....
after kernel compile, your linux recognize hangul/english key in xev....
I don't recommand kernel source edit....
i recommand to change set keycod method..... |
|
| Back to top |
|
 |
khmirage n00b


Joined: 01 May 2005 Posts: 9 Location: Heavens Knight Kingdom
|
Posted: Tue May 03, 2005 10:49 am Post subject: Ho~ |
|
|
| zendal wrote: | emerge alee-fonts unfonts unfonts-extra
I don't know what you are talking about with modifying kernel source.
Please, explain. I have Korean in the NLS.
I do not know what you are talking about with the input.c and atkb.c |
kernel don't recognize normally hangul/english key....
therefore kernel source editing to change keymap for hangul/english key...
um...
because i can't english well, longer explain..
i think very sorry;;;;;;
ps. Where live in?
This time 2005/5/3 PM 7 : 49 ... in my contury ^^;;; |
|
| Back to top |
|
 |
zendal n00b


Joined: 30 Nov 2002 Posts: 23 Location: Amberg, Germany
|
Posted: Tue May 03, 2005 12:28 pm Post subject: |
|
|
| Yes, I am living in Korea, Seoul, Yongsan-Gu right now. |
|
| Back to top |
|
 |
zendal n00b


Joined: 30 Nov 2002 Posts: 23 Location: Amberg, Germany
|
Posted: Tue May 03, 2005 1:26 pm Post subject: Correct Settings for the Korean Keyboard |
|
|
| Code: |
xmodmap -e "pointer = 1 2 3 6 7 4 5"
xmodmap -e 'keycode 210 = Hangul'
xmodmap -e 'keycode 209 = Hangul_Hanja'
imwheel -k -b 0067
export LANG=en_US.UTF-8
export LC_CTYPE="ko_KR.UTF-8"
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=scim
export QT_IM_SWITCHER=imsw-multi
export QT_IM_MODULE=scim
export CONSOLE_NOT_LOCALIZED=yes
startkde
skim -d |
한/영 is 210 or 122 if you set the keycodes.
한자 is 209 or 121 if you set the keycodes.
The .Xmodmap you had set them backwards.
The last line of the script overruled the first two lines and you don't need to put anything in Autostart then for it work.
Since it is now in .xinitrc
Thank You for all your help and explanation.
The Gentoo community is still the best with Documentation! |
|
| Back to top |
|
 |
liuspider Apprentice

Joined: 03 Feb 2003 Posts: 237
|
Posted: Tue May 03, 2005 5:17 pm Post subject: |
|
|
| Code: | xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b 0067
export LANG=en_US.UTF-8
export LC_CTYPE="ko_KR.UTF-8"
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=scim
export QT_IM_SWITCHER=imsw-multi
export QT_IM_MODULE=scim
export CONSOLE_NOT_LOCALIZED=yes
startkde
skim -d |
generally speaking, you do not need the last line: skim should start up everytime you login into KDE (make sure you already changed the settings according to: General skim Configuration in http://www.scim-im.org/wiki/documentation/install_configure/all/configuration_of_system) _________________ BLOG: http://liucougar.scim-im.org |
|
| Back to top |
|
 |
anfpunk Apprentice

Joined: 29 May 2003 Posts: 275 Location: Columbus, Oh
|
Posted: Tue May 03, 2005 7:02 pm Post subject: |
|
|
Will this work the same with a standard US keyboard? I'm learning Korean here at Defense Language Institute(DLI) and was working on setting it up but then I started doing other stuff.
Also I'm using PekWM as my window manager. |
|
| Back to top |
|
 |
zendal n00b


Joined: 30 Nov 2002 Posts: 23 Location: Amberg, Germany
|
Posted: Tue May 03, 2005 9:51 pm Post subject: DLI Korean |
|
|
Everything but the Hanja and Korean / English on the keyboard will work if set up with nabi/scim or etc.
Make sure Korean is in language of kernel, glibc, unicode if using UTF-8, nls, immqt-bc if using qt apps
emerge baekmuk fonts and the ones listed above.
emerge scim scim-hangul
Set your .xinitrc as above except the changes noted for hanja and hanja_hangul and startkde.
scim -d for non kde version of scim
skim is for kde.
imwheel in .xinitrc is for mouse with 5 buttons and scrollwheel |
|
| Back to top |
|
 |
anfpunk Apprentice

Joined: 29 May 2003 Posts: 275 Location: Columbus, Oh
|
Posted: Wed May 04, 2005 4:42 am Post subject: |
|
|
Thanks for the help. I have the basics setup and working with nabi. However I have a few questions. What terminal are you using for Korean input? I prefer to use urxvt which should be able to show them correctly but it keeps showing broken characters. I joined the #gnome channel on irc.hanirc.org so I can just practice reading more but all the characters wont show up.
My other question is: Is there a way I can set nabi to switch inputs by hitting the windows key? I keep accidently hitting it with shift+space as the switcher.
I'll save my newbie korean for another post. :) |
|
| Back to top |
|
 |
placeholder Advocate

Joined: 07 Feb 2004 Posts: 2500
|
Posted: Wed May 04, 2005 5:21 am Post subject: |
|
|
| anfpunk: Make sure you have unicode in your USE, and then do an emerge --newuse world. Cheers. |
|
| Back to top |
|
 |
zendal n00b


Joined: 30 Nov 2002 Posts: 23 Location: Amberg, Germany
|
Posted: Wed May 04, 2005 1:24 pm Post subject: |
|
|
You could set xmodmap for hangul to the windows key and see what happens
115 L Windows
116 R Windows
117 the key next to R Windows |
|
| Back to top |
|
 |
anfpunk Apprentice

Joined: 29 May 2003 Posts: 275 Location: Columbus, Oh
|
Posted: Wed May 11, 2005 1:19 pm Post subject: |
|
|
After using this for a bit and messing with stuff I still have a couple problems.
using nabi, I disabled Shift+Space and it is disabled in my terminals and other apps but in firefox it still works. Was wandering how to get rid of that.
my terminals can use korean input however I still cant get irssi to work. I'm using irc in a screen session on my server and I have unicode, nls, and cjk in the make.conf on that machine. I've set defutf8 in screen and /set charset UTF-8 in irssi. I've done a lot of searching but am still unable to display the characters.
thanks |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|