Page 1 of 1

dictzip,windows commandline,usage,teach me

PostPosted: Tue Aug 16, 2011 7:17 am
by newcomer
Hello.

DictUI (Windows standalone version)is a good tool to compress dsl files,its latest version developed in last year.
According to my tough test,some DSL dictionary fail to be compressed.No contact information is available on author's home page.

Therefore,I decide to turn to dictzip (commandline version).Being a Windows user,I can't find any commandline explanation about dictzip through google.
Furthermore,someone said there's pretty new version of dictzip.What a pity ,I don't know how to compile those strange files into Windows executable file.

DICTZIP source:http://sourceforge.net/projects/dict/files/dictd/

Question:

1.Can somebody teach me the detailed usage of dictzip commandline on Windows xp?
2.I'm wondering who can compile the latest new dictzip(Windows) ?

Sorry,I've no choice but come here to bother you programmer.From the searching on goole, I have to come to such conclusion that GD is more popular for Linux OS user than Windows.Personally, lack of information prevent the spread of GD among windows user.

Re: dictzip,windows commandline,usage,teach me

PostPosted: Tue Aug 16, 2011 11:14 am
by Tvangeste
newcomer wrote:1.Can somebody teach me the detailed usage of dictzip commandline on Windows xp?


This is pretty straightforward: Open a command line window, change to the directory where the DSL dictionary is located and invoke:

Code: Select all
dictzip your_dictionary_name.dsl


That's it! (Naturally, dictzip.exe must be on your system PATH so that it can be found). Dictzip will compress the DSL file and create your_dictionary_name.dsl.dz. Please note that the original DSL file will be deleted. Which is what most users would want (there is no need to keep two versions of the dictionary). But if you'd like to preserve the original file, use -k option.

2.I'm wondering who can compile the latest new dictzip(Windows) ?

Good question. I wasn't able to do so quickly, there are some dependencies on other libraries, etc.

But I'm starting to think that maybe we should provide dictzip functionality right in GoldenDict itself to spare all the users the trouble dealing with command line :)

Re: dictzip,windows commandline,usage,teach me

PostPosted: Wed Aug 17, 2011 3:17 am
by newcomer
I succeeded,thank you !
Are there any optional ? The whole set of optional are preferable.

Be careful about the filename.Space in the filename will fail the transformation.
I think this is the main reason why DICTUI missed. For example:

a b.dsl----------error

ab.dsl-----------pass


I can't agree more with you,integrating dictzip with GD and automatically transforming.

Re: dictzip,windows commandline,usage,teach me

PostPosted: Wed Aug 17, 2011 7:25 am
by Tvangeste
Code: Select all
#>dictzip.exe -h

dictzip 1.9.15
Copyright 1996-2002 Rickard E. Faith (faith@dict.org)

Usage: dictzip [options] name

-d --decompress      decompress
-f --force           force overwrite of output file
-h --help            give this help
-k --keep            do not delete original file
-l --list            list compressed file contents
-L --license         display software license
-c --stdout          write to stdout (decompression only)
-t --test            test compressed file integrity
-v --verbose         verbose mode
-V --version         display version number
-D --debug           select debug option
-s --start <offset>  starting offset for decompression (decimal)
-e --size <offset>   size for decompression (decimal)
-S --Start <offset>  starting offset for decompression (base64)
-E --Size <offset>   size for decompression (base64)
-p --pre <filter>    pre-compression filter
-P --post <filter>   post-compression filter

Re: dictzip,windows commandline,usage,teach me

PostPosted: Mon Aug 22, 2011 4:16 am
by recsa
copy dictzip to c:/windows/system32 include 3 files:cygwin1.dll cygz.dll dictzip.exe you can find it in dictui folder or download it here:http://yonggun.tistory.com/49
then you can use dictzip command in cmd window.
dictzip xxxxxx.dsl
I'm sure it's works in windows7

Re: dictzip,windows commandline,usage,teach me

PostPosted: Thu Aug 25, 2011 7:40 am
by freefall
i don't understand why you have to resort to command line for that. i usually just drag and drop umcompressed dictionary files to the Dictzip executable to do the compression, whether it is in dsl format or dict format. sorry if i misunderstood something.