Golden2Recite is a tool for convert Goldendict history to 生词本背单词 acceptable format.
This project is mainly for golang practising.
Notice that this tool is using stardict format to lookup explanation.
NAME:
golden2recite - Convert the Goldendict history to Reciteword format
USAGE:
golden2recite [global options] command [command options] [arguments...]
VERSION:
0.0.0
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
The first argument is your new word which is about to recite,the second argument is your startdict files.A stardict-oxford-gb dictionary is already provided as a recomendation.
$ ./Golden2Recite ./new_words_exp.txt ./stardict-oxford-gb-formated/oxford-gb-formated.dict
This will create two new files with prefix "recitable_" as importable for 生词本背单词 and "unchecked_" which can't find its explaination.
http://github.com/codegangsta/cli —— Cli
https://github.com/chuangbo/jianbing-dictionary-dns/blob/master/golang/jianbing-dns/stardict/stardict.go —— stardict api(modified)
- Make sure you have set
GOPATH
go get -u github.com/wicast/Golden2Recite
This project use gvp and gpm as dependency manager.
gpm-local plugin is required to manage subpackages.
Golang Compiler is required.
source gvp in
—— Set local GOPATHgpm install
—— Install Dependency into GOPATHgpm local name github.com/wicast/Golden2Recite
—— Set subpackages.go install
—— Build project,the executable can be found in "bin" folder.
If you need cross complier for other platform check this article out.