home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 6 / RISCWORLD_VOL6.iso / Software / ISSUE4 / speech / Dict_Help next >
Encoding:
Text File  |  1994-12-18  |  3.7 KB  |  87 lines

  1.    
  2.                *******  CHANGING THE DICTIONARY  *******
  3.  
  4. If you wish simply to add words to the dictionary as "separate words" then
  5. use the editing feature described in the Edit_Help file in the root
  6. directory. The procedure described here is used to make more fundamental
  7. changes and should be used with care. To produce a new Speech! module from a
  8. modified dictionary, simply drop the dictionary file on to the icon bar or
  9. any Speech! window, and then use the Editor Save option. However, please
  10. note that the Speech! module in the !Speech! application is not
  11. automatically updated by this procedure. If you wish the default Speech!
  12. module in the !Speech! application to be changed to the new modified Speech!
  13. module, then simply copy the new Speech! module to that directory by the
  14. usual procedure. This should only be done on your working disc and not on
  15. the original program disc.           
  16.  
  17. All the words are put in alphabetical order. The group called "other" is 
  18. used by anything that doesn't start with "a" to "z" i.e. "0-9, =, +" etc.,
  19. and also accented characters.
  20.  
  21. All entries are in the following format.
  22.  
  23. "(user input)_(Speech! phoneme output)|"
  24.  
  25. The input always has to be in lower case. The "_" divides the input and the
  26. output of the translation, and the "|" divides each entry.
  27.  
  28. To translate the word "ARE" you might use the entry:
  29. "are_AA4AX|" in the ".aa" group.
  30.  
  31. Whenever "Speech!" finds the text "are/ARE" in you *SAY command then it will
  32. be translated into "AA4AX" and sent to the *SPEAK command.
  33.  
  34. To build up a more complicated rule set, you can include checking for before
  35. and after characters.
  36.  
  37. To check for a space either side of the "ARE" use the entry:
  38. "are< > _AA4AX|" in the ".aa" group.
  39.  
  40. The "<" means before and ">" means after. The "<" must always be before the
  41. ">" if both are to be included.
  42.  
  43. The characters for "<" must be read from right to left, for example, to make
  44. the "S" in the the word "RIVERS" sound like a "Z" use the entry:
  45. "s<re> _Z|"  in the ".ss" group.
  46.  
  47. This will first find the "S", then back-track finding the "R" then the "E".
  48. If the parser then finds a space to the right of the "S" then a match has
  49. been found. If no longer fitting entry can be matched, then this one is used.
  50.  
  51. You can use wildcard characters, but only in the "<" & ">" checking stage.
  52.  
  53. ".>*_POY7NT|"  in the ".other" group will check for any number to the right
  54.                of the "." If there is one, then say "POINT"
  55.  
  56. "a>#e_AY|"     will check for a consonant after the "A" followed by an "E".
  57.                If correct then speech will say the "A" as in "TAME"
  58.  
  59. "i>#ing_IY4|"  will check for a consonant after the "I" followed by "ING".
  60.                This is for words like "WRITING".
  61.  
  62. "the> @_DHEE|" will check for a word starting with a vowel after the word
  63.                "THE"
  64.  
  65. The "\" means check for the same character again, for example:
  66.  
  67. "ed<#\_D|"     will check for two consonants that are the same 
  68.                before the "ED". For instance, this entry will be true for
  69.                "slaMMED" 
  70.  
  71. If a word (either a letter or a group of letters) is satisfied by more than
  72. one input definition, then the longer input definition (ignoring the < and >
  73. symbols, but including spaces) will take precedence. If two or more input
  74. definitions which satisfy the word are the same length, then the first that
  75. appears will take precedence. 
  76.  
  77. Try to put wildcarded entries near the end of each group so that all the
  78. exceptions will be found first.
  79.  
  80. For convenience when using the word editing facility, all the "separate
  81. words" in a group are placed at the start of that group.
  82.  
  83. [WARNING: DO NOT ATTEMPT TO SAVE ANY FILES ON TO THE ORIGINAL SPEECH! DISC.
  84. ALWAYS USE YOUR OWN WORKING DISC.]
  85.  
  86. [Copyright Superior Microcomputing Ltd, 1991 and 1994. All rights reserved.]
  87.