What's new? | Help | Directory | Sign in
Google
                
Code License: GNU General Public License v3
Labels: XD, Dictionary, Qt, C, CPP, C
Feeds:
How to join?
Project owners:
  luolonghao

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

  1. Dict file must be UTF-8 encoding.
  2. Newline must be LF.
  3. The description can not have both consecutive LF.
  4. Must put both consecutive LF after the end of the description.
  5. The pronunciation is optional.
  6. When display the result, will display Dict-Name.
  7. When Content-Type is text, explain the description to plain text.
  8. 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

  1. Make XD dict file and named XXX-XXX.dict.
  2. Copy the dict file to the dict folder.
  3. Execute index-creator program.
  4. Re-generate bottom index file.
  5. Re-generate middle index file.
  6. Re-generate top index file.
  7. Run XD, search your word.