Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Coding Academy Project 2 Aspell problem

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Ozram



Joined: Tue Apr 20, 2010 8:34 am
Posts: 1
Location: Towamba, Australia

PostPosted: Tue Apr 20, 2010 9:21 am    Post subject: Coding Academy Project 2 Aspell problem Reply with quote

When I run the command to dump the word list from Aspell into a file I get the following error message:

rod@Dylan:~/Projects/WordScramble/WordScramble/bin/Debug$aspell dump master|sort|uniq>wordlist
Error: The file "/usr/lib/aspell/en_AU" can not be opened for reading.

There is no en_AU in the aspell directory.
It looks to me like the command is trying to find an Australian version of the dictionary.

Thinking it might be hidden from me I tried chmod while in the aspell directory:

rod@Dylan:/usr/lib/aspell$ sudo chmod u+r en_AU
chmod: cannot access `en_AU': No such file or directory


Any help at all would be appreciated.
Back to top
View user's profile Send private message
Coll



Joined: Tue Apr 20, 2010 9:06 pm
Posts: 2

PostPosted: Tue Apr 20, 2010 9:22 pm    Post subject: Reply with quote

en_AU is not a command but a language setting.

look for the variable set to en_AU by this command:
set | grep en_AU

and try setting that to en_US for now.

I'd say that aspell is set up in en_US. A better solution would be to install aspell in en_AU, but don't know if that option is available.
Back to top
View user's profile Send private message
JohnMac



Joined: Fri Sep 18, 2009 7:09 am
Posts: 4
Location: Parramatta 2150 Australia

PostPosted: Wed May 05, 2010 11:31 am    Post subject: Reply with quote

I am having the same problem- maybe it is due to the southern latitude!
Have run the following with result shown
john@john-desktop:~/Projects/WordScramble/WordScramble/bin/Debug$ aspell dump master |sort|uniq>wordlist
Error: The file "/usr/lib/aspell/en_AU" can not be opened for reading.
john@john-desktop:~/Projects/WordScramble/WordScramble/bin/Debug$ set | grep en_AU
GDM_LANG=en_AU.UTF-8
LANG=en_AU.UTF-8
john@john-desktop:~/Projects/WordScramble/WordScramble/bin/Debug$

My knowledge of Terminal is severely lacking as to what action I should take to take the action suggested of changing the setting.

Help would be appreciated.
Back to top
View user's profile Send private message Send e-mail
Coll



Joined: Tue Apr 20, 2010 9:06 pm
Posts: 2

PostPosted: Wed May 05, 2010 7:49 pm    Post subject: aspell Reply with quote

Try the following:

set LANG=en_US.UTF-8
aspell dump master |sort|uniq>wordlist
set LANG=en_AU.UTF-8

This is an educated guess, not something I have actually tried.

Alternatively, possibly there is an option in aspell (try "aspell --help" ?) to tell it to do it in english-US. Or maybe there is an option to install the AU dictionary with real words for aspell. If you are on a Red-Hat based machine eg Centos try

yum list aspell

and look for a something claiming to be an australian dictionary then do a
yum install _______(au dictionary)
Back to top
View user's profile Send private message
JohnMac



Joined: Fri Sep 18, 2009 7:09 am
Posts: 4
Location: Parramatta 2150 Australia

PostPosted: Fri May 07, 2010 11:09 am    Post subject: Problem with aspell Reply with quote

Tried the forgoing without success, however, a bit of lateral thinking along the lines of AU representing our version of the English dictionary led to using System Administration -> Language Support changing the Dictionary to English (United Kingdom) but had to stick with the US text for dollar sign!
This appears to have done the trick & I now have a wordlist file to work with.
I should be able to go back to our dictionary now.
Back to top
View user's profile Send private message Send e-mail
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast