home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / elvis22g.zip / lib / elvis.spe < prev    next >
Text File  |  2002-04-10  |  826b  |  26 lines

  1. "Try to find a word list to use as a spelling dictionary
  2. local elvispath locale i
  3. if !locale
  4. then set locale=gibberish
  5. let! spelldict = elvispath("words")
  6. if !spelldict
  7. then {
  8.    for i in ("/usr/dict/";locale) /usr/dict /usr/share/dict
  9.    do {
  10.       if !spelldict && exists(i/"words")
  11.       then let! spelldict = i/"words"
  12.    }
  13. }
  14.  
  15. "some common English suffixes
  16. set! spellsuffix="'ve 'll 'd 's n't 're s ed"
  17.  
  18. "some valid English words which aren't in most /usr/dict/words files, and
  19. "which can't be derived via the above suffixes.
  20. words! won't can't I'm pragma etc
  21. words! a b c d e f g h i j k l m n o p q r s t u v w x y z
  22.  
  23. "disable spell checking in parts of source code where it wouldn't be useful.
  24. check! -string char regexp regsub prep prepquote variable keyword other number
  25. check! -docindent docmarkup markup fold fixed
  26.