Help - Search - Members - Calendar
Full Version: Opie-wordgame...where Is The Wordlist?
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > OpenZaurus/Opie/Qtopia
bkudria
I've read here that opie-wordgame uses a DAWG format for it's wordlist, and I want to use an official scrabble one...but, i have no idea where opie-wordgame keeps it's wordlist. I've been adding words to it my self while playing, but this isn't nearly as much fun. thanks!
melee
QUOTE(bkudria @ Apr 19 2005, 01:11 PM)
I've read here that opie-wordgame uses a DAWG format for it's wordlist, and I want to use an official scrabble one...but, i have no idea where opie-wordgame keeps it's wordlist.  I've been adding words to it my self while playing, but this isn't nearly as much fun.  thanks!
*


/home/QtPalmtop/etc/dict/dawg

It may be a symlink if you have installed to SD or CF card

regards

Melee
bkudria
Hmm, I don't even have a /home/QtPalmtop/etc/ directory...if I download a dawg file, rename it to 'dawg', and place it in /home/QtPalmtop/etc/dict/, it will work? I mean, the name of the file should be 'dawg', right?

Thanks for the help!
zenyatta
There was a discussion of this a while ago, my findings are summarized in one of the posts. The instructions refer to Opie's standard dictionary file, you obviously need to modify things if you want an official dictionary, or if you are running Opie on top of something else than OpenZaurus.

Hope this helps,
z.
bkudria
It seems like I'm almost there. sad.gif I downloaded an official scrabble dictionary, renamed it to 'words', and put it in /home/QtPalmtop/etc/dict ... but opie-dict didn't try to process this file at all (maybe because it is 2.8 megabytes...is this too big?), it just started up with and empty dictionary. I also tried putting a plaintext 'words' in '/root/Applications/Dictionary/', as well as trying to compile my own dawg file and copying the result into '/root/Applications/Dictionary/WordGame.dawg'...since there was a file there earlier which seemed to be a generated dictionary based on what I told opie-wordgame before. Neither of these attempts worked, I have no idea why. Help!
melee
Hi again,

I looked at the wordgame code and it only makes 3 calls to QDawg and all of them are to the static function which returns the root node of the dawg file set by the locale. So it doesn't covert words lists to dawg files - not in my copy anyway.

I have taken pity on your plight, written a quick commandline app which calls QDawg to convert a words list to a dawg file, and then run the Official Scrabble Players Dictionary word list through it.

The result is on my website in a tarball for you to download { Here }

Unpack the tarball and rename ospd_dawg to dawg

Go into your Zaurus to where your current dawg file is and rename it dawg_old

Copy the new dawg file to that location

Run wordgame and enter a word and check it to check dawg is being searched

Tested on my C860 just now and works fine

If you want a copy of wordgame which displays fullscreen in portrait mode on a 480x640 VGA screen, my conversion of wordgame which does just that is available for download { Here }

Dont forget if you install my conversion of qpe-wordgame,it will install the original dawg file overwriting the ospd version and you need to install that again!!!!

regards

Melee
bkudria
Woot! That worked, I copied the file to /root/Applications/Dictionary/WordGame.dawg and it worked. Is there a reason this can't be included in a opie-wordgame-dict package, or something? If the OSPD list is non-free, I know the YAWL list is free. Again, big thanks, melee!
melee
QUOTE(bkudria @ Apr 21 2005, 03:23 AM)
Woot!  That worked, I copied the file to /root/Applications/Dictionary/WordGame.dawg and it worked.  Is there a reason this can't be included in a opie-wordgame-dict package, or something?  If the OSPD list is non-free, I know the YAWL list is free.  Again, big thanks, melee!
*


Glad I could help.

You haven't said exactly what Z and which ROM you are running on, the directory structure appears to differ quite a bit from my Sharp ROM.

I got the word list from http://www.puzzlers.org//wordlists/dictinfo.php which has several excellent lists.

The original scrabble dictionary is Chambers I expect, which is copyright, but the list has no restrictions published with it.

I am in the process of trying to write a crossword solving app using dawg lookups, hence my knowledge / interest in dawg and wordlists at present.

cheers

Melee
Hrw
look in opie-dict-* packages for wordlists.

and they probably need to be in /opt/QtPalmtop/etc/
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2016 Invision Power Services, Inc.