home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d191 / ispell.lha / ISpell / unix.zoo / config.x next >
Text File  |  1989-02-22  |  5KB  |  188 lines

  1. /*
  2.  * This is the configuration file for ispell.  Thanks to Bob McQueer
  3.  * for creating it and making the necessary changes elsewhere to
  4.  * support it.
  5.  * Look through this file from top to bottom, and edit anything that
  6.  * needs editing.  There are also five or six variables in the
  7.  * Makefile that you must edit.  Note that the Makefile edits this
  8.  * file (config.X) to produce config.h.  If you are looking at
  9.  * config.h, you're in the wrong file.
  10.  *
  11.  * Don't change the funny-looking lines with !!'s in them;  see the
  12.  * Makefile!
  13.  */
  14.  
  15. /*
  16. ** library directory for hash table(s) / default hash table name
  17. ** If you intend to use multiple dictionary files, I would suggest
  18. ** LIBDIR be a directory which will contain nothing else, so sensible
  19. ** names can be constructed for the -d option without conflict.
  20. */
  21. #ifndef LIBDIR
  22. #define LIBDIR "!!LIBDIR!!"
  23. #endif
  24. #ifndef DEFHASH
  25. #define DEFHASH "!!DEFHASH!!"
  26. #endif
  27.  
  28. #ifdef USG
  29. #define index strchr
  30. #define rindex strchr
  31. #endif
  32.  
  33. /* environment variable for user's word list */
  34. #ifndef PDICTVAR
  35. #define PDICTVAR "WORDLIST"
  36. #endif
  37.  
  38. /* default word list */
  39. #ifndef DEFPDICT
  40. #define DEFPDICT ".ispell_words"
  41. #endif
  42.  
  43. /* environment variable for include file string */
  44. #ifndef INCSTRVAR
  45. #define INCSTRVAR "INCLUDE_STRING"
  46. #endif
  47.  
  48. /* default include string */
  49. #ifndef DEFINCSTR
  50. #define DEFINCSTR "&Include_File&"
  51. #endif
  52.  
  53. /* mktemp template for temporary file - MUST contain 6 consecutive X's */
  54. #ifndef TEMPNAME
  55. #define TEMPNAME "/tmp/ispellXXXXXX"
  56. #endif
  57.  
  58. /* default dictionary file */
  59. #ifndef DEFDICT
  60. #define DEFDICT "!!DEFDICT!!"
  61. #endif
  62.  
  63. /* path to LOOK (if look(1) command is available) */
  64. #ifndef LOOK
  65. #define LOOK "/usr/bin/look"
  66. #endif
  67.  
  68. /* path to egrep (use speeded up version if available) */
  69. #ifndef EGREPCMD
  70. #define EGREPCMD "/usr/bin/egrep"
  71. #endif
  72.  
  73. /* path to wordlist for Lookup command (typically /usr/dict/{words|web2} */
  74. #ifndef WORDS
  75. #define WORDS    "/usr/dict/words"   /* "/usr/dict/{words,web2}" */
  76. #endif
  77.  
  78. /* buffer size to use for file names if not in sys/param.h */
  79. #ifndef MAXPATHLEN
  80. #define MAXPATHLEN 240
  81. #endif
  82.  
  83. /* word length allowed in dictionary by buildhash */
  84. #define WORDLEN 30
  85.  
  86. /* suppress the 8-bit character feature */
  87. #ifndef NO8BIT
  88. #define NO8BIT
  89. #endif
  90.  
  91. /* maximum number of include files supported by xgets;  set to 0 to disable */
  92. #ifndef MAXINCLUDEFILES
  93. #define MAXINCLUDEFILES    5
  94. #endif
  95.  
  96. /* Approximate number of words in the full dictionary, after munching.
  97. ** Err on the high side unless you are very short on memory, in which
  98. ** case you might want to change the tables in tree.c and also increase
  99. ** MAXPCT.
  100. **
  101. ** (Note:  dict.191 is a bit over 15000 words.  dict.191 munched with
  102. ** /usr/dict/words is a little over 28000).
  103. */
  104. #ifndef BIG_DICT
  105. #define BIG_DICT    29000
  106. #endif
  107.  
  108. /*
  109. ** Maximum hash table fullness percentage.  Larger numbers trade space
  110. ** for time.
  111. **/
  112. #ifndef MAXPCT
  113. #define MAXPCT    70        /* Expand table when 70% full */
  114. #endif
  115.  
  116. /*
  117. ** the isXXXX macros normally only check ASCII range.  These are used
  118. ** instead for text characters, which we assume may be 8 bit.  The
  119. ** NO8BIT ifdef shuts off significance of 8 bit characters.  If you are
  120. ** using this, and your ctype.h already masks, you can simplify.
  121. */
  122. #ifdef NO8BIT
  123. #define myupper(X) isupper((X)&0x7f)
  124. #define mylower(X) islower((X)&0x7f)
  125. #define myspace(X) isspace((X)&0x7f)
  126. #define myalpha(X) isalpha((X)&0x7f)
  127. #else
  128. #define myupper(X) (!((X)&0x80) && isupper(X))
  129. #define mylower(X) (!((X)&0x80) && islower(X))
  130. #define myspace(X) (!((X)&0x80) && isspace(X))
  131. #define myalpha(X) (!((X)&0x80) && isalpha(X))
  132. #endif
  133.  
  134. /*
  135. ** the NOPARITY mask is applied to user input characters from the terminal
  136. ** in order to mask out the parity bit.
  137. */
  138. #ifdef NO8BIT
  139. #define NOPARITY 0x7f
  140. #else
  141. #define NOPARITY 0xff
  142. #endif
  143.  
  144.  
  145. /*
  146. ** the terminal mode for ispell, set to CBREAK or RAW
  147. **
  148. */
  149. #ifndef TERM_MODE
  150. #define TERM_MODE    CBREAK
  151. #endif
  152.  
  153. /*
  154. ** Define this if you want your columns of words to be of equal length.
  155. ** This will spread short word lists across the screen instead of down it.
  156. */
  157. #ifndef EQUAL_COLUMNS
  158. #undef EQUAL_COLUMNS
  159. #endif
  160.  
  161. /*
  162. ** This is the extension that will be added to backup files
  163. */
  164. #ifndef    BAKEXT
  165. #define    BAKEXT    ".bak"
  166. #endif
  167.  
  168. /*
  169. ** Define this if you want the capitalization feature.  This will increase
  170. ** the size of the hashed dictionary on most 16-bit and some 32-bit machines.
  171. */
  172. #ifndef CAPITALIZE
  173. #define CAPITALIZE
  174. #endif
  175.  
  176. /*
  177. ** Define this if you want your personal dictionary sorted.  This may take
  178. ** a long time for very large dictionaries.  Dictionaries larger than
  179. ** SORTPERSONAL words will not be sorted.
  180. */
  181. /* Commented out because 'I' doesn't work the second time if you have
  182.    this - clobbers dictionary leaving only latest word there (why?)
  183. #define SORTPERSONAL    1000
  184. */
  185. #ifndef SORTPERSONAL
  186. #undef SORTPERSONAL
  187. #endif
  188.