summaryrefslogtreecommitdiff
path: root/textproc/dict-server/files/dictd.conf
blob: 7cb02c9e75f611f9270372c66133264a7a494948 (plain)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# dictionary server (site) description
#site /usr/pkg/etc/dictd_site.txt

# global settings
global {
   port            2628
#   delay           600
#   depth           10
#   limit           20
#   timestamp       10

   log_option       "found"
   log_option       "notfound"
   log_option       "stats"
   log_option       "client"

   debug_option     "init"

   listen_to 127.0.0.1 # available for localhost only

   syslog
   syslog_facility daemon
#   log_file "/var/log/dictd/dictd.log" 
}

# macros to specify databases easier
m4_define(new_db, `
database $1 {
  data "/usr/pkg/share/dictd/$1.dict.dz"
  `index' "/usr/pkg/share/dictd/$1.`index'"
')

# English monolingual dictionaries
new_db(web1913)
  # add additional options here
}
new_db(wn)
}
new_db(gazetteer)
}
new_db(jargon)
}
new_db(foldoc)
}
new_db(elements)
}
new_db(easton)
}
new_db(hitchcock)
}
new_db(world95)
}

# English-Russian dictionary
new_db(mueller7)
}

# stop the default search here
database_exit

# a few virtual dictionaries
database_virtual en-en {
  name "English monolingual dictionaries"
  info "--English monolingual dictionaries--"

  database_list "web1913,wn,gazetter,jargon,foldoc,elements,easton,hitchcock,world95"
} 

database_virtual en-ru {
  name "English-Russian dictionaries"
  info "--English-Russian dictionaries--"

  database_list "mueller7"
}