Skip to content

gkovacs/cantodict-kindle-mobi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CC-CEDICT Chinese-English Dictionary for Kindle with Mandarin and Cantonese (mobi format)

Download

Amazon Kindle Store: Pinyin and Jyutping or Zhuyin and Jyutping

Mobi (sideload it): Pinyin and Jyutping or Zhuyin and Jyutping

Donations appreciated: Paypal Venmo Bitcoin

About

Chinese-English Dictionary with Mandarin and Cantonese Pronunciations

Send to your Kindle, select it as the built-in dictionary, and you can look up words just by clicking on them!

Supports looking up both Simplified and Traditional characters. Over 200,000 entries.

Mandarin (Standard Chinese / Putonghua) pronunciations are in Pinyin (nǐ hǎo), Cantonese (Yue) pronunciations are in Jyutping (nei5 hou2). Example entry:

发展 (Simplified) 發展 (Traditional) fā zhǎn (Mandarin Pinyin) faat3 zin2 (Cantonese Jyutping) development, growth, to develop, to grow, to expand

Also includes Cantonese specific words such as 冇 and Cantonese specific words such as 唔該. Example entry:

唔該 (Traditional) 唔该 (Simplified) wú gāi (Mandarin Pinyin) m4 goi1 (Cantonese Jyutping) please; thanks; excuse me

Supported Devices

E-ink Kindles

With e-ink kindles, you can add an external dictionary by buying it on the Kindle store (or sideloading), highlighting a word, then selecting the dictionary.

Kindle app on Android

If you want to use this on an Andoid device, you can do so by replacing an existing dictionary - ie, if you want to replace the built-in Chinese-English dictionary, replace /sdcard/Android/data/com.amazon.kindle/files/B00AZOHEGE/B00AZOHEGE_EBOK.prc with the dowloaded mobi file. More detailed instructions are as follows (source).

Open any book (no matter which) and request a definition in a language that you won't use (Deutsche for example). The Kindle app will start to download that dictionary; wait the download is completed and exit from the app (use task manager to kill the app to make sure).

The downloaded dictionary will be in /sdcard/Android/data/com.amazon.kindle/files folder. In order to detect the downloaded dictionary, watch what is the last modified date. Remember the name of the .prc file (also you could find a .mbp file -you'll find them inside a folder named B00XXXXXXX-; of course, instead of XXX you'll have another thing) and rename it/them (change extensions).

Copy in this folder your french dictionary and give it the same name as the .prc file whose name you changed in the previous step (if your french dictionary has another extension than .prc, no matter, give it that extension, so that your dictionary is named something like B00XXXXXXX_EBOK.prc).

Now open Kindle app and use your dictionary (of course, you will be choosing the Deutsche dictionary but actually will be your french dict.)

About the code

These scripts generate a .mobi file from the CC-CEDICT Chinese-English dictionary and the CantoDict dictionary.

You can then load this .mobi file to your Kindle to use it as a dictionary.

The generated dictionary includes pinyin or zhuyin (mandarin), jyutping (cantonese) and definitions for words.

Running the code to generate dictionaries

First install python, python3 and kindlegen. Then run the following commands

python3 mkdict.py > dictionary.txt
python tab2opf.py -utf dictionary.txt
kindlegen dictionary.opf

If you would like to have zhuyin pronunciations, run the following commands

python3 mkdict.py zhuyin > dictionary_zhuyin.txt
python tab2opf.py -utf dictionary_zhuyin.txt zhuyin
kindlegen dictionary_zhuyin.opf

If you would also like it in stardict format, install stardict-tools and then

/usr/lib/stardict-tools/tabfile dictionary.txt
/usr/lib/stardict-tools/tabfile dictionary_zhuyin.txt

Author

Geza Kovacs

License

MIT

Related

For version with pinyin and no jyutping, see https://github.com/gkovacs/cc-cedict-kindle-mobi

Donate

Donations appreciated

About

CC-CEDICT Chinese-English Dictionary for Kindle with Mandarin and Cantonese (mobi format)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages