Home | Send email | Forum |
C:\java
.
Be sure to keep the directory structure. You should get a directory C:\java\dict\
which contains a file startdict.bat
and a subdirectory EV
, among
others.
startdict.bat
, the following window should appear: http://localhost:8080
.
You will be able to use 2 dictionaries: Anh-Viet and Viet-Anh
C:\java
. Here is how you can add the French<->Vietnamese dictionaries.
WebDict3.zip
C:\java
. Now the directory C:\java\dict\
should contain another subdirectory FV
. Moreover, you see a file fv.ini
in
C:\java\dict\
startdict.bat
to start the program. The above window appears.
fv.ini
in C:\java\dict\
. The program now looks like this:http://localhost:8080
in a browser. You should see that 4 dictionaries are availaible now: Anh-Viet, Viet-Anh, Phap-Viet and Viet-Phap.
startdict.bat
and add fv.ini
to the end of
the first line. The file should then be as follows:
start jre\bin\jre -Dmatches=15 -Dhttp_port=8080 -mx32M -cp vietdict28.jar vietdict.server.VietdictServer ev.ini fv.ini
/home/nvt/VietDictionary
. Be sure to keep the directory
structure. You should see in /home/nvt/VietDictionary
a
subdirectory dict
vietdict.bat
in the
directory dict
http://localhost:8080
startdict.bat
or vietdict.bat
) and
change -Ddaemon=false
to -Ddaemon=true
.
If you want to change the appearance of the output (font face,
size, color etc.), you can edit the template result.html
.
See the file result2.html
for an example. Basically, you
can edit the following style elements: dict
(the name of
the dictionary), def
(the word definition),
pos
(the part.of-speech of a word), ex
(sample
usage), trans
(translation of the example),
idioms
(list of idioms), idiom
(idiomatic
use). Moreover, you can include a background image for the page,
or add some links or images to the output of the program.
Our dictionary program is extensible. It can use any dictionary database in
DICT format (e.g., WordNet,
Free Online Dictionary of Computing, or the free bilingual dictionaries
on www.freedict.de).
That is, you can download any dictionary of interest, write a
2-lines ini file to tell the program where to find the new dictionary,
and run the server with that dictionary. To compress/decompress the data
files in DICTZIP format, the program dictzip
can be used.
That program can be compiled easily from the source on Linux/Unix. A
version for Windows is also available.
(dictzip is a command-line tool, please use it from a command windows!)
There is also a version for Palm OS and WindowsCE/PocketPC.
Developers may download the source code of the program and develop it further.
The dictionary program, its source code and the dictionary databases are distributed under GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Permission to use, copy, modify, and redistribute this software and its documentation for personal, non-commercial use is hereby granted provided that this copyright notice and appropriate documentation appears in all copies.