This tutorial describes the basic usage of DDSKK Japanese input method for Emacs.
Install ddskk
package.
Turn on skk-mode
minor mode to write Japanese. It is recommended that you should bind a key to this command:
(global-set-key (kbd "C-x C-j") 'skk-mode)
You have to install at least one dictionary to translate Hiragana to Kanji. SKK-JISYO.L
(L
stands for large) contains a lot of words, so it will be a good starting point:
(setq skk-large-jisyo "/usr/share/skk/SKK-JISYO.L")
In skk-mode
, hiragana is inserted by default as you type alphabets.
You can enter kanji using one of the following ways:
- To enter a word consisting only of kanji, begin the word with a capital letter and enter space after the word.
- To enter kanji followed by 送り仮名/okurigana (hiragana) such as 行く and 難しい, begin the okurigana with a capital letter.
During candidate selection, use SPC
to select the next candidate and x
to the previous one.
If there is no candidate found in any of your dictionaries, DDSKK opens the minibuffer to register a new word to your dictionary. You have to re-enter words by breaking down your input to smaller pieces of the language.
See the following examples:
Word | Hiragana | Alphabets to type |
---|---|---|
変換中 | へんかんちゅう | Henkan (select) Tyuu (select) |
難しい | むずかしい | MuzukaSi (select) i |
行きます | いきます | IKi (select) masu |
You can switch to other modes with the following keys:
Key | Mode action |
---|---|
q | Toggle between hiragana and katakana modes |
l | Switch to ASCII mode (inserting alphabets literally) |
L | Switch to a mode for inserting double-width alphabets |
C-j | Switch back to hiragana mode from alphabet modes |
mozc is very easy to use on emacs. I also replaced anthy with mozc in fcitx.