home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / lout2.lzh / LOUT2 / hyph.install < prev    next >
Text File  |  1994-01-23  |  2KB  |  49 lines

  1. Installation of hyphenation patterns
  2.  
  3. Jeffrey H. Kingston
  4. 22 December 1992
  5.  
  6. Basser Lout Version 2.05 incorporates automatic hyphenation using the method
  7. introduced by TeX (see Appendix H of the TeXBook by D. E. Knuth).  No special
  8. action is required to install hyphenation unless it is desired to change the
  9. hyphenation patterns that control it.
  10.  
  11. The first time on any run that hyphenation is required, Lout will search the
  12. @SysInclude directories for a binary file called lout.hyph.pk, which
  13. contains a memory image of the TeX hyphenation patterns, modified so that
  14. the file may be safely shared by big-endian and little-endian machines.  If
  15. this file cannot be found, Lout then searches for the text file lout.hyph
  16. instead, and uses it to construct lout.hyph.pk.  To change the hyphenation
  17. patterns, delete lout.hyph.pk and modify lout.hyph; the rest is automatic.
  18.  
  19. File lout.hyph mainly contains the long list of TeX hyphenation patterns,
  20. but it begins with a sequence of character classes, one class per line,
  21. terminated by a blank line:
  22.  
  23.     @!$%^&*()_-+=~`{[}]:;'|<,.>?/0123456789
  24.     aA
  25.     bB
  26.     cC
  27.     ...
  28.     yY
  29.     zZ
  30.  
  31. Briefly, hyphenation of a word works like this.  If the word contains a
  32. character not found in any of these classes, it will not be hyphenated.
  33. Otherwise the word is analysed into sequences of letters separated by
  34. sequences of non-letters (the characters in the first class are by
  35. definition the non-letters, and the remaining characters are the letters).
  36. Each sequence of five or more letters is then matched with the hyphenation
  37. patterns and hyphenated.  The matching process treats the members of each
  38. class as identical (so the classes above ensure that the distinction
  39. between upper and lower case is ignored).  The hyphen character "-" is
  40. treated specially.  Apart from the weighting digits, the patterns should
  41. contain only letters.
  42.  
  43. Extreme lengths were resorted to to compress the .pk file as much as
  44. possible, and attempts to increase the number of classes or patterns
  45. significantly are likely to fail.  Some words are not hyphenated well by
  46. the standard patterns and must be treated as exceptions; see the
  47. DocumentLayout package implementation (file dl in lout/include) for
  48. the standard list of these exceptions and how to deal with them.
  49.