https://github.com/weakish/migemo-dict-zh
A dictionary to use cmigemo with Chinese.
https://github.com/weakish/migemo-dict-zh
Last synced: 3 months ago
JSON representation
A dictionary to use cmigemo with Chinese.
- Host: GitHub
- URL: https://github.com/weakish/migemo-dict-zh
- Owner: weakish
- License: mit
- Created: 2014-12-02T16:31:46.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-04-20T12:22:48.000Z (about 10 years ago)
- Last Synced: 2025-01-12T18:11:57.846Z (over 1 year ago)
- Language: VimL
- Homepage:
- Size: 237 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
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
```sh
cmigemo /usr/local/share/migemo/utf-8/migemo-dict-zh
```
[develop]: https://github.com/koron/cmigemo/tree/develop
For older versions of cmigemo,
put `migemo-dict-zh` to the place you want,
then use it with `cmigemo -d`:
```sh
cmigemo -d /path/to/migemo-dict-zh --other-cmigemo-options
```
You can also write a script `zhmigemo` and put it in your `$PATH`:
```sh
#!/bin/sh
cmigemo -d /path/to/migemo-dict-zh "$@"
```
If you use fish, you can just add a function:
```fish
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:
```sh
bundle install
rake
```
## Credit
Dictionary is converted from [hanzi_to_pinyin_node](https://github.com/wxianfeng/hanzi_to_pinyin_node).
## Todo
Support searching against phrases.