weakish / migemo-dict-zh

A dictionary to use cmigemo with Chinese.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repository contains:

  • a dictionary to use cmigemo with Chinese
  • a Rakefile.rb to build the dictionary

Usage

The develop branch of cmigemo has this directory built-in. You can use it, e.g. via

cmigemo /usr/local/share/migemo/utf-8/migemo-dict-zh

For older versions of cmigemo, put migemo-dict-zh to the place you want, then use it with cmigemo -d:

cmigemo -d /path/to/migemo-dict-zh --other-cmigemo-options

You can also write a script zhmigemo and put it in your $PATH:

#!/bin/sh
cmigemo -d /path/to/migemo-dict-zh "$@"

If you use fish, you can just add a function:

function zhmigemo
    cmigemo -d /path/to/migemo-dict-zh $argv
end
funcsave zhmigemo

If you want to build the dictionary, you can just clone this repository, then run the following commands inside:

bundle install
rake

Credit

Dictionary is converted from hanzi_to_pinyin_node.

Todo

Support searching against phrases.

About

A dictionary to use cmigemo with Chinese.

License:MIT License


Languages

Language:Vim Script 97.6%Language:Ruby 2.4%