home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / AWF.ZIP / MAN.P2 < prev    next >
Text File  |  1990-12-12  |  730b  |  34 lines

  1. /^\.\^b/ {            # initialization
  2.     print nobreak, "fph", 1
  3.     next
  4. }
  5. /^[^.]/ {            # text line -- reached only for input traps
  6.     if (afternext ~ /,fP/)
  7.         font = prevfont
  8.     if (afternext ~ /,tP/)
  9.         print dobreak, "toindent"
  10.     afternext = ""
  11.     next
  12. }
  13. /^\.ds/ {            # to catch special strings
  14.     if ($3 !~ /^"/)
  15.         v = $3
  16.     else
  17.         v = substr($0, index($0, "\"")+1)
  18.     if ($2 ~ /^[LCR][HF]$/)
  19.         print nobreak, $2, v
  20.     # fallthrough to normal .ds processing in macro-independent stuff
  21. }
  22. /^\.lF/ {
  23.     # special footer fiddling
  24.     if (strings["by"] != "" && strings["nb"] != "")
  25.         lf = strings["by"] "; " strings["nb"]
  26.     else
  27.         lf = strings["by"] strings["nb"]
  28.     print nobreak, "LF", lf
  29.     next
  30. }
  31. /^\.\^e/ {            # finalization
  32.     next
  33. }
  34.