1DICT_LOOKUP(1) DICT_LOOKUP(1)
2
3
4
6 dict_lookup - DICT Protocol Client
7
9 dict_lookuop [options]
10
12 dict_lookup reads X selection, then open terminal emulator and run dict
13 client in it allowing user to view content using pager. It makes sense
14 to configure launching dict_lookup on a keyboard shortcut in the window
15 manager.
16
18 -h display help message.
19
20 -x x X coordinate of terminal emulator.
21
22 -x Y Y coordinate of terminal emulator.
23
24 -s WxH width and height of terminal emulator separated by 'x'.
25
26 -q query
27 query, if it is specified, X selection is not read.
28
30 dict_lookup recognizes the following environment variables. The
31 default value is specified in square brackets.
32
33 D_AWK_PROG
34 AWK interpreter to use. [awk]
35
36 D_XCLIP_PROG
37 xclip application. [xclip]
38
39 D_XTERM_PROG
40 xterm or equivalent terminal emulator. [xterm]
41
42 D_UTF8_LOCALE
43 UTF-8 locale. [en_US.UTF-8]
44
45 D_DICT_PROG
46 Dictionary client program. [dict]
47
48 D_DICT_SERVER
49 Option for dictionary client specifying the server. [-h
50 dict.org]
51
52 D_DICT_PORT
53 Option for dictionary client specifying the port. [-p 2628]
54
55 D_DICT_DB_OPT
56 Option for dictionary client specifying the database. [-d
57 foldoc]
58
59 D_XTERM_CLASS
60 Option for terminal emulator specifying the class. [-class
61 XTerm]
62
63 D_XTERM_NAME
64 Option for terminal emulator specifying the name. [-name
65 xterm_dict]
66
67 D_XTERM_TITLE
68 Option for terminal emulator specifying the title. [-title
69 dict_lookup]
70
71 D_TEXT_WIDTH
72 Program calculating text width for given text. [cyril‐
73 lic_text_width] cyrillic_text_width doesn't work correctly for
74 Japanese, Korean, Chinese and some other languages.
75
76 D_TERM_X
77 Terminal emulator X coordinate. [+200]
78
79 D_TERM_Y
80 Terminal emulator Y coordinate. [+200]
81
82 D_TERM_H
83 Terminal emulator height. [+40]
84
85 D_PAGER
86 Pager. [less]
87
89 dict(1), less(1), xterm(1), dictd(8), http://www.dict.org, RFC 2229
90
91
92
93 9 January 2011 DICT_LOOKUP(1)