The PEAK Developers' Center   HelpOnSpellCheck UserPreferences
 
HelpContents Search Diffs Info Edit Subscribe XML Print View
The following 164 words could not be found in the dictionary of 50 words (including 50 LocalSpellingWords) and are highlighted below:
Administration   Another   Check   Checking   Contents   Example   Foot   Help   If   Jan   Local   Note   Nov   On   Option   Python   Spell   Spelling   The   This   Words   active   actually   adding   american   and   are   at   available   be   because   before   build   built   but   by   cache   called   can   cause   change   checked   checking   comes   command   completely   contents   create   created   data   database   dbhash   delete   determines   dict   dictionaries   dictionary   did   directory   don   drwxr   everyone   few   file   files   find   first   for   found   hash   have   here   hundred   if   imported   in   installation   instead   into   is   it   least   like   line   ln   looks   ls   machine   manually   milliseconds   minutes   module   need   needed   net   new   next   normally   not   number   of   old   on   once   one   only   or   package   page   place   places   possible   problems   process   provide   read   recognized   removing   request   rw   script   seconds   several   sf   share   so   solution   some   speeds   spell   spellchecker   stored   symlink   systems   table   take   telnet   that   the   them   then   this   those   time   timeouts   to   tool   top10000de   two   up   use   usr   valid   version   webserver   will   with   within   won   words   work   xr   you   your  

Clear message


HelpContents > HelpOnAdministration > HelpOnSpellCheck

1 The Spell Checking Option

MoinMoin looks for valid words in two places:

If the "dbhash" module is available with your Python installation, the files in "dict" are read only once and stored in a hash table. This speeds up the spell checking process because then the number of words in the checked page determines the time needed for the checking, not the number of words in the dictionary (with 250000 words, some hundred milliseconds instead of several seconds).

Note that it may take a few minutes to build up this database, but only the first time the spellchecker is called. If your browser or the webserver timeouts before the file is completely built, one solution is to telnet into your webserver, and manually request the page1.

BTW, a UNIX machine normally comes with at least one words file; to use those, create a symlink within the dict directory, like so:

MoinMoin/dict> ln -s /usr/dict/words . 
On some systems, the words file is found in "/usr/share/dict/words" instead.

1.1 Example

MoinMoin> ls -l dict 
drwxr-xr-x   7 544      everyone        0 Jan 04 08:29 CVS 
-rw-r--r--   1 544      everyone   409067 Jan 04 06:38 american-english 
-rw-r--r--   1 544      everyone  2913577 Jan 25  2000 german.txt 
-rw-r--r--   1 544      everyone    92631 Nov 30 15:24 top10000de.txt 

1.2 Words files

If you need words files for US English or German, you can find them [WWW]here.

1.3 If it doesn´t work

If you change the contents of "MoinMoin/dict/" (because of adding new / removing old dictionaries) or if you create a new "MoinMoin/dict/" directory, then you have to delete the file "MoinMoin/wiki-moinmoin/data/dict.cache" (a new one will be created automagically).

If you don't, your new dictionaries won't be recognized (e.g. it will use only LocalSpellingWords). Another possible cause of problems is that you did not place the dictionaries in the active "MoinMoin" package directory, i.e. the one that is actually imported by your CGI script.

 

____
   1 The next version will provide a tool to create the database on the command line.
PythonPowered
EditText of this page (last modified 2007-03-25 17:31:03)
FindPage by browsing, title search , text search or an index
Or try one of these actions: AttachFile, DeletePage, LikePages, LocalSiteMap, SpellCheck