home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / PASCAL / PT01.ZIP / KWIC.MAN < prev    next >
Encoding:
Text File  |  1983-09-07  |  712 b   |  35 lines

  1. .im man.im
  2. .NM kwic produce lines for KWIC index
  3. .SY kwic
  4. .FU
  5. .ital kwic
  6. writes one or more "folded"
  7. versions of each input line to its output.
  8. A line is "folded" at the beginning of each alphanumeric string within
  9. the line by writing from that string through the end of the line, followed
  10. by the fold character
  11. .ital $,
  12. followed by the beginning of the line.
  13.  
  14. .ital kwic
  15. is used with
  16. .ital sortf
  17. and
  18. .ital unrotate
  19. to produce a KeyWord In Context, or KWIC, index.
  20. .EG
  21. .Q1
  22. kwic
  23. This is a test.
  24. .ital "This is a test.$"
  25. .ital "is a test.$This"
  26. .ital "a test.$This is"
  27. .ital "test.$This is a"
  28. .Q2
  29. Normal usage is
  30. .Q1
  31. kwic {document }temp1
  32. sortf {temp1 }temp2
  33. unrotate {temp2
  34. .Q2
  35.