https://github.com/brookhong/kv
Command line dictionary tool
https://github.com/brookhong/kv
Last synced: about 2 months ago
JSON representation
Command line dictionary tool
- Host: GitHub
- URL: https://github.com/brookhong/kv
- Owner: brookhong
- Created: 2013-05-08T12:16:07.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2020-03-07T04:51:21.000Z (about 5 years ago)
- Last Synced: 2025-03-19T07:04:21.805Z (about 2 months ago)
- Language: C
- Homepage:
- Size: 81.1 KB
- Stars: 17
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Command line dictionary tool -- `kv`
The `kv` can
* extract plain text from a dictionary of StarDict, for example,
kv extract oxford.idx
* build a dictionary of StarDict from a plain text file, like,
kv build oxford.txt
* query by keyword from a specified dictionary,
kv query oxford.idx key
* httpd service
kv.exe server oxford.idx
Then you can access http://localhost:8080/ to query word, the feature can work with [a chrome extension](https://github.com/brookhong/kv.crx) to query word on web page.
The plain text file should be formated like this:
#key1
;explanation of key1
#key2
;explanation of key2
more explanation of key2
#key3
;explanation of key3
#key4
#key5
;explanation of key4 and key5
more and moreIf you have `#` in your values, you can use another key marker such as `_KEY_STARTER_`, then tell `kv` about it with option `-k`.
Explanations must be started with semicolon(;).## Build Instructions
cd kv
make