home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpminfo / cpm-cc07.art < prev    next >
Text File  |  1994-07-13  |  12KB  |  224 lines

  1.  
  2. ==============================================================================
  3. [   THE KAY*FOG RBBS  |  CPM-CC07.ART  |  posted 01/18/86  |  218 lines 12k  ]
  4.  
  5.           The CP/M Connection                   Originally published in    
  6.                   by                               Computer Currents       
  7.              Ted Silveira                           2550 9th Street        
  8.   (copyright and all rights reserved)             Berkeley, CA  94710      
  9.  
  10.  
  11.                                 June 18, 1985
  12.                           MORE UTILITIES FOR WRITERS
  13.  
  14.  
  15.      I can still hear my high school English teacher saying "An essay must 
  16. have an organizing idea."  I tried, but I just couldn't do it this time.  
  17. What I have here is public domain hash:  some miscellaneous writer's 
  18. utilities, including one that got left out of the WordStar utilities I 
  19. covered a few issues back.
  20.  
  21.  
  22.  
  23. [Spelling Checkers]
  24.  
  25.      Bundled software has become so common in the CP/M world that most 
  26. people already have a spelling checker.  If you don't, you're missing one 
  27. of the real joys of writing by computer.  
  28.  
  29.      A spelling checker can't really spell, of course; it can only check 
  30. the words in your text against the words in its "dictionary" and mark the 
  31. ones it finds no match for.  These words aren't necessarily misspelled, 
  32. just unrecognized; you still must check each one yourself and decide 
  33. whether to correct it, leave it alone, or add it to your dictionary.  Also, 
  34. a spelling checker won't catch mistakes like "there" for "their" or 
  35. "camped" for "cramped."  But it will do much of the brute work of 
  36. proofreading, and it's as accurate at the end of a long piece as at the 
  37. beginning, unlike human proofreaders.
  38.  
  39.      There are two spelling checkers in the CP/M public domain--SPELLM20 
  40. and SPELL-11.  SPELLM20, sometimes called SPELL20, works with any word 
  41. processor but works especially well with WordStar.  It comes with a 56K 
  42. dictionary (in a special condensed form that saves space and speeds up 
  43. searches) and allows you to build supplementary dictionaries of your own.
  44.  
  45.      SPELLM20 doesn't do any correcting itself; it just marks the 
  46. unrecognized words in your text.  You then have to find and check the 
  47. marked words using your word processor, a tedious process.  If you're using 
  48. WordStar, however, you can check your text file with WordStar's built-in 
  49. ^QL command, which automatically takes you from one marked word to the 
  50. next, letting you correct the word, leave it as is, or add it to a 
  51. supplementary dictionary (so that SPELLM20 will recognize it from then on).  
  52.  
  53.      Even though SPELLM20 comes with a dictionary, you'll be madly adding 
  54. words to your supplementary dictionary for the first few weeks.  I used 
  55. SPELLM20 to check a 30K text file containing 1438 different words (over 
  56. 3500 words total), and it failed to recognize 835 of them, all correctly 
  57. spelled, including elementary words like "they."  (What did they put in 
  58. that dictionary?)
  59.  
  60.      SPELL-11, which also works with any word processor, has three parts:  
  61. SPELL-11.COM, SPELL-ED.COM, and CMPRLEX.COM.  SPELL-11.COM reads your text 
  62. file and lists all the words it didn't recognize, sending them to the 
  63. screen, to the printer, or to a disk file.  SPELL-ED.COM then takes each 
  64. word listed by SPELL-11 and asks whether you want to mark it (for later 
  65. correction), leave it alone, or add it to a supplementary dictionary.  Once 
  66. SPELL-ED has finished, you still must call up the text file with your word 
  67. processor, locate the marked words, and correct them.  CMPRLEX.COM lets you 
  68. compile any dictionaries you build into a space-saving condensed form.
  69.  
  70.      SPELL-11 comes with no dictionary at all; you have to build one by 
  71. running text files through the checker, verifying words in a good printed 
  72. dictionary, and then adding the correctly-spelled ones to SPELL-11's 
  73. dictionary.  You'll find this process boring and time-consuming, but once 
  74. you reach 7500-10,000 words, you should have most of your working 
  75. vocabulary covered.  (No, you can't use SPELLM20's already-compiled 
  76. dictionary with SPELL-11.)
  77.  
  78.      Both SPELLM20 and SPELL-11 are slow and a bit primitive.  SPELLM20 is 
  79. slightly easier to use if you have WordStar, while SPELL-11 is better if 
  80. you don't, though both will require a lot of dictionary-building at first.  
  81. Neither program is any threat to The Word Plus, the reigning champion of 
  82. CP/M spelling checkers, but either one is better than no spelling checker 
  83. at all.
  84.  
  85.  
  86.  
  87. [Word Counters]
  88.  
  89.      Professional writers, of course, are often obsessive about counting 
  90. words, but even normal people find it mildly interesting to know how many 
  91. words they've written.  To count the words in a text file, you can use any 
  92. one of several public domain programs--WRDCOUNT, WCOUNT, WC, and others 
  93. with similar names.  All do a fairly good job, though WC seems to me to be 
  94. the fastest, but no word counting program, even the commercial one that 
  95. comes with The Word Plus, is totally accurate.  They all get thrown off by 
  96. things like word processor format commands, numerals, and extra carriage 
  97. returns, so they give only an approximate word count.  Still, that's 
  98. usually all you need.
  99.  
  100.      MUCHTEXT counts lines and characters, but not words, in a text file.  
  101. I rarely need that information, but some people do.  Some typesetters, for 
  102. example, may prefer a character count to a word count.
  103.  
  104.      TXTSTAT counts lines, words, and characters, but the last time I tried 
  105. to use my copy, it gave such a wildly inaccurate count that I erased it.  
  106. Maybe my copy was damaged--it's hard to believe that anyone released a 
  107. program that far out of whack--but I haven't yet found another copy so that 
  108. I can check it.
  109.  
  110.  
  111. [BISHOW31]
  112.  
  113.      Suppose you're looking for some information and want to scan several 
  114. text files without editing them.  You can use CP/M's built-in TYPE command, 
  115. which is fast--but it only allows you to scroll forward through a file, so 
  116. you can't back up to look at something you've already passed.  Or you can 
  117. use your word processor, which will allow you to scroll both forward and 
  118. back--but word processors are usually slow to load (my modified WordStar 
  119. takes 12-15 seconds, and that's faster than normal).  If neither 
  120. alternative appeals to you, try BISHOW31.
  121.  
  122.      BISHOW31 is a small program (4K) that lets you view text files on your 
  123. screen.  It loads very quickly (3-4 seconds) and lets you scroll forward 
  124. and backward through a file, either by screen or by line.  It can also 
  125. scroll horizontally, if the text lines are wider than your screen, and can 
  126. be set for screen widths other than 80 columns.
  127.  
  128.      Better yet, BISHOW31 lets you scan squeezed text files as well as 
  129. normal ones, something that CP/M's TYPE and your word processor can't do.  
  130. You can even scan squeezed files contained in a library file (several files 
  131. grouped together so that CP/M sees them as one large file with the filetype 
  132. LBR).  Because of these features, I can now squeeze all my "archive" 
  133. files--program documentation, master copies of articles, and so forth--to 
  134. save space and still browse through them whenever I need to.
  135.  
  136.      If you handle a lot of text files, BISHOW31 is very useful.  If you 
  137. squeeze your text files, it's almost essential.  (And for your own sake, 
  138. rename it to something less clumsy, like SHOW.)
  139.  
  140.  
  141. [DF]
  142.  
  143.      If you've ever wasted your time trying to trace minor differences 
  144. between two text files, you'll want DF.  It compares two text files and 
  145. displays their differences on the screen, line by line.  
  146.  
  147.      DF has three features that set it apart from other file comparison 
  148. programs and make it ideal for text files.  First, when it finds a 
  149. difference between two files, it displays the appropriate sections from 
  150. both files on the screen, one above the other, so that you can easily 
  151. compare them yourself.  Second, at the same time, it displays the line 
  152. numbers of the differing sections so that you know approximately where in 
  153. your files the differences are.  
  154.  
  155.      Third, and most important, DF can "resynchronize" itself after finding 
  156. a difference in the two files.  Some file comparison programs can only work 
  157. character by character--that is, the first character of one file must match 
  158. the first character of the other, the second must match the second, the 
  159. twelfth must match the twelfth, and so on.  If you have even one extra 
  160. character in one of the files being compared, these simple programs will 
  161. think the two files are completely different from that point on.  DF, 
  162. however, is smarter than that.  After finding a difference, it 
  163. resynchronizes the two files, juggling them until it finds a new pair of 
  164. matching lines, and then continues its comparison.
  165.  
  166.      I don't use DF very often, but it comes in handy at times.
  167.  
  168.  
  169. [GRAB]
  170.  
  171.      With a little work and imagination, you can use GRAB as a sort of text 
  172. database.  GRAB will search through a series of files, locate the 
  173. occurrences of keywords you specify, and copy the block of text it finds 
  174. the keyword in to a separate file.  
  175.  
  176.      GRAB thinks a block of text is any string of characters ending with a 
  177. normal carriage return (what WordStar users know as a "hard" carriage 
  178. return), so you'd expect it to find only the individual line of text that a 
  179. keyword occurs in.  But GRAB ignores the "soft" carriage returns that 
  180. WordStar uses at the end of every line so it treats a WordStar document-
  181. mode paragraph as a single block of text (a very long "line").  
  182. Consequently, GRAB will show you the entire WordStar paragraph a keyword 
  183. occurs in--much more useful than just one line.  And it will work the same 
  184. way with any other word processor, like Perfect Writer, that doesn't insert 
  185. a hard carriage return at the end of every line.
  186.  
  187.      In practice, you can use GRAB to search a batch of text files (your 
  188. old love letters, for example), extract every paragraph containing a 
  189. reference to "eyes," "smile," or "ducks on a pond," and save them all in a 
  190. separate file for future reference.  (No sense overworking your 
  191. imagination.)
  192.  
  193.      GRAB will search more than one file at a time if you use wildcards in 
  194. the file name (*.LTR or CHAPTER?.???), and it will search squeezed text 
  195. files as well as normal ones.  You can also specify more than one search at 
  196. a time so that GRAB will scour the same group of files first for one set of 
  197. keywords, then another, and so on.
  198.  
  199.      GRAB has some limitations.  Most important, though it will accept a 
  200. list of keywords to search for, it will pull out every paragraph that 
  201. contains any keyword in the list (a logical OR search).  You can't direct 
  202. GRAB to locate only those paragraphs that contain a combination of keywords 
  203. ("eyes" and "limpid pools," say)--a pity, since that's a more useful kind 
  204. of search (called a logical AND).  You can get around this problem by first 
  205. searching for one keyword and then searching the resulting file of 
  206. references for the second keyword.  It's awkward but possible.
  207.  
  208.      Also, you must put your list of keywords in a text file; you can't 
  209. just specify them on the command line when you run the program.  I find 
  210. this a real bother, especially when I just want to do a quick search for 
  211. one keyword.  
  212.  
  213. ------------------------------------------------------------------------------
  214.       Ted Silveira is a freelance writer and contributing editor to several
  215.    computer-oriented publications.  He appreciates suggestions or feedback
  216.    and can be reached through the KAY*FOG RBBS (415)285-2687 and CompuServe
  217.    (72135,1447) or by mail to 2756 Mattison Lane, Santa Cruz, CA 95065.
  218.  
  219. -------------------------  End of CPM-CC07.ART Text  -------------------------
  220.  
  221.  
  222.  
  223.  
  224.