![]() |
![]()
| ![]() |
![]()
NAMEdict, adict - dictionary browser SYNOPSISdict [ -k ] [ -d dictname ] [ -c command ] [ pattern ] adict [ -d dictname ] [ pattern ] DESCRIPTIONDict is a dictionary browser. If a pattern is given on the command line, dict prints all matching entries; otherwise it repeatedly accepts and executes commands. The options are
Patterns are regular expressions (see with an implicit leading and trailing Patterns are matched against an index of headwords and variants, to form a `match set'. By default, both patterns and the index are folded: upper case characters are mapped into their lower case equivalents, and Latin accented characters are mapped into their non-accented equivalents. In interactive mode, there is always a `current match set' and a `current entry' within the match set. Commands can change either or both, as well as print the entries or information about them. Commands have an address followed by a command letter. Addresses have the form:
The command letters come in pairs: a lower case and the corresponding upper case letter. The lower case version prints something about the current entry only, and advances the current entry to the next in the match set (wrapping around to the beginning after the last). The upper case version prints something about all of the match set and resets the current entry to the beginning of the set.
If no command letter is given for the first command, H is assumed. After an H, the default command is p. Otherwise, the default command is the previous command. Dict searches for dictionaries in the directory named by $dictpath (default /dict). Adict is a dictionary browser for When run with no arguments, it creates a new acme window named /adict/ listing the installed dictionaries. Clicking with button 3 on a dictionary name will create a new empty window named /adict/dict/. Typing and then clicking on a pattern in this window will create a new lookup window named /adict/dict/pattern containing the dictionary's definition of pattern. Clicking with button 3 on any word in this new window will create new lookup windows. If adict is run with a pattern , it starts with the /adict/dict/pattern window. If adict is run with no pattern but with a -d option, it starts with the /adict/dict/ window. FILES
SEE ALSOSOURCE/src/cmd/dict
BUGSA font with wide coverage of the Unicode Standard should be used for best results. (Try /font/pelm/unicode.9.font.) If the pattern doesn't begin with a few literal characters, matching takes a long time. The dictionaries are not distributed outside Bell Labs, though see /dict/README for information on using free dictionaries prepared by Project Gutenberg.
|