kwic [+Tf] [lineWidth=n] filename
kwic expl/index >explindx kwic +t /titles.t >sorted kwic w=132 /titles
.xx "stuff before keyword" "keyword & stuff after"
KWIC produces a keyword-in-context sort of lines in the input file. The output is produced by taking each input line and rotating it so that there is an output line for each keyword in the line. Keywords are checked against a list of "noise words" that can never be keywords. Thus the input line
cooking the wily cauliflower
would produce output lines of the form
cooking the wily cauliflower cooking the wily cauliflower cooking the wily cauliflower
As shown above, the output lines are sorted alphabetically according to keyword, and aligned to put the keyword in the center of the page. Each line shows the keyword in the context of the words around it.
The noise words are
-, ., &, a, an, and, as, for, in, into, is, of, on, or, the, to, up.
fc*kw - work file.
Copyright © 1996, Thinkage Ltd.