NewsCrawler.org

Caskk: a Vim plugin for SKK Japanese input with stem-based verb and adjective conversion

思いのままに変換したい〜日本語入力のためのVimプラグインCaskkを作った
Caskkデモ
Image: zenn.dev

Caskk is a Vim plugin that implements SKK[1], a Japanese input method in which the user marks the kanji range and the okurigana boundary. The author wanted an IME[2] that lets the user convert text as intended without looking at the screen, so Caskk adds features such as a custom candidate order. Frequently used candidates can be pinned to the top of the list, and rarely used ones can be demoted to the end.

Verbs and adjectives can be converted by stem and conjugation: for example, mitasu is typed as mita*su instead of mi*ta, which reduces confusion with other words that share the same reading. The author also published a UTF-8 SKK dictionary of verbs and adjectives with conjugation tags, and registering a word adds the tag with Tab. Input tables can contain a * boundary, which helps AZIK[3] users mark the okurigana boundary inside a multi-key input.

Caskk loads large dictionaries asynchronously so that Vim is not blocked. The author says a Wikipedia headword dictionary with more than 600,000 entries previously added 1 to 2 seconds to each IME start. The plugin is installed by adding it to Vim's runtimepath, and its CI tests Vim 9.1.1826 and HEAD.

Read the original zenn.dev

Sources

  • Zenn JA

    思いのままに変換したい〜日本語入力のためのVimプラグインCaskkを作った

    11 likes0 bookmarks0 comments

Published: First seen: Читать по-русски

Open as a page