This repository contains:
- a dictionary to use cmigemo with Chinese
- a Rakefile.rb to build the dictionary
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
Dictionary is converted from hanzi_to_pinyin_node.
Support searching against phrases.