|
HOW TO CREATE YOUR OWN DICTIONARIES
File format in very simple. First of all, lines started with an '#' are
comments and just silently ignored. All non-ASCII characters must be
in UTF-8 encoding.
Then there are two main sections in the source file - header and articles.
Header defines such a parameters as dictionary languages, copyright
and so on. All header lines are between
<header> and </header> tags and in our
example are:
title = Sample 1 test dictionary - dictionary name;
copyright = GNU Public License - copyright information;
version = 0.1 - version;
w_lang = en - language for words;
a_lang = fi - language for articles.
Articles section is right after header. It contains all the
words in your dictionary. Each word/article pair allocates exactly one
line in the following format:
word___article
namely word itself, then three underscore characters
then article.
Articles section also supported <br> and <p> tags for line break and <t></t> tags for transcription.
Example .sdct file:
<header>
title = Dictionary base name
copyright = GNU Public License
version = 1.0
w_lang = en
a_lang = de
</header>
#
#
#
abacus___helmitaulu
abandon___heitteille luopua
abandonment___hylkaaminen
abate___heiketa, talttua
#
As far as you've prepared source dictionary file it's time to compile
it.
|