1 058b0118 2005-01-03 devnull .TH DICT 1
3 94b5e3ff 2005-01-04 devnull dict, adict \- dictionary browser
4 cfa37a7b 2004-04-10 devnull .SH SYNOPSIS
11 cfa37a7b 2004-04-10 devnull .I dictname
15 cfa37a7b 2004-04-10 devnull .I command
18 cfa37a7b 2004-04-10 devnull .I pattern
23 94b5e3ff 2005-01-04 devnull .I dictname
26 94b5e3ff 2005-01-04 devnull .I pattern
28 cfa37a7b 2004-04-10 devnull .SH DESCRIPTION
30 cfa37a7b 2004-04-10 devnull is a dictionary browser.
32 cfa37a7b 2004-04-10 devnull .I pattern
33 cfa37a7b 2004-04-10 devnull is given on the command line,
35 cfa37a7b 2004-04-10 devnull prints all matching entries;
36 cfa37a7b 2004-04-10 devnull otherwise it repeatedly accepts and executes commands.
37 cfa37a7b 2004-04-10 devnull The options are
38 cfa37a7b 2004-04-10 devnull .TF -d\ \fIdictname\fP
40 cfa37a7b 2004-04-10 devnull .BI -d " dictname"
41 cfa37a7b 2004-04-10 devnull Use the given dictionary.
42 cfa37a7b 2004-04-10 devnull A list of available dictionaries is printed by option
43 cfa37a7b 2004-04-10 devnull .BR -d? .
44 94b5e3ff 2005-01-04 devnull The default is the first dictionary on the list that is
45 94b5e3ff 2005-01-04 devnull installed on the system.
47 cfa37a7b 2004-04-10 devnull .BI -c " command"
48 cfa37a7b 2004-04-10 devnull Execute one command and quit.
49 cfa37a7b 2004-04-10 devnull The command syntax is described below.
52 cfa37a7b 2004-04-10 devnull Print a pronunciation key.
55 cfa37a7b 2004-04-10 devnull Patterns are regular expressions (see
56 058b0118 2005-01-03 devnull .IR regexp (7)),
57 cfa37a7b 2004-04-10 devnull with an implicit leading
59 cfa37a7b 2004-04-10 devnull and trailing
61 cfa37a7b 2004-04-10 devnull Patterns are matched against an index of headwords and variants,
62 cfa37a7b 2004-04-10 devnull to form a `match set'.
63 cfa37a7b 2004-04-10 devnull By default, both patterns and the index are folded:
64 cfa37a7b 2004-04-10 devnull upper case characters are mapped into their lower case equivalents,
65 cfa37a7b 2004-04-10 devnull and Latin accented characters are mapped into their non-accented
66 cfa37a7b 2004-04-10 devnull equivalents.
67 cfa37a7b 2004-04-10 devnull In interactive mode, there is always a `current match set'
68 cfa37a7b 2004-04-10 devnull and a `current entry' within the match set.
69 cfa37a7b 2004-04-10 devnull Commands can change either or both, as well as print the entries
70 cfa37a7b 2004-04-10 devnull or information about them.
72 cfa37a7b 2004-04-10 devnull Commands have an address followed by a command letter.
73 cfa37a7b 2004-04-10 devnull Addresses have the form:
74 cfa37a7b 2004-04-10 devnull .TF /\fIre\fP/.\fIn\fP
76 cfa37a7b 2004-04-10 devnull .BI / re /
77 cfa37a7b 2004-04-10 devnull Set the match set to all entries matching the regular expression
79 cfa37a7b 2004-04-10 devnull sorted in dictionary order.
80 cfa37a7b 2004-04-10 devnull Set the current entry to the first of the match set.
82 cfa37a7b 2004-04-10 devnull .BI ! re !
84 cfa37a7b 2004-04-10 devnull .BI / re /
85 cfa37a7b 2004-04-10 devnull but use exact matching, i.e., without case and accent folding.
88 cfa37a7b 2004-04-10 devnull An integer
90 cfa37a7b 2004-04-10 devnull means change the current entry to the
92 cfa37a7b 2004-04-10 devnull of the current match set.
95 cfa37a7b 2004-04-10 devnull The integer
97 cfa37a7b 2004-04-10 devnull is an absolute byte offset into the raw dictionary.
100 cfa37a7b 2004-04-10 devnull command, below.)
102 cfa37a7b 2004-04-10 devnull .IB addr +
103 cfa37a7b 2004-04-10 devnull After setting the match set and current entry according to
104 cfa37a7b 2004-04-10 devnull .IR addr ,
105 cfa37a7b 2004-04-10 devnull change the match set and current entry to be the next entry
106 cfa37a7b 2004-04-10 devnull in the dictionary (not necessarily in the match set) after
107 cfa37a7b 2004-04-10 devnull the current entry.
109 cfa37a7b 2004-04-10 devnull .IB addr -
111 cfa37a7b 2004-04-10 devnull .IB addr +
112 cfa37a7b 2004-04-10 devnull but go to previous dictionary entry.
115 cfa37a7b 2004-04-10 devnull The command letters come in pairs: a lower case and the
116 cfa37a7b 2004-04-10 devnull corresponding upper case letter.
117 cfa37a7b 2004-04-10 devnull The lower case version prints something about the current
118 cfa37a7b 2004-04-10 devnull entry only, and advances the current entry to the next
119 cfa37a7b 2004-04-10 devnull in the match set (wrapping around to the beginning after
120 cfa37a7b 2004-04-10 devnull the last).
121 cfa37a7b 2004-04-10 devnull The upper case version prints something about all of the
122 cfa37a7b 2004-04-10 devnull match set and resets the current entry to the beginning of
123 cfa37a7b 2004-04-10 devnull the set.
124 cfa37a7b 2004-04-10 devnull .TF \fLa,A\fP
126 cfa37a7b 2004-04-10 devnull .BR p , P
127 cfa37a7b 2004-04-10 devnull Print the whole entry.
129 cfa37a7b 2004-04-10 devnull .BR h , H
130 cfa37a7b 2004-04-10 devnull Print only the headword(s) of the entry.
132 cfa37a7b 2004-04-10 devnull .BR a , A
133 cfa37a7b 2004-04-10 devnull Print the dictionary byte offset of the entry.
135 cfa37a7b 2004-04-10 devnull .BR r , R
136 cfa37a7b 2004-04-10 devnull Print the whole entry in raw format (without translating
137 cfa37a7b 2004-04-10 devnull special characters, etc.).
140 cfa37a7b 2004-04-10 devnull If no command letter is given for the first command,
142 cfa37a7b 2004-04-10 devnull is assumed.
143 cfa37a7b 2004-04-10 devnull After an
145 cfa37a7b 2004-04-10 devnull the default command is
147 cfa37a7b 2004-04-10 devnull Otherwise, the default command is the previous command.
149 94b5e3ff 2005-01-04 devnull .I Adict
150 94b5e3ff 2005-01-04 devnull is a dictionary browser for
151 94b5e3ff 2005-01-04 devnull .IR acme (1).
152 94b5e3ff 2005-01-04 devnull When run with no arguments, it creates a new
154 94b5e3ff 2005-01-04 devnull window named
155 94b5e3ff 2005-01-04 devnull .B /adict/
156 94b5e3ff 2005-01-04 devnull listing the installed dictionaries.
157 94b5e3ff 2005-01-04 devnull Clicking with button 3 on a dictionary name will create
158 94b5e3ff 2005-01-04 devnull a new empty window named
159 94b5e3ff 2005-01-04 devnull .BI /adict/ dict /.
160 94b5e3ff 2005-01-04 devnull Typing and then clicking on a pattern in this window will
161 94b5e3ff 2005-01-04 devnull create a new lookup window named
162 94b5e3ff 2005-01-04 devnull .BI /adict/ dict / pattern
163 94b5e3ff 2005-01-04 devnull containing the dictionary's definition of
164 94b5e3ff 2005-01-04 devnull .IR pattern .
165 94b5e3ff 2005-01-04 devnull Clicking with button 3 on any word in this new window will
166 94b5e3ff 2005-01-04 devnull create new lookup windows.
169 94b5e3ff 2005-01-04 devnull .I adict
170 94b5e3ff 2005-01-04 devnull is run with a
171 94b5e3ff 2005-01-04 devnull .I pattern ,
172 94b5e3ff 2005-01-04 devnull it starts with the
173 94b5e3ff 2005-01-04 devnull .BI /adict/ dict / pattern
177 94b5e3ff 2005-01-04 devnull .I adict
178 94b5e3ff 2005-01-04 devnull is run with no pattern but with a
181 94b5e3ff 2005-01-04 devnull it starts with the
182 94b5e3ff 2005-01-04 devnull .BI /adict/ dict /
184 cfa37a7b 2004-04-10 devnull .SH FILES
186 c8b6342d 2005-01-13 devnull .B \*9/dict
187 c8b6342d 2005-01-13 devnull dictionaries
189 cfa37a7b 2004-04-10 devnull .SH "SEE ALSO"
190 058b0118 2005-01-03 devnull .IR regexp (7)
191 cfa37a7b 2004-04-10 devnull .SH SOURCE
192 c3674de4 2005-01-11 devnull .B \*9/src/cmd/dict
194 c3674de4 2005-01-11 devnull .B \*9/bin/adict
195 cfa37a7b 2004-04-10 devnull .SH BUGS
196 cfa37a7b 2004-04-10 devnull A font with wide coverage of the Unicode Standard
197 cfa37a7b 2004-04-10 devnull should be used for best results.
199 c3674de4 2005-01-11 devnull .BR \*9/font/pelm/unicode.9.font .)
202 cfa37a7b 2004-04-10 devnull .I pattern
203 cfa37a7b 2004-04-10 devnull doesn't begin with
204 cfa37a7b 2004-04-10 devnull a few literal characters, matching takes a long time.
206 058b0118 2005-01-03 devnull The dictionaries are not distributed outside Bell Labs,
207 058b0118 2005-01-03 devnull though see
208 c3674de4 2005-01-11 devnull .B \*9/dict/README
209 058b0118 2005-01-03 devnull for information on using free dictionaries prepared
210 058b0118 2005-01-03 devnull by Project Gutenberg.