New user registration is currently disabled due to spam abuse / Регистрация новых пользователей в настоящее время приостановлена из-за злоупотреблений спаммерами

dictzip,windows commandline,usage,teach me

All about dictionaries

dictzip,windows commandline,usage,teach me

Postby newcomer » Tue Aug 16, 2011 7:17 am

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.
newcomer
 
Posts: 4
Joined: Sun Aug 14, 2011 8:50 am

Re: dictzip,windows commandline,usage,teach me

Postby Tvangeste » Tue Aug 16, 2011 11:14 am

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 :)
Tvangeste
 
Posts: 893
Joined: Thu Jun 02, 2011 11:42 am

Re: dictzip,windows commandline,usage,teach me

Postby newcomer » Wed Aug 17, 2011 3:17 am

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.
newcomer
 
Posts: 4
Joined: Sun Aug 14, 2011 8:50 am

Re: dictzip,windows commandline,usage,teach me

Postby Tvangeste » Wed Aug 17, 2011 7:25 am

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
Tvangeste
 
Posts: 893
Joined: Thu Jun 02, 2011 11:42 am

Re: dictzip,windows commandline,usage,teach me

Postby recsa » Mon Aug 22, 2011 4:16 am

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
recsa
 
Posts: 4
Joined: Mon Aug 22, 2011 2:26 am

Re: dictzip,windows commandline,usage,teach me

Postby freefall » Thu Aug 25, 2011 7:40 am

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.
freefall
 
Posts: 10
Joined: Tue Jul 19, 2011 5:38 am


Return to Dictionaries

Who is online

Users browsing this forum: No registered users and 20 guests