A japanese input method engine powered by mecab
demo.mp4
- fcitx 5
- mecab
If you are using Arch Linux, these packages are available in AUR.
Just install mecab-shogo82148-git
,mikan-dictionary-git
,fcitx5-mikan-git
git clone --depth=1 https://github.com/shogo82148/mecab.git
cd mecab/mecab
./autogen.sh
./configure
make -j$(nproc)
make install
git clone https://github.com/mojyack/mikan-dictionary.git
cd mikan-dictionary
./build.sh
./install.sh /usr/share/mikan-im
git clone --recursive https://github.com/mojyack/mikan.git
cd mikan
meson setup -Dprefix=/usr -Dlibdir=lib/fcitx5 -Dbuildtype=release build
ninja -C build install
Copy docs/mikan.conf
to $HOME/.config/mikan.conf
and modify it.
mikan uses vim-inspired keybinds.
- Ctrl+H/L: Select previous/next word
- Ctrl+J/K: Select previous/next word conversion candidate
- Alt+H/L: Split first/last one character from current word
- Alt+J/K: Merge previous/next and current word
- Ctrl+Alt+H/J: Take/Give one character from/to previous word
- Ctrl+Alt+L/K: Take/Give one character from/to next word
- Space: Start conversion of the whole sentence and select the next sentence candidate
- Shift+Space: Select previous sentence candidate
- Return: Commit sentence
- Slash: Enter to command mode
Start typing with slash('/') to enter to the command mode.
def-demo.mp4
Add a new word to a custom dictionary.
Usage:
- Copy the converted word to the clipboard.
- Type /def(Space)
- Type the original word then Return.
Registered words are saved in
$HOME/.cache/mikan/defines.txt
Opposite of /def
.
Remove an input word from a custom dictionary.
Reload user dictionaries.