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

  1. .im man.im
  2. .NM unrotate format lines for KWIC index
  3. .SY unrotate
  4. .FU
  5. .ital unrotate
  6. reads its input a line at a time and writes an "unfolded" version
  7. to its output.
  8. A line is "folded" if it contains within it an instance of the fold character
  9. .ital $;
  10. "unfolding" involves writing from the end of the line down to but
  11. not including the fold character, starting in column 39 of the
  12. output line, wrapping characters that would thus appear
  13. before column 1
  14. around to the end of the line,
  15. then writing the remainder of the line
  16. starting at column 41 and wrapping around at column 80 if necessary.
  17.  
  18. .ital unrotate
  19. is used with
  20. .ital kwic
  21. and
  22. .ital sortf
  23. to produce a KeyWord In Context, or KWIC, index.
  24. .EG
  25. .Q1
  26. unrotate
  27. a test.$This is
  28. is a test.$This
  29. test.$This is a
  30. This is a test.$
  31. <ENDFILE>
  32. .bold "                     This is  a test."
  33. .bold "                        This  is a test."
  34. .bold "                   This is a  test."
  35. .bold "                test.         This is a"
  36. .Q2
  37.