Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

317 lines
12 KiB

  1. #include "windows.h"
  2. #include "sapilayr.rcv"
  3. #include "ids.h"
  4. #ifdef CIC_XPSP1
  5. IDR_SAPILAYER REGISTRY DISCARDABLE "sapilayr.rgs"
  6. IDR_SPEECHUISERVER REGISTRY DISCARDABLE "spui.rgs"
  7. #endif // CIC_XPSP1
  8. // icons for dictation on/off
  9. ID_ICON_DICTON ICON dicton.ico
  10. ID_ICON_DICTOFF ICON dictoff.ico
  11. // icons for audio property on/off
  12. ID_ICON_AUDIOON ICON audioon.ico
  13. ID_ICON_AUDIOOFF ICON audiooff.ico
  14. // icons for dictation on/off
  15. ID_ICON_CFGMENU ICON cfgmenu.ico
  16. // icons for dictation on/off
  17. ID_ICON_MICROPHONE ICON mic.ico
  18. ID_ICON_COMMANDING ICON cmd.ico
  19. ID_ICON_DICTATION ICON dict.ico
  20. // icons for tts play/stop, pause/resume
  21. ID_ICON_TTSPLAY ICON ttsplay.ico
  22. ID_ICON_TTSSTOP ICON ttsstop.ico
  23. ID_ICON_TTSPAUSE ICON ttspause.ico
  24. #ifndef CIC_XPSP1
  25. // Icons for Candidate UI Buttons
  26. ID_CANDBTN_DELETE ICON delete.ico
  27. ID_CANDBTN_PLAY ICON ttsplay.ico
  28. #endif
  29. IDD_OPEN_ADD_DELETE DIALOG DISCARDABLE 80, 80, 200, 55
  30. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
  31. CAPTION "Open Add/Delete Word Dialog Window?"
  32. FONT 8, "MS Shell Dlg"
  33. BEGIN
  34. LTEXT "You can add words to the speech engine's dictionary by selecting Add/Delete Word(s) from the speech options menu on the Language Bar",
  35. -1,10,5,180,30
  36. DEFPUSHBUTTON "OK",IDOK,40,36,40,14
  37. PUSHBUTTON "Cancel",IDCANCEL,120,36,40,14
  38. END
  39. #ifndef CIC_XPSP1
  40. IDD_PROPERTY_PAGE DIALOG DISCARDABLE 0, 0, 251, 239
  41. STYLE DS_3DLOOK | DS_CONTEXTHELP | WS_CHILD | WS_VISIBLE
  42. CAPTION "Dictation"
  43. FONT 8, "MS Shell Dlg"
  44. BEGIN
  45. GROUPBOX "Mode Keys",IDC_GP_MODE_BUTTONS,6,4,240,68
  46. CONTROL "Assign &mode keys",IDC_PP_ASSIGN_BUTTON,"Button",
  47. BS_AUTOCHECKBOX | WS_TABSTOP,12,18,80,10
  48. LTEXT "You can assign a button to switch quickly between dictation and voice command modes when using speech recognition software. Click Settings to assign the keyboard or mouse action you want to use to switch between modes.",
  49. IDC_DESCRIPT_TEXT,12,34,229,34
  50. PUSHBUTTON "Sett&ings...",IDC_PP_BUTTON_MB_SETTING,179,16,56,14
  51. GROUPBOX "Advanced settings",IDC_GP_ADVANCE_SET,6,78,240,129
  52. CONTROL "Sh&ow speech messages ",IDC_PP_SHOW_BALLOON,"Button",
  53. BS_AUTOCHECKBOX | WS_TABSTOP,18,92,92,12
  54. CONTROL "&Automatically recognize new words in documents temporarily ",
  55. IDC_PP_LMA,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,18,104,
  56. 201,12
  57. CONTROL "Require &high confidence for short words ",
  58. IDC_PP_HIGH_CONFIDENCE,"Button",BS_AUTOCHECKBOX |
  59. WS_TABSTOP,18,116,138,12
  60. CONTROL "&Save speech data with the document in supporting applications ",
  61. IDC_PP_SAVE_SPDATA,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
  62. 18,128,215,12
  63. CONTROL "Automatically remove &whitespace for punctuation ",
  64. IDC_PP_REMOVE_SPACE,"Button",BS_AUTOCHECKBOX |
  65. WS_TABSTOP,18,140,170,12
  66. CONTROL "&Disable dictation while typing ",
  67. IDC_PP_DIS_DICT_TYPING,"Button",BS_AUTOCHECKBOX |
  68. WS_TABSTOP,18,152,103,12
  69. CONTROL "Pla&yback original audio when correcting ",
  70. IDC_PP_PLAYBACK,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,18,
  71. 164,139,12
  72. CONTROL "Allow dictation when &correction window is open ",
  73. IDC_PP_DICT_CANDUI_OPEN,"Button",BS_AUTOCHECKBOX |
  74. WS_TABSTOP,18,176,163,12
  75. CONTROL "&Enable commands in dictation mode",IDC_PP_DICTCMDS,"Button",
  76. BS_AUTOCHECKBOX | WS_TABSTOP,18,188,146,12
  77. PUSHBUTTON "&Voice Command...",IDC_PP_BUTTON_ADVANCE,6,219,65, 12
  78. PUSHBUTTON "Advanced S&peech ...", IDC_PP_BUTTON_SPCPL, 87, 219, 78, 12
  79. PUSHBUTTON "Language &Bar...",IDC_PP_BUTTON_LANGBAR,182,219,60,12
  80. END
  81. IDD_PP_DIALOG_ADVANCE DIALOG DISCARDABLE 0, 0, 268, 156
  82. STYLE DS_MODALFRAME | DS_3DLOOK | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE |
  83. WS_CAPTION | WS_SYSMENU
  84. CAPTION "Voice command settings"
  85. FONT 8, "MS Shell Dlg"
  86. BEGIN
  87. GROUPBOX "Voice Commands",IDC_GP_VOICE_COMMANDS,13,13,242,116
  88. LTEXT "Choose the types of commands you want available when dictating text. Selecting fewer command types can help improve accuracy. Some commands are only available in programs with advanced speech recognition support.",
  89. IDC_DESCRIPT_TEXT,17,24,229,35
  90. CONTROL "&Selection and correction",IDC_PP_SELECTION_CMD,"Button",
  91. BS_AUTOCHECKBOX | WS_TABSTOP,32,63,92,9
  92. CONTROL "&Navigation",IDC_PP_NAVIGATION_CMD,"Button",
  93. BS_AUTOCHECKBOX | WS_TABSTOP,32,73,50,9
  94. CONTROL "&Uppercase and lowercase",IDC_PP_CASING_CMD,"Button",
  95. BS_AUTOCHECKBOX | WS_TABSTOP,32,83,97,9
  96. CONTROL "&Editing operations",IDC_PP_EDITING_CMD,"Button",
  97. BS_AUTOCHECKBOX | WS_TABSTOP,32,93,71,9
  98. CONTROL "&Keyboard simulation",IDC_PP_KEYBOARD_CMD,"Button",
  99. BS_AUTOCHECKBOX | WS_TABSTOP,32,103,79,9
  100. // comment out for Text-to-speech in this version.
  101. // CONTROL "&Text-to-speech conversion",IDC_PP_TTS_CMD,"Button",
  102. // BS_AUTOCHECKBOX | WS_TABSTOP,32,113,99,9
  103. CONTROL "&Language bar management",IDC_PP_LANGBAR_CMD,"Button",
  104. BS_AUTOCHECKBOX | WS_TABSTOP,32,113,101,9
  105. /*
  106. LTEXT "Maximum alternates in candidate window:",
  107. IDC_DESCRIPT_TEXT,37,131,134,12
  108. LTEXT "Maximum characters in one alternate:",IDC_DESCRIPT_TEXT,
  109. 38,146,121,12
  110. EDITTEXT IDC_PP_MAXNUM_ALTERNATES,183,129,29,12,ES_AUTOHSCROLL |
  111. ES_NUMBER
  112. EDITTEXT IDC_PP_MAXCHARS_ALTERNATE,183,145,29,12,ES_AUTOHSCROLL |
  113. ES_NUMBER
  114. */
  115. DEFPUSHBUTTON "OK",IDOK,125,136,50,14
  116. PUSHBUTTON "Cancel",IDCANCEL,196,136,50,14
  117. END
  118. IDD_PP_DIALOG_BUTTON_SET DIALOG DISCARDABLE 0, 0, 190, 85
  119. STYLE DS_MODALFRAME | DS_3DLOOK | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE |
  120. WS_CAPTION | WS_SYSMENU
  121. CAPTION "Mode button configuration"
  122. FONT 8, "MS Shell Dlg"
  123. BEGIN
  124. GROUPBOX "Mode button settings",IDC_DESCRIPT_TEXT,13,7,164,53
  125. LTEXT "Dictation key:",IDC_DESCRIPT_TEXT,32,23,54,10
  126. COMBOBOX IDC_PP_DICTATION_CMB,102,20,50,120,
  127. CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
  128. LTEXT "Command key:",IDC_DESCRIPT_TEXT,32,41,57,10
  129. COMBOBOX IDC_PP_COMMAND_CMB,102,38,50,120,
  130. CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
  131. DEFPUSHBUTTON "OK",IDOK,72,67,45,12
  132. PUSHBUTTON "Cancel",IDCANCEL,132,67,45,12
  133. END
  134. #endif // CIC_XPSP1
  135. STRINGTABLE DISCARDABLE
  136. BEGIN
  137. IDS_CMD_FILE "dictcmd.cfg"
  138. IDS_NUMMODE_CMD_FILE "smplnum.cfg"
  139. #ifndef CIC_XPSP1
  140. IDS_SHARDCMD_FILE "shrdcmd.cfg"
  141. #endif // CIC_XPSP1
  142. IDS_INT_NONE " "
  143. IDS_INT_NOISE "What was that?"
  144. IDS_INT_NOSIGNAL "No signal"
  145. IDS_INT_TOOLOUD "Too loud"
  146. IDS_INT_TOOQUIET "Too soft"
  147. IDS_INT_TOOFAST "Too fast"
  148. IDS_INT_TOOSLOW "Too slow"
  149. IDS_INTTOOLTIP_NONE " "
  150. IDS_INTTOOLTIP_NOISE "Please repeat"
  151. IDS_INTTOOLTIP_NOSIGNAL "There was no signal"
  152. IDS_INTTOOLTIP_TOOLOUD "Try speaking more softly"
  153. IDS_INTTOOLTIP_TOOQUIET "Try speaking a little louder"
  154. IDS_INTTOOLTIP_TOOFAST "Try speaking a little slower"
  155. IDS_INTTOOLTIP_TOOSLOW "Try speaking a little faster"
  156. IDS_DICTATING "Dictating..."
  157. IDS_DICTATING_TOOLTIP "Dictating..."
  158. IDS_LISTENING "Listening..."
  159. IDS_LISTENING_TOOLTIP "Listening..."
  160. IDS_BALLOON_TOOLTIP_TYPING "You are typing or editing"
  161. IDS_BALLOON_DICTAT_PAUSED "Dictation Paused"
  162. IDS_BALLOON_TOOLTIP_IP_INSIDE_WORD "Please move the cursor outside of a word"
  163. IDS_UI_TRAINING "Voice Training"
  164. IDS_UI_ADDDELETE "Add/Delete Word(s)"
  165. IDS_MIC_OPTIONS "&Options..."
  166. IDS_MIC_TRAINING "&Training..."
  167. IDS_MIC_ADDDELETE "&Add/Delete Word(s)..."
  168. IDS_MIC_CURRENTUSER "&Current User"
  169. #ifdef CIC_XPSP1
  170. IDS_MIC_SAVEDATA "&Save Speech Data"
  171. IDS_MIC_SHOWBALLOON "Show Speech &Messages"
  172. IDS_MIC_DIS_DICTCMD "&Disable Dictation Commands"
  173. #endif // CIC_XPSP1
  174. IDS_NUI_CFGMENU_TOOLTIP "Speech Tools"
  175. IDS_NUI_CFGMENU_TEXT "Tools"
  176. IDS_NUI_BALLOON_TOOLTIP "Speech Command"
  177. IDS_NUI_BALLOON_TEXT "Speech Command"
  178. IDS_NUI_MICROPHONE_TOOLTIP "Microphone"
  179. #ifdef CHANGE_MIC_TOOLTIP_ONTHEFLY
  180. IDS_NUI_MICROPHONE_ON_TOOLTIP "Turn on microphone"
  181. IDS_NUI_MICROPHONE_OFF_TOOLTIP "Turn off microphone"
  182. #endif
  183. IDS_NUI_MICROPHONE_TEXT "Microphone"
  184. IDS_NUI_COMMANDING_TOOLTIP "Voice Command"
  185. IDS_NUI_COMMANDING_TEXT "Voice Command"
  186. IDS_NUI_DICTATION_TOOLTIP "Dictation"
  187. IDS_NUI_DICTATION_TEXT "Dictation"
  188. IDS_NUI_STARTINGSPEECH "Starting Speech..."
  189. IDS_NUI_BEGINDICTATION "Begin Dictation"
  190. IDS_NUI_BEGINVOICECMD "Begin Voice Command"
  191. IDS_NUI_TTSPLAY_TOOLTIP "Speak Text"
  192. IDS_NUI_TTSPLAY_TEXT "Speak"
  193. IDS_NUI_TTSSTOP_TOOLTIP "Stop Speaking"
  194. IDS_NUI_TTSSTOP_TEXT "Stop"
  195. IDS_NUI_TTSPAUSE_TOOLTIP "Pause Speaking"
  196. IDS_NUI_TTSPAUSE_TEXT "Pause"
  197. IDS_NUI_TTSRESUME_TOOLTIP "Resume Speaking"
  198. IDS_NUI_TTSRESUME_TEXT "Resume"
  199. IDS_NO_ALTERNATE "No Alternatives"
  200. IDS_DEFAULT_PROFILE "Speech Recognition"
  201. END
  202. #ifndef CIC_XPSP1
  203. STRINGTABLE DISCARDABLE
  204. BEGIN
  205. IDS_GO_TO_SLEEP "Go to sleep"
  206. IDS_WAKE_UP "Wake up"
  207. IDS_PROPERTYPAGE_TITLE "Speech input settings"
  208. #ifdef USE_IPROPERTYPAGE
  209. IDS_HELPFILESpPropPage "Help File Name"
  210. IDS_DOCSTRINGSpPropPage "Your Help String"
  211. #endif
  212. // We want to specially handle these speech commands.
  213. //
  214. // these string must be same as they are in the shrdcmd.xml
  215. // localized JPN and CHS version should be the same as they are in shrdcmdjp.xml and shrdcmdchs.xml
  216. //
  217. IDS_SPCMD_SELECT_ALL "All"
  218. IDS_SPCMD_SELECT_THAT "That"
  219. // Candidate UI strings.
  220. IDS_REPLAY "Replay Dictation"
  221. IDS_DELETE "Delete"
  222. IDS_REDO "Rewrite/Respeak"
  223. END
  224. #endif // CIC_XPSP1
  225. #ifdef SUPPORT_INTERNAL_WIDGET
  226. // widget stuff
  227. /////////////////////////////////////////////////////////////////////////////
  228. //
  229. // Icon
  230. //
  231. // Icon with lowest ID value placed first to ensure application icon
  232. // remains consistent on all systems.
  233. IDI_INVOKE ICON DISCARDABLE "invoke.ico"
  234. IDI_DELETEICON ICON DISCARDABLE "delete.ico"
  235. IDI_INVOKECLOSE ICON DISCARDABLE "invokelarge.ico"
  236. /////////////////////////////////////////////////////////////////////////////
  237. //
  238. // String Table
  239. //
  240. STRINGTABLE DISCARDABLE
  241. BEGIN
  242. IDS_ADDTODICTIONARYPREFIX "Add '"
  243. IDS_ADDTODICTIONARYPOSTFIX "' to Recognizer"
  244. IDS_DELETESELECTION "Delete"
  245. END
  246. #endif // SUPPORT_INTERNAL_WIDGET
  247. #ifdef CIC_XPSP1
  248. // LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
  249. LANGUAGE 0x09, 0x01
  250. //
  251. // these commands are for English only
  252. // we need to have separate sections for other
  253. // languages we'll support
  254. //
  255. ID_DICTATION_COMMAND_CFG SRGRAMMAR DISCARDABLE "dictcmd.cfg"
  256. ID_NUMMODE_COMMAND_CFG SRGRAMMAR DISCARDABLE "smplnum.cfg"
  257. ID_SPELLING_TOPIC_CFG SRGRAMMAR DISCARDABLE "spell.cfg"
  258. //LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT
  259. LANGUAGE 0x11, 0x01
  260. // These commands are for Japanese
  261. ID_DICTATION_COMMAND_CFG SRGRAMMAR DISCARDABLE "dictcmdjp.cfg"
  262. ID_NUMMODE_COMMAND_CFG SRGRAMMAR DISCARDABLE "smplnumjp.cfg"
  263. ID_SPELLING_TOPIC_CFG SRGRAMMAR DISCARDABLE "spelljp.cfg"
  264. //LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
  265. LANGUAGE 0x04, 0x02
  266. // These commands are for Simplified Chinese
  267. ID_DICTATION_COMMAND_CFG SRGRAMMAR DISCARDABLE "dictcmdchs.cfg"
  268. ID_NUMMODE_COMMAND_CFG SRGRAMMAR DISCARDABLE "smplnumchs.cfg"
  269. #endif // CIC_XPSP1