What is Zhudi?
Zhudi is a graphical interface to CEDICT, CFDICT, HanDeDict, ChE-Dicc). Therefore, it allows you to have a Chinese to English, French, German and Spanish dictionary.
Zhudi is designed to help users by providing them good choices. Consequently, a Bopomofo engine is included to provide pronunciation along with pinyin. Traditional and simplified characters are fully supported too.
What platforms are supported?
Since this project is written in Python 3, it should be able to run on any given platform. However, I only have tested it under GNU/Linux.
Currently, Zhudi can easily be installed on Archlinux from AUR.
What are the dependencies of Zhudi?
In order to run Zhudi, you need the following packages:
- python 3+
Version 0.9 is made to work with python2 and is now obsolete. You should use version 1.0 and later instead.
Zhudi is available in AUR.
You may install it thanks to Python setup tools:
python setup.py install
Zhudi can be launched from the command line by providing it proper files.
When you first launch Zhudi, you need to provide a dictionary file. You are free to use the one you like among:
- CEDICT for English-Chinsese ;
- CFDICT for French-Chinese ;
- HanDeDict For German-Chinese ;
- ChE-DICC for Spanish-Chinese.
You have to download the *.u8 version of the dictionary for using with Zhudi. Once you have downloaded it, simply run Zhudi to prepare the dictionary for future uses. Here is an example with the CEDICT dictionary (cedict.u8):
zhudi -s cedict.u8
When Zhudi is finished, it would have created 5 files: pinyin, zhuyin, simplified, traditional and translation.
When the previous 5 files are created, you can simply launch Zhudi:
zhudi -p pinyin -z zhuyin -tr translation -td traditional -sd simplified
However, you can just copy these files in your ~/.zhudi/ directory and launch Zhudi without arguments:
As zhudi is using Python's setup tools, you can always "install" the developpment version as follow:
python setup.py develop
From now on, zhudi of your system is actually a link to the developpment directory, so you can modify things, and test them on the fly, without re-installing.
dict_test.u8 is used to test the splitting of the dictionary, and then for the rest of the unittests.
First, test that splitting the dictionary is working well:
Then, test the rest of the units: