home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume3 / hyphen / hyphen.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1986-11-30  |  639 b   |  23 lines

  1. #! /bin/sh
  2. : shell  hyphen
  3. if { [ \( -t 0 \)  -a  \( 0 = $# \) ] ; } then \
  4. { cat <<DATA ; }
  5. /*
  6. filter troff input, inserting conditional hyphenation
  7.   
  8. hyphen  [ file1 file2 ... ]
  9.   
  10. parameters:
  11.     file        troff file(s) to conditionally hyphenate. Default is
  12.             standard input.
  13. discussion:
  14. Some words are exceptions to troff's built in hyphenation rules.
  15. While troff has a limited facility to handle such exceptions (the
  16. .hw command), the facility is easily overloaded.  This program
  17. is an alternative that inserts explicit conditional hyphenation
  18. (\%) into a system dependent list of exceptions.
  19. */
  20. DATA
  21. else { sed -f $(LIB)hyphen $* ; }
  22. fi
  23.