~mshinke/nvdajp/MiscellaneousDependencies

« back to all changes in this revision

Viewing changes to include/jtalk/libopenjtalk/jpcommon/jpcommon_rule_euc_jp.h

  • Committer: Masataka Shinke
  • Date: 2012-01-12 20:01:32 UTC
  • mfrom: (26.1.42 miscdep)
  • Revision ID: mshinke@users.sourceforge.jp-20120112200132-fvksmjulcjdzu5mk
merged lp:~nishimotz/nvdajp/MiscellaneousDependencies 68

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ----------------------------------------------------------------- */
 
2
/*           The Japanese TTS System "Open JTalk"                    */
 
3
/*           developed by HTS Working Group                          */
 
4
/*           http://open-jtalk.sourceforge.net/                      */
 
5
/* ----------------------------------------------------------------- */
 
6
/*                                                                   */
 
7
/*  Copyright (c) 2008-2011  Nagoya Institute of Technology          */
 
8
/*                           Department of Computer Science          */
 
9
/*                                                                   */
 
10
/* All rights reserved.                                              */
 
11
/*                                                                   */
 
12
/* Redistribution and use in source and binary forms, with or        */
 
13
/* without modification, are permitted provided that the following   */
 
14
/* conditions are met:                                               */
 
15
/*                                                                   */
 
16
/* - Redistributions of source code must retain the above copyright  */
 
17
/*   notice, this list of conditions and the following disclaimer.   */
 
18
/* - Redistributions in binary form must reproduce the above         */
 
19
/*   copyright notice, this list of conditions and the following     */
 
20
/*   disclaimer in the documentation and/or other materials provided */
 
21
/*   with the distribution.                                          */
 
22
/* - Neither the name of the HTS working group nor the names of its  */
 
23
/*   contributors may be used to endorse or promote products derived */
 
24
/*   from this software without specific prior written permission.   */
 
25
/*                                                                   */
 
26
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND            */
 
27
/* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,       */
 
28
/* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF          */
 
29
/* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE          */
 
30
/* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */
 
31
/* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,          */
 
32
/* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED   */
 
33
/* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,     */
 
34
/* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */
 
35
/* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,   */
 
36
/* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY    */
 
37
/* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE           */
 
38
/* POSSIBILITY OF SUCH DAMAGE.                                       */
 
39
/* ----------------------------------------------------------------- */
 
40
 
 
41
#ifndef JPCOMMON_RULE_H
 
42
#define JPCOMMON_RULE_H
 
43
 
 
44
#ifdef __cplusplus
 
45
#define JPCOMMON_RULE_H_START extern "C" {
 
46
#define JPCOMMON_RULE_H_END   }
 
47
#else
 
48
#define JPCOMMON_RULE_H_START
 
49
#define JPCOMMON_RULE_H_END
 
50
#endif                          /* __CPLUSPLUS */
 
51
 
 
52
JPCOMMON_RULE_H_START;
 
53
 
 
54
#define JPCOMMON_MORA_UNVOICE "��"
 
55
#define JPCOMMON_MORA_LONG_VOWEL "��"
 
56
#define JPCOMMON_MORA_SHORT_PAUSE "��"
 
57
#define JPCOMMON_MORA_QUESTION "��"
 
58
#define JPCOMMON_PHONEME_SHORT_PAUSE "pau"
 
59
#define JPCOMMON_PHONEME_SILENT "sil"
 
60
#define JPCOMMON_PHONEME_UNKNOWN "xx"
 
61
#define JPCOMMON_FLAG_QUESTION "1"
 
62
 
 
63
static const char *jpcommon_unvoice_list[] = {
 
64
   "a", "A",
 
65
   "i", "I",
 
66
   "u", "U",
 
67
   "e", "E",
 
68
   "o", "O",
 
69
   NULL, NULL
 
70
};
 
71
 
 
72
static const char *jpcommon_mora_list[] = {
 
73
   "����", "by", "o",
 
74
   "����", "by", "u",
 
75
   "����", "by", "a",
 
76
   "����", "v", "o",
 
77
   "����", "v", "e",
 
78
   "����", "v", "i",
 
79
   "����", "v", "a",
 
80
   "��", "v", "u",
 
81
   "��", "N", NULL,
 
82
   "��", "o", NULL,
 
83
   "��", "e", NULL,
 
84
   "��", "i", NULL,
 
85
   "��", "w", "a",
 
86
   "��", "r", "o",
 
87
   "��", "r", "e",
 
88
   "��", "r", "u",
 
89
   "���", "ry", "o",
 
90
   "���", "ry", "u",
 
91
   "���", "ry", "a",
 
92
   "�ꥧ", "ry", "e",
 
93
   "��", "r", "i",
 
94
   "��", "r", "a",
 
95
   "��", "y", "o",
 
96
   "��", "y", "o",
 
97
   "��", "y", "u",
 
98
   "��", "y", "u",
 
99
   "��", "y", "a",
 
100
   "��", "y", "a",
 
101
   "��", "m", "o",
 
102
   "��", "m", "e",
 
103
   "��", "m", "u",
 
104
   "�ߥ�", "my", "o",
 
105
   "�ߥ�", "my", "u",
 
106
   "�ߥ�", "my", "a",
 
107
   "�ߥ�", "my", "e",
 
108
   "��", "m", "i",
 
109
   "��", "m", "a",
 
110
   "��", "p", "o",
 
111
   "��", "b", "o",
 
112
   "��", "h", "o",
 
113
   "��", "p", "e",
 
114
   "��", "b", "e",
 
115
   "��", "h", "e",
 
116
   "��", "p", "u",
 
117
   "��", "b", "u",
 
118
   "�ե�", "f", "o",
 
119
   "�ե�", "f", "e",
 
120
   "�ե�", "f", "i",
 
121
   "�ե�", "f", "a",
 
122
   "��", "f", "u",
 
123
   "�ԥ�", "py", "o",
 
124
   "�ԥ�", "py", "u",
 
125
   "�ԥ�", "py", "a",
 
126
   "�ԥ�", "py", "e",
 
127
   "��", "p", "i",
 
128
   "�ӥ�", "by", "o",
 
129
   "�ӥ�", "by", "u",
 
130
   "�ӥ�", "by", "a",
 
131
   "�ӥ�", "by", "e",
 
132
   "��", "b", "i",
 
133
   "�ҥ�", "hy", "o",
 
134
   "�ҥ�", "hy", "u",
 
135
   "�ҥ�", "hy", "a",
 
136
   "�ҥ�", "hy", "e",
 
137
   "��", "h", "i",
 
138
   "��", "p", "a",
 
139
   "��", "b", "a",
 
140
   "��", "h", "a",
 
141
   "��", "n", "o",
 
142
   "��", "n", "e",
 
143
   "��", "n", "u",
 
144
   "�˥�", "ny", "o",
 
145
   "�˥�", "ny", "u",
 
146
   "�˥�", "ny", "a",
 
147
   "�˥�", "ny", "e",
 
148
   "��", "n", "i",
 
149
   "��", "n", "a",
 
150
   "�ɥ�", "d", "u",
 
151
   "��", "d", "o",
 
152
   "�ȥ�", "t", "u",
 
153
   "��", "t", "o",
 
154
   "�ǥ�", "dy", "o",
 
155
   "�ǥ�", "dy", "u",
 
156
   "�ǥ�", "dy", "a",
 
157
   "�ǥ�", "dy", "e",
 
158
   "�ǥ�", "d", "i",
 
159
   "��", "d", "e",
 
160
   "�ƥ�", "ty", "o",
 
161
   "�ƥ�", "ty", "u",
 
162
   "�ƥ�", "ty", "a",
 
163
   "�ƥ�", "t", "i",
 
164
   "��", "t", "e",
 
165
   "��", "z", "u",
 
166
   "�ĥ�", "ts", "o",
 
167
   "�ĥ�", "ts", "e",
 
168
   "�ĥ�", "ts", "i",
 
169
   "�ĥ�", "ts", "a",
 
170
   "��", "ts", "u",
 
171
   "��", "cl", NULL,
 
172
   "��", "j", "i",
 
173
   "����", "ch", "o",
 
174
   "����", "ch", "u",
 
175
   "����", "ch", "a",
 
176
   "����", "ch", "e",
 
177
   "��", "ch", "i",
 
178
   "��", "d", "a",
 
179
   "��", "t", "a",
 
180
   "��", "z", "o",
 
181
   "��", "s", "o",
 
182
   "��", "z", "e",
 
183
   "��", "s", "e",
 
184
   "����", "z", "i",
 
185
   "��", "z", "u",
 
186
   "����", "s", "i",
 
187
   "��", "s", "u",
 
188
   "����", "j", "o",
 
189
   "����", "j", "u",
 
190
   "����", "j", "a",
 
191
   "����", "j", "e",
 
192
   "��", "j", "i",
 
193
   "����", "sh", "o",
 
194
   "����", "sh", "u",
 
195
   "����", "sh", "a",
 
196
   "����", "sh", "e",
 
197
   "��", "sh", "i",
 
198
   "��", "z", "a",
 
199
   "��", "s", "a",
 
200
   "��", "g", "o",
 
201
   "��", "k", "o",
 
202
   "��", "g", "e",
 
203
   "��", "k", "e",
 
204
   "��", "g", "u",
 
205
   "��", "k", "u",
 
206
   "����", "gy", "o",
 
207
   "����", "gy", "u",
 
208
   "����", "gy", "a",
 
209
   "����", "gy", "e",
 
210
   "��", "g", "i",
 
211
   "����", "ky", "o",
 
212
   "����", "ky", "u",
 
213
   "����", "ky", "a",
 
214
   "����", "ky", "e",
 
215
   "��", "k", "i",
 
216
   "��", "g", "a",
 
217
   "��", "k", "a",
 
218
   "��", "o", NULL,
 
219
   "��", "o", NULL,
 
220
   "��", "e", NULL,
 
221
   "��", "e", NULL,
 
222
   "����", "w", "o",
 
223
   "����", "w", "e",
 
224
   "����", "w", "i",
 
225
   "��", "u", NULL,
 
226
   "��", "u", NULL,
 
227
   "����", "y", "e",
 
228
   "��", "i", NULL,
 
229
   "��", "i", NULL,
 
230
   "��", "a", NULL,
 
231
   "��", "a", NULL,
 
232
   NULL, NULL, NULL
 
233
};
 
234
 
 
235
static const char *jpcommon_pos_list[] = {
 
236
   "����¾", "xx",
 
237
   "��ư��", "09",
 
238
   "����", "xx",
 
239
   "������", "19",
 
240
   "���ƻ�", "01",
 
241
   "����-����¾", "23",
 
242
   "����-�ʽ���", "13",
 
243
   "����-������", "24",
 
244
   "����-������", "14",
 
245
   "����-��³����", "12",
 
246
   "����-������", "11",
 
247
   "��ư��", "10",
 
248
   "��³��", "08",
 
249
   "��Ƭ��", "16",
 
250
   "��Ƭ��-������Ū", "16",
 
251
   "��Ƭ��-���ƻ�Ū", "16",
 
252
   "��Ƭ��-ư��Ū", "16",
 
253
   "��Ƭ��-̾��Ū", "16",
 
254
   "������-������Ū", "16",
 
255
   "������-���ƻ�Ū", "15",
 
256
   "������-ư��Ū", "15",
 
257
   "������-̾��Ū", "15",
 
258
   "��̾��", "04",
 
259
   "ư��", "20",
 
260
   "ư��-��Ω", "17",
 
261
   "����", "06",
 
262
   "̾��-������³", "03",
 
263
   "̾��-��ͭ̾��", "18",
 
264
   "̾��-����", "05",
 
265
   "̾��-��Ω", "22",
 
266
   "̾��-����̾��", "02",
 
267
   "Ϣ�λ�", "07",
 
268
   NULL, NULL
 
269
};
 
270
 
 
271
 
 
272
static const char *jpcommon_cform_list[] = {
 
273
   "*", "xx",
 
274
   "����¾", "6",
 
275
   "�����", "4",
 
276
   "���ܷ�", "2",
 
277
   "̤����", "0",
 
278
   "̿���", "5",
 
279
   "Ϣ�η�", "3",
 
280
   "Ϣ�ѷ�", "1",
 
281
   NULL, NULL
 
282
};
 
283
 
 
284
static const char *jpcommon_ctype_list[] = {
 
285
   "*", "xx",
 
286
   "�����ѳ�", "5",
 
287
   "�����ѳ�", "4",
 
288
   "����ѳ�", "6",
 
289
   "����", "3",
 
290
   "���ƻ�", "7",
 
291
   "����", "1",
 
292
   "����", "6",
 
293
   "��ư��", "7",
 
294
   "����", "6",
 
295
   "���Ѳ�", "6",
 
296
   "ʸ���ư��", "6",
 
297
   NULL, NULL
 
298
};
 
299
 
 
300
JPCOMMON_RULE_H_END;
 
301
 
 
302
#endif                          /* !JPCOMMON_RULE_H */