Dictionary program based on the dictionary data from dict.cc.
In order to use the program:
-
Download the offline dictionary from dict.cc using the address:
http://www1.dict.cc/translation_file_request.php.
-
Compile the program using NANt
(http://nant.sourceforge.net)
to dict.exe. Copy dict.exe and the dictionary file to the destination
of your choice.
-
The program may be also compiled for Windows CE/Mobile.
For this case install the NET Compact Framework Redistributable and set
the environment variable NETCF to the location of NET Compact Framework.
For example if NET Compact Framework Redistributable has been installed
in
c:\netcf
, then set the environment variable NETCF to
SET NETCF=c:\netcf\WindowsCE
. Then call nant and compile the
executable, next copy the executable and the dictionary file to the PDA.
Since both the dictionary and the index file need at least several
tenths megabytes, buy a suitable memory card for the pda and copy the
dictionary in there rather than to the small internal memory of the PDA.
Compilation for NET Compact Framework is currently supported only under
Microsoft Windows.
-
For national language support copy also the files
lang/dict.resources.dll
.
Presently de/dict.resources.dll
for German and
pl/dict.resources.dll
for Polish are supported.
-
Using
nant cab
a Windows CE/Mobile installation cabinet file
can be created. The cabinet file is created using CabWiz.exe, which
must be installed and put into the search path prior to the compilation.
CabWiz.exe is for example included in Windows Mobile SDK 6
(aka. Windows Mobile 6 SDK Refresh) under Tools\CabWiz\CabWiz.exe.
CabWiz.exe can be also included in diverse MS Visual Studio
or Embedded Visual C++ versions.
After the cabinet file dict.CAB
has been created, copy it to PDA and
execute it.
The dictionary frontend and the localized resource files will be installed
under Program Files\dict, either in the internal memory or on the memory
card of the device, the installation also creates a shortcut
Windows\Start Menu\Programs
(or in the localized replacements of these directories on non english
versions of Windows CE/Mobile).
-
Start dict.exe and select the menu "Dictionary/Config"
Then enter the full path to the dictionary file from dict.cc and to the
index file to create and click on the button load
This will create the index file and the generation process may take some
time, especially on slow PDA devices. After the index file has been
generated:
press OK, the dictionary may be now used. From now on the dictionary
can be used. In the upper input box enter the keyword to translate
and select menu "Search/Exact"
Using "Search/Reg. Expr." all dictionary entries matching the
regular expression in the keyword window may be searched.
-
Each time, a new dictionary has been downloaded or if the dictionary
file has been moved to another location, the index file must be
recreated like described above. After the index file has been created,
it doesn't need to be created again and may be used by entering its
name in the input box "Index file" of the form "Dictionary/Config".
The application remembers the last index file used so that the
dictionary used last time is still used, after the application has been
launched again.
Because the index creation process is time consuming and it needs a lot
of memory, it may fail under circumastances on PDAs. The index may be
then created on the desktop computer and the index file has to be copied
to PDA. In such case the dictionary file from dict.cc must be located
in the same directory as the index file or as the executable dict.exe.
-
See the description of the class DictIndex and DictImport, especially
DictImport.saveIdx() for more details of the dictionary index file
format. See the description of the class DictParser for the
expected format of the dictionary file obtained from dict.cc.
Namespace hierarchy
Classes
Class |
Description |
CfgForm
|
Form for creating and selecting index files |
Dict
|
The main class for the dictionary application |
DictCfg
|
Dictionary configuration |
DictEntryRef
|
Reference to a dictionary entry in the dictionary file |
DictForm
|
Main form of the dictionary |
DictIdxRdForm
|
Form showing the progress of dictionary index reading |
DictImport
|
Used for dictionary index file creation |
DictIndex
|
Dictionary index |
DictParser
|
Dict.cc dictionary file parser |
Utils
|
Common purpose utility functions |
Interfaces
Interface |
Description |
IDictParserHandler
|
Used for receiving index entries from the dictionary parser |
IProgress
|
Used for showing progress of long term operations |