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.
- The Dict-Name will be displayed when display the result.
- When Content-Type is "text", convert the description to plain text.
- When Content-Type is "html", convert the description to HTML.
Index Files
XD has three index files, each time any change of dict file, must be update 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.
- Update bottom index file.
- Update middle index file.
- Update top index file.