Skip to content

Instantly share code, notes, and snippets.

@ammgws
Last active March 22, 2017 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ammgws/8907b1b145d949fd243997f94dd00d33 to your computer and use it in GitHub Desktop.
Save ammgws/8907b1b145d949fd243997f94dd00d33 to your computer and use it in GitHub Desktop.
notes on setting up Japanese IME in antergos 17.3
  1. Install using pacman -S or pamac-manager:
adobe-source-han-sans-jp-fonts
mozc
uim-mozc
  1. Add to ~/.xprofile, ~/.xinitrc or ~/.xsession:
    Note: uim-toolbar-gtk3-systray displays on Cinnamon but not with GNOME3
    for GNOME3 have to use the floating menu uim-toolbar-gtk3
export GTK_IM_MODULE='uim'
export QT_IM_MODULE='uim'
uim-xim &
uim-toolbar-gtk3-systray &
export XMODIFIERS='@im=uim'
  1. Log out/in and test. Default is ctrl+shift to switch input methods.

  2. Edit preferences using GUI: uim-pref-gtk

    Group -> Global Settings

    Default input method: Direct # otherwise Mozc (Japanese input) will be default for all new windows
    Enabled input methods: "Mozc" # just Mozc by itself

    Group -> Mozc

    Enabled toolbar buttons: "Input mode", "Mozc tool"
    Default input mode: Hiragana
    Input mode menu items: "Hiragana", "Katakana", "Halfwidth Katakana", "Halfwidth Alphanumeric", "Fullwidth Alphanumeric" # removed "Direct input"


TROUBLESHOOTING

  1. Check if environment variables are set correctly. Using fish:
echo $XMODIFIERS
echo $GTK_IM_MODULE
echo $QT_IM_MODULE
  1. Manually set environment variables. Using fish:
set -x XMODIFIERS @im=uim
set -x GTK_IM_MODULE uim
set -x QT_IM_MODULE uim

NOTES

  • uim-toolbar-gtk3-systray doesn't seem to work with GNOME3 (doesn't appear in tray or anywhere at all)
    (however uim-toolbar-gtk and uim-toolbar-gtk3 do bring up a floating menu)

  • uim-toolbar-gtk3-systray DOES work with Cinnamon, however the systray icon is squashed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment