OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => OpenZaurus/Opie/Qtopia => Topic started by: bkudria on April 19, 2005, 08:11:06 am

Title: Opie-wordgame...where Is The Wordlist?
Post by: bkudria on April 19, 2005, 08:11:06 am
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!
Title: Opie-wordgame...where Is The Wordlist?
Post by: melee on April 19, 2005, 02:19:52 pm
Quote
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!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75897\"][{POST_SNAPBACK}][/a][/div]

/home/QtPalmtop/etc/dict/dawg

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

regards

Melee
Title: Opie-wordgame...where Is The Wordlist?
Post by: bkudria on April 19, 2005, 05:26:49 pm
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!
Title: Opie-wordgame...where Is The Wordlist?
Post by: zenyatta on April 20, 2005, 04:54:56 am
There was a discussion of this a while ago, my findings are summarized in one of the posts (https://www.oesf.org/forums/index.php?showtopic=8414&view=findpost&p=51816). 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.
Title: Opie-wordgame...where Is The Wordlist?
Post by: bkudria on April 20, 2005, 08:03:32 am
It seems like I'm almost there.   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!
Title: Opie-wordgame...where Is The Wordlist?
Post by: melee on April 20, 2005, 11:14:54 am
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 } (http://myweb.tiscali.co.uk/drahthaar/Z/ospd_dawg.tar.gz)

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 } (http://myweb.tiscali.co.uk/drahthaar/Z/qpe-wordgame_1.5.0-1_arm_480x640.ipk)

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
Title: Opie-wordgame...where Is The Wordlist?
Post by: bkudria on April 20, 2005, 10:23:58 pm
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!
Title: Opie-wordgame...where Is The Wordlist?
Post by: melee on April 21, 2005, 06:00:23 am
Quote
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!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=76217\"][{POST_SNAPBACK}][/a][/div]

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
Title: Opie-wordgame...where Is The Wordlist?
Post by: Hrw on April 22, 2005, 02:56:42 am
look in opie-dict-* packages for wordlists.

and they probably need to be in /opt/QtPalmtop/etc/