~ubuntu-branches/ubuntu/gutsy/moin/gutsy

« back to all changes in this revision

Viewing changes to wiki/underlay/pages/HelpOnSpellCheck/revisions/00000001

  • Committer: Bazaar Package Importer
  • Author(s): Sivan Greenberg
  • Date: 2006-07-09 19:28:02 UTC
  • Revision ID: james.westby@ubuntu.com-20060709192802-oaeuvt4v3e9300uj
Tags: 1.5.3-1ubuntu1
* Merge new debian version.
* Reapply Ubuntu changes:
    + debian/rules:
      - Comment out usage of control.ubuntu.in (doesn't fit!).
    + debian/control.in:
      - Dropped python2.3 binary package.
    + debian/control:
      - Dropped python2.3 binary, again.
      - Dropped python2.3-dev from Build-Depends-Indep.
    + debian/patches/001-attachment-xss-fix.patch:
      - Dropped this patch. It's now in upstream's distribution.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
HelpContents > HelpOnAdministration > HelpOnSpellCheck
9
9
 
10
10
== The Spell Checking Option ==
11
 
MoinMoin looks for valid words in two places:
 
11
MoinMoin looks for valid words in three places:
12
12
 * the "dict" directory in the MoinMoin package directory (this is mostly below the directory {{{site-packages}}} of your Python installation)
 
13
 * the "dict" directory of data directory of your wiki (per-wiki dictionnary)
13
14
 * the page LocalSpellingWords
14
15
 
15
16
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 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).
35
36
 
36
37
=== If it does not work ===
37
38
 
38
 
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 {{{<yourwiki>/data/cache/spellchecker.dict}}} (a new one will be created automagically).
 
39
If you change the contents of {{{MoinMoin/dict/}}} or {{{data/dict/}}} (because of adding new / removing old dictionaries) or if you create a new {{{MoinMoin/dict/}}} or {{{data/dict/}}} directory, then you have to delete the file {{{<yourwiki>/data/cache/spellchecker.dict}}} (a new one will be created automagically).
39
40
 
40
41
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.