Adding spellchecker

This commit is contained in:
Martin Kamerbeek 2006-10-19 15:25:50 +00:00
parent fe664733cd
commit 9f232b4049
23 changed files with 2251 additions and 10 deletions

View file

@ -1,5 +1,5 @@
7.2.0
- Added server side spellchecker (Martin Kamerbeek / Procolix)
7.1.2

View file

@ -7,6 +7,15 @@ upgrading from one version to the next, or even between multiple
versions. Be sure to heed the warnings contained herein as they will
save you many hours of grief.
7.2.0
--------------------------------------------------------------------
* Server side spellchecking has been added to this release. You must
install Text::Aspell, and any dictionary you like. If you want to
use spellchecking you have to setup the dictionaries you want your
users to use in the config file. Also you'll have to check the
spellchecker checkbox in the RichEdit asset you're using.
7.0.8
--------------------------------------------------------------------
* 7.0.7 was released with a critical bug that broke the search engine

View file

@ -20,17 +20,21 @@ my $quiet; # this line required
my $session = start(); # this line required
# upgrade functions go here
createDictionaryStorage($session);
finish($session); # this line required
##-------------------------------------------------
#sub exampleFunction {
# my $session = shift;
# print "\tWe're doing some stuff here that you should know about.\n" unless ($quiet);
# # and here's our code
#}
#-------------------------------------------------
sub createDictionaryStorage {
my $session = shift;
print "\tCreating the directory for the personal dictionaries.\n" unless ($quiet);
my $dictionaryDirectory = $session->config->get('uploadsPath') .'/dictionaries';
mkdir $dictionaryDirectory unless (-e $dictionaryDirectory);
mkdir $dictionaryDirectory.'/oldIds' unless (-e $dictionaryDirectory.'/oldIds');
}