1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
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
|