Introduction
XD is a simple and Cross-Platform dictionary software written in Qt4. The file format of XD Dictionnary is opened, so if you held any programming skills, you can make custom dictionnay files.
XD folder tree
Windows version
│ xd.exe │ index-creator.exe │ msvcr80.dll │ msvcp80.dll │ QtCore4.dll │ QtGui4.dll │ Microsoft.VC80.CRT.manifest │ options.ini │ app.ini │ ├─doc │ readme.txt │ licence.txt │ ├─dict │ top.index │ bottom.index │ middle.index │ jp-jp_koujien.dict │ jp-kr_kjdict.dict │ kr-jp_kjdict.dict │ en-ja_jmdict.dict │ en-cn_jianming.dict │ cn-en_jianming.dict │ cn-cn_gaojihanyu.dict │ └─lang zh_CN.qm en.qm
Dictionary file
XD Dict file format
Dict-Name: XXXX XXXX Content-Type: text or html Word-Count: 123456 keyword1|keyword2|keyword3... [[pronunciation]] Description keyword1|keyword2|keyword3... [[pronunciation]] Description
Description
- Dict file must be UTF-8 encoding.
- Newline must be LF.
- The description can not have both consecutive LF.
- Must put both consecutive LF after the end of the description.
- The pronunciation is optional.
- When display the result, will display Dict-Name.
- When Content-Type is text, explain the description to plain text.
- When Content-Type is html, explain the description to HTML.
Index Files
XD includes three index files, each time any change from Dictionary to be re-generate the three index files.
How to add custom dictionary
- Make XD dict file and named XXX-XXX.dict.
- Copy the dict file to the dict folder.
- Execute index-creator program.
- Re-generate bottom index file.
- Re-generate middle index file.
- Re-generate top index file.
- Run XD, search your word.
