in reply to Re: adding to an ispell dictionary
in thread adding to an ispell dictionary
Ok yeah that sounds possible, i've tried running the script you have above but it doesn't add to my personal dictionary.
The code I have is a follows
#!/usr/bin/perl -w use strict; use Lingua::Ispell qw( :all ); # import all symbols use_personal_dictionary('.ispell_english'); add_word_lc("shrdlu"); save_dictionary(); for my $r ( spellcheck( "hello hacking perl shrdlu 42" ) ) { print "$r->{'type'}: $r->{'term'}\n"; }
Unfortunately this does not add to the empty .ispell_english file in my home directory. Even with permissions set to chmod 666 and user: nobody, group: other (i.e. same as web server)
Do I need to set a personal_dictionary variable in my ispell local.h file and re- 'make' the ispell installation?
I hate this sys-admin stuff :-( Appreciate the help though thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: adding to an ispell dictionary
by tall_man (Parson) on Apr 15, 2003 at 15:16 UTC | |
by cbro (Pilgrim) on Apr 15, 2003 at 15:30 UTC | |
by CodeJunkie (Monk) on Apr 15, 2003 at 15:21 UTC |