Follow along if you are an English Learner.
We may support more database in the future.
Setup ECDICT (An Modified English Tokenizer and English to Chinese, English to English offline dictionary)
- Download https://github.com/skywind3000/ECDICT/releases/download/1.0.28/ecdict-sqlite-28.zip
- Unzip it, and
paw-ecdict-db
pointing to the location ofstardict.db
. - Download nltk and nltk data for tokenizing the words
pip install nltk python -m nltk.downloader stopwords python -m nltk.downloader punkt
- Android, you need python 3.10 to support nltk (newer versions may not work at the time of writing)
pkg install tur-repo # https://github.com/termux-user-repository/tur pkg install python3.10 # install python 3.10 pip3.10 install nltk python3.10 -m nltk.downloader stopwords python3.10 -m nltk.downloader punkt ln -s /data/data/com.termux/files/home/nltk_data /data/data/org.gnu.emacs/files/nltk_data
- Setup
paw-python-program
if necessary, if the pip module is installed with different python version, for android, set it topython3.10
- Show/Highlight unknown words at the background
- Enable
paw-annotation-show-unknown-words-p
- Tweak five different filter settings to fit your need:
paw-ecdict-frq
: Minimal Frequency from frp, -1 means allpaw-ecdict-bnc
: Minimal Frequency from bnc, -1 means allpaw-ecdict-tags
: Tags for querying english words, set it part of: ‘zk gk ky cet4 cet6 ielts toefl gre empty’.paw-ecdict-oxford
: Whether within oxford 3000, 0 or 1, 1 means in oxford 3000paw-ecdict-collins-max-level
: The max collins level, 1 to 5.
- Set
paw-ecdict-show-tags-p
to t to show tags. - Set
paw-ecdict-show-translation-p
to t to show translation (Chinese). - Set
paw-ecdict-show-definition-p
to t to show definition (English). - Add words to known words file
- Setup
paw-ecdict-known-words-files
andpaw-ecdict-default-known-words-file
, for example, I have two files, one is csv file downloaded from somewhere, the other is a plain text maintained manually.(setq paw-ecdict-known-words-files `(,(expand-file-name "eudic.csv" org-directory) ,(expand-file-name "english.txt" org-directory))) (setq paw-ecdict-default-known-words-file (expand-file-name "english.txt" org-directory))
- Setup
- Tweak five different filter settings to fit your need:
- Press Delete button, or run
paw-delete-word
, the word will be added into the last line ofpaw-ecdict-default-known-words-file
in which ECDICT will be added into the filtering setting. Or you can simple openpaw-ecdict-default-known-words-file
and add a word on the last line. - Please be noticed that
paw-change-word-learning-level
also has a KNOWN status, but this is only for offline/online words, even if you change it to KNOWN, the word is still in the database and server. While the known words files mentioned above are only maintained locally, no databases are needed (at this moment), giving the user more flexibility.
- You can also disable
paw-annotation-show-unknown-words-p
, and use your personal wordlist files (csv/txt file dictionaries) instead, by settingpaw-ecdict-wordlist-files
.- csv file requirement: just make sure first column is the word. Other columns will be automatically combined and separated by new line as explanation.
- txt file requirement: the whole line should be the word, one line one word.
You can think of paw-ecdict-wordlist-files
are external text dictionaries. Paw will query the word with the first column of text dictionaries inside
paw-ecdict-wordlist-files
, and use other columns as explanation. If no
explanation, it will use paw-ecdict-db
.
You can also think of paw-ecdict-wordlist-files
are editable wordlists. All words inside them will be highlighted (Blue by default) in the buffer that are enabled paw-annoatation-mode
, while words added into paw-db-file
will be highlighted as Orange by default.
These are builtin wordlists:
- M-x
paw-request-oxford-5000
: 5000.csv (b2 and c1) saved into org-directory - M-x
paw-request-oxford-phrase-list
: phrase-list.csv saved into org-directory - M-x
paw-request-oxford-opal
: opal.csv saved into org-directory - M-x
paw-request-mawl
: mawl.csv saved into org-directory - M-x
paw-request-cambridge-all
: input the cookie (from https://dictionary.cambridge.org/plus/cambridgeWordlists after logging in), then various cambridge wordlists will be saved into org-directory