home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / MUI / MUISpeak.lha / muispeak / src / dt / speakstrings_cat.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-26  |  9.9 KB  |  349 lines

  1. #ifndef SPEAKSTRINGS_CAT_H
  2. #define SPEAKSTRINGS_CAT_H
  3.  
  4.  
  5. /****************************************************************************/
  6.  
  7.  
  8. /* This file was created automatically by CatComp.
  9.  * Do NOT edit by hand!
  10.  */
  11.  
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include <exec/types.h>
  15. #endif
  16.  
  17. #ifdef CATCOMP_ARRAY
  18. #undef CATCOMP_NUMBERS
  19. #undef CATCOMP_STRINGS
  20. #define CATCOMP_NUMBERS
  21. #define CATCOMP_STRINGS
  22. #endif
  23.  
  24. #ifdef CATCOMP_BLOCK
  25. #undef CATCOMP_STRINGS
  26. #define CATCOMP_STRINGS
  27. #endif
  28.  
  29.  
  30. /****************************************************************************/
  31.  
  32.  
  33. #ifdef CATCOMP_NUMBERS
  34.  
  35. #define MSG_AppDescription 0
  36. #define MSG_AppCopyright 1
  37. #define MSG_MN_label_0Projekt 2
  38. #define MSG_MN_label_0Quit 3
  39. #define MSG_MN_label_0QuitChar 4
  40. #define MSG_WIN_Main 5
  41. #define MSG_MN_label_1Projekt 6
  42. #define MSG_MN_label_1About 7
  43. #define MSG_MN_label_1AboutChar 8
  44. #define MSG_MN_label_1Quit 9
  45. #define MSG_MN_label_1QuitChar 10
  46. #define MSG_GR_grp_0Title 11
  47. #define MSG_TX_label_0 12
  48. #define MSG_CY_SEX0 13
  49. #define MSG_CY_SEX1 14
  50. #define MSG_TX_label_1 15
  51. #define MSG_CY_KIND0 16
  52. #define MSG_CY_KIND1 17
  53. #define MSG_CY_KIND2 18
  54. #define MSG_TX_label_4CC 19
  55. #define MSG_CY_OUTPUT0 20
  56. #define MSG_CY_OUTPUT1 21
  57. #define MSG_CY_OUTPUT2 22
  58. #define MSG_TX_label_2 23
  59. #define MSG_TX_label_3 24
  60. #define MSG_TX_label_4 25
  61. #define MSG_GR_grp_100 26
  62. #define MSG_GR_grp_101 27
  63. #define MSG_TX_label_5 28
  64. #define MSG_TX_label_6 29
  65. #define MSG_TX_F1ADJ 30
  66. #define MSG_TX_F2ADJ 31
  67. #define MSG_TX_F3ADJ 32
  68. #define MSG_TX_A1ADJ 33
  69. #define MSG_TX_A2ADJ 34
  70. #define MSG_TX_A3ADJ 35
  71. #define MSG_TX_ARTIC 36
  72. #define MSG_TX_AVBIAS 37
  73. #define MSG_TX_AFBIAS 38
  74. #define MSG_TX_CENT 39
  75. #define MSG_STR_TEXT 40
  76. #define MSG_BT_SPEAK 41
  77. #define MSG_WIN_About 42
  78. #define MSG_TX_label_7 43
  79. #define MSG_BT_OK 44
  80.  
  81. #endif /* CATCOMP_NUMBERS */
  82.  
  83.  
  84. /****************************************************************************/
  85.  
  86.  
  87. #ifdef CATCOMP_STRINGS
  88.  
  89. #define MSG_AppDescription_STR "Another Speechtoy Clone"
  90. #define MSG_AppCopyright_STR "This program is freely distributable "
  91. #define MSG_MN_label_0Projekt_STR "Projekt"
  92. #define MSG_MN_label_0Quit_STR "Beenden"
  93. #define MSG_MN_label_0QuitChar_STR "Q"
  94. #define MSG_WIN_Main_STR "MUI Speak  Written in 1994 by Andreas Jung"
  95. #define MSG_MN_label_1Projekt_STR "Projekt"
  96. #define MSG_MN_label_1About_STR "Über MuiSpeak"
  97. #define MSG_MN_label_1AboutChar_STR "?"
  98. #define MSG_MN_label_1Quit_STR "Beenden"
  99. #define MSG_MN_label_1QuitChar_STR "Q"
  100. #define MSG_GR_grp_0Title_STR "Allgemein"
  101. #define MSG_TX_label_0_STR "Geschlecht: "
  102. #define MSG_CY_SEX0_STR "Männlich"
  103. #define MSG_CY_SEX1_STR "Weiblich"
  104. #define MSG_TX_label_1_STR "Art:"
  105. #define MSG_CY_KIND0_STR "Normal"
  106. #define MSG_CY_KIND1_STR "Roboterhaft"
  107. #define MSG_CY_KIND2_STR "Manuell"
  108. #define MSG_TX_label_4CC_STR "Ausgabekanal:"
  109. #define MSG_CY_OUTPUT0_STR "Links"
  110. #define MSG_CY_OUTPUT1_STR "Rechts"
  111. #define MSG_CY_OUTPUT2_STR "Links + Rechts"
  112. #define MSG_TX_label_2_STR "Stimmhöhe:"
  113. #define MSG_TX_label_3_STR "Geschwindigkeit:"
  114. #define MSG_TX_label_4_STR "Lautstärke:"
  115. #define MSG_GR_grp_100_STR "Detailiert I"
  116. #define MSG_GR_grp_101_STR "Detailiert II"
  117. #define MSG_TX_label_5_STR "Enthusiasmus:"
  118. #define MSG_TX_label_6_STR "Perturbation:"
  119. #define MSG_TX_F1ADJ_STR "F1Adj:"
  120. #define MSG_TX_F2ADJ_STR "F2Adj:"
  121. #define MSG_TX_F3ADJ_STR "F3Adj:"
  122. #define MSG_TX_A1ADJ_STR "A1Adj:"
  123. #define MSG_TX_A2ADJ_STR "A2Adj:"
  124. #define MSG_TX_A3ADJ_STR "A3Adj:"
  125. #define MSG_TX_ARTIC_STR "Artic:"
  126. #define MSG_TX_AVBIAS_STR "AVBias:"
  127. #define MSG_TX_AFBIAS_STR "AFBias:"
  128. #define MSG_TX_CENT_STR "Cent:"
  129. #define MSG_STR_TEXT_STR "Texteingabe"
  130. #define MSG_BT_SPEAK_STR "_Sprechen"
  131. #define MSG_WIN_About_STR "Über MuiSpeak"
  132. #define MSG_TX_label_7_STR "\033cMuiSpeak\n\n(C) in 1994\nby\nAndreas Jung\n\nAll rights reserved !"
  133. #define MSG_BT_OK_STR "OK"
  134.  
  135. #endif /* CATCOMP_STRINGS */
  136.  
  137.  
  138. /****************************************************************************/
  139.  
  140.  
  141. #ifdef CATCOMP_ARRAY
  142.  
  143. struct CatCompArrayType
  144. {
  145.     LONG   cca_ID;
  146.     STRPTR cca_Str;
  147. };
  148.  
  149. static const struct CatCompArrayType CatCompArray[] =
  150. {
  151.     {MSG_AppDescription,(STRPTR)MSG_AppDescription_STR},
  152.     {MSG_AppCopyright,(STRPTR)MSG_AppCopyright_STR},
  153.     {MSG_MN_label_0Projekt,(STRPTR)MSG_MN_label_0Projekt_STR},
  154.     {MSG_MN_label_0Quit,(STRPTR)MSG_MN_label_0Quit_STR},
  155.     {MSG_MN_label_0QuitChar,(STRPTR)MSG_MN_label_0QuitChar_STR},
  156.     {MSG_WIN_Main,(STRPTR)MSG_WIN_Main_STR},
  157.     {MSG_MN_label_1Projekt,(STRPTR)MSG_MN_label_1Projekt_STR},
  158.     {MSG_MN_label_1About,(STRPTR)MSG_MN_label_1About_STR},
  159.     {MSG_MN_label_1AboutChar,(STRPTR)MSG_MN_label_1AboutChar_STR},
  160.     {MSG_MN_label_1Quit,(STRPTR)MSG_MN_label_1Quit_STR},
  161.     {MSG_MN_label_1QuitChar,(STRPTR)MSG_MN_label_1QuitChar_STR},
  162.     {MSG_GR_grp_0Title,(STRPTR)MSG_GR_grp_0Title_STR},
  163.     {MSG_TX_label_0,(STRPTR)MSG_TX_label_0_STR},
  164.     {MSG_CY_SEX0,(STRPTR)MSG_CY_SEX0_STR},
  165.     {MSG_CY_SEX1,(STRPTR)MSG_CY_SEX1_STR},
  166.     {MSG_TX_label_1,(STRPTR)MSG_TX_label_1_STR},
  167.     {MSG_CY_KIND0,(STRPTR)MSG_CY_KIND0_STR},
  168.     {MSG_CY_KIND1,(STRPTR)MSG_CY_KIND1_STR},
  169.     {MSG_CY_KIND2,(STRPTR)MSG_CY_KIND2_STR},
  170.     {MSG_TX_label_4CC,(STRPTR)MSG_TX_label_4CC_STR},
  171.     {MSG_CY_OUTPUT0,(STRPTR)MSG_CY_OUTPUT0_STR},
  172.     {MSG_CY_OUTPUT1,(STRPTR)MSG_CY_OUTPUT1_STR},
  173.     {MSG_CY_OUTPUT2,(STRPTR)MSG_CY_OUTPUT2_STR},
  174.     {MSG_TX_label_2,(STRPTR)MSG_TX_label_2_STR},
  175.     {MSG_TX_label_3,(STRPTR)MSG_TX_label_3_STR},
  176.     {MSG_TX_label_4,(STRPTR)MSG_TX_label_4_STR},
  177.     {MSG_GR_grp_100,(STRPTR)MSG_GR_grp_100_STR},
  178.     {MSG_GR_grp_101,(STRPTR)MSG_GR_grp_101_STR},
  179.     {MSG_TX_label_5,(STRPTR)MSG_TX_label_5_STR},
  180.     {MSG_TX_label_6,(STRPTR)MSG_TX_label_6_STR},
  181.     {MSG_TX_F1ADJ,(STRPTR)MSG_TX_F1ADJ_STR},
  182.     {MSG_TX_F2ADJ,(STRPTR)MSG_TX_F2ADJ_STR},
  183.     {MSG_TX_F3ADJ,(STRPTR)MSG_TX_F3ADJ_STR},
  184.     {MSG_TX_A1ADJ,(STRPTR)MSG_TX_A1ADJ_STR},
  185.     {MSG_TX_A2ADJ,(STRPTR)MSG_TX_A2ADJ_STR},
  186.     {MSG_TX_A3ADJ,(STRPTR)MSG_TX_A3ADJ_STR},
  187.     {MSG_TX_ARTIC,(STRPTR)MSG_TX_ARTIC_STR},
  188.     {MSG_TX_AVBIAS,(STRPTR)MSG_TX_AVBIAS_STR},
  189.     {MSG_TX_AFBIAS,(STRPTR)MSG_TX_AFBIAS_STR},
  190.     {MSG_TX_CENT,(STRPTR)MSG_TX_CENT_STR},
  191.     {MSG_STR_TEXT,(STRPTR)MSG_STR_TEXT_STR},
  192.     {MSG_BT_SPEAK,(STRPTR)MSG_BT_SPEAK_STR},
  193.     {MSG_WIN_About,(STRPTR)MSG_WIN_About_STR},
  194.     {MSG_TX_label_7,(STRPTR)MSG_TX_label_7_STR},
  195.     {MSG_BT_OK,(STRPTR)MSG_BT_OK_STR},
  196. };
  197.  
  198. #endif /* CATCOMP_ARRAY */
  199.  
  200.  
  201. /****************************************************************************/
  202.  
  203.  
  204. #ifdef CATCOMP_BLOCK
  205.  
  206. static const char CatCompBlock[] =
  207. {
  208.     "\x00\x00\x00\x00\x00\x18"
  209.     MSG_AppDescription_STR "\x00"
  210.     "\x00\x00\x00\x01\x00\x26"
  211.     MSG_AppCopyright_STR "\x00"
  212.     "\x00\x00\x00\x02\x00\x08"
  213.     MSG_MN_label_0Projekt_STR "\x00"
  214.     "\x00\x00\x00\x03\x00\x08"
  215.     MSG_MN_label_0Quit_STR "\x00"
  216.     "\x00\x00\x00\x04\x00\x02"
  217.     MSG_MN_label_0QuitChar_STR "\x00"
  218.     "\x00\x00\x00\x05\x00\x2C"
  219.     MSG_WIN_Main_STR "\x00\x00"
  220.     "\x00\x00\x00\x06\x00\x08"
  221.     MSG_MN_label_1Projekt_STR "\x00"
  222.     "\x00\x00\x00\x07\x00\x0E"
  223.     MSG_MN_label_1About_STR "\x00"
  224.     "\x00\x00\x00\x08\x00\x02"
  225.     MSG_MN_label_1AboutChar_STR "\x00"
  226.     "\x00\x00\x00\x09\x00\x08"
  227.     MSG_MN_label_1Quit_STR "\x00"
  228.     "\x00\x00\x00\x0A\x00\x02"
  229.     MSG_MN_label_1QuitChar_STR "\x00"
  230.     "\x00\x00\x00\x0B\x00\x0A"
  231.     MSG_GR_grp_0Title_STR "\x00"
  232.     "\x00\x00\x00\x0C\x00\x0E"
  233.     MSG_TX_label_0_STR "\x00\x00"
  234.     "\x00\x00\x00\x0D\x00\x0A"
  235.     MSG_CY_SEX0_STR "\x00\x00"
  236.     "\x00\x00\x00\x0E\x00\x0A"
  237.     MSG_CY_SEX1_STR "\x00\x00"
  238.     "\x00\x00\x00\x0F\x00\x06"
  239.     MSG_TX_label_1_STR "\x00\x00"
  240.     "\x00\x00\x00\x10\x00\x08"
  241.     MSG_CY_KIND0_STR "\x00\x00"
  242.     "\x00\x00\x00\x11\x00\x0C"
  243.     MSG_CY_KIND1_STR "\x00"
  244.     "\x00\x00\x00\x12\x00\x08"
  245.     MSG_CY_KIND2_STR "\x00"
  246.     "\x00\x00\x00\x13\x00\x0E"
  247.     MSG_TX_label_4CC_STR "\x00"
  248.     "\x00\x00\x00\x14\x00\x06"
  249.     MSG_CY_OUTPUT0_STR "\x00"
  250.     "\x00\x00\x00\x15\x00\x08"
  251.     MSG_CY_OUTPUT1_STR "\x00\x00"
  252.     "\x00\x00\x00\x16\x00\x10"
  253.     MSG_CY_OUTPUT2_STR "\x00\x00"
  254.     "\x00\x00\x00\x17\x00\x0C"
  255.     MSG_TX_label_2_STR "\x00\x00"
  256.     "\x00\x00\x00\x18\x00\x12"
  257.     MSG_TX_label_3_STR "\x00\x00"
  258.     "\x00\x00\x00\x19\x00\x0C"
  259.     MSG_TX_label_4_STR "\x00"
  260.     "\x00\x00\x00\x1A\x00\x0E"
  261.     MSG_GR_grp_100_STR "\x00\x00"
  262.     "\x00\x00\x00\x1B\x00\x0E"
  263.     MSG_GR_grp_101_STR "\x00"
  264.     "\x00\x00\x00\x1C\x00\x0E"
  265.     MSG_TX_label_5_STR "\x00"
  266.     "\x00\x00\x00\x1D\x00\x0E"
  267.     MSG_TX_label_6_STR "\x00"
  268.     "\x00\x00\x00\x1E\x00\x08"
  269.     MSG_TX_F1ADJ_STR "\x00\x00"
  270.     "\x00\x00\x00\x1F\x00\x08"
  271.     MSG_TX_F2ADJ_STR "\x00\x00"
  272.     "\x00\x00\x00\x20\x00\x08"
  273.     MSG_TX_F3ADJ_STR "\x00\x00"
  274.     "\x00\x00\x00\x21\x00\x08"
  275.     MSG_TX_A1ADJ_STR "\x00\x00"
  276.     "\x00\x00\x00\x22\x00\x08"
  277.     MSG_TX_A2ADJ_STR "\x00\x00"
  278.     "\x00\x00\x00\x23\x00\x08"
  279.     MSG_TX_A3ADJ_STR "\x00\x00"
  280.     "\x00\x00\x00\x24\x00\x08"
  281.     MSG_TX_ARTIC_STR "\x00\x00"
  282.     "\x00\x00\x00\x25\x00\x08"
  283.     MSG_TX_AVBIAS_STR "\x00"
  284.     "\x00\x00\x00\x26\x00\x08"
  285.     MSG_TX_AFBIAS_STR "\x00"
  286.     "\x00\x00\x00\x27\x00\x06"
  287.     MSG_TX_CENT_STR "\x00"
  288.     "\x00\x00\x00\x28\x00\x0C"
  289.     MSG_STR_TEXT_STR "\x00"
  290.     "\x00\x00\x00\x29\x00\x0A"
  291.     MSG_BT_SPEAK_STR "\x00"
  292.     "\x00\x00\x00\x2A\x00\x0E"
  293.     MSG_WIN_About_STR "\x00"
  294.     "\x00\x00\x00\x2B\x00\x40"
  295.     MSG_TX_label_7_STR "\x00\x00"
  296.     "\x00\x00\x00\x2C\x00\x04"
  297.     MSG_BT_OK_STR "\x00\x00"
  298. };
  299.  
  300. #endif /* CATCOMP_BLOCK */
  301.  
  302.  
  303. /****************************************************************************/
  304.  
  305.  
  306. struct LocaleInfo
  307. {
  308.     APTR li_LocaleBase;
  309.     APTR li_Catalog;
  310. };
  311.  
  312.  
  313. #ifdef CATCOMP_CODE
  314.  
  315. STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
  316. {
  317. LONG   *l;
  318. UWORD  *w;
  319. STRPTR  builtIn;
  320.  
  321.     l = (LONG *)CatCompBlock;
  322.  
  323.     while (*l != stringNum)
  324.     {
  325.         w = (UWORD *)((ULONG)l + 4);
  326.         l = (LONG *)((ULONG)l + (ULONG)*w + 6);
  327.     }
  328.     builtIn = (STRPTR)((ULONG)l + 6);
  329.  
  330. #define XLocaleBase LocaleBase
  331. #define LocaleBase li->li_LocaleBase
  332.     
  333.     if (LocaleBase)
  334.         return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
  335. #define LocaleBase XLocaleBase
  336. #undef XLocaleBase
  337.  
  338.     return(builtIn);
  339. }
  340.  
  341.  
  342. #endif /* CATCOMP_CODE */
  343.  
  344.  
  345. /****************************************************************************/
  346.  
  347.  
  348. #endif /* SPEAKSTRINGS_CAT_H */
  349.