dict_lookup - DICT Protocol Client
Contents
Description
dict_lookup reads X selection, then open terminal emulator and run dict client in it allowing user to
view content using pager. It makes sense to configure launching dict_lookup on a keyboard shortcut in
the window manager.
Environment
dict_lookup recognizes the following environment variables. The default value is specified in square
brackets.
D_AWK_PROG
AWK interpreter to use. [awk]
D_XCLIP_PROG
xclip application. [xclip]
D_XTERM_PROG
xterm or equivalent terminal emulator. [xterm]
D_UTF8_LOCALE
UTF-8 locale. [firstavailableUTF-8localeonsystem]
D_DICT_PROG
Dictionary client program. [dict]
D_DICT_SERVER
Option for dictionary client specifying the server. [-hdict.org]
D_DICT_PORT
Option for dictionary client specifying the port. [-p2628]
D_DICT_DB_OPT
Option for dictionary client specifying the database. [-dfoldoc]
D_XTERM_CLASS
Option for terminal emulator specifying the class. [-classXTerm]
D_XTERM_NAME
Option for terminal emulator specifying the name. [-namexterm_dict]
D_XTERM_TITLE
Option for terminal emulator specifying the title. [-titledict_lookup]
D_TEXT_WIDTH
Program calculating text width for given text. [cyrillic_text_width]
cyrillic_text_width doesn't work correctly for Japanese, Korean, Chinese and some other languages.
D_TERM_X
Terminal emulator X coordinate. [+200]
D_TERM_Y
Terminal emulator Y coordinate. [+200]
D_TERM_H
Terminal emulator height. [+40]
D_PAGER
Pager. [less-R]
Name
dict_lookup - DICT Protocol Client
Options
-h display help message.
-xx X coordinate of terminal emulator.
-xY Y coordinate of terminal emulator.
-sWxH width and height of terminal emulator separated by 'x'.
-qquery
query, if it is specified, X selection is not read.
See Also
dict(1), less(1), xterm(1), dictd(8), http://www.dict.org,RFC2229 9 January 2011 DICT_LOOKUP(1)
Synopsis
dict_lookuop[options]
