Google Answers Logo
View Question
 
Q: Decompressing an iSpell .hash file... ( No Answer,   5 Comments )
Question  
Subject: Decompressing an iSpell .hash file...
Category: Computers
Asked by: psteinx-ga
List Price: $30.00
Posted: 01 Jul 2005 09:35 PDT
Expires: 31 Jul 2005 09:35 PDT
Question ID: 539117
I need step by step instructions to convert an iSpell .hash file into
plain ASCII text, from Windows and/or a DOS command prompt (not
Linux).  I'll download and use any binary I'm pointed to, but I don't
want to compile binaries from source to do this (that's usually a
nightmare in Windows).

I've got iSpell installed - there are a number of .EXEs with it -
perhaps one of them can do this, but I don't know the syntax.  In my
ISpell directory, I see
add.bat
buildhash.exe
icombine.exe
ijoin.exe
ispell.exe
sq.exe
unsq.exe
Answer  
There is no answer at this time.

Comments  
Subject: Re: Decompressing an iSpell .hash file...
From: relf-ga on 20 Jul 2005 03:33 PDT
 
After some study of ispell sources I've written hash2dict program.
Binary complied for win32 is available at
http://www.webfile.ru/get/1823755217/hash2dict.zip

Run it like

hash2dict.exe my.hash

and it will extract all words from my.hash into dict.txt text file.
Subject: Re: Decompressing an iSpell .hash file...
From: psteinx-ga on 21 Jul 2005 13:57 PDT
 
That file does not appear to be available.  When I put that url in my
browser, I get a site that's all in Russian, with nothing that I can
see to download (though I can't speak Russian, so perhaps it's there
but hard to find.
Subject: Re: Decompressing an iSpell .hash file...
From: sageres-ga on 22 Jul 2005 20:17 PDT
 
I also looked at the source files... I created the application
(including the source code), compiled with win32. Get the zip at:

http://www.adventuresunion.net/stan/hashdump.zip

To extract the wordlist run the following in command prompt:

hashdump foo.hash

The words will be printed to the screen. If you want to put them in the file run:

hashdump foo.hash > myoutput.txt

Now the words are not sorted. If you would like a sorted output, you
will need to pipe the output through the sort command, like this:

hashdump foo.hash | sort > mysortedoutput.txt 

OR

hashdump foo.hash > unsorted.txt
type unsorted.txt | sort > mysourtedoutput.txt

Let me know if it works!
Subject: Re: Decompressing an iSpell .hash file...
From: psteinx-ga on 25 Jul 2005 07:42 PDT
 
Sageres's response seems to work.  Though I'm still puzzled by what
all the extra data in the last 2/3 of a .hash file is.  For instance,
the italian dictionary here
(http://members.xoom.virgilio.it/trasforma/ispell/), claims to be 185K
words, but I only get 45K words (and I had to disable the early exit
on consecutive 0s to get that).  Anyways, this is helpful and worth
crediting as a correct answer, so go ahead and repost it that way.
Subject: Re: Decompressing an iSpell .hash file...
From: sageres-ga on 25 Jul 2005 12:09 PDT
 
Hm... I could not quite determine exactly how to tell the size of the
hash table. When I counted the number of strings, it was always bigger
then hashsize value.

If I find something to add to it I will add more info...

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy