Using Gnome/Ubuntu 18.04:
Install Japanese language for your SO:
References in Writing Japanese with Ubuntu 18.04 LTS Bionic Beaver and Japanese Input.
The path to install:
System Settings > Region & Language > Manage Installed Languages > Language Support > Install / Remove Languages > Installed Languages and check Japanese. Click Apply and log out.
Install at least one of the below IMF (ibus
comes by default on Ubuntu):
sudo apt install ibus
sudo apt install fcitx
Install at least one IME for your IMF (mozc
comes by default on Ubuntu after install the japanese language):
If you chose ibus
run one of these commands:
sudo apt install ibus-mozc
sudo apt install ibus-anthy
sudo apt install ibus-kkc
sudo apt install ibus-skk
If you chose fcitx
run one of these commands:
sudo apt install fcitx-mozc
sudo apt install fcitx-anthy
sudo apt install fcitx-kkc
sudo apt install fcitx-skk
After all of that, select the input method (IME) from your language selector on icon tray (IMF).
The IMF (ibus
) on Gnome Status Menu
(is represented by a language icon selector).
All selectable IMEs (portuguese, spanish, english, japanese-mozc, japanese-anthy, japanese-kkc, japanese-skk) from this IMF (ibus
).
Using the Gnome shortcut to fast-switch between IMEs: hold Super and press Space.