home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / system / sphinx.lzh / SPHINX2.5y / Docs / SPHINXConfig.doc < prev   
Encoding:
Text File  |  1992-01-09  |  15.4 KB  |  337 lines

  1.  
  2.                   Sphinx.doc v2.5b
  3.          ⌐ 1992, Nicolas Dade. All Rights Reserved
  4.  permission is hereby granted for non-commercial duplication and distribution
  5.           doc file for the SPHINX: AmigaDOS device
  6.  last revised: January 9th, 1992
  7.  
  8.  
  9.  SPHINX configuration file
  10.  
  11. This file MUST exist
  12. it's name is built out of the name of the SPHINX device:
  13.   s:[SPHINX device name].config
  14. so if the SPHINX device was being called SPHINX2:, then the configuration
  15. file for that SPHINX would be be called
  16.   s:SPHINX2.config
  17.  
  18. To create this file you must use the config file editor SPHINXConfig,
  19. version 2.5b.
  20.  
  21. SPHINXConfig can be started either from WorkBench or a CLI.
  22. once it is started, enter the correct filename, if you are not calling this
  23.  SPHINX `SPHINX'.
  24. edit the configuration
  25. click on [Save v2.5]
  26. click on the close window gadget
  27.  
  28. Initially SPHINXConfig will look for, and if it finds it, will load, a file
  29. called s:SPHINX.config. If it does not find it, it just displays a "default
  30. configuration".
  31.  
  32. If you start SPHINXConfig from a CLI, you may specify a filename with which
  33. to start in place of s:SPHINX.config by:
  34.  SPHINXConfig configfilename
  35.  
  36. If the initial file cannot be found, then SPHINXConfig shows the "default"
  37. configuration. This configuration is no better nor no worse than any other;
  38. you are strongly encouraged not to be satisfied with this "default" and
  39. edit it.
  40.  
  41. the lines in the window:
  42. CONFIG filename :name of configuration file being edited.
  43.         [if the arp.library is available, then clicking on this
  44.          gadget brings up an arp filerequestor in which you chose
  45.          the config file you wish to load.]
  46.          if arp.library is not available, then this is a string
  47.          gadget, and when [RETURN] is pressed in this string, the
  48.          file name specified is loaded, if it exists.
  49. [Save v2.5]    :clicking this saves the configuration as a v2.5 configu-
  50.          rationin the file.
  51.          clicking this saves the configuration in the file specified
  52.          by CONFIG filename.
  53. Close Window GG :causes SPHINXConfig to shutdown. THIS DOES NOT SAVE THE
  54.          CURRENT CONFIGURATION. TO SAVE THE CONFIGURATION YOU MUST
  55.          MUST CLICK ON [Save v2.5] BEFORE CLOSING THE WINDOW.
  56. everything else is a config option, described below
  57.  
  58. The SPHINXConfig window can be iconized (and deiconized) by clicking the right
  59. mouse button.
  60.  
  61. NOTE: SPHINXconfig cannot read version 2.3 config files, if there are any left
  62. out there.
  63. SPHINXConfig can read v2.4 configuration files, but can only save v2.5 ones.
  64.  
  65. NOTE: SPHINXConfig has been compressed using PowerPacker
  66.  
  67.             - - - - - - - - - - - - - - - - - -
  68.  
  69. Max Wrt KBytes/Max Inp KBytes (MaxWriteKBytes/InputKBytes)
  70. this is a number between 1 and 65535. this specifies a maximum on how many
  71. kilobytes of memory each SPHINX window will try to use to save text.
  72.  
  73. Max WRite Saves/Max Input Saves (MaxWriteSaves/InputSaves)
  74. this is a number between 1 and 65535. this specifies a maximum on the number
  75. of write/input text blocks not to delete automatically. a block of text is
  76. for inputs: an input line
  77. for writes: a block between input lines
  78.  
  79. Once both more memory than specified is being used, and more blocks than
  80. specified exist, SPHINX will try to free a block, and will continue to do
  81. this until either condition is no longer satisfied.
  82. First it tries to free a write block, and can do this only if the whole block
  83. is above the upper left character, the 10th spot, if it is defined, the
  84. search input line, if you are searching, and the write buffer. If no write
  85. block can be freed, then it tries to free various sorts of input lines: first
  86. empty ones, then duplicate ones, then any available for freeing.
  87. For any input line to be freed, it must be above the upperleft character, and
  88. above spot 10, if it is defined, and above the next character to be read
  89. (returned to a Read()), above the search input save, if you are searching,
  90. AND ABOVE ALL WRITE BLOCKS. This means that if you make MaxWriteSaves greater
  91. than MaxInputSaves, it will be just as if you had made then equal.
  92.  
  93. Setting the memory maximums to 65535 will save as much as 4 gigabytes/SPHINX
  94. window, which effectively saves everything until memory runs out.
  95. Saved blocks of text are also freed (before this limit is reached) if memory
  96. is needed and there is no other way to get it, or when the user uses RA-F or
  97. SRA-F.
  98. NOTE: the memory in which the text is saved is allocated when needed (not all
  99. at once), thus if you are a programer and you wish to test to see if your
  100. program is freeing all the memory it allocated by watching some free memory
  101. counter, and you don't want SPHINX: to alloc or free some of its memory while
  102. this is going on, then make sure the SPHINX windows don't receive anything
  103. (keystrokes, text to write, etc...). the SPHINX's will not alloc or free
  104. except in response to a signal.
  105. (CON: and NEWCON: windows can be used because CON: saves nothing and NEWCON:
  106.  saves your input in a fixed size buffer that is allocated when the window
  107.  is opened (note also that NEWCON: does something "interesting" when that
  108.  buffer is full).)
  109.  
  110. Min Wrt Buf Lth (Minimum Write Buffer Length)
  111. this is a number between 32 and 32752, which is the minimum length of the
  112. buffer used to save the text written to the SPHINX. Internally this is
  113. rounded up to the next higher multiple of eight by SPHINXConfig before it
  114. is written to the config file. To be most effective, this value should be
  115. around, and preferably on the larger side of, the length of the typical sum
  116. of all the characters between two input lines + 14.
  117.  
  118. Wrt Font Name (Write Font Name)
  119. this is a text string (probably ending in .font) specifying the name of the
  120. font to use when drawing text that has been written (Write()) to the window
  121. by the program accessing SPHINX.
  122.  
  123. Wrt Font Height (Write Font Height)
  124. a number specifying the height of the font WriteFontName.
  125.  
  126. Inp Font Name (Input Font Name)
  127. this is a text string (probably ending in .font) that specifies the name of
  128. the font to use when drawing text that is or has been inputed.
  129.  
  130. Inp Font Height (InputFontHeight)
  131. this is a number specifying the height of the font InputFontName.
  132.  
  133. NOTES:
  134. 1)the font names and heights are optional
  135. 2)these fonts are looked for and tested in this order, and the first suitable
  136.   one is used:
  137.   if a font was specified
  138.    the user's font in ram (OpenFont())
  139.    the user's font on disk (OpenDiskFont()) ; if diskfont.library not found,
  140.                         ; alert : ODFt
  141.   ; if no font is found, alert : ?FNT, where ? = W or I, depending on the
  142.   ;    font, and after the alert is canceled, continues to look for a font
  143.   ; if a font is found, but its flags are wrong, then alert : ?FFg, then
  144.   ;    continue to look for a font (it is a proportion font, or etc...)
  145.   ; if a font is found, but its width is zero, then alert : ?FWt, then
  146.   ;    continue to look for a font
  147.   then, in any case
  148.   the window's rasterport's font (rp_Font)
  149.   the window's font (IFont)
  150.   the screen's font (sc_Font)
  151.   the system default (gb_DefaultFont)
  152.   and if none of these are suitable, then Topaz/8 is checked.
  153.   ; if topaz/8 is not found, then alert : TpNF, and shutdown
  154.   ; if topaz/8's flags are wrong, then alert : TpFg, and shutdown
  155.   ; if topaz/8's width is zero, then alert : TpWt, and shutdown
  156. 3)if a font name is given, the corresponding font height MUST be given too.
  157. 4)there is nothing wrong with specifying the same font for both input and
  158.   writing.
  159. 5)both fonts must be non-proportional (proportional fonts may look nice and
  160.   be easier to read but they are much too much of a pain for the programer),
  161.   and have non-zero widths.
  162. 6)the fonts do not have to have the same width or height.
  163.  
  164. NOTE: if you are using some text speedup program (FF,BlitzFonts,etc...),
  165. then scrolling with SPHINX will be much faster if you make one or both of
  166. the fonts (one of) the font(s) which is(are) sped up.
  167.  
  168. Line Height
  169. this number specifies the height in pixels of a line in the window. this
  170. should be greater than or equal to the font heights. the reason this is an
  171. option is to allow you to put blank lines between lines of a dense font.
  172. NOTE: If this value is less than the height of either of the two fonts that
  173. are actually going to be used (if your font cannot be found or has the wrong
  174. characteristics, then font you may not expect may be used, so this could
  175. happen without your control), then line height is increased to be the larger
  176. of the two font heights.
  177.  
  178. BELL Filename
  179. this is the full file name (path & name) of an iff one-shot 8 bits/sample
  180. file that is loaded and played when the first BELL (ctrl-G) is written
  181. (Write()) to any SPHINX window. thereafter the file is not reloaded, even if
  182. the window that caused it to load is closed; the file is shared between
  183. SPHINX's with the same BELLFilename in their configuration. This will allow
  184. you save CHIP ram if you have differently configured SPHINXs, since, if you
  185. specified the same BELLFilename, they will all share the same audio data, so
  186. you won't have various copies lying around in CHIP ram.
  187. this is optional, and if this line is blank, then DisplayBeep() is called
  188. when a BELL is found, like CON: and NEWCON:.
  189.  
  190. Help Filename
  191. Ignore this option for now (SPHINX 2.5b does)
  192.  
  193. Extra Clip Chrs (Extra Clip Chars)
  194. these are the extra characters considered to be part of a word (in addition
  195. to A through Z and a through z, although NOT 0-9). this is used when finding
  196. the edges of the word you have double-clicked on.
  197. for example:
  198. 0123456789._-
  199. is enough to clip filenames that contain no spaces,
  200. 0123456789._-:/
  201. is enough to clip whole path+filenames, and
  202. 0123456789._-:/#?$()*[]{}|~!
  203. is enough to clip whole path+filenames /w wildcards and stuff.
  204. this word clipping is not restricted to clipping filenames, but that is the
  205. use envisioned.
  206.  
  207. Extra Move Chrs (Extra Move Chars)
  208. these are the extra characters considered to be part of a word when trying to
  209. move one word to the left or right (A-LEFT & A-RIGHT). A-Z and a-z are also
  210. considered to be part of a word.
  211.  
  212. Extra Del Chrs (Extra Delete Chars)
  213. same as above, except used when deleting a word (A-BS and A-DEL).
  214.  
  215. Max Lit Cp Chrs (Maximum Literal Comparison Characters)
  216. This is the maximum number of characters in the search string at which the
  217. fragment comparison is not tried. This allows you to get around the problem
  218. of having a lot of unwanted lines returned when you compare lines (as would
  219. happen if, say, you only gave one character of the line you seek).
  220. This also allows you to turn off the fragment comparison by setting this to
  221. 257 (a number larger than the maximum length of the search string).
  222. Setting it to zero will enable the fragment comparison no matter how many
  223. characters are in the seagulls string, which usually returns too many matches.
  224. Best values are from 1 to 3.
  225.  
  226. Cursor Type
  227. this is a text string representing the type of cursor you desire. it can be:
  228. block       : a block the size of the char, over the char, like NEWCON uses.
  229. thinline   : a thin vertical line (1 pixels wide) to the left of the char.
  230. thickline  : a thicker vertical line (2 pixels wide) to the left of the char.
  231. underline  : a horizontal line under the character.
  232. the string is not case sensitive
  233. just pick the one you like, this is just visual.
  234. NOTE: actually there is a little difference: the underline and thinline
  235. cusps are slightly faster to draw than are the thickline and block. this
  236. makes those windows using those cursors slightly faster, but this is not
  237. notice unless you are, say, typing a long file character by character,
  238. (which is itself very slow) which will cause the cursor to be drawn and
  239. undrawn many times. This effect is so small that it really shouldn't be a
  240. criteria for choosing a cursor type unless you are using a program that does
  241. draw it output one or a few characters at a time.
  242.  
  243. Iconized Width
  244. this number is the width of the iconized window in pixels. numbers smaller
  245. than 4 make a very small window, which is hard to find and click on later.
  246. best values lie between 30 and 80.
  247.  
  248. Inp Txt Color (Input Text Color)
  249. this is a number between 1 and 7 which ends up being the color of the input
  250. lines. this gives you one more way to differentiate input text from written
  251. text. this can be set to 0, but that will draw color 0 text on a color 0
  252. background, so nothing much is visible.
  253.  
  254. Detail Pen
  255. this is the number of the color which is used to draw the window's borders
  256. and title bar (nw_DetailPen/wd_DetailPen). Most windows use 1, but using a
  257. different color lets you find a SPHINX window more quickly (especially when
  258. it is iconized).
  259. this is also used as the color of the line drawn by the FF character.
  260.  
  261. Block Pen
  262. this is the number of the color which is used to draw the window's title and
  263. the background on which the scroll gadget slides (nw_BlockPen/wd_BlockPen).
  264. most window use 0, but... (see also DetailPen).
  265.  
  266. C-F1...C-F10
  267. these are ten strings which, when C-Fn is pressed, will be inserted in the
  268. input buffer at the cursor, and then the input line will be entered (as if
  269. you had pressed RETURN). This is provided to give you a way even faster than
  270. UP or S-UP for entering input lines you use a lot.
  271.  
  272. Clip Type
  273. this is a text string which discribes the initial clipping mode.
  274. private   : when window opens, we are in private clipping mode.
  275. clipboard :  " ", we are in locked clipboard clipping mode.
  276. file      :  " ", we are in locked file clipping mode.
  277.  
  278. Clip File
  279. this is the full intial name (path & name) of the file to which we clip when
  280. we are in file clipping mode.
  281.  
  282.  " " Mode (Clip File Mode)
  283. this is a text string which discribes the initial mode of writting we do when
  284. we write to the Clip File
  285. append      : each clip is appended to the file.
  286. rewrite   : each clip rewrites the file.
  287.  
  288. Ins File (Insert File)
  289. this is the full initial name (path & name) of the file from which we insert
  290. when we insert from a file (SRA-I)
  291.  
  292. Half Wd Scroll (Half Window Scroll)
  293. this is a text string
  294. y : when new text in the window causes the cursor to go out of sight, then
  295.     the window is scrolled half its height, bringing the cursor to the center
  296.     of the window.
  297. n : when the situation occurs, the window is just scrolled to keep
  298.     the cursor in sight, like NEWCON.
  299. Scrolling the cursor to the center of the window every few lines is faster
  300. than scrolling every line.
  301.  
  302. Center Cursor
  303. y : when, due to certain input buffer editing commands, the cursor goes off
  304.     the window, the window is scrolled to bring the cursor to the middle line
  305. n : the window is always scrolled just enough to bring the cursor back into
  306.     sight (top or bottom line)
  307.  
  308. Strip Clips
  309. y : the LF, CR or FF at the end of a line being clipped from this window is
  310.     striped if the clip is on one line only.
  311. n : the LF, CR or FF is not stripped.
  312. Stripping should be enabled unless you need to see what the EOL characters
  313. were.
  314.  
  315. Icnzed FtoB Gg (Iconized has Front to Back Gadget)
  316. y : the iconized window is given front to back gadget(s).
  317. n : the iconized window does not have front to back gadget(s).
  318.  
  319. Icnzed Auto Bck (Iconized wd Automatically goes to Back)
  320. y : when the iconized window is opened, it is automatically moved to the back.
  321. n : when it is opened, it says in front of the windows.
  322.  
  323. Parse Inserts
  324. this is the initial value of the condition toggled by RA-P
  325. y : when text is inserted (from a clip, clipboard or file), it is to be
  326.     parsed as if it were comming from the keyboard. thus, for example, any
  327.     CR in the text will cause the input line to be terminated and sent on to
  328.     the program doing whatever it does with them (to the Read()er), and a
  329.     new one to be begun. this mode can be used in conjunction with insertion
  330.     from a file to form primitive macros which are invisible to everyone
  331.     but SPHINX and you.
  332. n : when text is inserted it is treated as if it were literal characters, so,
  333.     for example, our CR would just show up in the input line, instead of
  334.     terminating it.
  335.  
  336.  
  337.