follow the link:
https://www.kubuntuforums.net/showthread.php/72637-Kubuntu-17-10-Korean-Chinese-Japanese-Input
1. Delete any layouts you may have setup in >System Settings > Input Devices > Keyboard > Layouts. This will ensure that you do not have a double set of icons on your task bar for the input methods.
2. Open Konsole and enter the following command: sudo apt-get install ibus ibus-gtk ibus-gtk3 ibus-qt4 ibus-clutter
3. Enter your password when requested and answer all prompts with "Y" when asked.
4. Install your ibus language packages by running the following command (these are the language packages I installed): sudo apt-get install ibus-hangul ibus-sunpinyin ibus-anthy
This is a listing of ibus language packages:
- Japanese, MOZC (best): ibus-mozc (This may be best but I could not get it to work)
- Japanese, Anthy (good): ibus-anthy
- Japanese, SKK (EMACS style): ibus-skk
- Korean language: ibus-hangul
- Traditional Chinese: ibus-chewing
- Simplified Chinese: ibus-pinyin
- Simplified Chinese (SUN): ibus-sunpinyin
- Simplified Chinese (Google): ibus-googlepinyin
- Vietnamese: ibus-unikey
- Many table based input method: ibus-table*
5. Run im-congif from Konsole with: "sudo im-config" Click "OK" on the Input Method Configuration window. Click "Yes" on the next window that pops up. In the next window, select "ibus" and click "OK."
6. Run "Set IBus Preferences" and click on the "Input Method" tab and add your input methods.
when i run sudo im-config, i miss the package zenity, and i install it.
7. Restart your system and everything should work fine.