File: README

package info (click to toggle)
dico 2.12-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,300 kB
  • sloc: ansic: 94,671; sh: 52,520; lex: 4,023; tcl: 1,439; yacc: 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 (29 lines) | stat: -rw-r--r-- 1,046 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
This is mediawiki.py - a Python module which enables dicod to use Wiktionary
as a database. To use the module, you will first need to install its
prerequisites. To do so, run

  pip install -r requirements.txt

If the package has been built properly, the file dicod.conf will be created
in this dicrectory. This file configures a single "en-wiktionary" dictionary,
which will be using http://en.wiktionary.org as a database.
You can use this file to test the module without installing the package,
E.g., to list dictionary entries matching "word":

  ../../dicod/dicod --config ./dicod.conf --stderr --inetd <<<"match ! . word"

This will display something like that:

220 harp dicod (GNU dico) 2.6 <mime.lang.markup.xversion.xlev.markup-none.markup-wiki> <3865.1535358562@harp>
152 4 matches found: list follows
en-wiktionary "word"
en-wiktionary "Word"
en-wiktionary "words"
en-wiktionary "wordy"
.
250 Command complete

To show the Wiktionary article for "word":

  ../../dicod/dicod --config ./dicod.conf --stderr --inetd <<<"define ! word"