Skip to content

morti86/cc-cedict-stardict

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cc-cedict-stardict

Takes CC-CEDICT Chinese-English dictionary, converts it to StarDict format, specifically for use with Koreader / sdcv. Aimed to fix koreader#9907.

First time using Rust!

Usage

Needs cargo.

cargo run

# cedict.csv created, turn it into stardict format

penelope -i cedict.csv -j csv --csv-fs "\t" --csv-ls "\n\n" -f cn -t en -p stardict -o cedict.zip --merge-definitions --merge-separator "\n" -d --title "CC-CEDICT 汉英词典"

unzip cedict.zip

Test that it worked:

sdcv --utf8-input --utf8-output --data-dir . -c -e 我
sdcv --utf8-input --utf8-output --data-dir . -c -e -n --json 跑步

Both of those should give correct definitions.

Things to do later

  • Have cargo test check that sdcv gives the correct output.
  • HTML output
  • Monthly releases? (via GitHub Actions)

About

For my dictionary app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Rust 100.0%