Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xuchunyang/cc-cedict.el
An Emacs interface for CC-CEDICT
https://github.com/xuchunyang/cc-cedict.el
Last synced: about 1 month ago
JSON representation
An Emacs interface for CC-CEDICT
- Host: GitHub
- URL: https://github.com/xuchunyang/cc-cedict.el
- Owner: xuchunyang
- Created: 2018-12-03T15:55:01.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-09T11:09:22.000Z (about 1 year ago)
- Last Synced: 2024-10-16T01:45:55.731Z (3 months ago)
- Language: Emacs Lisp
- Size: 23.4 KB
- Stars: 5
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# An Emacs interface for [CC-CEDICT](https://cc-cedict.org/wiki/)
[![MELPA](https://melpa.org/packages/cc-cedict-badge.svg)](https://melpa.org/#/cc-cedict)CC-CEDICT is a public-domain Chinese-English dictionary. `cc-cedict.el` is an Emacs interface for it.
## Setup
You need to manually download CC-CEDICT dictionary from https://cc-cedict.org/wiki/, extract the tarball then set `cc-cedict-file`. Something like the following:
``` shell
$ wget https://www.mdbg.net/chinese/export/cedict/cedict_1_0_ts_utf-8_mdbg.txt.gz
$ gunzip cedict_1_0_ts_utf-8_mdbg.txt.gz
`````` emacs-lisp
(setq cc-cedict-file "/path/to/cedict_1_0_ts_utf-8_mdbg.txt")
```## Usage
``` emacs-lisp
(cc-cedict "姊妹")
;; =>
#s(cc-cedict-entry "姊妹" "姊妹" "zi3 mei4" ("(older and younger) sisters" "sister (school, city etc)"))
```## Dependencies
- Emacs 26.1 or higher