dico-module-mediawiki for Debian
--------------------------------

* To use the mediawiki module, make sure that the python module is loaded in
  /etc/dicod.conf (with the proper load-path), and add the following lines
  in /etc/dicod.conf:

database {
        name "<dbname>";
        handler "python load-path=/usr/share/dico/python init-script=mediawiki <URL>";
        mime-headers <<- EOT
          Content-Type: text/x-wiki
          Content-Transfer-Encoding: quoted-printable
          X-Wiki-Language: <language>
        EOT;
        description "<short description>";
        info <<- EOT
<some lines
 of info>
EOT;
}

Here's an example:

database {
        name "en-wikipedia";
        handler "python init-script=mediawiki en.wikipedia.org";
        mime-headers <<- EOT
          Content-Type: text/x-wiki
          Content-Transfer-Encoding: quoted-printable
          X-Wiki-Language: en
        EOT;
        description "en.wikipedia.org";
        info <<- EOT
English language Wikipedia, a collaborative project to produce a
free-content multilingual encyclopedia.
EOT;
}

database {
        name "en-wiktionary";
        handler "python load-path=/usr/share/dico init-script=mediawiki en.wiktionary.org";
        mime-headers <<- EOT
          Content-Type: text/x-wiki
          Content-Transfer-Encoding: quoted-printable
          X-Wiki-Language: en
        EOT;
        description "en.wiktionary.org";
        info <<- EOT
English language Wiktionary, a collaborative project to produce a
free-content multilingual dictionary.
EOT;
}

 -- أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy@users.sourceforge.net>  Fri, 03 Apr 2009 06:28:25 +0200
