home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Product / Product.zip / ISPSRC.ZIP / local.h < prev    next >
C/C++ Source or Header  |  1993-03-29  |  5KB  |  172 lines

  1. /*
  2.  * local.h  added for OS/2 by Joe Huber  8/14/92
  3. */
  4.  
  5.  
  6. /* here are all the config.h changes */
  7. #ifndef OS2
  8. #define OS2        /* This is an os/2 port */
  9. #endif /* OS2 */
  10.  
  11. #ifndef USG
  12. #define USG        /* Define this in local.h for System V machines */
  13. #endif /* USG */
  14.  
  15. #ifndef LIBDIR
  16. #define LIBDIR "/ispell"
  17. #endif
  18.  
  19. #ifndef DEFHASH
  20. #define DEFHASH "engmed.hash"
  21. #endif
  22.  
  23. /* environment variable for user's word list */
  24. #ifndef PDICTVAR
  25. #define PDICTVAR "ISWORDLIST"
  26. #endif
  27.  
  28. /* prefix part of default word list */
  29. #ifndef DEFPDICT
  30. #define DEFPDICT "is_"
  31. #endif
  32.  
  33. /*
  34. ** suffix part of default word list - you may want to make this
  35. ** a language name, such as "english", "norsk", or "deutsch".
  36. */
  37. #ifndef DEFPAFF
  38. #define DEFPAFF "words"
  39. #endif
  40.  
  41. /* mktemp template for temporary file - MUST contain 6 consecutive X's */
  42. #ifndef TEMPNAME
  43. #define TEMPNAME "./isXXXXXX"
  44. #endif
  45.  
  46. /* default language tables */
  47. #ifndef DEFLANG
  48. #define DEFLANG    "english.aff"
  49. #endif
  50.  
  51. /* default dictionaryifile */
  52. #ifndef DEFDICT
  53. #define DEFDICT "english.med"
  54. #endif
  55.  
  56. /* egrep command */
  57. #ifndef EGREPCMD
  58. #define EGREPCMD "egrep -i"
  59. #endif
  60.  
  61. /* path to wordlist for Lookup command (typically /usr/dict/{words|web2}) */
  62. #ifndef WORDS
  63. #define WORDS    "/usr/dict/words"
  64. #endif
  65.  
  66. /*
  67. ** Define the following to suppress the 8-bit character feature.
  68. ** Unfortunately, this doesn't work as well as it might, because Mspell
  69. ** only strips the 8th bit in some places.  For example, it calls strcmp()
  70. ** quite often without first stripping parity.  However, I really wonder
  71. ** about the utility of this option, so I haven't bothered to fix it.  If
  72. ** you think the stripping feature of NO8BIT is useful, you might let me
  73. ** (Geoff Kuenning) know.
  74. **
  75. ** Nevertheless, NO8BIT is a useful option for other reasons.  If NO8BIT
  76. ** is defined, ispell will probably use 8-bit characters internally;
  77. ** this improves time efficiency and saves a small amount of space
  78. ** in the hash file.  Thus, I recommend you specify NO8BIT unless you
  79. ** actually expect to be spelling files which use a 256-character set.
  80. */ 
  81. #ifndef NO8BIT
  82. #undef NO8BIT
  83. #endif /* NO8BIT */
  84.  
  85. /*
  86. ** number of mask bits (affix flags) supported.  Must be 32, 64, 128, or
  87. ** 256.  If MASKBITS is 32 or 64, there are really onle 26 or 58 flagse** available, respectively.  If it is 32, the flags are named with the
  88. ** 26 English uppercase letters;  lowercase will be converted to uppercase.
  89. ** If MASKBITS is 64, the 58 flags are named 'A' through 'z' in ASCII
  90. ** order, including the 6 special characters from 'Z' to 'a': "[\]^_`".
  91. ** If MASKBITS is 128 or 256, all the 7-bit or 8-bit characters,
  92. ** respectively, are theoretically available, though a few (newline, slash,
  93. ** null byte) are pretty hard to actually use successfully.
  94. */
  95. #ifndef MASKBITS
  96. #define MASKBITS    128
  97. #endif
  98.  
  99. /*
  100. ** This is the extension that will be added to backup files
  101. */
  102. #ifndef    BAKEXT
  103. #define    BAKEXT    ".isb"
  104. #endif
  105.  
  106. /*
  107. ** Define this if you want the capitalization feature.  This will increase
  108. ** ihe size of the hashed dictionary on most 16-bit and some 32-bit machines.
  109. */
  110. #ifndef CAPITALIZATION
  111. #define CAPITALIZATION
  112. #endif /* CAPITALIZATION */
  113.  
  114. /*
  115. ** Define this if you want to use the shell for interpretation of commands
  116. ** issued via the "L" command, "^Z" under System V, and "!".  If this is
  117. ** not defined then a direct fork()/exec() will be used in place of the
  118. ** normal system().  This may speed up these operations greately on some
  119. ** systems.
  120. */
  121. #ifndef USESH
  122. #define USESH
  123. #endif /* USESH */
  124.  
  125.  
  126. /*
  127. ** Define this if you want to be able to type any command at a "type space
  128. ** to continue" prompt.
  129. */
  130. #ifndef COMMANDFORSPACE
  131. #define COMMANDFORSPACE
  132. #endif /* COMMANDFORSPACE */
  133.  
  134. /* Define this to ignore spelling check of entire LaTeX bibliography listings */
  135. #ifndef IGNOREBIB
  136. #undef  IGNOREBIB
  137. #endif
  138.  
  139. /*
  140. ** The next three variables are used to provide a variable-size context
  141. ** display at the bottom of the screen.  Normally, the user will see
  142. ** a number of lines equal to CONTEXTPCT of his screen, rounded sown
  143. ** (thus, with CONTEXTPCT == 10, a 24-line screen will produce two lines
  144. ** of context).  The context will never be greater than MAXCONTEXT or
  145. ** less than MINCONTEXT.  To disable this feature entirely, set MAXCONTEXT
  146. ** and MINCONTEXT to the same value.  To round context percentages up,
  147. ** define CONTEXTROUNDUP.
  148. */
  149. #ifndef CONTEXTPCT
  150. #define CONTEXTPCT    20    /* Use 20% of the screen for context */
  151. #endif
  152. #ifndef MINCONTEXT
  153. #define MINCONTEXT    3    /* Always show at least 3 lines of context */
  154. #endif
  155. #ifndef MAXCONTEXT
  156. #define MAXCONTEXT    10    /* Never show more than 10 lines of context */
  157. #endif
  158. #ifndef CONTEXTROUNDUP
  159. #undef CONTEXTROUNDUP        /* Don't round context up */
  160. #endif
  161.  
  162. /*
  163. ** Define this if you want the "mini-menu," which gives the most important
  164. ** options at the bottom of the screen, to bo the default (in any case, it
  165. ** can be controlled with the "-M" switch).
  166. */
  167. #ifndef MINIMENU
  168. #define MINIMENU
  169. #endif
  170.  
  171.  
  172.