My favorites | Sign in
Project Logo
                
Code license: GNU General Public License v3
Labels: XD, Dictionary, Qt, C, CPP, C
Feeds:
People details
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. The Dict-Name will be displayed when display the result.
  7. When Content-Type is "text", convert the description to plain text.
  8. 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

  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. Update bottom index file.
  5. Update middle index file.
  6. Update top index file.








Hosted by Google Code