On Mon, 2010-04-19 at 18:39 +0200, Jonas Smedegaard wrote: > Hi Sam, > > On Mon, Apr 19, 2010 at 04:54:10PM +0100, Sam Morris wrote: > >/usr/share/moin/data/dict contains an empty 'dummy_dict' file. It would > >be cool if it contained a symlink to the (absolute) path > >/usr/share/dict/words so that wikis created on the system would have > >working spellchecking by default. :)
Creating an absolute symlink would be a violation to the Policy, however, there is another solution: ln -s ../../usr/share/dict/words /etc/moin/dict > thanks for the suggestion. Thank you for pinging me on the issue ;) A few weeks ago, I noticed that the symlink in /etc/moin/words didn't work, but my attention went away. I have just digged the issue, the problem is just that this file should be named "dict" (see patch attached) > If I recall correctly (it was quite some time ago I setup this part of > the packaging) the reason for not doing this is that preferred system > language (used by e.g. cracklib) might very well be different from > webapp language, and wrong dictionary is worse than no dictionary IMO. > > Maybe ask via debconf if the system dictionary should be used or not. What about multi-language support? scenario 1: An admin has two wikis in two different languages scenario 2: A wiki some contents/pages in different languages I believe that both problem could be solved if moinmoin where looking for a distinct dictionary, based on the current page language (see statement like "#language fr") I have just submitted: http://moinmo.in/FeatureRequests/MultiLanguageDict > I also seem to recall that Moin supports multiple dictionary files, so > an alternative could be to ask _which_ dictionaries to use via a > freeform debconf string defaulting to "words", and symlink all provided > words from that string. It seems to only work for dict file in /etc/moin/ and in /var/lib/mywiki/ (for typical installation). Regards, Franklin
--- debian/rules~ 2010-04-14 09:31:19.000000000 +0200 +++ debian/rules 2010-04-19 22:43:22.000000000 +0200 @@ -121,7 +121,7 @@ binary-fixup/$(pkg):: mkdir -p debian/$(cdbs_curpkg)/usr/share/pyshared/MoinMoin/ ln -s /etc/moin/words debian/$(cdbs_curpkg)/usr/share/pyshared/MoinMoin/ - ln -s /usr/share/dict/words debian/$(cdbs_curpkg)/etc/moin/words + ln -s ../../usr/share/dict/words debian/$(cdbs_curpkg)/etc/moin/dict # Move underlay to /usr/share/moin install/$(pkg)::