Korean input with kime
5.1
kime is a Korean input method: it types Hangul in the GTK3 programs of SliTaz, such as Firefox, TazTerm, L3afpad and the LXTaz tools. On SliTaz it is packaged for x86_64 only.
Install
As root:
# spk-add kime noto-sans-kr locale-ko
- kime: the input method, its tray icon and its GTK3 module.
- noto-sans-kr: a Korean font (Regular and Bold). Without a Korean font, Hangul may show as boxes.
- locale-ko: the Korean translations and the ko_KR.UTF-8 locale, for a desktop in Korean. Typing works without it, in any session language.
- noto-serif-kr, optional: a serif Korean font. Korean text that asks for a serif font, or for Batang or Nanum Myeongjo, gets it.
Then log out and back in: kime starts with the session
(/etc/xdg/autostart/kime.desktop). Nothing else to set: kime registers
as the default GTK3 input method for every language, so the programs use
it in an English session too, unless another input method, such as IBus,
is also installed.
Typing
Switch between Hangul (한) and Latin (A) with any of:
- Right Alt;
- the 한/영 key of a Korean keyboard: the us layout already maps it (keycode 130), no Korean keyboard layout is needed;
- Super+Space.
Esc goes back to Latin, handy in vim.
Hanja conversion does not work yet on SliTaz: kime shows the Hanja in a separate window, kime-candidate-window, which needs the library libxkbcommon-x11, and the SliTaz libxkbcommon package is built without it.
The tray icon
The LXTaz panel (lxtaz-panel 140 or later) shows the state of kime in its tray: A for Latin, 가 for Hangul. By default kime draws a black icon, hard to see with the dark theme. For a white one, add to the configuration (see below):
indicator:
icon_color: White
This makes it white with every theme, so with the light theme keep the default (Black).
Settings
- For everyone:
/etc/xdg/kime/config.yaml. - For one user:
~/.config/kime/config.yaml. When it exists, kime reads it instead of the one in /etc. - Every setting and its default value:
/usr/share/doc/kime/default_config.yaml.
Write only what you change, the rest keeps its default.
kime reads its settings when it starts. Logging out does not stop it (see Troubleshooting), so after a change stop it:
$ killall kime kime-indicator
Then log out and back in, or restart.
Limits
- GTK3 programs only. The package has no Qt or GTK4 module, and programs that only use XIM, such as xterm, do not get Hangul: use TazTerm.
- x86_64 only.
Troubleshooting
No Hangul, no tray icon: kime does not run. Check:
$ ps | grep kime
It should show kime, kime-xim and kime-indicator. Log out and back in after installing kime.
Boxes instead of Hangul: no Korean font. Install noto-sans-kr, as root:
# spk-add noto-sans-kr
Tray icon missing after logging out and back in: the kime of the previous session is still running, so the new session does not start its own. Typing still works. Stop it, then log out and back in, or restart:
$ killall kime kime-indicator
Links
- Fonts: installing fonts, non-Latin scripts.
- kime on GitHub
- Korean README of kime:
/usr/share/doc/kime/README.ko.md