File: dico-module-mediawiki.README.Debian

package info (click to toggle)
dico 2.12-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 21,236 kB
  • sloc: ansic: 94,671; sh: 52,520; lex: 4,023; yacc: 1,439; tcl: 1,439; makefile: 1,387; python: 1,310; perl: 1,200; lisp: 489; awk: 157; pascal: 127; javascript: 71; cpp: 50; fortran: 28; asm: 21; sed: 16; xml: 8
file content (55 lines) | stat: -rw-r--r-- 1,678 bytes parent folder | download | duplicates (5)
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