Author Topic: Opie-wordgame...where Is The Wordlist?  (Read 6170 times)

bkudria

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Opie-wordgame...where Is The Wordlist?
« 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!

melee

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • http://
Opie-wordgame...where Is The Wordlist?
« Reply #1 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
C860 - with Sharp ROM
1GB SD and 2 GB & 256MB CF
WiFi, Bluetooth and Sharp CF camera cards
Ubuntu 6.06
(WinXP if I really have to)

bkudria

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Opie-wordgame...where Is The Wordlist?
« Reply #2 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!

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Opie-wordgame...where Is The Wordlist?
« Reply #3 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. 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.
« Last Edit: April 20, 2005, 04:55:19 am by zenyatta »
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

bkudria

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Opie-wordgame...where Is The Wordlist?
« Reply #4 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!

melee

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • http://
Opie-wordgame...where Is The Wordlist?
« Reply #5 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 }

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
« Last Edit: March 07, 2006, 12:21:04 pm by melee »
C860 - with Sharp ROM
1GB SD and 2 GB & 256MB CF
WiFi, Bluetooth and Sharp CF camera cards
Ubuntu 6.06
(WinXP if I really have to)

bkudria

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Opie-wordgame...where Is The Wordlist?
« Reply #6 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!

melee

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • http://
Opie-wordgame...where Is The Wordlist?
« Reply #7 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
C860 - with Sharp ROM
1GB SD and 2 GB & 256MB CF
WiFi, Bluetooth and Sharp CF camera cards
Ubuntu 6.06
(WinXP if I really have to)

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Opie-wordgame...where Is The Wordlist?
« Reply #8 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/
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.