home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / vrac / sctn11.zip / SCANTUNE.MAN < prev    next >
Text File  |  1994-08-10  |  78KB  |  1,388 lines

  1.                          SCANTUNE -- Version 1.1
  2.     A unique multifaceted menu driven program for cleaning up Optical
  3.  Character Recognition (OCR) text files on IBM and compatible computers.
  4.                              by George McCoy
  5.                        Documentation by Skip Gore
  6.      Copyright (c) 1993, 1994 by George McCoy.  All rights reserved.
  7.                       SCANTUNE USER MANUAL                  Page 1
  8.                             TABLE OF CONTENTS:
  9.  
  10. ScnBRAND:.......  3
  11. WHAT IS SCANTUNE?.......  3
  12. SCANTUNE USERS LICENSE AGREEMENT:.......  4
  13. WARRANTY DISCLAIMER:.......  4
  14. TUTORIAL:.......  6
  15. ON-LINE HELP:.......  6
  16. GETTING STARTED:.......  6
  17. STARTING SCANTUNE:.......  7
  18. CURSOR MOVEMENT KEYS INSIDE THE SCANTUNE MENU:.......  7
  19. THE SCANTUNE MENU:.......  7
  20. CURSOR MOVEMENT KEYS INSIDE THE PROOFREADER:.......  8
  21. CONTINUOUS READ MODE:.......  9
  22. REFRESH SCREEN:.......  9
  23. PROOFREAD THE DOCUMENT:.......  10
  24. COMMAND FUNCTIONS INSIDE THE PROOFREADER:.......  10
  25. CLEAN UP SCANNER ERRORS:.......  15
  26. LEARN MODE:.......  15
  27. SPELLCHECKER:.......  17
  28. BLANK LINES REMOVED:.......  20
  29. STRIP UNNECESSARY LEADING SPACES:.......  20
  30. INDENT PARAGRAPHS 5 SPACES:.......  20
  31. TWO SPACES AFTER SENTENCES:.......  20
  32. RIGHT MARGIN FOR WORD WRAP:.......  20
  33. WORDWRAP TEXT:.......  20
  34. MACROS:.......  21
  35. MACRO ENTRIES:.......  21
  36. EDIT LOAD/CREATE DELETE OPTIMIZE QUIT:.......  22
  37. LOAD/CREATE MACROS:.......  23
  38. DELETING MACROS:.......  23
  39. OPTIMIZE MACROS:.......  23
  40. CREATING MACROS WITH A TEXT EDITOR:.......  24
  41. NON TEXT CHARACTERS REMOVED:.......  24
  42. DECOLUMNIZE TEXT:.......  24
  43. LOG CORRECTIONS:.......  25
  44. MARK ALL OPERATIONS:.......  25
  45. MARK STANDARD OPERATIONS:.......  25
  46. UNMARK ALL OPERATIONS:.......  25
  47. EXECUTE MARKED OPERATIONS:.......  25
  48. ALARM:.......  25
  49. QUIT TO DOS:.......  26
  50. SCANTUNE FROM THE COMMAND LINE:.......  26
  51. SCANTUNE FROM A BATCH FILE:.......  26
  52. USAGE TIPS:.......  28
  53. THE BLOCPARA MACRO:.......  29
  54. THE PARA MACRO:.......  30
  55. FOR YOUR INFORMATION:.......  30
  56. TECHNICAL INFORMATION:.......  30
  57. SAMPLE MACROS:.......  32
  58. OB.stm MACROS:.......  33
  59. TECHNICAL SUPPORT:.......  33
  60.                          SCANTU NE USER MANUAL                    Page 2
  61.                                 scnbrand:
  62.                                      
  63.      In order to remove the demonstration version of the ScanTune
  64. screen, type scnbrand and hit enter.  This program will brand the copy of
  65. ScanTune with your name and your registration number.  NOTE:  Always
  66. make a backup copy of all programs in the event you somehow damage or
  67. delete it.  Bang Bang.
  68.  
  69.                             WHAT IS SCANTUNE?
  70.                                      
  71.      ScanTune is a utility for cleaning up corrupted text files produced
  72. by OCR systems.
  73.      That's the simple definition.  Bang Bang.
  74.      To elaborate, ScanTune is a macro utility that cleans up scanner
  75. errors, removes blank lines, strips unnecessary leading spaces, indents
  76. paragraphs five spaces, retains two spaces after sentences, word wraps
  77. text, allows the right margin to be modified, retains a log of
  78. corrections made during specific operations, decolumnizes text, allows
  79. selected operations to be performed inside of "blocked text" and if that
  80. isn't enough, ScanTune has a built-in Spellchecker and Learn mode.
  81.      As an additional feature, ScanTune also allows the removal of
  82. nonstandard text characters to be removed from word processors that
  83. imbed their own code such as Word Perfect files, thus making them
  84. readable with ScanTune and Study (ScanTune's companion.)
  85.      But wait!!  The heart and sole of the ScanTune program is the
  86. intelligent mode which keeps track of OCR errors and their corrections.
  87. This is accomplished with various editable (e d i t a b l e) macros.  By
  88. continually adding corrections to the various macro files, ScanTune will
  89. make more and more corrections automatically, without your intervention.
  90. This means that as ScanTune gains experience with your system, the
  91. amount of editing you have to do in order to get good, readable text
  92. becomes less and less.
  93.      With the "Learn Mode" feature ScanTune goes through your document,
  94. macro files and the Spell Checker and builds a list of words it doesn't
  95. recognize.  When it's completed, based upon the speed of your machine,
  96. ScanTune provides you with options to make the OCR file more readable.
  97.      ScanTune can even be operated from a batch file or from the command
  98. line.
  99.                       SCANTUNE USER MANUAL                  Page 3
  100.                     SCANTUNE USERS LICENSE AGREEMENT:
  101.                                      
  102.      ScanTune is distributed as a demonstration version.  ONLY 50k of an
  103. OCR file can be manipulated until the program is registered where upon
  104. the size of the file is unlimited.  See the last screen of the ScanTune
  105. program for details.  As an introductory offer, GLM Enterprises is
  106. offering both ScanTune and its companion Study for the low price of
  107. $100.00.  This price is subject to change without notice.  Bang Bang.
  108.      If ScanTune is not what you've been looking for, simply delete the
  109. program from your computer and thank you for trying ScanTune.
  110.      If on the other hand, you decide to register ScanTune you are
  111. granted a limited single user license.  You are permitted to use
  112. ScanTune on any computer that you're working on.  If others use the
  113. computer they must register ScanTune.  You can make as many copies as
  114. you need as long as you are making them for your own needs.
  115.      Upon registration you will be entitled to technical support.  See
  116. the end of this document for details.
  117.      If you want a friend to try out ScanTune please give them the
  118. demonstration version.  Remember, your name and license number are in
  119. the opening screen so passing around your licensed copy will also pass
  120. around your name.
  121.      Because we have marketed ScanTune at a fraction of its worth we're
  122. sure all will be able to afford their own copy.
  123.      If you continue to use ScanTune, you agree to the terms set forth
  124. in this agreement.
  125.      If you are interested in a sight license please contact GLM
  126. Enterprises for details.  That information is located at the end of this
  127. documentation.
  128.      GLM Enterprises reserves the right to terminate any license at any
  129. time for violating any aspect of this license agreement.
  130.      Any attempt to reverse engineer, decompile or disassemble ScanTune
  131. is forbidden and violates copyright laws.
  132.                           WARRANTY DISCLAIMER:
  133.                                      
  134.      GLM Enterprises provides the ScanTune utility as is and without any
  135. warranty.  To the extent permitted under applicable law, GLM Enterprises
  136. disclaims all warranties, express or implied.  Specifically, GLM
  137. Enterprises makes no representation or warranty that the software is fit
  138. for any particular purpose.
  139.      GLM Enterprises shall not be liable for any damages resulting from
  140. the use of this software, including but not limited to, loss of profit,
  141. data or use of the software, or special, incidental or consequential
  142. damages or other similar claims, even if GLM Enterprises has been
  143. specifically advised of the possibility of such damages.
  144.                       SCANTUNE USER MANUAL                  Page 4
  145.      Some states do not allow the exclusion of incidental or
  146. consequential damages, so the foregoing limitation may not apply to you.
  147.      GLM Enterprises believes the information in this publication is
  148. accurate as of its publication date.  This information is subject to
  149. change at any time without notice.
  150.                       SCANTUNE USER MANUAL                  Page 5
  151.                                 TUTORIAL:
  152.                                      
  153.      For those individuals who prefer tutorials, check out
  154. "Tutorial.doc" on the distribution diskette.  It is a step by step
  155. tutorial to get you started quickly in the use of ScanTune.
  156.                               ON-LINE HELP:
  157.                                      
  158.      A unique feature has been implemented for ScanTune.  Like many
  159. other programs, help is available from anywhere within the program.  By
  160. hitting F1, a pop-up screen will appear displaying the information
  161. pertaining to that particular feature.  But, by hitting alt-F1, you can
  162. re-write the help information to your liking.  The alt-F1 is a mini-text
  163. editor.  All of the standard editing keys are available.  Over-strike
  164. mode is active upon entry.  To re-write the entire text help screen, hit
  165. pgup and begin typing.  To save your new help file and escape from the
  166. mini-text editor hit ctrl-w.  You are back at the exact spot you were
  167. before entering help.  NOTE: If you decide to re-write the help files,
  168. make sure that you save them when you upgrade to a new version of
  169. ScanTune.  Bang Bang.
  170.                             GETTING STARTED:
  171.                                      
  172.      First, double check to ensure that the following files are located
  173. on your distribution diskette:
  174. ScanTune.exe
  175. SCTN.dbt
  176. SCTN.hlp
  177. SCTNhelp.hlp
  178. SCdict.spl
  179. ScanTune.man
  180. Accent.stm
  181. b2h.stm
  182. Blocpara.stm
  183. Default.stm
  184. Ob.stm
  185. Para.stm
  186. Tutorial.raw
  187. Tutorial.doc
  188.                          SCANTUNE USER MANUAL                    Page 6
  189.      Once you have determined that the files exist do the following:
  190. 1.  Copy the contents of the distribution diskette to any location you
  191. choose and unzip it.  It doesn't make any difference to ScanTune where
  192. it is located.  However, if the location you choose is not in your path
  193. statement as reflected in your autoexec.bat file, you'll have to correct
  194. it.  NOTE: All associated program files must be located in the same
  195. directory in order for ScanTune to work properly.
  196.  
  197.                            STARTING SCANTUNE:
  198.                                      
  199.      Now that the program files are ready, you need an OCR text file to
  200. work on.  We recommend that you rename the OCR file with a .txt
  201. extension until you become familiar with the various extensions ScanTune
  202. uses.  NOTE: Do not start a session with a .org extension.  Why?
  203. Because whatever filename.ext you start with, ScanTune will copy it and
  204. rename it with a .org extension.  This was done to keep you from loosing
  205. or destroying the original file that has taken valuable time to scan.
  206. ScanTune will then use the filename.ext you chose to begin.  When you
  207. exit ScanTune, a copy of the file just completed is copied and renamed
  208. filename.bak so that you can always go back one step in case of a
  209. problem.  Once you have renamed the OCR file using the .txt extension,
  210. and you're at the command line, type:
  211. ScanTune filename.txt and hit enter.  ScanTune will then display the
  212. main menu.
  213. Before we get into ScanTune's menu, you should be aware of various
  214. cursor movement keys.  They are as follows:
  215.  
  216.              CURSOR MOVEMENT KEYS INSIDE THE SCANTUNE MENU:
  217.                                      
  218. Up and down arrows move up and down one line at a time.
  219. Pgup and pgdn move up and down one screen at a time.
  220. Ctrl-home highlights the first menu item on the screen.
  221. Ctrl-end highlights the last menu item on the screen.
  222. Ctrl-pgup puts cursor at first menu option.
  223. Ctrl-pgdn puts cursor at last menu option.
  224. Escape quits the ScanTune program and returns to DOS.
  225.  
  226.                            THE SCANTUNE MENU:
  227.                                      
  228.      The ScanTune menu has two selective modes.  One is immediate and is
  229. activated upon selection.  It has a star (*) to the right of the item
  230. indicating that the selection is immediate.  The other is the "marked"
  231. mode.  When you first select a marked option it is toggled from "no" to
  232. "yes".  Selecting the option again changes it back to "no".  For your
  233. convenience, after an option has been selected, the next menu item is
  234.                          SCANTUNE USER MANUAL                    Page 7
  235. automatically highlighted.  To skip a function hit down arrow.  Nothing
  236. will happen until the execute marked operation is selected.
  237.      The menu arrangement has been designed for optimum use and even
  238. though it appears illogical, its not.  See for yourself:
  239. Proofread a document (*)
  240. Cleanup scanner errors no
  241. Learn Mode (*)
  242. Spell Check the Document (*)
  243. Blank lines removed no
  244. Strip unnecessary leading spaces no
  245. Indent paragraphs five spaces no
  246. Two spaces after sentences no
  247. Right margin forward wrap 72 *
  248. Word wrap text no
  249. Macros *
  250. Non text characters removed no
  251. Decolumnize text no
  252. Log corrections no
  253. Mark all operations *
  254. Mark standard operations *
  255. Unmark all operations *
  256. Execute marked operations *
  257. Alarm Off
  258. Quit to dos *
  259.      It's pretty straight forward.  To navigate the menu highlight an
  260. item by arrowing to it or by typing its first letter.  In the case of
  261. items that have the same beginning letter just type the letter again
  262. until the option you want is highlighted.  Select or toggle the
  263. highlighted item by hitting enter.
  264.  
  265.               CURSOR MOVEMENT KEYS INSIDE THE PROOFREADER:
  266.                                      
  267.                          SCANTUNE USER MANUAL                    Page 8
  268. Up arrow moves the cursor to the previous line of text.
  269. Down arrow moves the cursor to the next line of text.
  270. Right arrow moves the cursor to the right one position.
  271. Left arrow moves the cursor to the left one position.
  272. Home moves the cursor to the beginning of the line.
  273. End moves the cursor to the end of the line.
  274. Pgup moves the cursor to the previous screen of text.
  275. Pgdn moves the cursor to the next screen of text.
  276. Ctrl-pgup moves the cursor to the beginning of the file.
  277. Ctrl-pgdn moves the cursor to the end of the file.
  278. Ctrl-right arrow moves the cursor to the beginning of the next word.
  279. Ctrl-left arrow moves the cursor to the beginning of the previous word.
  280. Ctrl-home moves the cursor to the top left corner of the screen.
  281. Ctrl-end moves the cursor to the bottom right corner of the screen.
  282.  
  283.                           CONTINUOUS READ MODE:
  284.                                      
  285.      Continuous read is where your text will automatically scroll
  286. forward.  You can continuously display text on the screen by using the
  287. space bar.  The rate at which the text moves up the screen can be
  288. adjusted by using the left and right arrow keys.  You may hit any key to
  289. stop continuous reading and return to proofread mode.
  290.      To use this feature, follow these steps:
  291. 1.  It is assumed that you have started ScanTune as outlined above and
  292. have entered the Proofread mode.
  293. 2.  Hit the space bar to begin continuous reading.  The text will begin
  294. to scroll slowly up the screen allowing you to sit back and listen or
  295. watch for ocr errors.
  296. 3.  Use the left and right arrows to adjust the scroll rate.  The left
  297. arrow slows down the scrolling of the text while the right arrow speeds
  298. it up.
  299. 4.  To stop reading, hit any key and you will be returned to proofread
  300. mode.
  301.  
  302.                              REFRESH SCREEN:
  303.                                      
  304.                          SCANTUNE USER MANUAL                    Page 9
  305.      There is a refresh command for voice synthesizer users who want
  306. immediate access to the screen.  These commands are a second way to
  307. access the screen within ScanTune.
  308.      Since these commands are unique and created for a specific type of
  309. user, a prefix key is used to access them.  The prefix key is Slash (/).
  310. If you hit the slash key and any letter from a through x, the
  311. corresponding line will be redisplayed and your cursor will be moved to
  312. that line.  Slash (/) left arrow and slash (/) right arrow work like
  313. ctrl-left arrow and ctrl-right arrow, in that they move to the previous
  314. word and next word respectively.
  315.      The following slash commands are also available: /Y = Re-display
  316. the last status line message.  /Z = repaints the entire screen via voice
  317. synthesis.
  318.      NOTE: The slash (/) key is not held down while other keys are being
  319. hit.  It is a prefix key only.
  320.  
  321.                          PROOFREAD THE DOCUMENT:
  322.                                      
  323.      Finally we're ready.  To start the proofreader highlight the
  324. proofread the document * menu option and hit enter.  Your document's
  325. first screen of text is ready and waiting.  NOTE: Some voice
  326. synthesizers will start reading the screen automatically before you're
  327. even ready.  To stop this, see your voice synthesizer manual for
  328. instructions.  In many cases hitting the alt key will stop the reading.
  329.      Before you start proofreading, you should note that at your
  330. fingertips you have numerous command functions that allow you to make
  331. corrections to the loaded OCR file.  They are:
  332.  
  333.                 COMMAND FUNCTIONS INSIDE THE PROOFREADER:
  334.                                      
  335. A = Search and replace.  When the letter "A" is hit, ScanTune will
  336. prompt: enter search string.  Type the exact characters you want changed
  337. or eliminated and hit enter.  ScanTune will prompt: enter replacement
  338. string for ... (the word or phrase you just typed in).  Type in the
  339. characters with which you want to replace the search string and hit
  340. enter.  ScanTune will prompt: all occurrences, words only cancel entry.
  341. NOTE: If "A" is chosen, the replacement will be made every time the
  342. error is encountered during the cleanup process.  If "W" is chosen the
  343. correction will be made only if the error is surrounded by spaces,
  344. punctuation marks or appears at the beginning or end of a line.  Cancel
  345. entry will return you to the Proofreader.  After you have made your
  346. selection, ScanTune will prompt with: prompt before correcting y/n.  By
  347. selecting "y" ScanTune will prompt you about the correction during the
  348. Cleanup process which will be discussed later.  By selecting "n"
  349. ScanTune will make the correction automatically during the cleanup
  350. process.  Make your selection and ScanTune will prompt: Temporary,
  351. Universal, both cancel entry.  NOTE: Temporary and universal are macro
  352. files.  One macro, as cited in the examples above, is part of a macro
  353. file.  Each file can hold many macros.  For the time being consider the
  354. two main macro files, temporary and universal.  The temporary macro file
  355.                          SCANTUNE USER MANUAL                   Page 10
  356. is where you should keep those errors and corrections that are
  357. infrequent and pertain to that particular OCR file.  The universal macro
  358. file is named Default.stm and is where frequently occurring errors and
  359. corrections produced by the OCR system are saved.  More about temporary
  360. and universal macro files later.  Select an option by typing the letter
  361. of your choice (remembering that the "c" will cancel the entry.)  After
  362. making your selection, you will be returned to the proofreader.  The
  363. correction will be made when you elect to run the Cleanup process.
  364. Period (.) plus letter toggles menu options on and off.  This feature
  365. allows you to toggle a menu item from the Proofread keyboard without
  366. having to flip back and forth between the proofreader and the main menu.
  367. You can enter either an upper or lower case letter, if it is preceded by
  368. a period (.).  The valid letters are:
  369.  .A = All options
  370.  .B = Blank lines removed
  371.  .C = Cleanup scanner errors
  372.  .D = Decolumnize
  373.  .I = Indent paragraph five spaces
  374.  .L = Log corrections
  375.  .M = Mark standard operations
  376.  .N = Nontext characters removed
  377.  .S = Strip leading spaces
  378.  .T = Two spaces after sentences
  379.  .U = Unmark all operations
  380. and
  381.  .W = Word wrap.
  382.      To execute the options you have selected from the keyboard, you
  383. must hit escape and return to the ScanTune menu before executing the
  384. marked operations.  NOTE: These options are available from the command
  385. line and from batch files, but instead of a period (.) you must use the
  386. slash (/).  If you type "e" from the Proofreader keyboard, you will be
  387. automatically placed into the editor for macros.  And, you're not ready
  388. for that yet.  See Macros for details.  The Spellchecker is not
  389. available from the keyboard while in proofread mode.  It can only be
  390. accessed from the menu; the command line, or from a batch file.
  391.      B = Search backward in your file for any non case sensitive word or
  392. phrase.  When you type "B", you will be prompted: type backward search
  393. phrase or escape to exit.  At this point, ScanTune is waiting for you to
  394.                          SCANTUNE USER MANUAL                   Page 11
  395. enter the information you would like to search for.  Type in your search
  396. phrase and hit enter.  If your search is found, the found phrase will be
  397. highlighted on the top line of your screen and the rest of your screen
  398. will be filled with text.  If the text is not found, a bell will sound
  399. and a message to that effect will be displayed before you are returned
  400. to where your search was initiated.
  401.      Shift-B = Case sensitive backward search.  Whatever you type in is
  402. what ScanTune will search for.
  403.      ALT-B = Continue same backward search pattern.  If the previous
  404. search was case sensitive, it will be continued as a case sensitive
  405. search.  The same applies for non case sensitive searches.  This key
  406. function will automatically search for the word or phrase you entered
  407. the first time you initiated the search.
  408.      Colon (:) Inside the proofreader will display a file report which
  409. includes size of file in bytes, if there are any lines longer than 80
  410. characters, whether the file contains block style or indented paragraphs
  411. or if there are a large number of blank lines in a row within your file.
  412. This command helps you decide on which options to run to arrange the
  413. file the way you want it.
  414.      Semi-colon (;) inside the proofreader displays the percentage read,
  415. current files name and size.  It's a good way to know exactly where you
  416. are in the file.
  417.      E = Editor for macros.  By hitting "e" from the Proofread mode, you
  418. are placed inside the macro editor where changes can be made to all
  419. macros.
  420.      Alt-e = Proofread Mini-Editor.  By activating the Proofread
  421. Mini-Editor, you have the capability of making corrections to text in
  422. memory while in Proofread mode.  The keys that are available inside the
  423. Proofread Mini-Editor are: Ctrl-W = Exits and saves changes.  Ctrl-y =
  424. Delete current line.  Ctrl-t = Delete word right.  Ctrl-b = Reform
  425. paragraph.  Ctrl-v = Toggle insert mode.  NOTE: When the Proofread
  426. Mini-Editor is activated you are automatically in insert mode.  Escape =
  427. Return to original document and do not save corrections.
  428.      Enter = Add the current word the cursor is on to a macro file.  You
  429. will be prompted for a replacement string, as you were when using the
  430. "A" function.  Follow the prompts as outlined above and in the Macros
  431. section later in this manual.
  432.      Escape = Mark your place y n y.  If you select y, or hit the enter
  433. key which is the default, your position will be saved so that you can
  434. come back to it later.  If you hit n, ScanTune will prompt: remove place
  435. marker y n n.  NOTE: If you remove the place marker, ScanTune will be
  436. unable to locate that same position in the current document.
  437.      F = Search forward in your file for any non case sensitive word or
  438. phrase.  When you type F, you will be prompted: type forward search
  439. phrase or escape to exit.  At this point, ScanTune is waiting for you to
  440.                          SCANTUNE USER MANUAL                   Page 12
  441. enter the information you would like to search for.  Type in your search
  442. phrase and hit enter.  If your search is found, the found phrase will be
  443. highlighted on the top line of your screen and the rest of your screen
  444. will be filled with text.  If the text is not found, a bell will sound
  445. and a message to that effect will be displayed before you are returned
  446. to where your search was initiated.
  447.      Shift-F = Case sensitive forward search.  Whatever you type in is
  448. what ScanTune will search for.
  449.      ALT-F = Continue same forward search pattern.  If the previous
  450. search was case sensitive, it will be continued as a case sensitive
  451. search.  The same applies for non case sensitive searches.  This key
  452. function will automatically search for the word or phrase you entered
  453. the first time you initiated the search.
  454.      ALT-G = Delete block.  This key is only functional after you have
  455. marked a block of text with alt-l.  See alt-l for details.
  456.      Ctrl-g = returns you to the marked position when you entered
  457. proofread mode.
  458.      I = Move to first line of next indented paragraph and display text
  459. from that position.
  460.      SHIFT-I = Move to the first line of the previous indented paragraph
  461. and display text from that position.
  462.      TAB = Move to next block style paragraph (preceded by a blank line)
  463. and display text from that position.
  464.      SHIFT-TAB = Move to previous block style paragraph and display text
  465. from that position.
  466.      J = Jump to DOS.  NOTE: Remember, you have to type "Exit" from the
  467. DOS command line to return to ScanTune.
  468.      ALT-J = Joins two lines placing the cursor on the second line.
  469. Your cursor can be anywhere on the line when this function is activated.
  470. It will set an internal mark and put your cursor at the beginning of the
  471. next line.  The lines and any exact duplicate lines will be joined
  472. during the next cleanup operation.
  473.      L = Split current line in two.  Place your cursor on the last
  474. character of what you want to be the topmost of the two new lines before
  475. hitting l.  This line and all exact duplicate lines will be split during
  476. next cleanup.
  477.      ALT-L = Sets marks for delete block, move block and allows user
  478. selected options to be performed on that block.  Put your cursor on the
  479. character where you want the mark to begin.  Hit alt-l.  Move the cursor
  480. to the end of the block placing your cursor on the last character you
  481. want marked.  Hit alt-l again.  The block is marked.  You can delete the
  482. block with alt-g, move it with alt-m or you can return to the ScanTune
  483. menu and select an option to be performed within the marked block.
  484.                       SCANTUNE USER MANUAL                 Page 13
  485.      CTRL-L = Deletes line and all existing lines that are exact
  486. duplicates.  Put your cursor anywhere on the line you want deleted.
  487. Remember that it will delete ALL lines that are exact duplicates, so be
  488. careful.
  489.      M = Marks text string.  To mark a few words or a phrase that is not
  490. quite correct, put your cursor on the first character you want marked
  491. and hit "m".  Move your cursor to the last character you want to mark
  492. and hit the letter "M" again.  The marked text becomes the search
  493. string.  You are prompted for a replacement string.  Follow the prompts
  494. as outlined elsewhere.  NOTE: You can cross line boundaries with this
  495. feature.
  496.      ALT-M = Moves a block of text.  Mark a block of text with the alt-l
  497. key as described above.  Place the cursor on the character to the left
  498. of where you want the block to be moved and hit alt-m.  The text is
  499. deleted from its original position and inserted to the right of the
  500. current cursor position.
  501.      P= Move to next page, if a form feed (ctrl-l) is present.  This
  502. function will not work if a form feed (ctrl-l) is not present.
  503.      SHIFT-P= Move to the previous page that is marked by a form feed
  504. character (carrot l).
  505.      ALT-P = This command will ask you for the page number you want to
  506. go to.  Type in 26 for example.  You will be taken to the 26th page with
  507. your cursor on the top line of that page.  When using this command, you
  508. can precede the page number with a plus (+) or dash (-).  Plus (+) will
  509. take you forward from your current position the number of pages you
  510. specify.  Dash (-) will take you backward from your current position the
  511. number of pages you specify.
  512.      R = Repeat the word that the cursor is on.  To hear the word
  513. spelled hit "r" again.  To hear the word spelled phonetically hit it a
  514. third time.  NOTE: There is a two second delay built into this feature
  515. so the spelling of a suspected word can be more understandable.  If the
  516. delay is too long for you just hit any key.
  517.      ALT-U = Unmark text or block.  This command erases the marks made
  518. with the alt-l key without doing anything to the blocked text.  This key
  519. is used when you have marked a block of text and then decide you don't
  520. really want it marked after all.
  521.      ALT-X = quit program and exit to dos.  ScanTune will prompt: mark
  522. your place y n y.  If you select y, or hit the enter key which is the
  523. default, your position will be saved.  If you hit n, ScanTune will
  524. prompt: remove place marker y n n.  NOTE: If you remove the place
  525. marker, ScanTune will be unable to locate that same position in the
  526. current document.
  527.      NOTE: When you exit ScanTune and answer the prompts correctly, your
  528. corrections and any modifications you have made to the current file will
  529. be retained in the temporary or universal macro file as selected.
  530.                       SCANTUNE USER MANUAL                 Page 14
  531.                         CLEAN UP SCANNER ERRORS:
  532.                                      
  533.      This is a "marked" option.  It is executed when the "e" execute all
  534. marked operations option is selected.  It is the first option performed
  535. when "execute" is selected.  The clean up option searches the source
  536. file for all errors in the currently loaded macro files and corrects
  537. them according to their execution instructions.  If you have some
  538. prompted corrections in the macro files, you will need to tend the
  539. process and answer the prompts.  Your prompts are:
  540. y n v r c q
  541.      Which means: "Y" = yes, make the correction.  "N" = no, don't make
  542. the correction.  "v" = vary context character length (from current 78 to
  543. any number from 1 to 255).  "R" = make the remainder of the changes
  544. everywhere from current position to the end of the file.  "c" = allow
  545. change to be entered manually.  "Q" = don't make the change or ask me
  546. about it anymore this cleaning session.  These are hot keys.  See macros
  547. for more details.  Otherwise the process is automatic.  As the text is
  548. corrected, ScanTune reports the percentage and the number of
  549. corrections.  The number of corrections is incremental and is not the
  550. number of corrections for that percentage of the file that has been
  551. cleaned.  When ScanTune is finished making corrections and changes, it
  552. will prompt: flush temporary macro file (y/n).  If you hit "Y", all
  553. entries in the temporary macro file will be deleted.  If you hit any
  554. other key the temporary macro file is retained.  NOTE: If you retain the
  555. temporary file, be sure to delete it when you have finished with that
  556. named OCR file.  The temporary macro file is the name of the OCR file
  557. with the .stm extension.  For best results, place only those entries
  558. that you want permanently saved into the universal macro file.  See
  559. macros for more details.
  560.      For fastest results during cleanup use macro entries that correct
  561. errors and/or format with the least number of changes possible.
  562.      A feature has been included that will allow the cleaning process to
  563. begin at the point where you last exited proofread mode.  This is a
  564. handy feature since portions of a book or manual are formatted
  565. differently than the body of the text.  When you select the cleanup
  566. scanner error function, ScanTune will prompt: begin cleaning at place
  567. marker (y /n).  If you hit "Y", cleanup begins at the place marker.  If
  568. you hit "n" cleanup begins at the beginning of the file.  The prompt is:
  569. mark your place y n y.  NOTE: The Escape key will stop the cleanup
  570. process and prompt: Save what we've all ready done y/n.  If you select
  571. "y" ScanTune will save the cleaned portion and combine it with the
  572. uncleaned portion for a later cleanup session.  If you select "n" that
  573. particular session is aborted and nothing is saved.
  574.      NOTE: You can activate log corrections during the cleanup operation
  575. to see exactly what ScanTune is doing.  This could be useful for many
  576. things.
  577.  
  578.                                LEARN MODE:
  579.                          SCANTUNE USER MANUAL                   Page 15
  580.                                      
  581.      To start the Learn mode highlight Learn Mode (*) at the main menu
  582. and hit enter.  Your document is al ready loaded.  The ScanTune program
  583. will load the macro files you have selected (see macros for details), or
  584. default.stm at the very least and the Spell Checker.  ScanTune will
  585. prompt: Creating Learning environment.  Please standby.  At this point
  586. ScanTune is creating a .lrn file which is unreadable with a text editor,
  587. loading the macro files you have selected or the default.stm at the very
  588. least and the Spell Checker.  ScanTune will prompt: Analyzing text.  The
  589. process is time consuming, so be prepared to do something else after you
  590. select this option.  You could run this option at night while you're
  591. sleeping.  It all depends on the length of the document and the speed of
  592. your machine.  Using this combination, ScanTune is creating a list of
  593. words, found in your document, that are unrecognizable as compared with
  594. your macro files and the Spell Checker.  The list shows: number of
  595. exceptions in number listings.  Accuracy number.number (percent).  Under
  596. that ScanTune lists the words found and the number of times they occur
  597. in the document.  ScanTune also shows: Highlight item with arrows.
  598. Enter selects, Escape exits.  At this point you have the option of
  599. "ignore, view/correct, dictionary, macro or quit.
  600. Ignore = Ignore this word and clear it from the list.  It could be a
  601. proper name and you might not want it added to the dictionary.  The list
  602. reappears without the word you ignored.  The next item moves to the top
  603. of the list and is highlighted.
  604. View/Correct = By selecting this option ScanTune will move to the first
  605. location, in the document, where the word is found.  You are now in the
  606. Proofreader.  The cursor is placed on the first occurrence of the
  607. exception and all command functions inside the proofreader are again
  608. available.  For example: By hitting "e" you are placed inside the macro
  609. editor where changes can be made to all macros.  You can also hit alt-f
  610. and move forward to the next occurrence of the highlighted word.  We
  611. chose to place you into the Proofread mode so that you could get
  612. contextual clues on things that are not obvious in and of themselves as
  613. reflected on the exception list.  You can also enter the editor, at this
  614. point, by hitting alt-e where you can make editing changes using the
  615. following cursor movement commands:  Ctrl-W = Exits and saves changes.
  616. Ctrl-y = Delete current line.  Ctrl-t = Delete word right.  Ctrl-b =
  617. Reform paragraph.  Ctrl-v = Toggle insert mode.  NOTE: When the
  618. Mini-Editor is activated you are automatically in insert mode.  When you
  619. hit Ctrl-W or the escape key you are placed back into the proofreader.
  620. Hit escape again and choose Learn mode to get back to the list.
  621. Dictionary = By selecting this option, you are indicating to ScanTune
  622. that you want the word, found on the list, to be added to the
  623. dictionary.
  624. Macro = By selecting this option you can hit the enter key and the word
  625. will be added to the search string (see Macros for details.)  ScanTune
  626. will then prompt: enter replacement string.  Type in your replacement
  627. and ScanTune will prompt:  all occurrences or words only.  Make your
  628. selection and ScanTune will prompt: prompt before correcting y/n.
  629. Again, make your selection.  ScanTune will prompt: Temporary universal
  630.                          SCANTUNE USER MANUAL                   Page 16
  631. both cancel.  See macros elsewhere for details.)  NOTE:  The "both"
  632. option has been added here in the event you might want to add the macro
  633. to both files thereby making the word appear on the next cleanup in your
  634. default.stm macro file.  To get back to the list hit escape.
  635. Quit = Takes you back to the main menu.
  636. NOTE: A feature has been added here that will spell the word the cursor
  637. is resting on.  To access the word spelling function hit alt-w and the
  638. word will be spelled.  Alt-I will ignore the word, alt-d will add the
  639. word to the dictionary, alt-m places you in the macros function while
  640. alt-q quits back to the main menu.  NOTE:  If you highlight an item and
  641. use the alt-xx hot keys, you don't have to hit the enter key or deal
  642. with the menu bar.
  643.  
  644.                               SPELLCHECKER:
  645.                                      
  646.      To start Spellchecker highlight the Spellchecker * menu option and
  647. hit enter.  This is an immediate option.  Spellchecker will prompt:
  648. enter minimum word length to be checked.  The default is three.  By
  649. selecting three, you are telling Spellchecker not to bother with
  650. checking one and two lettered words.  You can change this at your
  651. discretion.  Select the number you wish and hit enter, or hit enter to
  652. accept the default.  NOTE: Spellchecker does not check for numbers!
  653. Spellchecker will then prompt: loading dictionary and macro files,
  654. please standby.  NOTE: the first time that the Spellchecker is used, It
  655. will create a file called scdict.ntx.  This is the index for the
  656. spelling dictionary and will take some time, depending on the speed of
  657. your machine.  When Spellchecker is ready, it will report:
  658. Spellchecking.
  659.      When Spellchecker finds a suspected word, it has all ready checked
  660. the dictionary and the macro files, so it's up to you on what you want
  661. to do.  The suspected word will be displayed on the first line of the
  662. screen, in the upper left-hand corner.
  663.      You have several options at this point.  Consider:
  664. Add word to dictionary
  665. Add word to macro file
  666. Suggested spellings
  667. Correct word manually
  668. Ignore word
  669. Mark word
  670. Repeat word
  671. Display sentence
  672.                          SCANTUNE USER MANUAL                   Page 17
  673. Prompts off
  674. Maintain dictionary
  675. Unattend no
  676. Log to disk yes
  677. Vary  Context Length
  678. Quit the spellchecker
  679.      To select a menu item hit enter on the highlighted option or arrow
  680. down to your selection.  NOTE: The corresponding highlighted lettered
  681. option is available from the keyboard, but the enter key has to also be
  682. hit to activate that selection.  The only exception to this is the
  683. letters "d", "I", "r" and "s".  See below for details.
  684.      By selecting add words to dictionary, Spellchecker automatically
  685. appends that word to the currently loaded dictionary.
  686.      By selecting add word to macro file, Spellchecker will prompt:
  687. enter replacement string for....  (See entering macros for more
  688. details).  Type in your replacement string and follow the prompts.
  689.      By selecting suggested spelling, ScanTune displays a list of words.
  690. Use the up and down arrow keys to select the word you want.  If you
  691. don't find the word you are looking for select "none of the above and
  692. choose suggested spellings again.  More words will appear.  If you find
  693. the word you want, select it by hitting the enter key.  That word will
  694. replace the word at your cursor.
  695.      By selecting correct word manually, Spellchecker will prompt: enter
  696. correction or escape to exit.
  697.      By selecting Ignore word, Spellchecker ignores the word and returns
  698. to searching your document for the next suspected word.
  699.      By selecting mark word, Spellchecker places two (2) accent marks at
  700. the beginning of the word.  Later you can search for these characters in
  701. the Proofreader using the functions outlined elsewhere.
  702.      By selecting repeat word, Spellchecker will repeat the word.  By
  703. selecting repeat word for a second time, the word will be spelled.  By
  704. selecting repeat word for the third time, the word will be spelled
  705. phonetically.  A two second delay has been built into this feature so
  706. that the spelling of a suspected word can be more understandable.  If
  707. this delay is too long for you just hit any key.
  708.      By selecting display sentence, Spellchecker will repeat the
  709. sentence in which the suspected word was found.
  710.      By selecting the prompts option, Spellchecker will switch from
  711. announcing the word and the sentence to just announcing the word.  If
  712.                          SCANTUNE USER MANUAL                   Page 18
  713. you wish to switch back, just hit enter on this prompt and when the next
  714. suspected word is found the process will be reversed.  NOTE: When
  715. Spellchecker is first activated the default is off resulting in only the
  716. suspected word being spoken.
  717.      By selecting maintain dictionary, Spellchecker prompts:add delete
  718. quit.  You can either add a word from the keyboard or delete a word from
  719. the keyboard.  when you delete a word from the dictionary, relax and
  720. have a cup of coffee, or something.  ScanTune is deleting the word, but
  721. in the process has to rewrite the scdict.ntx file.
  722.      By selecting unattend mode, Spellchecker will announce the
  723. suspected word and place two accent marks in front of the word, so you
  724. can attend to them later.  NOTE: by turning on the log corrections
  725. option in the ScanTune menu or inside the Spellchecker, Spellchecker
  726. will place the suspected word in the ScanTune.log file, so that you can,
  727. at a later time, use the list to write correcting macros, prepare a list
  728. of words to be added to the dictionary, or whatever.  The sentence in
  729. which the suspected word was found will also be written just below the
  730. suspected word in the ScanTune.log file if you have prompts on.  NOTE:
  731. If you utilize the unattend mode, and are not creating a list with the
  732. log corrections option, you need to use the accent.stm macro to strip
  733. out the two accent marks that were placed there while you were away from
  734. your machine.  NOTE: This macro should be the only macro loaded when you
  735. are finished spellchecking your document, or at the very least should be
  736. the last macro loaded if run with other macros.  The alt-Rightbracket
  737. key is a toggle to either activate attend mode or to deactivate it.
  738. Your computer continues to Spellcheck the document.  In this way you can
  739. start a spelling session and type alt-Rightbracket and let the computer
  740. work while you do something else, and if you want a record kept, don't
  741. forget to turn log corrections on.  When you come back press
  742. alt-Rightbracket again and continue from the location the spellchecker
  743. is presently working.
  744.      By selecting log to disk, you can turn logging on here, instead of
  745. having to do so in ScanTune's main menu.  NOTE: The feature is available
  746. in both places for your convenience.
  747.      By selecting vary context length, ScanTune will prompt: enter
  748. minimum context length 78.  Currently there are 78 characters being
  749. displayed contextually, but you can change this all the way up to 255
  750. characters.  NOTE: This feature stays active with the number entered
  751. until changed or a new spelling session is begun.
  752.      By selecting quit, Spellchecker prompts: mark your place y n y.
  753. Answer "y" if you want to come back later and do more spellchecking from
  754. where you left off.  NOTE: after you have used the spellchecker on a
  755. file and answered this question, the next time, Spellchecker will prompt
  756. you at the beginning of the session on whether or not you want to start
  757. from the previous position.  ScanTune will save the corrected document
  758. and return you to the main menu.
  759.      NOTE:  The Escape key will stop the Spellchecker and prompt: Save
  760. what we've all ready done y/n.  If you select "y" ScanTune will save the
  761.                          SCANTUNE USER MANUAL                   Page 19
  762. corrected portion and combine it with the uncorrected portion for a
  763. later spellchecker session.  If you select "n" that particular session
  764. is aborted and nothing is saved.
  765.      When logging spellchecking activity, the phrase "suspected word"
  766. precedes the suspected word.
  767.  
  768.                           BLANK LINES REMOVED:
  769.                                      
  770.      When this option is turned on, all single blank lines are removed.
  771. Also, all groups of blank lines are deleted and replaced with a single
  772. blank line.  This option should only be run once on each file.  Running
  773. it twice or more will cause all blank lines to be removed.  This is a
  774. "marked" option.  To turn it on and off, highlight it and hit enter.  It
  775. runs when the "execute" (e) option is selected.
  776.  
  777.                     STRIP UNNECESSARY LEADING SPACES:
  778.                                      
  779.      The leading spaces stripper removes all leading spaces from all
  780. lines except for paragraph indentions.  Centered text becomes left
  781. justified.  This is a "marked" option.  To turn it on and off, highlight
  782. it and hit enter.  It runs when the "execute" (e) option is selected.
  783.  
  784.                        INDENT PARAGRAPHS 5 SPACES:
  785.                                      
  786.      The paragraph indenter makes sure every paragraph begins with 5
  787. spaces.  This is a "marked" option.  To turn it on and off, highlight it
  788. and hit enter.  It runs when the "execute" (e) option is selected.
  789.  
  790.                        TWO SPACES AFTER SENTENCES:
  791.                                      
  792.      The sentence option makes sure that every sentence is followed by
  793. two blank spaces and only one after a lettered initial.  It is useful
  794. for reading with voice synthesizers.  Many of them read better if there
  795. are two spaces after sentences.  This is a "marked" option.  To turn it
  796. on and off, highlight it and hit enter.  It runs when the "execute" (e)
  797. option is selected.
  798.  
  799.                        RIGHT MARGIN FOR WORD WRAP:
  800.                                      
  801.      Selecting this option allows you to enter a new right margin for
  802. word wrapping.  The new setting remains in effect until you exit the
  803. program or change it during a session.  The default is 72.  This is an
  804. immediate operation.  You are prompted for a new setting right after you
  805. select the option.  The margin can be changed to any number up to 255.
  806. We recommend that the default be used for best results with Study, the
  807. companion to the ScanTune utility.
  808.  
  809.                              WORDWRAP TEXT:
  810.                                      
  811.      The word wrapper insures that no line will be longer than the right
  812. margin.  It also "unsylablizes" words that are divided by a dash at the
  813. ends of lines.  At present, this is a "line wrap".  This means that it
  814. looks at every line, rather than an entire paragraph when it wraps.
  815.                          SCANTUNE USER MANUAL                   Page 20
  816. This causes some very short two or three-word lines.  We enabled this
  817. kind of wrapping because paragraph wrapping can recolumnize decolumnized
  818. text and do it in such a way that it can't be easily undone.  This is a
  819. "marked" option.  To turn it on and off, highlight it and hit enter.  It
  820. runs when the "execute" (e) option is selected.
  821.  
  822.                                  MACROS:
  823.                                      
  824.      What is a macro?
  825.      A macro is an instruction to the computer to perform repetitive
  826. corrections, such as: spelling, OCR errors and formatting commands.  In
  827. addition, macros may be used to execute a series of complex search and
  828. replace sequences.  A macro file contains numerous individual entries
  829. and each is called a macro.  An ScanTune macro possesses a special
  830. structure.
  831. 1.  A search string.  A letter, word or phrase.
  832. 2.  A delimiter.  A character marking the beginning or end of a unit of
  833. data.
  834. 3.  A replacement string.  A letter, word or phrase.
  835. 4.  Another delimiter.
  836. 5.  An execution instruction.
  837. 6.  A hard carriage return line feed pair.
  838.                              MACRO ENTRIES:
  839.                                      
  840.      You can add an entry to the temporary or currently loaded universal
  841. macro file from either the proofreader or the macro editor.  ScanTune
  842. will prompt: enter search string.  Type the exact characters you want
  843. changed or eliminated and hit enter.  ScanTune will prompt: enter
  844. replacement string.  Type in the characters with which you want to
  845. replace the search string and hit enter.  If you want the replacement
  846. string empty hit enter.  ScanTune will prompt: "search string will be
  847. deleted everywhere!  Are you sure you want to do this (y/n).  If the
  848. answer is yes, ScanTune will prompt: all occurrences words only cancel
  849. entry.  If "A" is chosen, the replacement will be made every time the
  850. error is encountered during the cleanup process.   If "W" is chosen the
  851. correction will only be made if the error is surrounded by spaces,
  852. punctuation marks or appears at the beginning or end of a line.  Make
  853. your selection and ScanTune will prompt: prompt before correcting y n n.
  854. If you select "y" ScanTune will prompt before making the correction.  If
  855. you select "n" ScanTune will not make that correction.  ScanTune will
  856. then prompt: temporary universal both cancel entry.  Make your
  857. selection.
  858.      NOTE: During the cleanup process, when a prompted correction is
  859. displayed, you will be prompted: y n v r c q.  Which means: "Y" = yes,
  860. make the correction.  "N" = no, don't make the correction.  "v" = vary
  861.                          SCANTUNE USER MANUAL                   Page 21
  862. context character length (from current 78 to any number from 1 to 255).
  863. "R" = make the remainder of the changes everywhere from current position
  864. to the end of the file.  "c" = allow change to be entered manually.  "Q"
  865. = don't make the change or ask me about it anymore this cleaning
  866. session.  These are hot keys.
  867.      There are two types of macro files.  One is the Universal macro
  868. file.  It is called default.stm and is where you should keep errors and
  869. corrections obtained from various OCR files.  They can include spelling
  870. errors, and any other error that you want to keep on a permanent basis.
  871. For example.  Say your OCR exchanges the letter "b" for the letter "h"
  872. and you end up with bave, instead of have.  The default.stm would be the
  873. appropriate place for this correction.  The second type is the Temporary
  874. macro file.  It is titled the same as the document, but with a stm
  875. extension.  The file is in the same directory as the document to which
  876. it belongs.  This is where you should keep those errors and corrections
  877. that are unique to that particular OCR file.  These can also include
  878. spelling errors and any other correction you might want to make.
  879.      You can include high ASCII and control characters in your search
  880. and replacement strings.  To enter a control character, type a carrot
  881. shift-6 followed by the letter of the control character.  To insert a
  882. ctrl-l (ascii 12) in to a search or replacement string you would type:
  883. ^l.  Similarly, ctrl-a is ^a while ^z is ctrl-z.  If you want to search
  884. for characters with other ASCII values, type a carrot followed by a
  885. number representing the ASCII value of the character you want.  To enter
  886. the numeric value of the soft carriage return (ASCII 141), for example,
  887. you would type ^141.  If you need to search for or replace with a
  888. carrot, put two of them side by side.  The first one will be ignored and
  889. the second one will be retained in the string.  The search string and
  890. the replacement string are case sensitive.  So what you enter is what
  891. you get.
  892.      By choosing the "Macros" function at the menu, you will be shown:
  893.  
  894.                  EDIT LOAD/CREATE DELETE OPTIMIZE QUIT:
  895.                                      
  896.      To select the edit function, hit either the letter "E" or enter.
  897. ScanTune will prompt: Temporary universal quit.  Select the macro file
  898. to edit by typing "u", "t" or "q".  If you type "u" you will edit the
  899. currently loaded universal macro file.  If you choose "t", you will edit
  900. the current temporary macro file.
  901.      For this example, let's select universal.  Select universal by
  902. either hitting the letter "U" or enter.  ScanTune will prompt: loading
  903. macro file.  A list of the search strings contained in your selected
  904. macro file appears.  Select the entry to edit by arrowing down to it and
  905. hitting enter.  ScanTune will prompt: revise delete quit.  Select an
  906. option by typing "r", "d" or "q".  If you choose "r", you will be
  907. prompted for a new replacement string and execution instruction as you
  908. are in the proofreader.  See macro entries for a complete explanation.
  909. The entries list reappears.  If you choose "d", you will be asked if you
  910. are sure you want to delete the selected entry.  Hit "y" for yes and "n"
  911. for no.  The entries list reappears.  If you choose "q", the Macros menu
  912. reappears.
  913.                       SCANTUNE USER MANUAL                 Page 22
  914.  
  915.                            LOAD/CREATE MACROS:
  916.                                      
  917.      It is possible to load a macro file other than the default as the
  918. universal macro file.  This option will allow you to load multiple macro
  919. files for use when you next run cleanup.  It is used to combine special
  920. formatting tasks and error correction in one run of the cleanup process.
  921. For example, you could use it to run para.stm followed by default.stm.
  922. The various .stm files will be discussed later in this manual.  You can
  923. arrange macro files anyway you wish.  Arrow to load/create and hit
  924. enter.  At this point ScanTune will display a list of macro files as
  925. they appear inside the directory where ScanTune.exe is located.  The
  926. list will not include the .stm extension.  This should make it easier to
  927. understand.  Make your selection by arrowing down to it and hitting
  928. enter.  ScanTune will prompt: Adding filename.stm to the load list.  You
  929. can keep on making more selections adding to the list.  It's your
  930. choice.  NOTE: ScanTune processes the macro files from top to bottom in
  931. the load list, so make sure you have your macro files in the order you
  932. want them.  If you enter one by mistake, select it again and ScanTune
  933. will prompt: removing filename.stm from the load list.  The macro file
  934. is unloaded and all subsequent macro files are moved up one place in
  935. line.  To inform ScanTune that you are satisfied with the arrangement
  936. hit F10.  ScanTune will then report: writing new load list ... and
  937. repeat load create in case you changed your mind.  To return to the
  938. ScanTune menu hit escape.
  939.      To create a macro of your own, arrow down to *create and hit enter.
  940. You will be prompted to enter a name for the new macro file.  Choose a
  941. name with not more than eight characters and do not type the .stm
  942. extension.  A new macro file is created with the name you entered and it
  943. is loaded as the universal macro file.  ScanTune prompts: load/create.
  944. Your new macro file has been created, but there are no entries inside.
  945. It is empty.  To make entries into your new macro file arrow up to edit,
  946. hit enter and choose the universal macro file.  You will be prompted: do
  947. you want to add entries yes or no.  If you select "no" ScanTune will
  948. return to the menu.  If you choose "yes" ScanTune will prompt: enter
  949. search string.  Follow the same procedure as when you added entries from
  950. the proofreader.  See the section on macro entries for more details.
  951. When you are finished adding entries, hit enter when prompted to enter
  952. search string.  You will be returned to macros.
  953.  
  954.                             DELETING MACROS:
  955.                                      
  956.      To delete a macro file select the delete option from the Macros
  957. menu.  A list of macro files will appear.  Arrow down to the one you
  958. want to delete and hit enter.  ScanTune will prompt: delete macro file
  959. c:\pathfilename\macro file name (y/n).  Hit "Y" and hit enter to delete
  960. the macro.  The Macros menu reappears.  Be extremely careful on this
  961. one.  Once it has been deleted, it's gone!!
  962.  
  963.                             OPTIMIZE MACROS:
  964.                                      
  965.      This option has been added to check your macros for duplicates and
  966. for macros that do nothing.  Select Optimize from the menu and a list of
  967.                          SCANTUNE USER MANUAL                   Page 23
  968. macro files will be displayed.  Make your selection by moving up and
  969. down through the list with the up and down arrows.  To choose a macro
  970. file hit enter.  Optimize will check that macro file and make any
  971. changes according to internal rules of the macro editor.
  972.      A duplicate macro might look like this:
  973. ber|ber|A
  974.      As you can see this macro does absolutely nothing, but rack up
  975. changes during the cleanup process.  Since macros are sometimes
  976. difficult to read and since users like to create their own in text
  977. editors, this option is essential for the ScanTune program to function
  978. as designed.  Therefore it is a good idea to periodically optimize your
  979. macro files.
  980.  
  981.                    CREATING MACROS WITH A TEXT EDITOR:
  982.                                      
  983.      If you are intent on creating your own macros with an editor or
  984. word processor, make sure that it is a text base program and that it
  985. does not embed its own code.  ScanTune will not recognize it and it
  986. could create a problem you can't fix.  Follow the procedure outlined in
  987. "Technical Information" and remember that the delimiter cannot, I
  988. repeat, cannot be changed.  ScanTune will only recognize the bar (|)
  989. symbol!!  We recommend, however, that you manage macro files from the
  990. ScanTune program to avoid problems.
  991.  
  992.                       NON TEXT CHARACTERS REMOVED:
  993.                                      
  994.      The Nonstandard text option removes all characters with ascii
  995. values above 126 or below 32 except for carriage returns line feeds and
  996. form feeds.  It converts soft carriage returns (ascii 141), to carriage
  997. return/line feed pairs and it strips word perfect headers and codes
  998. making the output from a word perfect file readable by any text reader.
  999. This option runs rather slowly because it checks each byte of the entire
  1000. file.  Therefore, don't run it unless you're pretty sure you need it.
  1001. This is a "marked" option.  To turn it on and off, highlight it and hit
  1002. enter.  It runs when the "execute" (e) option is selected.
  1003.  
  1004.                             DECOLUMNIZE TEXT:
  1005.                                      
  1006.      The decolumnizer stacks adjacent columns from left to right with
  1007. the left hand column on top.  If your ocr software does decolumnization
  1008. to your satisfaction, you should go that route rather than use the
  1009. ScanTune decolumnizer.  The decolumnizer was designed for use with ocr
  1010. systems which do not decolumnize or do so erratically.  This is a
  1011. "marked" option.  To turn it on and off, highlight it or hit ".D" and
  1012. hit enter.  It runs when the "execute" (e) option is selected.
  1013.      The decolumnizer can even be used inside of blocked text.  See
  1014. alt-l on blocking text and executing marked operations.
  1015.      NOTE:  The Escape key will stop the decolumnizing process and
  1016. prompt: Save what we've all ready done y/n.  If you select "y" ScanTune
  1017.                          SCANTUNE USER MANUAL                   Page 24
  1018. will save the decolumnized portion and combine it with the
  1019. undecolumnized portion for a later decolumnizing session.  If you select
  1020. "n" that particular session is aborted and nothing is saved.
  1021.  
  1022.                             LOG CORRECTIONS:
  1023.                                      
  1024.      This is a "marked" option.  To turn it on and off, highlight it and
  1025. hit enter.  It only works with cleanup scanner errors, optimizing macros
  1026. and the Spellchecker.  It can be an extremely handy tool.  This feature
  1027. is also accessible from inside the Spellchecker.
  1028.  
  1029.                           MARK ALL OPERATIONS:
  1030.                                      
  1031.      This option turns on all formatting and cleaning options.  It is an
  1032. immediate function.  All operations will be run when the execute (E)
  1033. option is selected.
  1034.  
  1035.                         MARK STANDARD OPERATIONS:
  1036.                                      
  1037.      This operation turns on all formatting and cleaning options with
  1038. the exception of nonstandard text removal and decolumnization.  It is an
  1039. immediate option.  The marked operations will run when the execute (e)
  1040. option is selected.
  1041.  
  1042.                          UNMARK ALL OPERATIONS:
  1043.                                      
  1044.      This option turns off all formatting and cleaning options.  At the
  1045. moment, marks are not cleared after execution allowing you to perform
  1046. the same set of operations over and over again.  The unmark option is a
  1047. good one to keep in mind to clear everything and start with a clean
  1048. slate.  It is an immediate option.
  1049.  
  1050.                        EXECUTE MARKED OPERATIONS:
  1051.                                      
  1052.      This option executes all the cleaning and formatting options you
  1053. have turned on in the menu or in the proofreader using the period (.)
  1054. prefix or selected in the menu.
  1055.      This is also where, if you have marked a block of text using the
  1056. alt-l key (see alt-l above), ScanTune will prompt: A block of text has
  1057. been marked.  Operate on this block only y/n.  NOTE: If you answer "yes"
  1058. the options that you have selected will be performed inside the blocked
  1059. text only.  If you answer "no", ScanTune will prompt: Begin cleaning at
  1060. place marker y/n.  Make your selection.  NOTE: The blocks that were set
  1061. are still marked and can be unmarked with the alt-u, delete the block
  1062. with alt-g or can be moved with the alt-m function.  It's entirely up to
  1063. you.
  1064.  
  1065.                                  ALARM:
  1066.                                      
  1067.      This is a "marked" option.  To turn it on and off, highlight it and
  1068. hit enter.  If active an alarm will sound when ScanTune has finished any
  1069. process that you have selected while in the main menu.  It is especially
  1070. handy during cleanup, spellchecking and non-text character removal in
  1071.                          SCANTUNE USER MANUAL                   Page 25
  1072. that when the computer is normally silent, a slight clicking sound can
  1073. be heard.  NOTE: The decibel level of the alarm, at the end of the
  1074. program, is dependent upon your particular machine.  Therefore, if you
  1075. work at night and your significant other is a light sleeper beware!!
  1076.  
  1077.                               QUIT TO DOS:
  1078.                                      
  1079.      You can quit to dos by selecting this option or hitting escape.
  1080.  
  1081.                      SCANTUNE FROM THE COMMAND LINE:
  1082.                                      
  1083.      You can start ScanTune from the command line.  The menu is bypassed
  1084. when this is done, unless the /p switch is used.
  1085.      Syntax: ScanTune sourcefile macro file option switches.
  1086.      Sourcefile is the file you want to clean up.
  1087.      The macro file is the name of the macro file you want to be loaded
  1088. in place of the default macro file default.stm.  You do not have to type
  1089. the .stm extension.
  1090.      The optional switches are those preceded by the slash (/) and the
  1091. letter for that option.  Slashes are used on the command line and in
  1092. batch files even though inside the proofreader it is done with a period.
  1093. NOTE: There can be no spaces between the options.  Example: /c/b/t
  1094.      The /u switch is unique in that it will run the Spellchecker with
  1095. prompting on, log corrections on and in the unattend mode.  In this way
  1096. you can run the Spellchecker on a file while you're having dinner or out
  1097. for a walk.  Then upon your return, the file ScanTune.log is available
  1098. for you to edit in your favorite text editor or word processor.
  1099.  
  1100.                        SCANTUNE FROM A BATCH FILE:
  1101.                                      
  1102.      You can start ScanTune from a batch file.  The menu is bypassed
  1103. when this is done, unless the /p switch is used.
  1104.      Syntax: ScanTune sourcefile macro file option switches.
  1105.      NOTE:  Do not use a filename.org to begin a session.  We recommend
  1106. that you start a session with a .txt extension because ScanTune will
  1107. copy whatever filename.ext and give it a filename.org.  This is done to
  1108. keep you from loosing or destroying the original document that has taken
  1109. valuable time to scan.  When you exit ScanTune a copy of the working
  1110. file is copied and renamed filename.bak.  This is so that you can always
  1111. go back one step in the process and begin again if a problem occurs.
  1112.      Sourcefile is the file you want to clean up.
  1113.      The macro file is the name of the macro file you want to be loaded
  1114. in place of the default macro file default.stm.  All macro files must
  1115. reside in the c:\pathfilename subdirectory and have the .stm extension.
  1116. You do not have to type the .stm extension.
  1117.                       SCANTUNE USER MANUAL                 Page 26
  1118.      Switches are those outlined in the menu, but are preceded by a
  1119. slash (/) and can be activated from either the command line or from a
  1120. batch file.  NOTE: There can be no spaces between option switches.  For
  1121. example, this is the right way to use switches: /c/t/w.
  1122.      Your entry might look something like the one listed below, but
  1123. remember "THIS IS ONLY AN EXAMPLE!!"
  1124. ScanTune ScanTune.txt para /m
  1125.      The line above indicates that:
  1126. 1.  The first ScanTune is the instruction to activate the ScanTune
  1127. program.
  1128. 2.  ScanTune.txt is the file you want to correct.
  1129. 3.  And para is the macro file you want to use.
  1130.      The ScanTune switches are as follows:
  1131. /A = all operations.  Use of this switch enables all other options
  1132. except the proofreader.
  1133. /B blank lines removed.  Removes all instances of single blank lines.
  1134. This option also substitutes a single blank line for any set of
  1135. consecutive blank lines.
  1136. /C clean up scanner errors.  This option runs the universal and
  1137. temporary macro files against the source file, correcting all errors.
  1138. /D decolumnize.  This option stacks columns of text with the left-most
  1139. column on top and the right-most column on the bottom.  The decolumnizer
  1140. was designed for users of ocr systems without this feature.
  1141. /I indent paragraphs.  This option makes sure that every paragraph
  1142. begins with 5 spaces.
  1143. /L Log Corrections.  This option keeps a list of all work performed with
  1144. Cleanup and the Spellchecker.  The file that is generated is called
  1145. ScanTune.log.
  1146.  /N Nonstandard Text removed.  This option strips all characters with
  1147. ascii values below 32 except line feeds, carriage returns and form
  1148. feeds.  It also removes all characters with ascii values above 126.  If
  1149. a Word Perfect file is encountered, the header is removed making the
  1150. file readable by normal text readers.  Finally, this option converts
  1151. soft carriage returns to carriage return/line feed pairs.
  1152. /M Mark Standard Operations.  This switch turns on all options except
  1153. decolumnization and Nonstandard Text removal.
  1154. /P enters proof read mode and turns on the menu.
  1155.                          SCANTUNE USER MANUAL                   Page 27
  1156. /r right margin.  This option allows the user to reset the right margin
  1157. for word wrapping purposes.  The default is 72.  So if you wanted to
  1158. change the number your switch would look like: /r80 or /r30, whatever
  1159. number you choose.
  1160. /S strip leading spaces.  This option removes all leading spaces except
  1161. for paragraph indention.  Centered text is left justified.
  1162. /T two spaces after sentences.  This option makes sure that every
  1163. sentence is followed by two and only two spaces and one after a lettered
  1164. initial.
  1165. /W word wrap text.  Text is wrapped to the right margin, one line at a
  1166. time.
  1167. NOTE: If the /P switch is called from the command line or from a batch
  1168. file it will clear all other switches and turn on the menu.  Therefore,
  1169. we do not recommend using the /p switch within a batch file where
  1170. unattended processing is desired.
  1171. A /u switch has been enabled and is unique in that it will run the
  1172. Spellchecker with prompting on, log corrections on and in the unattend
  1173. mode.  You can create a batch file that will Spellcheck one, two and
  1174. maybe even three books while you're sleeping, depending of course on the
  1175. speed of your machine.  You need a lot of memory for this feature, if
  1176. you're going to Spellcheck more than one book.
  1177. The ScanTune.log file will show what you have selected, plus the name of
  1178. the file, the time the file was started and the time it ended.  Enjoy!!
  1179. A slash (/) z switch has been enabled for users who prefer to clean a
  1180. file that is called from a batch file.  Your batch file entry might look
  1181. like:
  1182. ScanTune sourcefile mymacro /z/c
  1183.      The above entry informs ScanTune that the cleanup option is being
  1184. operated from a batch file and that ScanTune should execute the cleanup
  1185. process as if it had been selected from the ScanTune menu.  You will
  1186. have to attend this process to inform ScanTune what to do when a
  1187. prompted macro is encountered.  Your options are:
  1188.      y n v r c q.  Which means: "Y" = yes, make the correction.  "N" =
  1189. no, don't make the correction.  "v" = vary context character length
  1190. (from current 78 to any number from 1 to 255).  "R" = make the remainder
  1191. of the changes everywhere from current position to the end of the file.
  1192. "c" = allow change to be entered manually.  "Q" = don't make the change
  1193. or ask me about it anymore this cleaning session.  These are hot keys.
  1194.  
  1195.                                USAGE TIPS:
  1196.                                      
  1197.      This section describes various ways of using the ScanTune program
  1198. to clean up your ocr output.  As more people start using the system and
  1199. contribute suggestions, this section will change and expand.
  1200.                       SCANTUNE USER MANUAL                 Page 28
  1201.      A note on macros.  The basic idea is to "teach" ScanTune about your
  1202. scanner's errors.  To do this you must proof read some files.  When you
  1203. spot an error more than once, it is most likely the results of your
  1204. scanner, so mark it and add it to your universal macro file.  If you
  1205. find later that it wasn't, you can delete that particular entry.
  1206. Subsequent files will be checked for these errors when cleanup is run.
  1207. Mark errors unique to the file you are reading and save them to your
  1208. temporary macro file.  These errors will be corrected in the current
  1209. file only.  As you proof read more files you will gradually build up a
  1210. universal macro file that pretty well covers the errors your system
  1211. commonly makes.  This will make your initial cleanup progressively more
  1212. effective giving you very readable text with little proofreading.  For
  1213. the same reason, it is sometimes desirable to clean a file in "stages".
  1214. Proof read a while and when you've marked 50 or 100 temporary errors, go
  1215. ahead and run cleanup.  It doesn't take as long for each run and you can
  1216. actually see the text quality improve as you proof read.  After a
  1217. cleanup operation, you might want to consider using the Learn Mode
  1218. function.  It is a little time consuming, depending upon the speed of
  1219. your machine, but it's well worth it.  Try taking a raw scan and mark
  1220. standard operations.  Go through the initial cleanup process and then
  1221. run Learn Mode.  You should end up with a decent OCR file that can be
  1222. polished in the Proofread Mode.
  1223.  
  1224.                            THE BLOCPARA MACRO:
  1225.                                      
  1226.      This macro file replaces punctuation marks and carriage return line
  1227. feeds with the paragraph (^t) symbol.  NOTE: Any character can be
  1228. chosen, but ensure that it is not a part of the text you are cleaning.
  1229. It could be disastrous.  The blocpara.stm macro file looks like this:
  1230. .^m^j|.^t|A
  1231. ?^m^j|?^t|A
  1232. !^m^j|!^t|A
  1233. .)^m^j|.)^t|A
  1234. ."^m^j|."^t|A
  1235. ?"^m^j|?"^t|A
  1236. !"^m^j|!"^t|A
  1237.      At this point you take all the remaining carriage return line feeds
  1238. and replace them with a space.  Make sure that you have gone past the
  1239. title page and other information that is normally formatted in single
  1240. lines before using this macro file.
  1241. ^m^j| |A
  1242.      At this point the remainder of the blocpara.stm macro file will
  1243. exchange the paragraph (^t) symbol for carriage return line feeds.  You
  1244.                          SCANTUNE USER MANUAL                   Page 29
  1245. can replace the paragraph (^t) symbol with either one ^m^j or two ^m^js
  1246. depending on how you want your paragraphs spaced.
  1247. .^t|.^m^j|A
  1248. ?^t|?^m^j|A
  1249. !^t|!^m^j|A
  1250. .)^t|.)^m^j|A
  1251. ."^t|."^m^j|A
  1252. ?"^t|?"^m^j|A
  1253. !"^t|!"^m^j|A
  1254.      Your OCR file is now formatted to paragraph blocked boundaries.
  1255.  
  1256.                              THE PARA MACRO:
  1257.                                      
  1258.      This macro file is exactly the same as the blocpara.stm macro file,
  1259. but replaces two carriage return line feeds instead of one.  A macro
  1260. would look like:
  1261. .^t|.^m^j^m^j|A
  1262.      You can accomplish almost anything with macros, so play around with
  1263. them and see how creative you can be.  If you develop something that
  1264. other users might enjoy send your macro files to George McCoy.
  1265.  
  1266.                           FOR YOUR INFORMATION:
  1267.                                      
  1268.      The ScanTune utility goes through the entire file a chunk at a time
  1269. performing all the tasks that you selected, plus the entries in the
  1270. macro files.  Therefore, the longer the file is that you are cleaning
  1271. up, the longer it will take to process it.  ScanTune makes all the
  1272. changes on the first pass through each chunk and goes into reformatting.
  1273. This procedure will also depend on how long the file is.
  1274.  
  1275.                          TECHNICAL INFORMATION:
  1276.                                      
  1277.      George McCoy would like to take this opportunity to explain the
  1278. heart and soul of ScanTune.  The operative word as explained above is
  1279. "macro."  The concept behind a macro is quite simple, but....
  1280.      A macro is an instruction to the computer to perform a series of
  1281. complex search and replace sequences.  An ScanTune macro possesses a
  1282. special structure:
  1283. 1.  A search string.  A letter, word or phrase.
  1284.                          SCANTUNE USER MANUAL                   Page 30
  1285. 2.  A delimiter.  A character marking the beginning or end of a unit of
  1286. data.
  1287. 3.  A replacement string.  A letter, word or phrase.
  1288. 4.  Another delimiter.
  1289. 5.  An execution instruction.
  1290. 6.  A hard carriage return line feed pair (Ctrl-m Ctrl-j) also known as
  1291. the "enter" key.)
  1292.      Let's say for example that your OCR system translates the number
  1293. 1987 as I987.  To correct this we would use the macro:
  1294. I987|1987|A (followed immediately with the enter key.)
  1295.      the I987 is the search string.  The bar (|) is the delimiter.  1987
  1296. is the replacement string.  Another delimiter separates the replacement
  1297. string from the upper case "A" which is followed with the enter key.
  1298.      The upper case "A" is instructing the computer to correct the error
  1299. everywhere it is found.  ScanTune also uses the upper case "W" to
  1300. correct the error only if it is surrounded by spaces, punctuation marks
  1301. or appears at the beginning or end of a line.  The lower case "a" and
  1302. lower case "w" act the same as their counter parts, but prompt you
  1303. before making the correction.
  1304.      NOTE: You do not, I repeat, do not have to write your own macros.
  1305. ScanTune does it for you internally after asking you for the search
  1306. string, the replacement string and how you want the macro to perform.
  1307. You will be prompted at every turn.  But the over all concept is
  1308. necessary to use ScanTune to its full capacity.
  1309.      Let's reenforce the concept of macros in this example:
  1310.      Say your OCR file has the word modem in it.  If your OCR file is
  1311. about telecommunications, then this is appropriate.  However, if your
  1312. file is about modern history, then modem would be incorrect.  To fix it,
  1313. let's use the following macro:
  1314. modem|modern|w (lower case "w" followed by the enter key.)
  1315.      By using this macro, ScanTune would prompt you with: correct modem
  1316. with modern.
  1317.      One last example.
  1318.      Let's say that your file has part of a word on one line and the
  1319. remainder on another.  Example: The word "translate".  "trans-" appears
  1320. at the end of a line while "late" appears on the next line.  To correct
  1321. this we could use:
  1322. trans-^m^jlate|translate|A
  1323.                          SCANTUNE USER MANUAL                   Page 31
  1324.      NOTE: ScanTune allows you to search for and replace control
  1325. characters.  The ^m^j is the hard carriage return line feed pair as
  1326. mentioned above.
  1327.      This would correct the problem, but there is an easier way:
  1328. -^m^j||A
  1329.      Notice how we searched for the dash (-) and the hard carriage
  1330. return line feed pairs (^m^j)and replaced them with nothing.  This macro
  1331. removes the dash (-) and the hard carriage return line feed pairs from
  1332. your OCR file.
  1333.  
  1334.                              SAMPLE MACROS:
  1335.                                      
  1336.      Below are several sample macros that can be included in your
  1337. universal macro file, or in a macro file of your choice.  Each is
  1338. briefly described.  If you are really interested in macros and how
  1339. they're made, read on.  If you're a normal user, this information might
  1340. not be of much immediate use to you.
  1341.      Say your OCR translates the number five for the letter s.  In order
  1342. to correct this you could:
  1343. 5|s|a (note the lower case a.)
  1344.      This macro would prompt you each time ScanTune came across the
  1345. number five and prompt: y n v r c q.
  1346.      Say your OCR always translates the word quickly to quicKly.  The
  1347. following macro would correct it.
  1348. quicKly|quickly|A
  1349.      Or, say you end up with dollar signs where the letter "s" should
  1350. be.  How about:
  1351. $|s|a (note the lower case a.)
  1352. Below are a few macros that you might like to try:
  1353. th's|this|A
  1354. Th's|This|A
  1355. h'm|him|A
  1356. H'm|Him|A
  1357. w'll|will|A
  1358. W'll|Will|A
  1359.                          SCANTUNE USER MANUAL                   Page 32
  1360. 'ournal|journal|A
  1361. etemal|eternal|A
  1362. moming|morning|A
  1363. warml|warm|A
  1364. Ianguage|language|A
  1365. 'mper'al|emperial|A
  1366. pol'tical|political|A
  1367. dom'nat'on,|domination,|A
  1368.  
  1369.                              OB.stm MACROS:
  1370.                                      
  1371.      A file called Ob.stm has been included for those that use "Open
  1372. Book" OCR translations.  It may prove helpful.
  1373.  
  1374.                            TECHNICAL SUPPORT:
  1375.                                      
  1376.      If you care to purchase ScanTune or require technical assistance
  1377. contact:
  1378.      GLM Enterprises
  1379.      George McCoy
  1380.      179 Rockvale Road
  1381.      Union Grove, AL 35175
  1382.      voice: (205)-498-3877
  1383.      bbs: 
  1384.                      End of ScanTune documentation!!
  1385.                                      
  1386.                       SCANTUNE USER MANUAL                 Page 33
  1387.  
  1388.