home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 31 / CDASC_31_1996_juillet_aout.iso / vrac / tspell25.zip / TSPELL.INF < prev    next >
Text File  |  1996-03-17  |  21KB  |  451 lines

  1. Sun 17-March-1996
  2.  
  3. About TSPELL in General                         All rights reserved
  4. =======================
  5.  
  6. Apply question mark ? with the program call for a brief  description
  7. of a program.
  8.  
  9. This package may be used and distributed freely for  NON-COMMERCIAL,
  10. NON-INSTITUTIONAL,  PRIVATE  purposes, provided it is not changed in
  11. any way. (Repacking with another method  is  ok,  though.)  For  ANY
  12. other  usage,  such as use in a business enterprise or a university,
  13. contact the author for registration. Uploading to bulletin boards is
  14. encouraged.  Please  do  not  distribute  any  part  of this package
  15. separately.
  16.  
  17. The programs are under development. If you have any comments or  bug
  18. reports,   please  do  not  hesitate  to  use  electronic  mail  for
  19. communication.
  20.  
  21. The author shall not be liable to the user for any direct,  indirect
  22. or  consequential loss arising from the use of, or inability to use,
  23. any program or file howsoever caused. No warranty is given that  the
  24. programs will work under all circumstances.
  25.  
  26. Timo Salmi (email: ts@uwasa.fi WWW: http://uwasa.fi/~ts/)
  27. Professor of Accounting and Business Finance
  28. Faculty of Accounting & Industrial Management
  29. University of Vaasa
  30. P.O. BOX 700, FIN-65101 Vaasa, Finland
  31.  
  32.  
  33. ABSTRACT:
  34.  
  35. TSPELL25        Checks English Spelling, T.Salmi
  36. Filename        Comment
  37. --------        --------------------------------
  38. AUXIL.DNY       Seed (read the instructions)
  39. FILE_ID.DIZ     Brief characterization of tspell
  40. SPELLED.DNY     English dictionary 8476 words
  41. SPELLED.EXE     Dictionary editor
  42. SPELLED3.DNY    English dictionary 14795 words
  43. SPELLER.EXE     Spelling checker (start here)
  44. SPELMERG.EXE    Fast merging of dictionaries
  45. TSPELL.INF      Document and a readme
  46. TSPELL.NWS      News announcements about tspell
  47. TSPROG.INF      List of programs from Timo Salmi
  48. VAASA.INF       Info: Finland, Vaasa, U of Vaasa
  49. WORDLIST.EXE    Counts frequencies of words
  50. ----            ------             ------  -----
  51. 0012
  52.  
  53. ----------
  54. Timo Salmi Spelling checking system release 2.5 (TSPELL25)
  55. *          *****                            * *
  56. includes the following programs and files:
  57.  
  58. SPELLER.EXE  (Ver. 2.5)  Spelling checker
  59. =======================
  60.  
  61.    SPELLER is a spelling checker that can be applied on ordinary
  62. text files.
  63.    If you are using a wordprocessor, see its documentation for the
  64. possibility of producing standard ascii format text. If you are
  65. using an editor, there is probably no need for any adjustments of
  66. the text.
  67.    SPELLER needs a dictionary, such as SPELLED.DNY, which it loads
  68. into memory. Thus, different dictionaries might be used for
  69. different kinds of texts.
  70.    SPELLED shows in reverse the words which it cannot find in the
  71. dictionary loaded. You have the option of selective storing these
  72. unknown words into a temporary file DICT.TMP. The option is invoked
  73. by answering Y(es) to the question of pausing at unknown words.
  74.    The accompanying program SPELLED (SPELLing EDitor) can be used
  75. to enter new words into dictionaries. The new words can optionally
  76. be entered from a file, such as DICT.TMP.
  77.    To suppress the beeps at program warnings, and unknown words,
  78. apply the call SPELLER Q(uiet)
  79.  
  80.  
  81. SPELLED (Ver. 2.4)  Dictionary editor
  82. ==================
  83.  
  84.    SPELLED can be used to enter and delete words from the
  85. dictionaries for the spelling checker SPELLER.
  86.    The new words can optionally be entered from keyboard or file.
  87. If a file is used, it must abide by certain conventions. 1) It must
  88. have exactly one word per row. 2) The maximum word-length is 16.
  89. 3) The words must contain lowercase English alphabets only.
  90.    If you are customizing an old dictionary acquired from
  91. elsewhere, on top the the requirements above, it must be in strict
  92. alphabetical order. There is an option in SPELLED for testing the
  93. validity of a dictionary.
  94.    SPELLED and SPELLER hold the dictionary in memory. The size of
  95. the dictionary is limited to 22800 words. Although much larger
  96. spelling checkers are commercially available, active 6000 - 20000
  97. word dictionaries have turned out to be adequate in actual practice.
  98.    The public domain version of the Spelled System limits the
  99. maximum of SPELLER to 9000 words.
  100.    Updating a dictionary with SPELLED takes awhile, since the
  101. program has to preserve the alphabetical order at entering each
  102. new word. See SPELMERG (at the end of this document) for a fast
  103. alternative.
  104.  
  105.  
  106. SPELLED.DNY                         TSPELL.INF
  107.  
  108. A dictionary.                       This document.
  109.  
  110.  
  111. For more details of the Spelled Spelling Checking System, see the
  112. documentation commencing on page 4.
  113.  
  114.  
  115. WORDLIST (Ver 2.3)  Counts frequencies of words
  116. ==================
  117.  
  118. Usage:
  119. WORDLIST [/h] [/ixxx] [/oyyy]
  120.            │    │       └─ output file recall = yyy
  121.            │    └─ input file recall = xxx
  122.            └─ help
  123.  
  124.    While WORDLIST is not an actual component of the Spelled System,
  125. it is an offspring of the techniques used in Spelled.
  126.    WORDLIST list the words of a text file. The words can be listed
  127. either in alphabetical order with their frequencies, or as a list in
  128. the order of their appearance.
  129.    Output can be directed to a file, or to the screen by giving CON
  130. as the output file name.
  131.    The program works by scanning each row of the text file until it
  132. finds a letter, and then builds the word up until a character is
  133. found which does not belong to the set of letters, digits, or the
  134. set of ( -_#$%^ ), or until the end of line is encountered. Thus, no
  135. word in the original text should not be divided on two lines, since
  136. such a word would be considered two separate words. The following
  137. characters are considered letters a..z, å, ä, ö, é, ü, â, à, ç, ê,
  138. ë, è, ï, î, ì, ô, ò, û, ù, ÿ, á, í, ó, ú, ñ.
  139.    If the frequencies of the words in alphabetical order are
  140. requested, the maximum number of DIFFERENT words that the program
  141. can handle is 8000.
  142.    In counting the frequencies, any words longer than 25 characters
  143. are truncated.
  144.  
  145.  
  146. SPELLED Spelling Checking System by Timo Salmi
  147. ==============================================
  148.  
  149.    Before you do anything else, make backups of the dictionary
  150. SPELLED.DNY.
  151.  
  152.    Spelled is a system for checking spelling, and building up
  153. dictionaries. It contains the spelling checker SPELLER.EXE, a
  154. dictionary editor SPELLED.EXE, this description TSPELL.DOC, and a
  155. dictionary SPELLED.DNY specialized towards business research
  156. terminology. At the date of preparing these instructions it
  157. contained 8498 words.
  158.  
  159.  
  160. Checking Spelling
  161.  
  162.    SPELLER.EXE is the spelling checker. It can be applied on
  163. ordinary text files. Word-processor files might be checked with
  164. SPELLER, but it is advisable first to convert them into ordinary
  165. text files, and then apply SPELLER on the resultant file. See the
  166. documentation of your word processor for more details.
  167.    SPELLER first loads the vocabulary from the dictionary of your
  168. choice. Then it asks for the file to be checked for spelling.
  169. SPELLER highlights the words it cannot find in the dictionary in
  170. reverse on the screen.
  171.    Scrolling can be controlled by answering Y(es) to "PAUSE AT FULL
  172. SCREEN".
  173.    Checking spelling is case-independent. Thus, there is no
  174. difference e.g. between England, england, or ENGLAND. Hyphenated
  175. words are considered two separate words (e.g. well-known). Thus,
  176. strange combinations-of-words can be passed undetected (this is a
  177. general feature of spelling checkers). Another peculiarity of
  178. SPELLER, as well as most spelling checkers, is that 's-genitives are
  179. shown as errors (unless the letter s is included in the dictionary,
  180. which is NOT advisable).
  181.    SPELLER provides the possibility of choosing the dictionary.
  182. Thus, different dictionaries might be used for different purposes.
  183. The dictionary SPELLED.DNY accompanying SPELLER is specialized
  184. toward business research. You can build it up yourself, acquire a
  185. common dictionary from elsewhere, or even start from scratch.
  186.    SPELLER has an option for building up a dictionary. If the option
  187. "UPDATE DICTIONARY: PAUSE AT UNKNOWN WORDS" is chosen, you have the
  188. choice of entering the highlighted word by pressing SHIFT + F4. The
  189. chosen words are not entered into the original dictionary directly,
  190. but into an auxiliary file DICT.TMP. This method protects the
  191. original dictionary, and allows further cross-checking. DICT.TMP
  192. will be on the default device.
  193.    After exiting SPELLER you can use SPELLED to merge the new words
  194. into your original dictionary. At that stage you still have the
  195. possibility of changing your mind, and the possibility of selective
  196. deleting of undesirable words.
  197.    Needless to say that you should carefully keep appropriate
  198. backups, if you are going to manipulate your original dictionary.
  199. Note that the next time that you exercise the option of storing
  200. words directly from SPELLER, the old DICT.TMP will be written over.
  201.    The words in the dictionary can be up to 16 characters in length.
  202. There is no limitation on the size of the text file to be checked
  203. for spelling, although it is more convenient to keep the file size
  204. within reasonable limits. FILEPAGE or FILECUT in TSFCOM.ARC can be
  205. used for an automatic slicing of a text file into smaller
  206. constituents.
  207.  
  208.  
  209. Spelling Editor
  210.  
  211.    SPELLED.EXE is a spelling editor for entering new words and/or
  212. deleting selected old words from dictionaries. The new words can
  213. optionally be entered from keyboard or file. The words will be taken
  214. from file if you answer N(o) to the question "ENTER FROM KEYBOARD".
  215. The program then prompts you for the file name. If a file is used,
  216. it should contain exactly one word per row.
  217.    SPELLER automatically sees to it that the update file DICT.TMP
  218. will conform to the right format.
  219.    The name of a dictionary file should preferably have the
  220. extension .dny.
  221.    Entering new words and deleting old ones in the dictionary is a
  222. slow process, especially if the words are in the beginning of the
  223. alphabet. This results from the need of shifting the upper half to
  224. the stack of words in order to make room for the new word in the
  225. appropriate slot dictated by the alphabetical order of the
  226. dictionary.
  227.    The old version of the dictionary is automatically backed up
  228. (with the extension .bck). Make ABSOLUTELY sure that there is enough
  229. space available on your dictionary device. Else you might even lose
  230. your dictionary!
  231.    If you are customizing a dictionary acquired from elsewhere, the
  232. format must strictly be the following. English alphabet in ascii, no
  233. capital letters or special characters, exactly one word per line,
  234. alphabetical order with no exceptions, no empty lines, and a
  235. carriage return even at the end of the last line.
  236.    The same rules apply if you use some other editor than SPELLED to
  237. enter or remove words.
  238.    You can use an option in SPELLED and SPELLER to confirm the
  239. acceptability of a dictionary. If you use or edit a dictionary that
  240. is not valid, the consequences are unpredictable.
  241.  
  242.  
  243. General
  244.  
  245.    Remember that spelling checkers are just mechanical devices,
  246. which look if they find a word in the dictionary. They do not in any
  247. way check the logic of the text, and they certainly do not
  248. substitute careful writing. Also be particularly careful when
  249. entering exotic new words into dictionaries, since any spelling
  250. misunderstandings will remain.
  251.    A spelling checker draws your attention to words, which are not
  252. in the dictionary. Since dictionaries (however large) do not contain
  253. all the possible correct words, you have to decide yourself whether
  254. a reversed word is misspelled or just missing. When you understand
  255. this principle, you can get by even with a small, carefully edited
  256. dictionaries. Small dictionaries have the advantage of being fast to
  257. use, and easier to get and update.
  258.  
  259.  
  260. TIPS AND HINTS
  261. ==============
  262.  
  263.    Each user will have his/her own preferred arrangements in using
  264. wordprocessing and checking spelling. Find below some advanced tips
  265. and hints grown out of experience in using the Spelled System:
  266.  
  267.  
  268. Utilizing Ramdisk
  269.  
  270.    It is often convenient to transfer at least the dictionary to
  271. ramdisk, especially during long sessions of wordprocessing. This has
  272. the added bonus of protecting your original dictionary if you enter
  273. new words. You must, however, remember to copy the changed
  274. dictionary back from ramdisk before disconnecting your computer. As
  275. a further advantage the dictionary loads faster from the ramdisk.
  276. (On a 386 it does not make much difference, though.)
  277.    You can even prepare a suitable (.bat) batch to perform the
  278. copying operations.
  279.  
  280.  
  281. Entering New Words into the Dictionary
  282.  
  283.    There obviously are several options for entering new words into a
  284. dictionary. The following method is far from the most direct
  285. available in using the Spelled System, but it is safe, and
  286. relatively easy once one gets the hang of it.
  287.    1) Use the option in SPELLER to enter new words to DICT.TMP
  288.       with SHIFT + F4.
  289.    2) Prepare an empty auxiliary dictionary AUXIL.DNY, or
  290.       start with an AUXIL.DNY with just the word "a" in it
  291.       (see below).
  292.    3) Run SPELLED to enter the words from DICT.TMP to
  293.       AUXIL.DNY.
  294.    4) List the words in AUXIL.DNY on the screen and make sure
  295.       that there are no misspelled words.
  296.    5) If necessary, run SPELLED again to enter the corrected
  297.       words, and to remove the misspelled versions.
  298.    6) Finally, run SPELLED again to enter words from AUXIL.DNY
  299.       to your main dictionary (e.g. SPELLED.DNY).
  300. You can, or course, take a risk, and omit using AUXIL.DNY altogether
  301. and enter the wordlist in DICT.TMP directly to SPELLED.DNY with
  302. SPELLED. Naturally, if you know in advance that there are no
  303. mistakes in your text, this is the quickest way of building up a
  304. dictionary.
  305.    Experience has shown that it is convenient to gather about a
  306. hundred words into the AUXIL.DNY file before cross-checking it, and
  307. merging it into the main dictionary.
  308.    Since a non-existent dictionary cannot be edited, you have to
  309. start with a file with preferably one word in it. If you build up a
  310. dictionary from scratch, you can provide the seed "a" as the seed in
  311. the file. The most simple method of creating such a file is entering
  312. the following MS-DOS commands (each terminated by a return).
  313.  
  314.                 copy com auxil.dny
  315.                 a
  316.                 Ctrl Z
  317.  
  318.  
  319. Sinclair QL
  320.  
  321.    The full version of the Spelled system is also available for the
  322. Sinclair QL from the Microdrive Exchange of The Sinclair QL World
  323. magazine. (But who cares about that any more. I don't.)
  324.  
  325.  
  326. Technical Curiosities
  327.  
  328.    The Spelled System was first programmed by the author in
  329. Turbo-charged SuperBASIC for the ill-fated Sinclair QL. Later, it
  330. was converted into VAX-Pascal for the author's own research needs.
  331. The I/O operations of standard Pascal are, however, painstakingly
  332. slow. (No wonder Pascal is so adamantly imposed in universities on
  333. students whatever their field.)
  334.    The current versions of SPELLED and SPELLER are Turbo Pascal 4.0
  335. (now 5.0) offsprings of those programs. The "trick" in the programs
  336. was getting around the 64K limit in loading the dictionary into
  337. memory, and performing a fast binary search of each word in a
  338. dictionary fragmented in 64K chunks. This was not as
  339. straight-forward as might have been expected from the advance
  340. publicity of Turbo Pascal 4.0 (which is an excellent programming
  341. tool, even for the pre-historic 16-bit-like MS-DOS environment).
  342.  
  343.  
  344. SPELMERG (Ver 1.6)  Fast merging of dictionaries
  345. ==================
  346.  
  347.    SPELling dictionary MERGer is a new addition to the TSPELL
  348. system, first appearing in Release 1.5.
  349.    SPELMERG can be used to merge new words into a dictionary, or to
  350. merge existing dictionaries.
  351.    The dictionaries MUST be in strict alphabetical order, and in
  352. lower case, and so on. SPELMERG checks for the potential errors.
  353.    You can use the option in SPELLED or SPELLER for testing the
  354. validity of the material to be merged, in advance. If you are
  355. merging DICT.TMP into your dictionary, you must apply SPELLED first
  356. on it to guarantee the compatibility.
  357.    SPELLED and SPELLER hold the dictionary in memory. The size of
  358. their dictionaries is limited to 22800 words. There are no program
  359. dependent limits for SPELMERG.
  360.  
  361.  
  362. A SAMPLE RUN:
  363. ============
  364.  
  365. SPELLing checkER, Ver 1.6 PD, Copyright (c) by Professor Timo Salmi
  366. Address: University of Vaasa, P.O. BOX 297, SF-65101 Vaasa, Finland    3-Sep-88
  367. ═══════════════════════════════════════════════════════════════════════════════
  368. STACK AVAILABLE: 386400, REQUIRED: 153000
  369. ╔═══════════════════════════════════════════╗
  370. ║ Enter ? for information on any item below ║
  371. ╚═══════════════════════════════════════════╝
  372. NAME OF DICTIONARY? ?
  373.   SPELLER works as follows. It reads your text file word by word, and checks
  374. for each word whether it is in the dictionary. If it is, the text is written
  375. on the screen in a normal fashion, but if not, the missing word is written in
  376. reverse color.
  377.   Here you must give the name of the dictionary you want to apply. SPELLED.DNY
  378. is the dictionary accompanying SPELLER. Enter SPELLED.DNY here, if you do not
  379. have a special dictionary of your own, or the alternative dictionary for the
  380. registered users.
  381.   The format of user's own dictionary must abide by certain rules, like strict
  382. alphabetical order, lower-case letters, and so on as explained in TSPELL.INF
  383. The maximum number of words that will be loaded from a dictionary is 22800.
  384. This public domain version is, however, limited to 9000 words.
  385. NAME OF DICTIONARY? spelled.dny
  386. CHECK DICTIONARY (N,y)? ?
  387. Checks whether the dictionary is in the required format. You should always
  388. answer Y to this option when applying a new or a changed dictionary for the
  389. first time. If you fail to do this, and the dictionary is invalid, the results
  390. are highly unpredictable.
  391. CHECK DICTIONARY (N,y)? y
  392. WAIT... LOADING AND CHECKING DICTIONARY spelled.dny
  393. 1 2 3 4 5 6 7 8
  394. NO FATAL ERRORS IN DICTIONARY, LOADED 8498 WORDS
  395. UPDATE DICTIONARY: PAUSE AT UNKNOWN WORDS (N,y)? ?
  396.   If you answer Y to this question, the program pauses at each unknown word.
  397. You can then enter this word into DICT.TMP file by pressing SHIFT F4, or
  398. continue without entering the word by pressing the Spacebar or the Return key
  399. (sometimes labelled the Enter key). The options available will be shown at the
  400. bottom of the screen when the checking commences.
  401.   Note that the dictionary will not be altered by this option. (You have to
  402. apply SPELLED.EXE or SPELMERG.EXE for that.)
  403. UPDATE DICTIONARY: PAUSE AT UNKNOWN WORDS (N,y)? y
  404. IMMEDIATE TEMPORARY UPDATE OF NEW WORDS [slows it down!] (N,y)? ?
  405.   If you answer Y to this question, the program will temporarily update the
  406. dictionary immediately each time you enter a word into the DICT.TMP file by
  407. pressing SHIFT F4.
  408.   There also is a special option SHIFT F9 which will update the dictionary in
  409. memory, but not write the new word into the DICT.TMP file.
  410.   Note that answering Y to this option slows the program considerably, since
  411. updating an alphabetically ordered dictionary requires a lot of processing.
  412.   The effect of the update stays in memory until the program is terminated.
  413. The original dictionary on the disk is not changed in any way by this option.
  414. IMMEDIATE TEMPORARY UPDATE OF NEW WORDS [slows it down!] (N,y)? y
  415. Not available in the public domain version
  416. IMMEDIATE TEMPORARY UPDATE OF NEW WORDS [slows it down!] (N,y)? n
  417. OPENED a:\dict.tmp FOR UPDATES
  418. If removable, do not remove disk from drive A: until exit from speller
  419. NAME OF TEXT-FILE? b:tsutil.inf
  420. OMIT CHECKING WORDS SHORTER THAN [1-16] (default=1)? ?
  421.   This option gives you the alternative of not checking words shorter than
  422. your choice. If you want to check all words regardless of their length (the
  423. default), just press Enter.
  424.   For example, if you want to omit checking words of one and two characters,
  425. enter 3 (and so on). You will soon notice that the most convenient value
  426. depends on the type of text you are checking.
  427. OMIT CHECKING WORDS SHORTER THAN [1-16] (default=1)? 4
  428. OUT OF BOUNDS
  429. In the public domain version the maximum is 2
  430. OMIT CHECKING WORDS SHORTER THAN [1-16] (default=1)? 2
  431. PAUSE AT FULL SCREEN (N,y)? ?
  432. The item is self-explanatory.
  433. PAUSE AT FULL SCREEN (N,y)? n
  434.  
  435. ...  the program checks the spelling ...
  436.  
  437. CHECK ANOTHER TEXT FILE (n,y)? ?
  438. The item is self-explanatory.
  439. CHECK ANOTHER TEXT FILE (n,y)? n
  440.  
  441.  DATE: Sat-3-September-1988 10:18:58   ELAPSED: 00:09:13.13
  442.  
  443. A:\ >
  444.  
  445.  
  446.  
  447. The Famous Last Words
  448.  
  449.    This document has been checked with SPELLER. No speling mistooks can
  450. posibly remain.
  451.