Debian Codegraph @

external/espeak/tr_languages.cpp

raw symbols SCIP
1 /*
2 * Copyright (C) 2005 to 2015 by Jonathan Duddington
3 * email: [email protected]
4 * Copyright (C) 2015-2016, 2020 Reece H. Dunn
5 * Copyright (C) 2021 Juho Hiltunen
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, see: <http://www.gnu.org/licenses/>.
19 */
20
21 #include "espeak__config.h"cxx . . $ `<file>/external/espeak/espeak__config.h`/
22
23 #include <ctype.h>
24 #include <locale.h>
25 #include <stdint.h>
26 #include <stdio.h>
27 #include <stdlib.h>
28 #include <string.h>
29
30 #include "espeak_ng.h"cxx . . $ `<file>/external/espeak/espeak_ng.h`/
31 #include "speak_lib.h"cxx . . $ `<file>/external/espeak/speak_lib.h`/
32 #include "encoding.h"cxx . . $ `<file>/external/espeak/encoding.h`/
33
34 #include "common.h"cxx . . $ `<file>/external/espeak/common.h`/
35 #include "setlengths.h"cxx . . $ `<file>/external/espeak/setlengths.h`/ // for SetLengthMods
36 #include "translate.h"cxx . . $ `<file>/external/espeak/translate.h`/ // for Translator, LANGUAGE_OPTIONS, L, NUM...
37
38 // start of unicode pages for character sets
39 #define OFFSET_GREEKcxx . . $ `external/espeak/tr_languages.cpp:39:9`! 0x380
40 #define OFFSET_CYRILLICcxx . . $ `external/espeak/tr_languages.cpp:40:9`! 0x420
41 #define OFFSET_ARMENIANcxx . . $ `external/espeak/tr_languages.cpp:41:9`! 0x530
42 #define OFFSET_HEBREWcxx . . $ `external/espeak/tr_languages.cpp:42:9`! 0x590
43 #define OFFSET_ARABICcxx . . $ `external/espeak/tr_languages.cpp:43:9`! 0x600
44 #define OFFSET_SYRIACcxx . . $ `external/espeak/tr_languages.cpp:44:9`! 0x700
45 #define OFFSET_DEVANAGARIcxx . . $ `external/espeak/tr_languages.cpp:45:9`! 0x900
46 #define OFFSET_BENGALIcxx . . $ `external/espeak/tr_languages.cpp:46:9`! 0x980
47 #define OFFSET_GURMUKHIcxx . . $ `external/espeak/tr_languages.cpp:47:9`! 0xa00
48 #define OFFSET_GUJARATIcxx . . $ `external/espeak/tr_languages.cpp:48:9`! 0xa80
49 #define OFFSET_ORIYAcxx . . $ `external/espeak/tr_languages.cpp:49:9`! 0xb00
50 #define OFFSET_TAMILcxx . . $ `external/espeak/tr_languages.cpp:50:9`! 0xb80
51 #define OFFSET_TELUGUcxx . . $ `external/espeak/tr_languages.cpp:51:9`! 0xc00
52 #define OFFSET_KANNADAcxx . . $ `external/espeak/tr_languages.cpp:52:9`! 0xc80
53 #define OFFSET_MALAYALAMcxx . . $ `external/espeak/tr_languages.cpp:53:9`! 0xd00
54 #define OFFSET_SINHALAcxx . . $ `external/espeak/tr_languages.cpp:54:9`! 0x0d80
55 #define OFFSET_THAIcxx . . $ `external/espeak/tr_languages.cpp:55:9`! 0x0e00
56 #define OFFSET_LAOcxx . . $ `external/espeak/tr_languages.cpp:56:9`! 0x0e80
57 #define OFFSET_TIBETcxx . . $ `external/espeak/tr_languages.cpp:57:9`! 0x0f00
58 #define OFFSET_MYANMARcxx . . $ `external/espeak/tr_languages.cpp:58:9`! 0x1000
59 #define OFFSET_GEORGIANcxx . . $ `external/espeak/tr_languages.cpp:59:9`! 0x10a0
60 #define OFFSET_KOREANcxx . . $ `external/espeak/tr_languages.cpp:60:9`! 0x1100
61 #define OFFSET_ETHIOPICcxx . . $ `external/espeak/tr_languages.cpp:61:9`! 0x1200
62
63 // character ranges must be listed in ascending unicode order
64 static const ALPHABET alphabetscxx . . $ alphabets.[] = {
65 { "_el", OFFSET_GREEKcxx . . $ `external/espeak/tr_languages.cpp:39:9`!, 0x380, 0x3ff, Lcxx . . $ `external/espeak/translate.h:33:9`!('e', 'l'), AL_DONT_NAMEcxx . . $ `external/espeak/translate.h:280:9`! | AL_NOT_LETTERScxx . . $ `external/espeak/translate.h:281:9`! | AL_WORDScxx . . $ `external/espeak/translate.h:282:9`! },
66 { "_cyr", OFFSET_CYRILLICcxx . . $ `external/espeak/tr_languages.cpp:40:9`!, 0x400, 0x52f, 0, 0 },
67 { "_hy", OFFSET_ARMENIANcxx . . $ `external/espeak/tr_languages.cpp:41:9`!, 0x530, 0x58f, Lcxx . . $ `external/espeak/translate.h:33:9`!('h', 'y'), AL_WORDScxx . . $ `external/espeak/translate.h:282:9`! },
68 { "_he", OFFSET_HEBREWcxx . . $ `external/espeak/tr_languages.cpp:42:9`!, 0x590, 0x5ff, 0, 0 },
69 { "_ar", OFFSET_ARABICcxx . . $ `external/espeak/tr_languages.cpp:43:9`!, 0x600, 0x6ff, 0, 0 },
70 { "_syc", OFFSET_SYRIACcxx . . $ `external/espeak/tr_languages.cpp:44:9`!, 0x700, 0x74f, 0, 0 },
71 { "_hi", OFFSET_DEVANAGARIcxx . . $ `external/espeak/tr_languages.cpp:45:9`!, 0x900, 0x97f, Lcxx . . $ `external/espeak/translate.h:33:9`!('h', 'i'), AL_WORDScxx . . $ `external/espeak/translate.h:282:9`! },
72 { "_bn", OFFSET_BENGALIcxx . . $ `external/espeak/tr_languages.cpp:46:9`!, 0x0980, 0x9ff, Lcxx . . $ `external/espeak/translate.h:33:9`!('b', 'n'), AL_WORDScxx . . $ `external/espeak/translate.h:282:9`! },
73 { "_gur", OFFSET_GURMUKHIcxx . . $ `external/espeak/tr_languages.cpp:47:9`!, 0xa00, 0xa7f, Lcxx . . $ `external/espeak/translate.h:33:9`!('p', 'a'), AL_WORDScxx . . $ `external/espeak/translate.h:282:9`! },
74 { "_gu", OFFSET_GUJARATIcxx . . $ `external/espeak/tr_languages.cpp:48:9`!, 0xa80, 0xaff, Lcxx . . $ `external/espeak/translate.h:33:9`!('g', 'u'), AL_WORDScxx . . $ `external/espeak/translate.h:282:9`! },
75 { "_or", OFFSET_ORIYAcxx . . $ `external/espeak/tr_languages.cpp:49:9`!, 0xb00, 0xb7f, 0, 0 },
76 { "_ta", OFFSET_TAMILcxx . . $ `external/espeak/tr_languages.cpp:50:9`!, 0xb80, 0xbff, Lcxx . . $ `external/espeak/translate.h:33:9`!('t', 'a'), AL_WORDScxx . . $ `external/espeak/translate.h:282:9`! },
77 { "_te", OFFSET_TELUGUcxx . . $ `external/espeak/tr_languages.cpp:51:9`!, 0xc00, 0xc7f, Lcxx . . $ `external/espeak/translate.h:33:9`!('t', 'e'), 0 },
78 { "_kn", OFFSET_KANNADAcxx . . $ `external/espeak/tr_languages.cpp:52:9`!, 0xc80, 0xcff, Lcxx . . $ `external/espeak/translate.h:33:9`!('k', 'n'), AL_WORDScxx . . $ `external/espeak/translate.h:282:9`! },
79 { "_ml", OFFSET_MALAYALAMcxx . . $ `external/espeak/tr_languages.cpp:53:9`!, 0xd00, 0xd7f, Lcxx . . $ `external/espeak/translate.h:33:9`!('m', 'l'), AL_WORDScxx . . $ `external/espeak/translate.h:282:9`! },
80 { "_si", OFFSET_SINHALAcxx . . $ `external/espeak/tr_languages.cpp:54:9`!, 0xd80, 0xdff, Lcxx . . $ `external/espeak/translate.h:33:9`!('s', 'i'), AL_WORDScxx . . $ `external/espeak/translate.h:282:9`! },
81 { "_th", OFFSET_THAIcxx . . $ `external/espeak/tr_languages.cpp:55:9`!, 0xe00, 0xe7f, 0, 0 },
82 { "_lo", OFFSET_LAOcxx . . $ `external/espeak/tr_languages.cpp:56:9`!, 0xe80, 0xeff, 0, 0 },
83 { "_ti", OFFSET_TIBETcxx . . $ `external/espeak/tr_languages.cpp:57:9`!, 0xf00, 0xfff, 0, 0 },
84 { "_my", OFFSET_MYANMARcxx . . $ `external/espeak/tr_languages.cpp:58:9`!, 0x1000, 0x109f, 0, 0 },
85 { "_ka", OFFSET_GEORGIANcxx . . $ `external/espeak/tr_languages.cpp:59:9`!, 0x10a0, 0x10ff, Lcxx . . $ `external/espeak/translate.h:33:9`!('k', 'a'), AL_WORDScxx . . $ `external/espeak/translate.h:282:9`! },
86 { "_ko", OFFSET_KOREANcxx . . $ `external/espeak/tr_languages.cpp:60:9`!, 0x1100, 0x11ff, Lcxx . . $ `external/espeak/translate.h:33:9`!('k', 'o'), AL_WORDScxx . . $ `external/espeak/translate.h:282:9`! },
87 { "_eth", OFFSET_ETHIOPICcxx . . $ `external/espeak/tr_languages.cpp:61:9`!, 0x1200, 0x139f, 0, 0 },
88 { "_braille", 0x2800, 0x2800, 0x28ff, 0, AL_NO_SYMBOLcxx . . $ `external/espeak/translate.h:284:9`! },
89 { "_ja", 0x3040, 0x3040, 0x30ff, 0, AL_NOT_CODEcxx . . $ `external/espeak/translate.h:283:9`! },
90 { "_zh", 0x3100, 0x3100, 0x9fff, 0, AL_NOT_CODEcxx . . $ `external/espeak/translate.h:283:9`! },
91 { "_ko", 0xa700, 0xa700, 0xd7ff, Lcxx . . $ `external/espeak/translate.h:33:9`!('k', 'o'), AL_NOT_CODEcxx . . $ `external/espeak/translate.h:283:9`! | AL_WORDScxx . . $ `external/espeak/translate.h:282:9`! },
92 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 0, 0, 0, 0, 0 }
93 };
94
95 const ALPHABET *AlphabetFromCharcxx . . $ AlphabetFromChar(425084a016b68b20).(int c)
96 {
97 // Find the alphabet from a character.
98 const ALPHABET *alphabet = alphabetscxx . . $ alphabets.;
99
100 while (alphabet->name != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) {
101 if (c <= alphabet->range_max) {
102 if (c >= alphabet->range_min)
103 return alphabet;
104 else
105 break;
106 }
107 alphabet++;
108 }
109 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
110 }
111
112 static void Translator_Russiancxx . . $ Translator_Russian(801a8dd91605e066).(Translator *tr);
113
114 static void SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(Translator *tr, int c)
115 {
116 tr->letter_bits[c] = (tr->letter_bits[c] & 0x40) | 0x81; // keep value for group 6 (front vowels e,i,y)
117 }
118
119 static void ResetLetterBitscxx . . $ ResetLetterBits(44ca618724cd7367).(Translator *tr, int groups)
120 {
121 // Clear all the specified groups
122 unsigned int ix;
123 unsigned int mask;
124
125 mask = ~groups;
126
127 for (ix = 0; ix < sizeof(tr->letter_bits); ix++)
128 tr->letter_bits[ix] &= mask;
129 }
130
131 static void SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(Translator *tr, int group, const char *string)
132 {
133 int bits;
134 unsigned char c;
135
136 bits = (1L << group);
137 while ((c = *string++) != 0)
138 tr->letter_bits[c] |= bits;
139 }
140
141 static void SetLetterBitsRangecxx . . $ SetLetterBitsRange(84df82429726f05).(Translator *tr, int group, int first, int last)
142 {
143 int bits;
144 int ix;
145
146 bits = (1L << group);
147 for (ix = first; ix <= last; ix++)
148 tr->letter_bits[ix] |= bits;
149 }
150
151 static void SetLetterBitsUTF8cxx . . $ SetLetterBitsUTF8(2b9930225cacec61).(Translator *tr, int group, const char *letters, int offset)
152 {
153 // Add the letters to the specified letter group.
154 const char *p = letters;
155 int code = -1;
156 while (code != 0) {
157 int bytes = utf8_incxx . . $ utf8_in(80e674cbced5dd06).(&code, p);
158 if (code > 0x20)
159 tr->letter_bits[code - offset] |= (1L << group);
160 p += bytes;
161 }
162 }
163
164 // ignore these characters
165 static const unsigned short chars_ignore_defaultcxx . . $ chars_ignore_default.[] = {
166 // U+00AD SOFT HYPHEN
167 // Used to mark hyphenation points in words for where to split a
168 // word at the end of a line to provide readable justified text.
169 0xad, 1,
170 // U+200C ZERO WIDTH NON-JOINER
171 // Used to prevent combined ligatures being displayed in their
172 // combined form.
173 0x200c, 1,
174 // U+200D ZERO WIDTH JOINER
175 // Used to indicate an alternative connected form made up of the
176 // characters surrounding the ZWJ in Devanagari, Kannada, Malayalam
177 // and Emoji.
178 // 0x200d, 1, // Not ignored.
179 // End of the ignored character list.
180 0, 0
181 };
182
183 // alternatively, ignore characters but allow zero-width-non-joiner (lang-fa)
184 static const unsigned short chars_ignore_zwnj_hyphencxx . . $ chars_ignore_zwnj_hyphen.[] = {
185 // U+00AD SOFT HYPHEN
186 // Used to mark hyphenation points in words for where to split a
187 // word at the end of a line to provide readable justified text.
188 0xad, 1,
189 // U+0640 TATWEEL (KASHIDA)
190 // Used in Arabic scripts to stretch characters for justifying
191 // the text.
192 0x640, 1,
193 // U+200C ZERO WIDTH NON-JOINER
194 // Used to prevent combined ligatures being displayed in their
195 // combined form.
196 0x200c, '-',
197 // U+200D ZERO WIDTH JOINER
198 // Used to indicate an alternative connected form made up of the
199 // characters surrounding the ZWJ in Devanagari, Kannada, Malayalam
200 // and Emoji.
201 // 0x200d, 1, // Not ignored.
202 // End of the ignored character list.
203 0, 0
204 };
205
206 static const unsigned char utf8_ordinalcxx . . $ utf8_ordinal.[] = { 0xc2, 0xba, 0 }; // masculine ordinal character, UTF-8
207 static const unsigned char utf8_nullcxx . . $ utf8_null.[] = { 0 }; // null string, UTF-8
208
209 static Translator *NewTranslatorcxx . . $ NewTranslator(a5facdc1280815ae).(void)
210 {
211 Translator *tr;
212 int ix;
213 static const unsigned char stress_amps2[] = { 18, 18, 20, 20, 20, 22, 22, 20 };
214 static const short stress_lengths2[8] = { 182, 140, 220, 220, 220, 240, 260, 280 };
215 static const wchar_t empty_wstring[1] = { 0 };
216 static const wchar_t punct_in_word[2] = { '\'', 0 }; // allow hyphen within words
217 static const unsigned char default_tunes[6] = { 0, 1, 2, 3, 0, 0 };
218
219 // Translates character codes in the range transpose_min to transpose_max to
220 // a number in the range 1 to 63. 0 indicates there is no translation.
221 // Used up to 57 (max of 63)
222 static const char transpose_map_latin[] = {
223 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, // 0x60
224 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 0, 0, 0, 0, 0, // 0x70
225 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x80
226 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x90
227 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0xa0
228 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0xb0
229 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0xc0
230 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0xd0
231 27, 28, 29, 0, 0, 30, 31, 32, 33, 34, 35, 36, 0, 37, 38, 0, // 0xe0
232 0, 0, 0, 39, 0, 0, 40, 0, 41, 0, 42, 0, 43, 0, 0, 0, // 0xf0
233 0, 0, 0, 44, 0, 45, 0, 46, 0, 0, 0, 0, 0, 47, 0, 0, // 0x100
234 0, 48, 0, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, // 0x110
235 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x120
236 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x130
237 0, 0, 50, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x140
238 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, // 0x150
239 0, 53, 0, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x160
240 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 55, 0, 56, 0, 57, 0, // 0x170
241 };
242
243 if ((tr = (Translator *)malloccxx . . $ malloc(9f008b2a9698428b).(sizeof(Translator))) == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
244 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
245
246 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_1;
247 dictionary_name[0] = 0;
248 tr->dictionary_name[0] = 0;
249 tr->phonemes_repeat[0] = 0;
250 tr->dict_condition = 0;
251 tr->dict_min_size = 0;
252 tr->data_dictrules = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; // language_1 translation rules file
253 tr->data_dictlist = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; // language_2 dictionary lookup file
254
255 tr->transpose_min = 0x60;
256 tr->transpose_max = 0x17f;
257 tr->transpose_map = transpose_map_latin;
258 tr->frequent_pairs = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
259
260 tr->expect_verb = 0;
261 tr->expect_past = 0;
262 tr->expect_verb_s = 0;
263 tr->expect_noun = 0;
264
265 tr->clause_upper_count = 0;
266 tr->clause_lower_count = 0;
267
268 // only need lower case
269 tr->letter_bits_offset = 0;
270 memset(tr->letter_bits, 0, sizeof(tr->letter_bits));
271 memset(tr->letter_groups, 0, sizeof(tr->letter_groups));
272
273 // 0-6 sets of characters matched by A B C H F G Y in pronunciation rules
274 // these may be set differently for different languages
275 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, 0, "aeiou"); // A vowels, except y
276 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, 1, "bcdfgjklmnpqstvxz"); // B hard consonants, excluding h,r,w
277 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, 2, "bcdfghjklmnpqrstvwxz"); // C all consonants
278 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, 3, "hlmnr"); // H 'soft' consonants
279 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, 4, "cfhkpqstx"); // F voiceless consonants
280 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, 5, "bdgjlmnrvwyz"); // G voiced
281 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, 6, "eiy"); // Letter group Y, front vowels
282 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, 7, "aeiouy"); // vowels, including y
283
284 tr->char_plus_apostrophe = empty_wstring;
285 tr->punct_within_word = punct_in_word;
286 tr->chars_ignore = chars_ignore_defaultcxx . . $ chars_ignore_default.;
287
288 for (ix = 0; ix < 8; ix++) {
289 tr->stress_amps[ix] = stress_amps2[ix];
290 tr->stress_lengths[ix] = stress_lengths2[ix];
291 }
292 memset(&(tr->langopts), 0, sizeof(tr->langopts));
293 tr->langopts.max_lengthmod = 500;
294 tr->langopts.lengthen_tonic = 20;
295
296 tr->langopts.stress_rule = STRESSPOSN_2Rcxx . . $ `external/espeak/translate.h:356:9`!;
297 tr->langopts.unstressed_wd1 = 1;
298 tr->langopts.unstressed_wd2 = 3;
299 tr->langopts.param[LOPT_SONORANT_MINcxx . . $ `external/espeak/translate.h:308:9`!] = 95;
300 tr->langopts.param[LOPT_LONG_VOWEL_THRESHOLDcxx . . $ `external/espeak/translate.h:341:9`!] = 190/2;
301 tr->langopts.param[LOPT_MAXAMP_EOCcxx . . $ `external/espeak/translate.h:315:9`!] = 19;
302 tr->langopts.param[LOPT_UNPRONOUNCABLEcxx . . $ `external/espeak/translate.h:305:9`!] = 's'; // don't count this character at start of word
303 tr->langopts.param[LOPT_BRACKET_PAUSEcxx . . $ `external/espeak/translate.h:335:9`!] = 4; // pause at bracket
304 tr->langopts.param[LOPT_BRACKET_PAUSE_ANNOUNCEDcxx . . $ `external/espeak/translate.h:351:9`!] = 2; // pauses when announcing bracket names
305 tr->langopts.spelling_stress = false;
306 tr->langopts.max_initial_consonants = 3;
307 tr->langopts.replace_chars = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
308 tr->langopts.alt_alphabet_lang = Lcxx . . $ `external/espeak/translate.h:33:9`!('e', 'n');
309 tr->langopts.roman_suffix = utf8_nullcxx . . $ utf8_null.;
310 tr->langopts.lowercase_sentence = false;
311
312 SetLengthMods(tr, 201);
313
314 tr->langopts.long_stop = 100;
315
316 tr->langopts.max_roman = 49;
317 tr->langopts.min_roman = 2;
318 tr->langopts.thousands_sep = ',';
319 tr->langopts.decimal_sep = '.';
320 tr->langopts.numbers = NUM_DEFAULTcxx . . $ `external/espeak/translate.h:437:9`!;
321 tr->langopts.break_numbers = BREAK_THOUSANDScxx . . $ `external/espeak/translate.h:502:9`!;
322 tr->langopts.max_digits = 14;
323
324 // index by 0=. 1=, 2=?, 3=! 4=none, 5=emphasized
325 unsigned char punctuation_to_tone[INTONATION_TYPEScxx . . $ `external/espeak/translate.h:571:10`!][PUNCT_INTONATIONScxx . . $ `external/espeak/translate.h:572:10`!] = {
326 { 0, 1, 2, 3, 0, 4 },
327 { 0, 1, 2, 3, 0, 4 },
328 { 5, 6, 2, 3, 0, 4 },
329 { 5, 7, 1, 3, 0, 4 },
330 { 8, 9, 10, 3, 0, 0 },
331 { 8, 8, 10, 3, 0, 0 },
332 { 11, 11, 11, 11, 0, 0 }, // 6 test
333 { 12, 12, 12, 12, 0, 0 }
334 };
335
336 memcpy(tr->punct_to_tone, punctuation_to_tone, sizeof(tr->punct_to_tone));
337
338 memcpy(tr->langopts.tunes, default_tunes, sizeof(tr->langopts.tunes));
339
340 return tr;
341 }
342
343 // common letter pairs, encode these as a single byte
344 // 2 bytes, using the transposed character codes
345 static const short pairs_rucxx . . $ pairs_ru.[] = {
346 0x010c, // ла 21052 0x23
347 0x010e, // на 18400
348 0x0113, // та 14254
349 0x0301, // ав 31083
350 0x030f, // ов 13420
351 0x060e, // не 21798
352 0x0611, // ре 19458
353 0x0903, // ви 16226
354 0x0b01, // ак 14456
355 0x0b0f, // ок 17836
356 0x0c01, // ал 13324
357 0x0c09, // ил 16877
358 0x0e01, // ан 15359
359 0x0e06, // ен 13543 0x30
360 0x0e09, // ин 17168
361 0x0e0e, // нн 15973
362 0x0e0f, // он 22373
363 0x0e1c, // ын 15052
364 0x0f03, // во 24947
365 0x0f11, // ро 13552
366 0x0f12, // со 16368
367 0x100f, // оп 19054
368 0x1011, // рп 17067
369 0x1101, // ар 23967
370 0x1106, // ер 18795
371 0x1109, // ир 13797
372 0x110f, // ор 21737
373 0x1213, // тс 25076
374 0x1220, // яс 14310
375 0x7fff
376 };
377
378 static const unsigned char ru_vowelscxx . . $ ru_vowels.[] = { // (also kazakh) offset by 0x420 -- а е ё и о у ы э ю я ә ө ұ ү і
379 0x10, 0x15, 0x31, 0x18, 0x1e, 0x23, 0x2b, 0x2d, 0x2e, 0x2f, 0xb9, 0xc9, 0x91, 0x8f, 0x36, 0
380 };
381 static const unsigned char ru_consonantscxx . . $ ru_consonants.[] = { // б в г д ж з й к л м н п р с т ф х ц ч ш щ ъ ь қ ң һ
382 0x11, 0x12, 0x13, 0x14, 0x16, 0x17, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1f, 0x20, 0x21, 0x22, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x2c, 0x73, 0x7b, 0x83, 0x9b, 0
383 };
384
385 static void SetArabicLetterscxx . . $ SetArabicLetters(801a8dd91605e066).(Translator *tr)
386 {
387 const char *arab_vowel_letters = "َ ُ ِ";
388 const char *arab_consonant_vowel_letters = "ا و ي";
389 const char *arab_consonant_letters = "ب پ ت ة ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن ئ ؤ ء أ آ إ ه";
390 const char *arab_thick_letters = "ص ض ط ظ";
391 const char *arab_shadda_letter = " ّ ";
392 const char *arab_hamza_letter = " ّ ";
393 const char *arab_sukun_letter = " ّ ";
394
395 SetLetterBitsUTF8cxx . . $ SetLetterBitsUTF8(2b9930225cacec61).(tr, LETTERGP_Acxx . . $ `external/espeak/translate.h:199:9`!, arab_vowel_letters, OFFSET_ARABICcxx . . $ `external/espeak/tr_languages.cpp:43:9`!);
396 SetLetterBitsUTF8cxx . . $ SetLetterBitsUTF8(2b9930225cacec61).(tr, LETTERGP_Bcxx . . $ `external/espeak/translate.h:200:9`!, arab_consonant_vowel_letters, OFFSET_ARABICcxx . . $ `external/espeak/tr_languages.cpp:43:9`!);
397 SetLetterBitsUTF8cxx . . $ SetLetterBitsUTF8(2b9930225cacec61).(tr, LETTERGP_Ccxx . . $ `external/espeak/translate.h:201:9`!, arab_consonant_letters, OFFSET_ARABICcxx . . $ `external/espeak/tr_languages.cpp:43:9`!);
398 SetLetterBitsUTF8cxx . . $ SetLetterBitsUTF8(2b9930225cacec61).(tr, LETTERGP_Fcxx . . $ `external/espeak/translate.h:203:9`!, arab_thick_letters, OFFSET_ARABICcxx . . $ `external/espeak/tr_languages.cpp:43:9`!);
399 SetLetterBitsUTF8cxx . . $ SetLetterBitsUTF8(2b9930225cacec61).(tr, LETTERGP_Gcxx . . $ `external/espeak/translate.h:204:9`!, arab_shadda_letter, OFFSET_ARABICcxx . . $ `external/espeak/tr_languages.cpp:43:9`!);
400 SetLetterBitsUTF8cxx . . $ SetLetterBitsUTF8(2b9930225cacec61).(tr, LETTERGP_Hcxx . . $ `external/espeak/translate.h:202:9`!, arab_hamza_letter, OFFSET_ARABICcxx . . $ `external/espeak/tr_languages.cpp:43:9`!);
401 SetLetterBitsUTF8cxx . . $ SetLetterBitsUTF8(2b9930225cacec61).(tr, LETTERGP_Ycxx . . $ `external/espeak/translate.h:205:9`!, arab_sukun_letter, OFFSET_ARABICcxx . . $ `external/espeak/tr_languages.cpp:43:9`!);
402 }
403
404 static void SetCyrillicLetterscxx . . $ SetCyrillicLetters(801a8dd91605e066).(Translator *tr)
405 {
406 // Set letter types for Cyrillic script languages: bg (Bulgarian), ru (Russian), tt (Tatar), uk (Ukrainian).
407
408 // character codes offset by 0x420
409 static const char cyrl_soft[] = { 0x2c, 0x19, 0x27, 0x29, 0 }; // letter group B [k ts; s;] -- ь й ч щ
410 static const char cyrl_hard[] = { 0x2a, 0x16, 0x26, 0x28, 0 }; // letter group H [S Z ts] -- ъ ж ц ш
411 static const char cyrl_nothard[] = { 0x11, 0x12, 0x13, 0x14, 0x17, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1f, 0x20, 0x21, 0x22, 0x24, 0x25, 0x27, 0x29, 0x2c, 0 }; // б в г д з й к л м н п р с т ф х ч щ ь
412 static const char cyrl_voiced[] = { 0x11, 0x12, 0x13, 0x14, 0x16, 0x17, 0 }; // letter group G (voiced obstruents) -- б в г д ж з
413 static const char cyrl_ivowels[] = { 0x2c, 0x2e, 0x2f, 0x31, 0 }; // letter group Y (iotated vowels & soft-sign) -- ь ю я ё
414 tr->encoding = ESPEAKNG_ENCODING_KOI8_R;
415 tr->transpose_min = 0x430; // convert cyrillic from unicode into range 0x01 to 0x22
416 tr->transpose_max = 0x451;
417 tr->transpose_map = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
418 tr->frequent_pairs = pairs_rucxx . . $ pairs_ru.;
419
420 tr->letter_bits_offset = OFFSET_CYRILLICcxx . . $ `external/espeak/tr_languages.cpp:40:9`!;
421 memset(tr->letter_bits, 0, sizeof(tr->letter_bits));
422 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Acxx . . $ `external/espeak/translate.h:199:9`!, (char *)ru_vowelscxx . . $ ru_vowels.);
423 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Bcxx . . $ `external/espeak/translate.h:200:9`!, cyrl_soft);
424 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Ccxx . . $ `external/espeak/translate.h:201:9`!, (char *)ru_consonantscxx . . $ ru_consonants.);
425 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Hcxx . . $ `external/espeak/translate.h:202:9`!, cyrl_hard);
426 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Fcxx . . $ `external/espeak/translate.h:203:9`!, cyrl_nothard);
427 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Gcxx . . $ `external/espeak/translate.h:204:9`!, cyrl_voiced);
428 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Ycxx . . $ `external/espeak/translate.h:205:9`!, cyrl_ivowels);
429 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_VOWEL2cxx . . $ `external/espeak/translate.h:206:9`!, (char *)ru_vowelscxx . . $ ru_vowels.);
430 }
431
432 static void SetIndicLetterscxx . . $ SetIndicLetters(801a8dd91605e066).(Translator *tr)
433 {
434 // Set letter types for Devanagari (Indic) script languages: Devanagari, Tamill, etc.
435
436 static const char deva_consonants2[] = { 0x02, 0x03, 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, 0x7b, 0x7c, 0x7e, 0x7f, 0 };
437 static const char deva_vowels2[] = { 0x60, 0x61, 0x55, 0x56, 0x57, 0x62, 0x63, 0 }; // non-consecutive vowels and vowel-signs
438
439 memset(tr->letter_bits, 0, sizeof(tr->letter_bits));
440 SetLetterBitsRangecxx . . $ SetLetterBitsRange(84df82429726f05).(tr, LETTERGP_Acxx . . $ `external/espeak/translate.h:199:9`!, 0x04, 0x14); // vowel letters
441 SetLetterBitsRangecxx . . $ SetLetterBitsRange(84df82429726f05).(tr, LETTERGP_Acxx . . $ `external/espeak/translate.h:199:9`!, 0x3e, 0x4d); // + vowel signs, and virama
442 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Acxx . . $ `external/espeak/translate.h:199:9`!, deva_vowels2); // + extra vowels and vowel signs
443
444 SetLetterBitsRangecxx . . $ SetLetterBitsRange(84df82429726f05).(tr, LETTERGP_Bcxx . . $ `external/espeak/translate.h:200:9`!, 0x3e, 0x4d); // vowel signs, and virama
445 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Bcxx . . $ `external/espeak/translate.h:200:9`!, deva_vowels2); // + extra vowels and vowel signs
446
447 SetLetterBitsRangecxx . . $ SetLetterBitsRange(84df82429726f05).(tr, LETTERGP_Ccxx . . $ `external/espeak/translate.h:201:9`!, 0x15, 0x39); // the main consonant range
448 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Ccxx . . $ `external/espeak/translate.h:201:9`!, deva_consonants2); // + additional consonants
449
450 SetLetterBitsRangecxx . . $ SetLetterBitsRange(84df82429726f05).(tr, LETTERGP_Ycxx . . $ `external/espeak/translate.h:205:9`!, 0x04, 0x14); // vowel letters
451 SetLetterBitsRangecxx . . $ SetLetterBitsRange(84df82429726f05).(tr, LETTERGP_Ycxx . . $ `external/espeak/translate.h:205:9`!, 0x3e, 0x4c); // + vowel signs
452 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Ycxx . . $ `external/espeak/translate.h:205:9`!, deva_vowels2); // + extra vowels and vowel signs
453
454 tr->langopts.param[LOPT_UNPRONOUNCABLEcxx . . $ `external/espeak/translate.h:305:9`!] = 1; // disable check for unpronouncable words
455 tr->langopts.suffix_add_e = tr->letter_bits_offset + 0x4d; // virama
456 }
457
458 static void SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(Translator *tr, const short *lengths, const unsigned char *amps)
459 {
460 if (lengths != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
461 memcpy(tr->stress_lengths, lengths, sizeof(tr->stress_lengths));
462 if (amps != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
463 memcpy(tr->stress_amps, amps, sizeof(tr->stress_amps));
464 }
465
466 Translator *SelectTranslatorcxx . . $ SelectTranslator(1d141e917004ab22).(const char *name)
467 {
468 int name2 = 0;
469 Translator *tr;
470
471 static const short stress_lengths_equal[8] = { 230, 230, 230, 230, 0, 0, 230, 230 };
472 static const unsigned char stress_amps_equal[8] = { 19, 19, 19, 19, 19, 19, 19, 19 };
473
474 static const short stress_lengths_fr[8] = { 190, 170, 190, 200, 0, 0, 190, 240 };
475 static const unsigned char stress_amps_fr[8] = { 18, 16, 18, 18, 18, 18, 18, 18 };
476
477 static const unsigned char stress_amps_sk[8] = { 17, 16, 20, 20, 20, 22, 22, 21 };
478 static const short stress_lengths_sk[8] = { 190, 190, 210, 210, 0, 0, 210, 210 };
479
480 static const short stress_lengths_ta[8] = { 200, 200, 210, 210, 0, 0, 230, 230 };
481 static const short stress_lengths_ta2[8] = { 230, 230, 240, 240, 0, 0, 260, 260 };
482 static const unsigned char stress_amps_ta[8] = { 18, 18, 18, 18, 20, 20, 22, 22 };
483
484 tr = NewTranslatorcxx . . $ NewTranslator(a5facdc1280815ae).();
485 strcpy(tr->dictionary_name, name);
486
487 // convert name string into a word of up to 4 characters, for the switch()
488 while (*name != 0)
489 name2 = (name2 << 8) + *name++;
490
491 switch (name2)
492 {
493 case Lcxx . . $ `external/espeak/translate.h:33:9`!('m', 'i'):
494 case Lcxx . . $ `external/espeak/translate.h:33:9`!('m', 'y'):
495 case L4cxx . . $ `external/espeak/translate.h:35:9`!('p', 'i', 'q', 'd'): // piqd
496 case Lcxx . . $ `external/espeak/translate.h:33:9`!('p', 'y'):
497 case Lcxx . . $ `external/espeak/translate.h:33:9`!('q', 'u'):
498 case L3cxx . . $ `external/espeak/translate.h:34:9`!('q', 'u', 'c'):
499 case Lcxx . . $ `external/espeak/translate.h:33:9`!('t', 'h'):
500 case Lcxx . . $ `external/espeak/translate.h:33:9`!('u', 'z'):
501 {
502 tr->langopts.numbers = 0; // disable numbers until the definition are complete in _list file
503 }
504 break;
505 case Lcxx . . $ `external/espeak/translate.h:33:9`!('a', 'f'):
506 {
507 static const short stress_lengths_af[8] = { 170, 140, 220, 220, 0, 0, 250, 270 };
508 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_af, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!);
509
510 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
511 tr->langopts.vowel_pause = 0x30;
512 tr->langopts.param[LOPT_DIERESEScxx . . $ `external/espeak/translate.h:287:9`!] = 1;
513 tr->langopts.param[LOPT_PREFIXEScxx . . $ `external/espeak/translate.h:293:9`!] = 1;
514 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'y'); // add 'y' to vowels
515
516 tr->langopts.numbers = NUM_SWAP_TENScxx . . $ `external/espeak/translate.h:440:9`! | NUM_HUNDRED_ANDcxx . . $ `external/espeak/translate.h:442:9`! | NUM_SINGLE_ANDcxx . . $ `external/espeak/translate.h:443:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`! | NUM_1900cxx . . $ `external/espeak/translate.h:447:9`!;
517 tr->langopts.accents = 1;
518 }
519 break;
520 case Lcxx . . $ `external/espeak/translate.h:33:9`!('a', 'm'): // Amharic, Ethiopia
521 {
522 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_fr, stress_amps_fr);
523 tr->letter_bits_offset = OFFSET_ETHIOPICcxx . . $ `external/espeak/tr_languages.cpp:61:9`!;
524 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
525 tr->langopts.stress_flags = S_NO_AUTO_2cxx . . $ `external/espeak/translate.h:388:9`! | S_FINAL_DIMcxx . . $ `external/espeak/translate.h:378:9`!; // don't use secondary stress
526 tr->langopts.length_mods0 = tr->langopts.length_mods; // don't lengthen vowels in the last syllable
527 tr->langopts.param[LOPT_UNPRONOUNCABLEcxx . . $ `external/espeak/translate.h:305:9`!] = 1; // disable check for unpronouncable words
528 tr->langopts.numbers = NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`!;
529 }
530 break;
531 case Lcxx . . $ `external/espeak/translate.h:33:9`!('a', 'r'): // Arabic
532 tr->transpose_min = OFFSET_ARABICcxx . . $ `external/espeak/tr_languages.cpp:43:9`!; // for ar_list, use 6-bit character codes
533 tr->transpose_max = 0x65f;
534 tr->transpose_map = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
535 tr->letter_bits_offset = OFFSET_ARABICcxx . . $ `external/espeak/tr_languages.cpp:43:9`!;
536 tr->langopts.numbers = NUM_SWAP_TENScxx . . $ `external/espeak/translate.h:440:9`! | NUM_AND_UNITScxx . . $ `external/espeak/translate.h:441:9`! | NUM_HUNDRED_ANDcxx . . $ `external/espeak/translate.h:442:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_AND_HUNDREDcxx . . $ `external/espeak/translate.h:452:9`! | NUM_THOUSAND_ANDcxx . . $ `external/espeak/translate.h:453:9`! | NUM_OMIT_1_THOUSANDcxx . . $ `external/espeak/translate.h:455:9`!;
537 tr->langopts.param[LOPT_UNPRONOUNCABLEcxx . . $ `external/espeak/translate.h:305:9`!] = 1; // disable check for unpronouncable words
538 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_6;
539 SetArabicLetterscxx . . $ SetArabicLetters(801a8dd91605e066).(tr);
540 break;
541 case Lcxx . . $ `external/espeak/translate.h:33:9`!('b', 'e'): // Belarusian
542 {
543 static const unsigned char stress_amps_be[8] = { 12, 10, 8, 8, 0, 0, 16, 17 };
544 static const short stress_lengths_be[8] = { 160, 140, 200, 140, 0, 0, 240, 160 };
545 static const wchar_t vowels_be[] = { // offset by 0x420 -- а е ё о у ы э ю я і
546 0x10, 0x15, 0x31, 0x1e, 0x23, 0x2b, 0x2d, 0x2e, 0x2f, 0x36, 0
547 };
548 static const unsigned char consonants_be[] = { // б в г д ж з й к л м н п р с т ф х ц ч ш ў
549 0x11, 0x12, 0x13, 0x14, 0x16, 0x17, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1f, 0x20, 0x21, 0x22, 0x24, 0x25, 0x26, 0x27, 0x28, 0x3e, 0
550 };
551
552 tr->langopts.stress_flags = S_NO_AUTO_2cxx . . $ `external/espeak/translate.h:388:9`! | S_NO_DIMcxx . . $ `external/espeak/translate.h:377:9`!; // don't use secondary stress
553 tr->letter_bits_offset = OFFSET_CYRILLICcxx . . $ `external/espeak/tr_languages.cpp:40:9`!;
554 tr->transpose_min = 0x430; // convert cyrillic from unicode into range 0x01 to 0x2f
555 tr->transpose_max = 0x45e;
556 memset(tr->letter_bits, 0, sizeof(tr->letter_bits));
557 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Acxx . . $ `external/espeak/translate.h:199:9`!, (char *)vowels_be);
558 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Ccxx . . $ `external/espeak/translate.h:201:9`!, (char *)consonants_be);
559 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_VOWEL2cxx . . $ `external/espeak/translate.h:206:9`!, (char *)vowels_be);
560
561 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_be, stress_amps_be);
562 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_5;
563 tr->langopts.param[LOPT_UNPRONOUNCABLEcxx . . $ `external/espeak/translate.h:305:9`!] = 1; // disable check for unpronouncable words
564 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
565 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`!;
566 tr->langopts.numbers2 = NUM2_THOUSANDPLEX_VAR_THOUSANDScxx . . $ `external/espeak/translate.h:487:9`! | NUM2_THOUSANDS_VAR1cxx . . $ `external/espeak/translate.h:491:9`!; // variant numbers before thousands
567 }
568 break;
569 case Lcxx . . $ `external/espeak/translate.h:33:9`!('b', 'g'): // Bulgarian
570 {
571 SetCyrillicLetterscxx . . $ SetCyrillicLetters(801a8dd91605e066).(tr);
572 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 0x2a);
573 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_5;
574 tr->langopts.param[LOPT_UNPRONOUNCABLEcxx . . $ `external/espeak/translate.h:305:9`!] = 0x432; // [v] don't count this character at start of word
575 tr->langopts.param[LOPT_REGRESSIVE_VOICINGcxx . . $ `external/espeak/translate.h:302:9`!] = 0x107; // devoice at end of word, and change voicing to match a following consonant (except v)
576 tr->langopts.param[LOPT_REDUCEcxx . . $ `external/espeak/translate.h:319:9`!] = 2;
577 tr->langopts.stress_rule = STRESSPOSN_2Rcxx . . $ `external/espeak/translate.h:356:9`!;
578 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_ALLOW_SPACEcxx . . $ `external/espeak/translate.h:448:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_HUNDRED_ANDcxx . . $ `external/espeak/translate.h:442:9`! | NUM_AND_UNITScxx . . $ `external/espeak/translate.h:441:9`! | NUM_SINGLE_ANDcxx . . $ `external/espeak/translate.h:443:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`! | NUM_ROMAN_ORDINALcxx . . $ `external/espeak/translate.h:461:9`! | NUM_ROMAN_CAPITALScxx . . $ `external/espeak/translate.h:459:9`!;
579 tr->langopts.thousands_sep = ' '; // don't allow dot as thousands separator
580 }
581 break;
582 case Lcxx . . $ `external/espeak/translate.h:33:9`!('b', 'n'): // Bengali
583 case Lcxx . . $ `external/espeak/translate.h:33:9`!('a', 's'): // Assamese
584 case L3cxx . . $ `external/espeak/translate.h:34:9`!('b', 'p', 'y'): // Manipuri (temporary placement - it's not indo-european)
585 {
586 static const short stress_lengths_bn[8] = { 180, 180, 210, 210, 0, 0, 230, 240 };
587 static const unsigned char stress_amps_bn[8] = { 18, 18, 18, 18, 20, 20, 22, 22 };
588 static const char bn_consonants2[3] = { 0x70, 0x71, 0 };
589
590 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_bn, stress_amps_bn);
591 tr->langopts.length_mods0 = tr->langopts.length_mods; // don't lengthen vowels in the last syllable
592
593 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
594 tr->langopts.stress_flags = S_MID_DIMcxx . . $ `external/espeak/translate.h:409:9`! | S_FINAL_DIMcxx . . $ `external/espeak/translate.h:378:9`!; // use 'diminished' for unstressed final syllable
595 tr->letter_bits_offset = OFFSET_BENGALIcxx . . $ `external/espeak/tr_languages.cpp:46:9`!;
596 SetIndicLetterscxx . . $ SetIndicLetters(801a8dd91605e066).(tr); // call this after setting OFFSET_BENGALI
597 SetLetterBitsRangecxx . . $ SetLetterBitsRange(84df82429726f05).(tr, LETTERGP_Bcxx . . $ `external/espeak/translate.h:200:9`!, 0x01, 0x01); // candranindu
598 SetLetterBitsRangecxx . . $ SetLetterBitsRange(84df82429726f05).(tr, LETTERGP_Fcxx . . $ `external/espeak/translate.h:203:9`!, 0x3e, 0x4c); // vowel signs, but not virama
599 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Ccxx . . $ `external/espeak/translate.h:201:9`!, bn_consonants2);
600
601 tr->langopts.numbers = NUM_SWAP_TENScxx . . $ `external/espeak/translate.h:440:9`!;
602 tr->langopts.break_numbers = BREAK_LAKH_BNcxx . . $ `external/espeak/translate.h:505:9`!;
603
604 if (name2 == L3cxx . . $ `external/espeak/translate.h:34:9`!('b', 'p', 'y')) {
605 tr->langopts.numbers = NUM_DEFAULTcxx . . $ `external/espeak/translate.h:437:9`!;
606 tr->langopts.numbers2 = NUM2_SWAP_THOUSANDScxx . . $ `external/espeak/translate.h:475:9`!;
607 }
608
609 }
610 break;
611 case L3cxx . . $ `external/espeak/translate.h:34:9`!('c', 'h', 'r'): // Cherokee
612 {
613 tr->langopts.param[LOPT_UNPRONOUNCABLEcxx . . $ `external/espeak/translate.h:305:9`!] = 1; // disable check for unpronouncable words
614 tr->langopts.stress_flags = S_NO_AUTO_2cxx . . $ `external/espeak/translate.h:388:9`! | S_FINAL_DIMcxx . . $ `external/espeak/translate.h:378:9`! | S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_EO_CLAUSE1cxx . . $ `external/espeak/translate.h:415:9`!;
615 }
616 break;
617 case Lcxx . . $ `external/espeak/translate.h:33:9`!('c', 'y'): // Welsh
618 {
619 static const short stress_lengths_cy[8] = { 170, 220, 180, 180, 0, 0, 250, 270 };
620 static const unsigned char stress_amps_cy[8] = { 17, 15, 18, 18, 0, 0, 22, 20 }; // 'diminished' is used to mark a quieter, final unstressed syllable
621
622 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_cy, stress_amps_cy);
623
624 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_14;
625 tr->langopts.stress_rule = STRESSPOSN_2Rcxx . . $ `external/espeak/translate.h:356:9`!;
626
627 // 'diminished' is an unstressed final syllable
628 tr->langopts.stress_flags = S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`!;
629 tr->langopts.unstressed_wd1 = 0;
630 tr->langopts.unstressed_wd2 = 2;
631 tr->langopts.param[LOPT_SONORANT_MINcxx . . $ `external/espeak/translate.h:308:9`!] = 120; // limit the shortening of sonorants before short vowels
632
633 tr->langopts.numbers = NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`!;
634
635 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'w'); // add letter to vowels and remove from consonants
636 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'y');
637 }
638 break;
639 case Lcxx . . $ `external/espeak/translate.h:33:9`!('d', 'a'): // Danish
640 {
641 static const short stress_lengths_da[8] = { 160, 140, 200, 200, 0, 0, 220, 230 };
642 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_da, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!);
643
644 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
645 tr->langopts.param[LOPT_PREFIXEScxx . . $ `external/espeak/translate.h:293:9`!] = 1;
646 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'y');
647 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_SWAP_TENScxx . . $ `external/espeak/translate.h:440:9`! | NUM_HUNDRED_ANDcxx . . $ `external/espeak/translate.h:442:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_ORDINAL_DOTcxx . . $ `external/espeak/translate.h:450:9`! | NUM_1900cxx . . $ `external/espeak/translate.h:447:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`! | NUM_ROMAN_CAPITALScxx . . $ `external/espeak/translate.h:459:9`! | NUM_ROMAN_ORDINALcxx . . $ `external/espeak/translate.h:461:9`!;
648 }
649 break;
650 case Lcxx . . $ `external/espeak/translate.h:33:9`!('d', 'e'):
651 {
652 static const short stress_lengths_de[8] = { 150, 130, 200, 200, 0, 0, 270, 270 };
653 static const unsigned char stress_amps_de[] = { 20, 20, 20, 20, 20, 22, 22, 20 };
654 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_de, stress_amps_de);
655 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
656 tr->langopts.word_gap = 0x8; // don't use linking phonemes
657 tr->langopts.vowel_pause = 0x30;
658 tr->langopts.param[LOPT_PREFIXEScxx . . $ `external/espeak/translate.h:293:9`!] = 1;
659 tr->langopts.param[LOPT_REGRESSIVE_VOICINGcxx . . $ `external/espeak/translate.h:302:9`!] = 0x100; // devoice at end of word
660 tr->langopts.param[LOPT_LONG_VOWEL_THRESHOLDcxx . . $ `external/espeak/translate.h:341:9`!] = 175/2;
661
662 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_SWAP_TENScxx . . $ `external/espeak/translate.h:440:9`! | NUM_ALLOW_SPACEcxx . . $ `external/espeak/translate.h:448:9`! | NUM_ORDINAL_DOTcxx . . $ `external/espeak/translate.h:450:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`!;
663 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'y');
664 tr->langopts.param[LOPT_UNPRONOUNCABLEcxx . . $ `external/espeak/translate.h:305:9`!] = 2; // use de_rules for unpronouncable rules
665 }
666 break;
667 case Lcxx . . $ `external/espeak/translate.h:33:9`!('e', 'n'):
668 {
669 static const short stress_lengths_en[8] = { 182, 140, 220, 220, 0, 0, 248, 275 };
670 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_en, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!);
671
672 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
673 tr->langopts.stress_flags = 0x08;
674 tr->langopts.numbers = NUM_HUNDRED_ANDcxx . . $ `external/espeak/translate.h:442:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`! | NUM_1900cxx . . $ `external/espeak/translate.h:447:9`!;
675 tr->langopts.max_digits = 33;
676 tr->langopts.param[LOPT_COMBINE_WORDScxx . . $ `external/espeak/translate.h:325:9`!] = 2; // allow "mc" to cmbine with the following word
677 tr->langopts.suffix_add_e = 'e';
678 tr->langopts.param[LOPT_UNPRONOUNCABLEcxx . . $ `external/espeak/translate.h:305:9`!] = 2; // use en_rules for unpronouncable rules
679 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, 6, "aeiouy"); // Group Y: vowels, including y
680 }
681 break;
682 case Lcxx . . $ `external/espeak/translate.h:33:9`!('e', 'l'): // Greek
683 case L3cxx . . $ `external/espeak/translate.h:34:9`!('g', 'r', 'c'): // Ancient Greek
684 {
685 static const short stress_lengths_el[8] = { 155, 180, 210, 210, 0, 0, 270, 300 };
686 static const unsigned char stress_amps_el[8] = { 15, 12, 20, 20, 20, 22, 22, 21 }; // 'diminished' is used to mark a quieter, final unstressed syllable
687
688 // character codes offset by 0x380
689 static const char el_vowels[] = { 0x10, 0x2c, 0x2d, 0x2e, 0x2f, 0x30, 0x31, 0x35, 0x37, 0x39, 0x3f, 0x45, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0 };
690 static const char el_fvowels[] = { 0x2d, 0x2e, 0x2f, 0x35, 0x37, 0x39, 0x45, 0x4d, 0 }; // ε η ι υ έ ή ί ύ _
691 static const char el_voiceless[] = { 0x38, 0x3a, 0x3e, 0x40, 0x42, 0x43, 0x44, 0x46, 0x47, 0 }; // θ κ ξ π ς σ τ φ χ _
692 static const char el_consonants[] = { 0x32, 0x33, 0x34, 0x36, 0x38, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x40, 0x41, 0x42, 0x43, 0x44, 0x46, 0x47, 0x48, 0 };
693 static const wchar_t el_char_apostrophe[] = { 0x3c3, 0 }; // σ _
694
695 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_el, stress_amps_el);
696
697 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_7;
698 tr->char_plus_apostrophe = el_char_apostrophe;
699
700 tr->letter_bits_offset = OFFSET_GREEKcxx . . $ `external/espeak/tr_languages.cpp:39:9`!;
701 memset(tr->letter_bits, 0, sizeof(tr->letter_bits));
702 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Acxx . . $ `external/espeak/translate.h:199:9`!, el_vowels);
703 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_VOWEL2cxx . . $ `external/espeak/translate.h:206:9`!, el_vowels);
704 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Bcxx . . $ `external/espeak/translate.h:200:9`!, el_voiceless);
705 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Ccxx . . $ `external/espeak/translate.h:201:9`!, el_consonants);
706 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Ycxx . . $ `external/espeak/translate.h:205:9`!, el_fvowels); // front vowels: ε η ι υ _
707
708 tr->langopts.length_mods0 = tr->langopts.length_mods; // don't lengthen vowels in the last syllable
709 tr->langopts.stress_rule = STRESSPOSN_2Rcxx . . $ `external/espeak/translate.h:356:9`!;
710 tr->langopts.stress_flags = S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`!; // mark unstressed final syllables as diminished
711 tr->langopts.unstressed_wd1 = 0;
712 tr->langopts.unstressed_wd2 = 2;
713 tr->langopts.param[LOPT_SONORANT_MINcxx . . $ `external/espeak/translate.h:308:9`!] = 130; // limit the shortening of sonorants before short vowels
714
715 tr->langopts.numbers = NUM_SINGLE_STRESScxx . . $ `external/espeak/translate.h:444:9`! | NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`!;
716 tr->langopts.numbers2 = NUM2_THOUSANDPLEX_VAR_THOUSANDScxx . . $ `external/espeak/translate.h:487:9`! | NUM2_MULTIPLE_ORDINALcxx . . $ `external/espeak/translate.h:477:9`! | NUM2_ORDINAL_NO_ANDcxx . . $ `external/espeak/translate.h:476:9`!;
717
718 if (name2 == L3cxx . . $ `external/espeak/translate.h:34:9`!('g', 'r', 'c')) {
719 // ancient greek
720 tr->langopts.param[LOPT_UNPRONOUNCABLEcxx . . $ `external/espeak/translate.h:305:9`!] = 1;
721 }
722 }
723 break;
724 case Lcxx . . $ `external/espeak/translate.h:33:9`!('e', 'o'):
725 {
726 static const short stress_lengths_eo[8] = { 150, 140, 180, 180, 0, 0, 200, 200 };
727 static const unsigned char stress_amps_eo[] = { 16, 14, 20, 20, 20, 22, 22, 21 };
728 static const wchar_t eo_char_apostrophe[2] = { 'l', 0 };
729
730 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_eo, stress_amps_eo);
731
732 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_3;
733 tr->char_plus_apostrophe = eo_char_apostrophe;
734
735 tr->langopts.vowel_pause = 2;
736 tr->langopts.stress_rule = STRESSPOSN_2Rcxx . . $ `external/espeak/translate.h:356:9`!;
737 tr->langopts.stress_flags = S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`!;
738 tr->langopts.unstressed_wd2 = 2;
739
740 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_ALLOW_SPACEcxx . . $ `external/espeak/translate.h:448:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`!;
741 }
742 break;
743 case Lcxx . . $ `external/espeak/translate.h:33:9`!('e', 's'): // Spanish
744 case Lcxx . . $ `external/espeak/translate.h:33:9`!('a', 'n'): // Aragonese
745 case Lcxx . . $ `external/espeak/translate.h:33:9`!('c', 'a'): // Catalan
746 case Lcxx . . $ `external/espeak/translate.h:33:9`!('i', 'a'): // Interlingua
747 case L3cxx . . $ `external/espeak/translate.h:34:9`!('p', 'a', 'p'): // Papiamento
748 {
749 static const short stress_lengths_es[8] = { 160, 145, 155, 150, 0, 0, 200, 245 };
750 static const unsigned char stress_amps_es[8] = { 16, 14, 15, 16, 20, 20, 22, 22 }; // 'diminished' is used to mark a quieter, final unstressed syllable
751 static const wchar_t ca_punct_within_word[] = { '\'', 0xb7, 0 }; // ca: allow middle-dot within word
752
753 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_es, stress_amps_es);
754
755 tr->langopts.length_mods0 = tr->langopts.length_mods; // don't lengthen vowels in the last syllable
756 tr->langopts.stress_rule = STRESSPOSN_2Rcxx . . $ `external/espeak/translate.h:356:9`!;
757
758 // stress last syllable if it doesn't end in vowel or "s" or "n"
759 // 'diminished' is an unstressed final syllable
760 tr->langopts.stress_flags = S_FINAL_SPANISHcxx . . $ `external/espeak/translate.h:400:9`! | S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`!;
761 tr->langopts.unstressed_wd1 = 0;
762 tr->langopts.unstressed_wd2 = 2;
763 tr->langopts.param[LOPT_SONORANT_MINcxx . . $ `external/espeak/translate.h:308:9`!] = 120; // limit the shortening of sonorants before short vowels
764
765 tr->langopts.numbers = NUM_SINGLE_STRESScxx . . $ `external/espeak/translate.h:444:9`! | NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_AND_UNITScxx . . $ `external/espeak/translate.h:441:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_OMIT_1_THOUSANDcxx . . $ `external/espeak/translate.h:455:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`! | NUM_ROMAN_AFTERcxx . . $ `external/espeak/translate.h:460:9`! | NUM_DFRACTION_4cxx . . $ `external/espeak/translate.h:467:9`!;
766 tr->langopts.numbers2 = NUM2_MULTIPLE_ORDINALcxx . . $ `external/espeak/translate.h:477:9`! | NUM2_ORDINAL_NO_ANDcxx . . $ `external/espeak/translate.h:476:9`!;
767
768 if (name2 == Lcxx . . $ `external/espeak/translate.h:33:9`!('c', 'a')) {
769 // stress last syllable unless word ends with a vowel
770 tr->punct_within_word = ca_punct_within_word;
771 tr->langopts.stress_flags = S_FINAL_SPANISHcxx . . $ `external/espeak/translate.h:400:9`! | S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`! | S_NO_AUTO_2cxx . . $ `external/espeak/translate.h:388:9`!;
772 } else if (name2 == Lcxx . . $ `external/espeak/translate.h:33:9`!('i', 'a')) {
773 tr->langopts.stress_flags = S_FINAL_SPANISHcxx . . $ `external/espeak/translate.h:400:9`! | S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`!;
774 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_OMIT_1_THOUSANDcxx . . $ `external/espeak/translate.h:455:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`! | NUM_ROMAN_AFTERcxx . . $ `external/espeak/translate.h:460:9`!;
775 } else if (name2 == Lcxx . . $ `external/espeak/translate.h:33:9`!('a', 'n')) {
776 tr->langopts.stress_flags = S_FINAL_SPANISHcxx . . $ `external/espeak/translate.h:400:9`! | S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`!;
777 tr->langopts.numbers = NUM_SINGLE_STRESScxx . . $ `external/espeak/translate.h:444:9`! | NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_AND_UNITScxx . . $ `external/espeak/translate.h:441:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_OMIT_1_THOUSANDcxx . . $ `external/espeak/translate.h:455:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`! | NUM_ROMAN_ORDINALcxx . . $ `external/espeak/translate.h:461:9`!;
778 tr->langopts.numbers2 = NUM2_ORDINAL_NO_ANDcxx . . $ `external/espeak/translate.h:476:9`!;
779 tr->langopts.roman_suffix = utf8_ordinalcxx . . $ utf8_ordinal.;
780 } else if (name2 == L3cxx . . $ `external/espeak/translate.h:34:9`!('p', 'a', 'p')) {
781 // stress last syllable unless word ends with a vowel
782 tr->langopts.stress_rule = STRESSPOSN_1Rcxx . . $ `external/espeak/translate.h:357:9`!;
783 tr->langopts.stress_flags = S_FINAL_VOWEL_UNSTRESSEDcxx . . $ `external/espeak/translate.h:397:9`! | S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`! | S_NO_AUTO_2cxx . . $ `external/espeak/translate.h:388:9`!;
784 } else
785 tr->langopts.param[LOPT_UNPRONOUNCABLEcxx . . $ `external/espeak/translate.h:305:9`!] = 2; // use es_rules for unpronouncable rules
786 }
787 break;
788 case Lcxx . . $ `external/espeak/translate.h:33:9`!('e', 'u'): // basque
789 {
790 static const short stress_lengths_eu[8] = { 200, 200, 200, 200, 0, 0, 210, 230 }; // very weak stress
791 static const unsigned char stress_amps_eu[8] = { 16, 16, 18, 18, 18, 18, 18, 18 };
792 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_eu, stress_amps_eu);
793 tr->langopts.stress_flags = S_FINAL_VOWEL_UNSTRESSEDcxx . . $ `external/espeak/translate.h:397:9`! | S_MID_DIMcxx . . $ `external/espeak/translate.h:409:9`!;
794 tr->langopts.param[LOPT_SUFFIXcxx . . $ `external/espeak/translate.h:344:9`!] = 1;
795 tr->langopts.numbers = NUM_SINGLE_STRESScxx . . $ `external/espeak/translate.h:444:9`! | NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_HUNDRED_ANDcxx . . $ `external/espeak/translate.h:442:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_OMIT_1_THOUSANDcxx . . $ `external/espeak/translate.h:455:9`! | NUM_VIGESIMALcxx . . $ `external/espeak/translate.h:454:9`!;
796 }
797 break;
798 case Lcxx . . $ `external/espeak/translate.h:33:9`!('f', 'a'): // Farsi
799 {
800 // Convert characters in the range 0x620 to 0x6cc to the range 1 to 63.
801 // 0 indicates no translation for this character
802 static const char transpose_map_fa[] = {
803 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, // 0x620
804 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 0, 0, 0, 0, 0, // 0x630
805 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, // 0x640
806 42, 43, 0, 0, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x650
807 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x660
808 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, // 0x670
809 0, 0, 0, 0, 0, 0, 46, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x680
810 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, // 0x690
811 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 0, 49, // 0x6a0
812 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x6b0
813 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 51 // 0x6c0
814 };
815 tr->transpose_min = 0x620;
816 tr->transpose_max = 0x6cc;
817 tr->transpose_map = transpose_map_fa;
818 tr->letter_bits_offset = OFFSET_ARABICcxx . . $ `external/espeak/tr_languages.cpp:43:9`!;
819
820 tr->langopts.numbers = NUM_AND_UNITScxx . . $ `external/espeak/translate.h:441:9`! | NUM_HUNDRED_ANDcxx . . $ `external/espeak/translate.h:442:9`!;
821 tr->langopts.param[LOPT_UNPRONOUNCABLEcxx . . $ `external/espeak/translate.h:305:9`!] = 1; // disable check for unpronouncable words
822
823 tr->chars_ignore = chars_ignore_zwnj_hyphencxx . . $ chars_ignore_zwnj_hyphen.; // replace ZWNJ by hyphen
824 }
825 break;
826 case Lcxx . . $ `external/espeak/translate.h:33:9`!('e', 't'): // Estonian
827 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_4;
828 // fallthrough:
829 case Lcxx . . $ `external/espeak/translate.h:33:9`!('f', 'i'): // Finnish
830 {
831 tr->langopts.long_stop = 130;
832
833 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_ALLOW_SPACEcxx . . $ `external/espeak/translate.h:448:9`! | NUM_DFRACTION_2cxx . . $ `external/espeak/translate.h:465:9`! | NUM_ORDINAL_DOTcxx . . $ `external/espeak/translate.h:450:9`!;
834 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'y');
835 }
836 break;
837 case Lcxx . . $ `external/espeak/translate.h:33:9`!('f', 'r'): // french
838 {
839 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_fr, stress_amps_fr);
840 tr->langopts.stress_rule = STRESSPOSN_1Rcxx . . $ `external/espeak/translate.h:357:9`!; // stress on final syllable
841 tr->langopts.stress_flags = S_NO_AUTO_2cxx . . $ `external/espeak/translate.h:388:9`! | S_FINAL_DIMcxx . . $ `external/espeak/translate.h:378:9`!; // don't use secondary stress
842 tr->langopts.param[LOPT_IT_LENGTHENcxx . . $ `external/espeak/translate.h:290:9`!] = 1; // remove lengthen indicator from unstressed syllables
843 tr->langopts.length_mods0 = tr->langopts.length_mods; // don't lengthen vowels in the last syllable
844 tr->langopts.accents = 2; // Say "Capital" after the letter.
845
846 tr->langopts.numbers = NUM_SINGLE_STRESScxx . . $ `external/espeak/translate.h:444:9`! | NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_ALLOW_SPACEcxx . . $ `external/espeak/translate.h:448:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_NOPAUSEcxx . . $ `external/espeak/translate.h:451:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`! | NUM_ROMAN_CAPITALScxx . . $ `external/espeak/translate.h:459:9`! | NUM_ROMAN_AFTERcxx . . $ `external/espeak/translate.h:460:9`! | NUM_VIGESIMALcxx . . $ `external/espeak/translate.h:454:9`! | NUM_DFRACTION_4cxx . . $ `external/espeak/translate.h:467:9`!;
847 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'y');
848 }
849 break;
850 case L3cxx . . $ `external/espeak/translate.h:34:9`!('h','a', 'k'): // Hakka Chinese
851 {
852 tr->langopts.stress_flags = S_NO_DIMcxx . . $ `external/espeak/translate.h:377:9`!; // don't automatically set diminished stress (may be set in the intonation module)
853 tr->langopts.tone_language = 1; // Tone language, use CalcPitches_Tone() rather than CalcPitches()
854 tr->langopts.tone_numbers = 1; // a number after letters indicates a tone number (eg. pinyin or jyutping)
855 tr->langopts.ideographs = 1;
856 }
857 break;
858 case Lcxx . . $ `external/espeak/translate.h:33:9`!('g', 'a'): // irish
859 case Lcxx . . $ `external/espeak/translate.h:33:9`!('g', 'd'): // scots gaelic
860 {
861 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
862 tr->langopts.stress_flags = S_NO_AUTO_2cxx . . $ `external/espeak/translate.h:388:9`!; // don't use secondary stress
863 tr->langopts.numbers = NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_OMIT_1_THOUSANDcxx . . $ `external/espeak/translate.h:455:9`!;
864 tr->langopts.accents = 2; // 'capital' after letter name
865 tr->langopts.param[LOPT_UNPRONOUNCABLEcxx . . $ `external/espeak/translate.h:305:9`!] = 3; // don't count apostrophe
866 tr->langopts.param[LOPT_IT_LENGTHENcxx . . $ `external/espeak/translate.h:290:9`!] = 1; // remove [:] phoneme from non-stressed syllables (Lang=gd)
867 }
868 break;
869 case Lcxx . . $ `external/espeak/translate.h:33:9`!('g','n'): // guarani
870 {
871 tr->langopts.stress_rule = STRESSPOSN_1Rcxx . . $ `external/espeak/translate.h:357:9`!; // stress on final syllable
872 tr->langopts.length_mods0 = tr->langopts.length_mods; // don't lengthen vowels in the last syllable
873 }
874 break;
875 case Lcxx . . $ `external/espeak/translate.h:33:9`!('h', 'i'): // Hindi
876 case Lcxx . . $ `external/espeak/translate.h:33:9`!('n', 'e'): // Nepali
877 case Lcxx . . $ `external/espeak/translate.h:33:9`!('o', 'r'): // Oriya
878 case Lcxx . . $ `external/espeak/translate.h:33:9`!('p', 'a'): // Punjabi
879 case Lcxx . . $ `external/espeak/translate.h:33:9`!('g', 'u'): // Gujarati
880 case Lcxx . . $ `external/espeak/translate.h:33:9`!('m', 'r'): // Marathi
881 {
882 static const short stress_lengths_hi[8] = { 190, 190, 210, 210, 0, 0, 230, 250 };
883 static const unsigned char stress_amps_hi[8] = { 17, 14, 20, 19, 20, 22, 22, 21 };
884
885 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_hi, stress_amps_hi);
886 tr->encoding = ESPEAKNG_ENCODING_ISCII;
887 tr->langopts.length_mods0 = tr->langopts.length_mods; // don't lengthen vowels in the last syllable
888
889 tr->langopts.stress_rule = STRESSPOSN_1RHcxx . . $ `external/espeak/translate.h:360:9`!; // stress on last heaviest syllable, excluding final syllable
890 tr->langopts.stress_flags = S_MID_DIMcxx . . $ `external/espeak/translate.h:409:9`! | S_FINAL_DIMcxx . . $ `external/espeak/translate.h:378:9`!; // use 'diminished' for unstressed final syllable
891 tr->langopts.numbers = NUM_SWAP_TENScxx . . $ `external/espeak/translate.h:440:9`!;
892 tr->langopts.break_numbers = BREAK_LAKH_HIcxx . . $ `external/espeak/translate.h:507:9`!;
893 tr->letter_bits_offset = OFFSET_DEVANAGARIcxx . . $ `external/espeak/tr_languages.cpp:45:9`!;
894
895 if (name2 == Lcxx . . $ `external/espeak/translate.h:33:9`!('p', 'a'))
896 tr->letter_bits_offset = OFFSET_GURMUKHIcxx . . $ `external/espeak/tr_languages.cpp:47:9`!;
897 else if (name2 == Lcxx . . $ `external/espeak/translate.h:33:9`!('g', 'u')) {
898 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_equal, stress_amps_equal);
899 tr->letter_bits_offset = OFFSET_GUJARATIcxx . . $ `external/espeak/tr_languages.cpp:48:9`!;
900 tr->langopts.stress_rule = STRESSPOSN_2Rcxx . . $ `external/espeak/translate.h:356:9`!;
901 } else if (name2 == Lcxx . . $ `external/espeak/translate.h:33:9`!('n', 'e')) {
902 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_equal, stress_amps_equal);
903 tr->langopts.break_numbers = BREAK_LAKHcxx . . $ `external/espeak/translate.h:504:9`!;
904 tr->langopts.max_digits = 22;
905 tr->langopts.numbers2 |= NUM2_ENGLISH_NUMERALScxx . . $ `external/espeak/translate.h:480:9`!;
906 } else if (name2 == Lcxx . . $ `external/espeak/translate.h:33:9`!('o', 'r'))
907 tr->letter_bits_offset = OFFSET_ORIYAcxx . . $ `external/espeak/tr_languages.cpp:49:9`!;
908 SetIndicLetterscxx . . $ SetIndicLetters(801a8dd91605e066).(tr);
909 }
910 break;
911 case Lcxx . . $ `external/espeak/translate.h:33:9`!('h', 'r'): // Croatian
912 case Lcxx . . $ `external/espeak/translate.h:33:9`!('b', 's'): // Bosnian
913 case Lcxx . . $ `external/espeak/translate.h:33:9`!('s', 'r'): // Serbian
914 {
915 static const unsigned char stress_amps_hr[8] = { 17, 17, 20, 20, 20, 22, 22, 21 };
916 static const short stress_lengths_hr[8] = { 180, 160, 200, 200, 0, 0, 220, 230 };
917 static const short stress_lengths_sr[8] = { 160, 150, 200, 200, 0, 0, 250, 260 };
918
919 strcpy(tr->dictionary_name, "hbs");
920
921 if (name2 == Lcxx . . $ `external/espeak/translate.h:33:9`!('s', 'r'))
922 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_sr, stress_amps_hr);
923 else
924 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_hr, stress_amps_hr);
925 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_2;
926
927 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
928 tr->langopts.stress_flags = S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`!;
929 tr->langopts.param[LOPT_REGRESSIVE_VOICINGcxx . . $ `external/espeak/translate.h:302:9`!] = 0x3;
930 tr->langopts.max_initial_consonants = 5;
931 tr->langopts.spelling_stress = true;
932 tr->langopts.accents = 1;
933
934 tr->langopts.numbers = NUM_SINGLE_STRESScxx . . $ `external/espeak/translate.h:444:9`! | NUM_HUNDRED_ANDcxx . . $ `external/espeak/translate.h:442:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_THOUS_SPACEcxx . . $ `external/espeak/translate.h:438:9`! | NUM_DFRACTION_2cxx . . $ `external/espeak/translate.h:465:9`! | NUM_ROMAN_CAPITALScxx . . $ `external/espeak/translate.h:459:9`!;
935 tr->langopts.numbers2 = NUM2_THOUSANDPLEX_VAR_THOUSANDScxx . . $ `external/espeak/translate.h:487:9`! | NUM2_THOUSANDPLEX_VAR_MILLIARDScxx . . $ `external/espeak/translate.h:488:9`! | NUM2_THOUSANDS_VAR5cxx . . $ `external/espeak/translate.h:495:9`!;
936 tr->langopts.our_alphabet = OFFSET_CYRILLICcxx . . $ `external/espeak/tr_languages.cpp:40:9`!; // don't say "cyrillic" before letter names
937
938 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'y');
939 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'r');
940 }
941 break;
942 case Lcxx . . $ `external/espeak/translate.h:33:9`!('h', 't'): // Haitian Creole
943 tr->langopts.stress_rule = STRESSPOSN_1Rcxx . . $ `external/espeak/translate.h:357:9`!; // stress on final syllable
944 tr->langopts.stress_flags = S_NO_AUTO_2cxx . . $ `external/espeak/translate.h:388:9`! | S_FINAL_DIMcxx . . $ `external/espeak/translate.h:378:9`!; // don't use secondary stress
945 tr->langopts.numbers = NUM_SINGLE_STRESScxx . . $ `external/espeak/translate.h:444:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_NOPAUSEcxx . . $ `external/espeak/translate.h:451:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`! | NUM_VIGESIMALcxx . . $ `external/espeak/translate.h:454:9`! | NUM_DFRACTION_4cxx . . $ `external/espeak/translate.h:467:9`!;
946 break;
947 case Lcxx . . $ `external/espeak/translate.h:33:9`!('h', 'u'): // Hungarian
948 {
949 static const unsigned char stress_amps_hu[8] = { 17, 17, 19, 19, 20, 22, 22, 21 };
950 static const short stress_lengths_hu[8] = { 185, 195, 195, 190, 0, 0, 210, 220 };
951
952 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_hu, stress_amps_hu);
953 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_2;
954
955 tr->langopts.vowel_pause = 0x20;
956 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
957 tr->langopts.stress_flags = S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`! | S_NO_AUTO_2cxx . . $ `external/espeak/translate.h:388:9`! | 0x8000 | S_HYPEN_UNSTRESScxx . . $ `external/espeak/translate.h:422:9`!;
958 tr->langopts.unstressed_wd1 = 2;
959 tr->langopts.param[LOPT_ANNOUNCE_PUNCTcxx . . $ `external/espeak/translate.h:338:9`!] = 2; // don't break clause before announcing . ? !
960
961 tr->langopts.numbers = NUM_DFRACTION_5cxx . . $ `external/espeak/translate.h:468:9`! | NUM_ALLOW_SPACEcxx . . $ `external/espeak/translate.h:448:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`! | NUM_ROMAN_ORDINALcxx . . $ `external/espeak/translate.h:461:9`! | NUM_ROMAN_CAPITALScxx . . $ `external/espeak/translate.h:459:9`! | NUM_ORDINAL_DOTcxx . . $ `external/espeak/translate.h:450:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_OMIT_1_THOUSANDcxx . . $ `external/espeak/translate.h:455:9`!;
962 tr->langopts.thousands_sep = ' '; // don't allow dot as thousands separator
963 tr->langopts.decimal_sep = ',';
964 tr->langopts.max_roman = 899;
965 tr->langopts.min_roman = 1;
966 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'y');
967 tr->langopts.spelling_stress = true;
968 SetLengthMods(tr, 3); // all equal
969 }
970 break;
971 case Lcxx . . $ `external/espeak/translate.h:33:9`!('h', 'y'): // Armenian
972 {
973 static const short stress_lengths_hy[8] = { 250, 200, 250, 250, 0, 0, 250, 250 };
974 static const char hy_vowels[] = { 0x31, 0x35, 0x37, 0x38, 0x3b, 0x48, 0x55, 0 };
975 static const char hy_consonants[] = {
976 0x32, 0x33, 0x34, 0x36, 0x39, 0x3a, 0x3c, 0x3d, 0x3e, 0x3f, 0x40, 0x41, 0x42, 0x43, 0x44,
977 0x46, 0x47, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50, 0x51, 0x52, 0x53, 0x54, 0x56, 0
978 };
979 static const char hy_consonants2[] = { 0x45, 0 };
980
981 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_hy, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!);
982 tr->langopts.stress_rule = STRESSPOSN_1Rcxx . . $ `external/espeak/translate.h:357:9`!; // default stress on final syllable
983
984 tr->letter_bits_offset = OFFSET_ARMENIANcxx . . $ `external/espeak/tr_languages.cpp:41:9`!;
985 memset(tr->letter_bits, 0, sizeof(tr->letter_bits));
986 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Acxx . . $ `external/espeak/translate.h:199:9`!, hy_vowels);
987 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_VOWEL2cxx . . $ `external/espeak/translate.h:206:9`!, hy_vowels);
988 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Bcxx . . $ `external/espeak/translate.h:200:9`!, hy_consonants); // not including 'j'
989 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Ccxx . . $ `external/espeak/translate.h:201:9`!, hy_consonants);
990 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Ccxx . . $ `external/espeak/translate.h:201:9`!, hy_consonants2); // add 'j'
991 tr->langopts.max_initial_consonants = 6;
992 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_ALLOW_SPACEcxx . . $ `external/espeak/translate.h:448:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`!;
993 }
994 break;
995
996 case Lcxx . . $ `external/espeak/translate.h:33:9`!('i', 'o'): // Ido International Auxiliary Language
997 {
998 static const short stress_lengths_eo[8] = { 150, 140, 180, 180, 0, 0, 200, 200 };
999 static const unsigned char stress_amps_eo[] = { 16, 14, 20, 20, 20, 22, 22, 21 };
1000 static const wchar_t eo_char_apostrophe[2] = { 'l', 0 };
1001
1002 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_eo, stress_amps_eo);
1003
1004 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_3;
1005 tr->char_plus_apostrophe = eo_char_apostrophe;
1006
1007 tr->langopts.vowel_pause = 2;
1008 tr->langopts.stress_rule = STRESSPOSN_2Rcxx . . $ `external/espeak/translate.h:356:9`!;
1009 tr->langopts.stress_flags = S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`!;
1010 tr->langopts.unstressed_wd2 = 2;
1011
1012 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_ALLOW_SPACEcxx . . $ `external/espeak/translate.h:448:9`! | NUM_AND_UNITScxx . . $ `external/espeak/translate.h:441:9`!| NUM_HUNDRED_ANDcxx . . $ `external/espeak/translate.h:442:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`!;
1013 }
1014 break;
1015
1016 case Lcxx . . $ `external/espeak/translate.h:33:9`!('i', 'd'): // Indonesian
1017 case Lcxx . . $ `external/espeak/translate.h:33:9`!('m', 's'): // Malay
1018 {
1019 static const short stress_lengths_id[8] = { 160, 200, 180, 180, 0, 0, 220, 240 };
1020 static const unsigned char stress_amps_id[8] = { 16, 18, 18, 18, 20, 22, 22, 21 };
1021
1022 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_id, stress_amps_id);
1023 tr->langopts.stress_rule = STRESSPOSN_2Rcxx . . $ `external/espeak/translate.h:356:9`!;
1024 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_ALLOW_SPACEcxx . . $ `external/espeak/translate.h:448:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`!;
1025 tr->langopts.stress_flags = S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`!;
1026 tr->langopts.accents = 2; // "capital" after letter name
1027 }
1028 break;
1029 case Lcxx . . $ `external/espeak/translate.h:33:9`!('i', 's'): // Icelandic
1030 {
1031 static const short stress_lengths_is[8] = { 180, 160, 200, 200, 0, 0, 240, 250 };
1032 static const wchar_t is_lettergroup_B[] = { 'c', 'f', 'h', 'k', 'p', 't', 'x', 0xfe, 0 }; // voiceless conants, including 'þ' ?? 's'
1033
1034 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_is, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!);
1035 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
1036 tr->langopts.stress_flags = S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`!;
1037 tr->langopts.param[LOPT_IT_LENGTHENcxx . . $ `external/espeak/translate.h:290:9`!] = 0x11; // remove lengthen indicator from unstressed vowels
1038 tr->langopts.param[LOPT_REDUCEcxx . . $ `external/espeak/translate.h:319:9`!] = 2;
1039
1040 ResetLetterBitscxx . . $ ResetLetterBits(44ca618724cd7367).(tr, 0x18);
1041 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, 4, "kpst"); // Letter group F
1042 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, 3, "jvr"); // Letter group H
1043 tr->letter_groups[1] = is_lettergroup_B;
1044 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'y');
1045 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_SINGLE_ANDcxx . . $ `external/espeak/translate.h:443:9`! | NUM_HUNDRED_ANDcxx . . $ `external/espeak/translate.h:442:9`! | NUM_AND_UNITScxx . . $ `external/espeak/translate.h:441:9`! | NUM_1900cxx . . $ `external/espeak/translate.h:447:9`!;
1046 tr->langopts.numbers2 = NUM2_THOUSANDPLEX_VAR_THOUSANDScxx . . $ `external/espeak/translate.h:487:9`!;
1047 }
1048 break;
1049 case Lcxx . . $ `external/espeak/translate.h:33:9`!('i', 't'): // Italian
1050 {
1051 static const short stress_lengths_it[8] = { 160, 140, 150, 165, 0, 0, 218, 305 };
1052 static const unsigned char stress_amps_it[8] = { 17, 15, 18, 16, 20, 22, 22, 22 };
1053 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_it, stress_amps_it);
1054 tr->langopts.length_mods0 = tr->langopts.length_mods; // don't lengthen vowels in the last syllable
1055 tr->langopts.stress_rule = STRESSPOSN_2Rcxx . . $ `external/espeak/translate.h:356:9`!;
1056 tr->langopts.stress_flags = S_NO_AUTO_2cxx . . $ `external/espeak/translate.h:388:9`! | S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_PRIORITY_STRESScxx . . $ `external/espeak/translate.h:412:9`!;
1057 tr->langopts.vowel_pause = 1;
1058 tr->langopts.unstressed_wd1 = 0;
1059 tr->langopts.unstressed_wd2 = 2;
1060 tr->langopts.param[LOPT_IT_LENGTHENcxx . . $ `external/espeak/translate.h:290:9`!] = 2; // remove lengthen indicator from unstressed or non-penultimate syllables
1061 tr->langopts.param[LOPT_SONORANT_MINcxx . . $ `external/espeak/translate.h:308:9`!] = 130; // limit the shortening of sonorants before short vowels
1062 tr->langopts.param[LOPT_REDUCEcxx . . $ `external/espeak/translate.h:319:9`!] = 1; // reduce vowels even if phonemes are specified in it_list
1063 tr->langopts.param[LOPT_ALTcxx . . $ `external/espeak/translate.h:332:9`!] = 2; // call ApplySpecialAttributes2() if a word has $alt or $alt2
1064 tr->langopts.numbers = NUM_SINGLE_VOWELcxx . . $ `external/espeak/translate.h:445:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! |NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_DFRACTION_1cxx . . $ `external/espeak/translate.h:464:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`! | NUM_ROMAN_CAPITALScxx . . $ `external/espeak/translate.h:459:9`! | NUM_ROMAN_ORDINALcxx . . $ `external/espeak/translate.h:461:9`!;
1065 tr->langopts.numbers2 = NUM2_NO_TEEN_ORDINALScxx . . $ `external/espeak/translate.h:478:9`!;
1066 tr->langopts.roman_suffix = utf8_ordinalcxx . . $ utf8_ordinal.;
1067 tr->langopts.accents = 2; // Say "Capital" after the letter.
1068 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'y');
1069 }
1070 break;
1071 case L3cxx . . $ `external/espeak/translate.h:34:9`!('j', 'b', 'o'): // Lojban
1072 {
1073 static const short stress_lengths_jbo[8] = { 145, 145, 170, 160, 0, 0, 330, 350 };
1074 static const wchar_t jbo_punct_within_word[] = { '.', ',', '\'', 0x2c8, 0 }; // allow period and comma within a word, also stress marker (from LOPT_CAPS_IN_WORD)
1075
1076 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_jbo, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!);
1077 tr->langopts.stress_rule = STRESSPOSN_2Rcxx . . $ `external/espeak/translate.h:356:9`!;
1078 tr->langopts.vowel_pause = 0x20c; // pause before a word which starts with a vowel, or after a word which ends in a consonant
1079 tr->punct_within_word = jbo_punct_within_word;
1080 tr->langopts.param[LOPT_CAPS_IN_WORDcxx . . $ `external/espeak/translate.h:328:9`!] = 1; // capitals indicate stressed syllables
1081 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'y');
1082 tr->langopts.max_lengthmod = 368;
1083 tr->langopts.numbers = 0; // disable numbers until the definition are complete in _list file
1084 }
1085 break;
1086 case Lcxx . . $ `external/espeak/translate.h:33:9`!('k', 'a'): // Georgian
1087 {
1088 // character codes offset by 0x1080
1089 static const char ka_vowels[] = { 0x30, 0x34, 0x38, 0x3d, 0x43, 0x55, 0x57, 0 };
1090 static const char ka_consonants[] =
1091 { 0x31, 0x32, 0x33, 0x35, 0x36, 0x37, 0x39, 0x3a, 0x3b, 0x3c, 0x3e, 0x3f, 0x40, 0x41, 0x42, 0x44,
1092 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50, 0x51, 0x52, 0x53, 0x54, 0x56, 0 };
1093 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_ta, stress_amps_ta);
1094 memset(tr->letter_bits, 0, sizeof(tr->letter_bits));
1095 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Acxx . . $ `external/espeak/translate.h:199:9`!, ka_vowels);
1096 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Ccxx . . $ `external/espeak/translate.h:201:9`!, ka_consonants);
1097 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_VOWEL2cxx . . $ `external/espeak/translate.h:206:9`!, ka_vowels);
1098
1099 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
1100 tr->langopts.stress_flags = S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`!;
1101 tr->letter_bits_offset = OFFSET_GEORGIANcxx . . $ `external/espeak/tr_languages.cpp:59:9`!;
1102 tr->langopts.max_initial_consonants = 7;
1103 tr->langopts.max_digits = 32;
1104 tr->langopts.numbers = NUM_VIGESIMALcxx . . $ `external/espeak/translate.h:454:9`! | NUM_AND_UNITScxx . . $ `external/espeak/translate.h:441:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! |NUM_OMIT_1_THOUSANDcxx . . $ `external/espeak/translate.h:455:9`! | NUM_DFRACTION_5cxx . . $ `external/espeak/translate.h:468:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`!;
1105
1106 tr->langopts.alt_alphabet = OFFSET_CYRILLICcxx . . $ `external/espeak/tr_languages.cpp:40:9`!;
1107 tr->langopts.alt_alphabet_lang = Lcxx . . $ `external/espeak/translate.h:33:9`!('r', 'u');
1108 }
1109 break;
1110 case Lcxx . . $ `external/espeak/translate.h:33:9`!('k', 'k'): // Kazakh
1111 {
1112 static const unsigned char stress_amps_tr[8] = { 18, 16, 20, 21, 20, 21, 21, 20 };
1113 static const short stress_lengths_tr[8] = { 190, 180, 230, 230, 0, 0, 250, 250 };
1114
1115 tr->letter_bits_offset = OFFSET_CYRILLICcxx . . $ `external/espeak/tr_languages.cpp:40:9`!;
1116 memset(tr->letter_bits, 0, sizeof(tr->letter_bits));
1117 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Acxx . . $ `external/espeak/translate.h:199:9`!, (char *)ru_vowelscxx . . $ ru_vowels.);
1118 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Ccxx . . $ `external/espeak/translate.h:201:9`!, (char *)ru_consonantscxx . . $ ru_consonants.);
1119 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_VOWEL2cxx . . $ `external/espeak/translate.h:206:9`!, (char *)ru_vowelscxx . . $ ru_vowels.);
1120
1121 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_tr, stress_amps_tr);
1122
1123 tr->langopts.stress_rule = STRESSPOSN_1RUcxx . . $ `external/espeak/translate.h:361:9`!; // stress on the last syllable, before any explicitly unstressed syllable
1124 tr->langopts.stress_flags = S_NO_AUTO_2cxx . . $ `external/espeak/translate.h:388:9`! + S_NO_EOC_LENGTHENcxx . . $ `external/espeak/translate.h:425:9`!; // no automatic secondary stress, don't lengthen at end-of-clause
1125 tr->langopts.lengthen_tonic = 0;
1126 tr->langopts.param[LOPT_SUFFIXcxx . . $ `external/espeak/translate.h:344:9`!] = 1;
1127
1128 tr->langopts.numbers = NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_DFRACTION_6cxx . . $ `external/espeak/translate.h:469:9`!;
1129 tr->langopts.max_initial_consonants = 2;
1130 SetLengthMods(tr, 3); // all equal
1131 }
1132 break;
1133 case Lcxx . . $ `external/espeak/translate.h:33:9`!('k', 'l'): // Greenlandic
1134 {
1135 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_equal, stress_amps_equal);
1136 tr->langopts.stress_rule = STRESSPOSN_GREENLANDICcxx . . $ `external/espeak/translate.h:364:9`!;
1137 tr->langopts.stress_flags = S_NO_AUTO_2cxx . . $ `external/espeak/translate.h:388:9`!;
1138 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_SWAP_TENScxx . . $ `external/espeak/translate.h:440:9`! | NUM_HUNDRED_ANDcxx . . $ `external/espeak/translate.h:442:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_ORDINAL_DOTcxx . . $ `external/espeak/translate.h:450:9`! | NUM_1900cxx . . $ `external/espeak/translate.h:447:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`! | NUM_ROMAN_CAPITALScxx . . $ `external/espeak/translate.h:459:9`! | NUM_ROMAN_ORDINALcxx . . $ `external/espeak/translate.h:461:9`!;
1139 }
1140 break;
1141 case Lcxx . . $ `external/espeak/translate.h:33:9`!('k', 'o'): // Korean, TEST
1142 {
1143 static const char ko_ivowels[] = { 0x63, 0x64, 0x67, 0x68, 0x6d, 0x72, 0x74, 0x75, 0 }; // y and i vowels
1144 static const unsigned char ko_voiced[] = { 0x02, 0x05, 0x06, 0xab, 0xaf, 0xb7, 0xbc, 0 }; // voiced consonants, l,m,n,N
1145
1146 tr->letter_bits_offset = OFFSET_KOREANcxx . . $ `external/espeak/tr_languages.cpp:60:9`!;
1147 tr->langopts.our_alphabet = 0xa700;
1148 memset(tr->letter_bits, 0, sizeof(tr->letter_bits));
1149 SetLetterBitsRangecxx . . $ SetLetterBitsRange(84df82429726f05).(tr, LETTERGP_Acxx . . $ `external/espeak/translate.h:199:9`!, 0x61, 0x75);
1150 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Ycxx . . $ `external/espeak/translate.h:205:9`!, ko_ivowels);
1151 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Gcxx . . $ `external/espeak/translate.h:204:9`!, (const char *)ko_voiced);
1152
1153 tr->langopts.stress_rule = STRESSPOSN_2LLHcxx . . $ `external/espeak/translate.h:362:9`!; // ?? 1st syllable if it is heavy, else 2nd syllable
1154 tr->langopts.param[LOPT_UNPRONOUNCABLEcxx . . $ `external/espeak/translate.h:305:9`!] = 1; // disable check for unpronouncable words
1155 tr->langopts.numbers = NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`!;
1156 tr->langopts.numbers2 = NUM2_MYRIADScxx . . $ `external/espeak/translate.h:479:9`!;
1157 tr->langopts.break_numbers = BREAK_MYRIADScxx . . $ `external/espeak/translate.h:503:9`!;
1158 tr->langopts.max_digits = 20;
1159 }
1160 break;
1161 case Lcxx . . $ `external/espeak/translate.h:33:9`!('k', 'u'): // Kurdish
1162 {
1163 static const unsigned char stress_amps_ku[8] = { 18, 18, 20, 20, 20, 22, 22, 21 };
1164 static const short stress_lengths_ku[8] = { 180, 180, 190, 180, 0, 0, 230, 240 };
1165
1166 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_ku, stress_amps_ku);
1167 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_9;
1168
1169 tr->langopts.stress_rule = STRESSPOSN_1RUcxx . . $ `external/espeak/translate.h:361:9`!; // stress on the last syllable, before any explicitly unstressed syllable
1170
1171 tr->langopts.numbers = NUM_HUNDRED_ANDcxx . . $ `external/espeak/translate.h:442:9`! | NUM_AND_UNITScxx . . $ `external/espeak/translate.h:441:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_AND_HUNDREDcxx . . $ `external/espeak/translate.h:452:9`!;
1172 tr->langopts.max_initial_consonants = 2;
1173 }
1174 break;
1175 case Lcxx . . $ `external/espeak/translate.h:33:9`!('k', 'y'): // Kyrgyx
1176 tr->langopts.numbers = NUM_DEFAULTcxx . . $ `external/espeak/translate.h:437:9`!;
1177 break;
1178 case Lcxx . . $ `external/espeak/translate.h:33:9`!('l', 'a'): // Latin
1179 {
1180 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_4; // includes a,e,i,o,u-macron
1181 tr->langopts.stress_rule = STRESSPOSN_2Rcxx . . $ `external/espeak/translate.h:356:9`!;
1182 tr->langopts.stress_flags = S_NO_AUTO_2cxx . . $ `external/espeak/translate.h:388:9`!;
1183 tr->langopts.unstressed_wd1 = 0;
1184 tr->langopts.unstressed_wd2 = 2;
1185 tr->langopts.param[LOPT_DIERESEScxx . . $ `external/espeak/translate.h:287:9`!] = 1;
1186 tr->langopts.numbers = NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`!;
1187 tr->langopts.max_roman = 5000;
1188 }
1189 break;
1190 case Lcxx . . $ `external/espeak/translate.h:33:9`!('l', 't'): // Lithuanian
1191 {
1192 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_4;
1193 tr->langopts.stress_rule = STRESSPOSN_2Rcxx . . $ `external/espeak/translate.h:356:9`!;
1194 tr->langopts.stress_flags = S_NO_AUTO_2cxx . . $ `external/espeak/translate.h:388:9`!;
1195 tr->langopts.unstressed_wd1 = 0;
1196 tr->langopts.unstressed_wd2 = 2;
1197 tr->langopts.param[LOPT_DIERESEScxx . . $ `external/espeak/translate.h:287:9`!] = 1;
1198 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_DFRACTION_4cxx . . $ `external/espeak/translate.h:467:9`! | NUM_ORDINAL_DOTcxx . . $ `external/espeak/translate.h:450:9`!;
1199 tr->langopts.numbers2 = NUM2_THOUSANDS_VAR4cxx . . $ `external/espeak/translate.h:494:9`!;
1200 tr->langopts.max_roman = 5000;
1201 }
1202 break;
1203 case Lcxx . . $ `external/espeak/translate.h:33:9`!('l', 'v'): // latvian
1204 case L3cxx . . $ `external/espeak/translate.h:34:9`!('l', 't', 'g'): // latgalian
1205 {
1206 static const unsigned char stress_amps_lv[8] = { 14, 10, 10, 8, 0, 0, 20, 15 };
1207 static const short stress_lengths_lv[8] = { 180, 180, 180, 160, 0, 0, 230, 180 };
1208
1209 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_lv, stress_amps_lv);
1210
1211 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
1212 tr->langopts.spelling_stress = true;
1213 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_4;
1214 tr->langopts.max_digits = 33;
1215 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_DFRACTION_4cxx . . $ `external/espeak/translate.h:467:9`! | NUM_ORDINAL_DOTcxx . . $ `external/espeak/translate.h:450:9`!;
1216 tr->langopts.stress_flags = S_NO_AUTO_2cxx . . $ `external/espeak/translate.h:388:9`! | S_FINAL_DIMcxx . . $ `external/espeak/translate.h:378:9`! | S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_EO_CLAUSE1cxx . . $ `external/espeak/translate.h:415:9`!;
1217 }
1218 break;
1219 case Lcxx . . $ `external/espeak/translate.h:33:9`!('m', 'k'): // Macedonian
1220 {
1221 static const wchar_t vowels_cyrillic[] = {
1222 // also include 'р' [R]
1223 0x440, 0x430, 0x435, 0x438, 0x439, 0x43e, 0x443, 0x44b, 0x44d,
1224 0x44e, 0x44f, 0x450, 0x451, 0x456, 0x457, 0x45d, 0x45e, 0
1225 };
1226 static const unsigned char stress_amps_mk[8] = { 17, 17, 20, 20, 20, 22, 22, 21 };
1227 static const short stress_lengths_mk[8] = { 180, 160, 200, 200, 0, 0, 220, 230 };
1228
1229 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_mk, stress_amps_mk);
1230 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_5;
1231 tr->letter_groups[0] = tr->letter_groups[7] = vowels_cyrillic;
1232 tr->letter_bits_offset = OFFSET_CYRILLICcxx . . $ `external/espeak/tr_languages.cpp:40:9`!;
1233
1234 tr->langopts.stress_rule = STRESSPOSN_3Rcxx . . $ `external/espeak/translate.h:358:9`!; // antipenultimate
1235 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_AND_UNITScxx . . $ `external/espeak/translate.h:441:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_OMIT_1_THOUSANDcxx . . $ `external/espeak/translate.h:455:9`! | NUM_DFRACTION_2cxx . . $ `external/espeak/translate.h:465:9`!;
1236 tr->langopts.numbers2 = NUM2_THOUSANDPLEX_VAR_THOUSANDScxx . . $ `external/espeak/translate.h:487:9`! | NUM2_THOUSANDPLEX_VAR_MILLIARDScxx . . $ `external/espeak/translate.h:488:9`! | NUM2_THOUSANDS_VAR2cxx . . $ `external/espeak/translate.h:492:9`!;
1237 }
1238 break;
1239 case Lcxx . . $ `external/espeak/translate.h:33:9`!('m', 't'): // Maltese
1240 {
1241 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_3;
1242 tr->langopts.param[LOPT_REGRESSIVE_VOICINGcxx . . $ `external/espeak/translate.h:302:9`!] = 0x100; // devoice at end of word
1243 tr->langopts.stress_rule = STRESSPOSN_2Rcxx . . $ `external/espeak/translate.h:356:9`!; // penultimate
1244 tr->langopts.numbers = NUM_DEFAULTcxx . . $ `external/espeak/translate.h:437:9`!;
1245 }
1246 break;
1247 case Lcxx . . $ `external/espeak/translate.h:33:9`!('n', 'l'): // Dutch
1248 {
1249 static const short stress_lengths_nl[8] = { 160, 135, 210, 210, 0, 0, 260, 280 };
1250
1251 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
1252 tr->langopts.vowel_pause = 0x30; // ??
1253 tr->langopts.param[LOPT_DIERESEScxx . . $ `external/espeak/translate.h:287:9`!] = 1;
1254 tr->langopts.param[LOPT_PREFIXEScxx . . $ `external/espeak/translate.h:293:9`!] = 1;
1255 tr->langopts.param[LOPT_REGRESSIVE_VOICINGcxx . . $ `external/espeak/translate.h:302:9`!] = 0x100; // devoice at end of word
1256 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'y');
1257
1258 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_SWAP_TENScxx . . $ `external/espeak/translate.h:440:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_OMIT_1_THOUSANDcxx . . $ `external/espeak/translate.h:455:9`! | NUM_ALLOW_SPACEcxx . . $ `external/espeak/translate.h:448:9`! | NUM_1900cxx . . $ `external/espeak/translate.h:447:9`! | NUM_ORDINAL_DOTcxx . . $ `external/espeak/translate.h:450:9`!;
1259 tr->langopts.ordinal_indicator = "e";
1260 tr->langopts.stress_flags = S_FIRST_PRIMARYcxx . . $ `external/espeak/translate.h:394:9`!;
1261 memcpy(tr->stress_lengths, stress_lengths_nl, sizeof(tr->stress_lengths));
1262 }
1263 break;
1264 case Lcxx . . $ `external/espeak/translate.h:33:9`!('n', 'b'): // Norwegian
1265 {
1266 static const short stress_lengths_no[8] = { 160, 140, 200, 200, 0, 0, 220, 230 };
1267
1268 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_no, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!);
1269 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
1270 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'y');
1271 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_HUNDRED_ANDcxx . . $ `external/espeak/translate.h:442:9`! | NUM_ALLOW_SPACEcxx . . $ `external/espeak/translate.h:448:9`! | NUM_1900cxx . . $ `external/espeak/translate.h:447:9`! | NUM_ORDINAL_DOTcxx . . $ `external/espeak/translate.h:450:9`!;
1272 }
1273 break;
1274 case Lcxx . . $ `external/espeak/translate.h:33:9`!('o', 'm'): // Oromo
1275 {
1276 static const unsigned char stress_amps_om[] = { 18, 15, 20, 20, 20, 22, 22, 22 };
1277 static const short stress_lengths_om[8] = { 200, 200, 200, 200, 0, 0, 200, 200 };
1278
1279 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_om, stress_amps_om);
1280 tr->langopts.stress_rule = STRESSPOSN_2Rcxx . . $ `external/espeak/translate.h:356:9`!;
1281 tr->langopts.stress_flags = S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`! | 0x80000;
1282 tr->langopts.numbers = NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_HUNDRED_ANDcxx . . $ `external/espeak/translate.h:442:9`!;
1283 tr->langopts.numbers2 = NUM2_SWAP_THOUSANDScxx . . $ `external/espeak/translate.h:475:9`!;
1284 }
1285 break;
1286 case Lcxx . . $ `external/espeak/translate.h:33:9`!('p', 'l'): // Polish
1287 {
1288 static const short stress_lengths_pl[8] = { 160, 190, 175, 175, 0, 0, 200, 210 };
1289 static const unsigned char stress_amps_pl[8] = { 17, 13, 19, 19, 20, 22, 22, 21 }; // 'diminished' is used to mark a quieter, final unstressed syllable
1290
1291 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_pl, stress_amps_pl);
1292
1293 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_2;
1294 tr->langopts.stress_rule = STRESSPOSN_2Rcxx . . $ `external/espeak/translate.h:356:9`!;
1295 tr->langopts.stress_flags = S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`!; // mark unstressed final syllables as diminished
1296 tr->langopts.param[LOPT_REGRESSIVE_VOICINGcxx . . $ `external/espeak/translate.h:302:9`!] = 0x9;
1297 tr->langopts.max_initial_consonants = 7; // for example: wchrzczony :)
1298 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_ALLOW_SPACEcxx . . $ `external/espeak/translate.h:448:9`! | NUM_DFRACTION_2cxx . . $ `external/espeak/translate.h:465:9`!;
1299 tr->langopts.numbers2 = NUM2_THOUSANDS_VAR3cxx . . $ `external/espeak/translate.h:493:9`!;
1300 tr->langopts.param[LOPT_COMBINE_WORDScxx . . $ `external/espeak/translate.h:325:9`!] = 4 + 0x100; // combine 'nie' (marked with $alt2) with some 1-syllable (and 2-syllable) words (marked with $alt)
1301 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'y');
1302 }
1303 break;
1304 case Lcxx . . $ `external/espeak/translate.h:33:9`!('p', 't'): // Portuguese
1305 {
1306 static const short stress_lengths_pt[8] = { 170, 115, 210, 240, 0, 0, 260, 280 };
1307 static const unsigned char stress_amps_pt[8] = { 16, 11, 19, 21, 20, 22, 22, 21 }; // 'diminished' is used to mark a quieter, final unstressed syllable
1308
1309 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_pt, stress_amps_pt);
1310 tr->langopts.length_mods0 = tr->langopts.length_mods; // don't lengthen vowels in the last syllable
1311
1312 tr->langopts.stress_rule = STRESSPOSN_1Rcxx . . $ `external/espeak/translate.h:357:9`!; // stress on final syllable
1313 tr->langopts.stress_flags = S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`! | S_INITIAL_2cxx . . $ `external/espeak/translate.h:406:9`! | S_PRIORITY_STRESScxx . . $ `external/espeak/translate.h:412:9`!;
1314 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_DFRACTION_2cxx . . $ `external/espeak/translate.h:465:9`! | NUM_HUNDRED_ANDcxx . . $ `external/espeak/translate.h:442:9`! | NUM_AND_UNITScxx . . $ `external/espeak/translate.h:441:9`! | NUM_ROMAN_CAPITALScxx . . $ `external/espeak/translate.h:459:9`!;
1315 tr->langopts.numbers2 = NUM2_MULTIPLE_ORDINALcxx . . $ `external/espeak/translate.h:477:9`! | NUM2_NO_TEEN_ORDINALScxx . . $ `external/espeak/translate.h:478:9`! | NUM2_ORDINAL_NO_ANDcxx . . $ `external/espeak/translate.h:476:9`!;
1316 tr->langopts.max_roman = 5000;
1317 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'y');
1318 ResetLetterBitscxx . . $ ResetLetterBits(44ca618724cd7367).(tr, 0x2);
1319 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, 1, "bcdfgjkmnpqstvxz"); // B hard consonants, excluding h,l,r,w,y
1320 tr->langopts.param[LOPT_ALTcxx . . $ `external/espeak/translate.h:332:9`!] = 2; // call ApplySpecialAttributes2() if a word has $alt or $alt2
1321 tr->langopts.accents = 2; // 'capital' after letter name
1322 }
1323 break;
1324 case Lcxx . . $ `external/espeak/translate.h:33:9`!('r', 'o'): // Romanian
1325 {
1326 static const short stress_lengths_ro[8] = { 170, 170, 180, 180, 0, 0, 240, 260 };
1327 static const unsigned char stress_amps_ro[8] = { 15, 13, 18, 18, 20, 22, 22, 21 };
1328
1329 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_ro, stress_amps_ro);
1330
1331 tr->langopts.stress_rule = STRESSPOSN_1Rcxx . . $ `external/espeak/translate.h:357:9`!;
1332 tr->langopts.stress_flags = S_FINAL_VOWEL_UNSTRESSEDcxx . . $ `external/espeak/translate.h:397:9`! | S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`!;
1333
1334 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_2;
1335 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_ALLOW_SPACEcxx . . $ `external/espeak/translate.h:448:9`! | NUM_DFRACTION_3cxx . . $ `external/espeak/translate.h:466:9`! | NUM_AND_UNITScxx . . $ `external/espeak/translate.h:441:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`!;
1336 tr->langopts.numbers2 = NUM2_THOUSANDPLEX_VAR_ALLcxx . . $ `external/espeak/translate.h:489:9`!;
1337 }
1338 break;
1339 case Lcxx . . $ `external/espeak/translate.h:33:9`!('r', 'u'): // Russian
1340 Translator_Russiancxx . . $ Translator_Russian(801a8dd91605e066).(tr);
1341 break;
1342 case Lcxx . . $ `external/espeak/translate.h:33:9`!('s', 'k'): // Slovak
1343 case Lcxx . . $ `external/espeak/translate.h:33:9`!('c', 's'): // Czech
1344 {
1345 static const char sk_voiced[] = "bdgjlmnrvwzaeiouy";
1346
1347 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_sk, stress_amps_sk);
1348 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_2;
1349
1350 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
1351 tr->langopts.stress_flags = S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`!;
1352 tr->langopts.param[LOPT_REGRESSIVE_VOICINGcxx . . $ `external/espeak/translate.h:302:9`!] = 0x3;
1353 tr->langopts.max_initial_consonants = 5;
1354 tr->langopts.spelling_stress = true;
1355 tr->langopts.param[LOPT_COMBINE_WORDScxx . . $ `external/espeak/translate.h:325:9`!] = 4; // combine some prepositions with the following word
1356
1357 tr->langopts.numbers = NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_DFRACTION_2cxx . . $ `external/espeak/translate.h:465:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`!;
1358 tr->langopts.numbers2 = NUM2_THOUSANDS_VAR2cxx . . $ `external/espeak/translate.h:492:9`!;
1359 tr->langopts.thousands_sep = 0; // no thousands separator
1360 tr->langopts.decimal_sep = ',';
1361
1362 if (name2 == Lcxx . . $ `external/espeak/translate.h:33:9`!('c', 's'))
1363 tr->langopts.numbers2 = NUM2_THOUSANDPLEX_VAR_MILLIARDScxx . . $ `external/espeak/translate.h:488:9`! | NUM2_THOUSANDS_VAR2cxx . . $ `external/espeak/translate.h:492:9`!;
1364
1365 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'y');
1366 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'r');
1367 ResetLetterBitscxx . . $ ResetLetterBits(44ca618724cd7367).(tr, 0x20);
1368 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, 5, sk_voiced);
1369 }
1370 break;
1371 case Lcxx . . $ `external/espeak/translate.h:33:9`!('s', 'i'): // Sinhala
1372 {
1373 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_ta, stress_amps_ta);
1374 tr->langopts.length_mods0 = tr->langopts.length_mods; // don't lengthen vowels in the last syllable
1375
1376 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
1377 tr->langopts.stress_flags = S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`!;
1378 tr->langopts.spelling_stress = true;
1379
1380 tr->letter_bits_offset = OFFSET_SINHALAcxx . . $ `external/espeak/tr_languages.cpp:54:9`!;
1381 memset(tr->letter_bits, 0, sizeof(tr->letter_bits));
1382 SetLetterBitsRangecxx . . $ SetLetterBitsRange(84df82429726f05).(tr, LETTERGP_Acxx . . $ `external/espeak/translate.h:199:9`!, 0x05, 0x16); // vowel letters
1383 SetLetterBitsRangecxx . . $ SetLetterBitsRange(84df82429726f05).(tr, LETTERGP_Acxx . . $ `external/espeak/translate.h:199:9`!, 0x4a, 0x73); // + vowel signs, and virama
1384
1385 SetLetterBitsRangecxx . . $ SetLetterBitsRange(84df82429726f05).(tr, LETTERGP_Bcxx . . $ `external/espeak/translate.h:200:9`!, 0x4a, 0x73); // vowel signs, and virama
1386
1387 SetLetterBitsRangecxx . . $ SetLetterBitsRange(84df82429726f05).(tr, LETTERGP_Ccxx . . $ `external/espeak/translate.h:201:9`!, 0x1a, 0x46); // the main consonant range
1388
1389 tr->langopts.param[LOPT_UNPRONOUNCABLEcxx . . $ `external/espeak/translate.h:305:9`!] = 1; // disable check for unpronouncable words
1390 tr->langopts.suffix_add_e = tr->letter_bits_offset + 0x4a; // virama
1391 tr->langopts.numbers = NUM_OMIT_1_THOUSANDcxx . . $ `external/espeak/translate.h:455:9`! | NUM_SINGLE_STRESS_Lcxx . . $ `external/espeak/translate.h:462:9`! | NUM_DFRACTION_7cxx . . $ `external/espeak/translate.h:470:9`!;
1392 tr->langopts.numbers2 = NUM2_PERCENT_BEFOREcxx . . $ `external/espeak/translate.h:481:9`!;
1393 tr->langopts.break_numbers = BREAK_LAKH_HIcxx . . $ `external/espeak/translate.h:507:9`!;
1394 }
1395 break;
1396 case Lcxx . . $ `external/espeak/translate.h:33:9`!('s', 'l'): // Slovenian
1397 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_2;
1398 tr->langopts.stress_rule = STRESSPOSN_2Rcxx . . $ `external/espeak/translate.h:356:9`!; // Temporary
1399 tr->langopts.stress_flags = S_NO_AUTO_2cxx . . $ `external/espeak/translate.h:388:9`!;
1400 tr->langopts.param[LOPT_REGRESSIVE_VOICINGcxx . . $ `external/espeak/translate.h:302:9`!] = 0x103;
1401 tr->langopts.param[LOPT_UNPRONOUNCABLEcxx . . $ `external/espeak/translate.h:305:9`!] = 0x76; // [v] don't count this character at start of word
1402 tr->langopts.param[LOPT_ALTcxx . . $ `external/espeak/translate.h:332:9`!] = 2; // call ApplySpecialAttributes2() if a word has $alt or $alt2
1403 tr->langopts.param[LOPT_IT_LENGTHENcxx . . $ `external/espeak/translate.h:290:9`!] = 1; // remove lengthen indicator from unstressed syllables
1404 tr->letter_bits[(int)'r'] |= 0x80; // add 'r' to letter group 7, vowels for Unpronouncable test
1405 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_ALLOW_SPACEcxx . . $ `external/espeak/translate.h:448:9`! | NUM_SWAP_TENScxx . . $ `external/espeak/translate.h:440:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_DFRACTION_2cxx . . $ `external/espeak/translate.h:465:9`! | NUM_ORDINAL_DOTcxx . . $ `external/espeak/translate.h:450:9`! | NUM_ROMANcxx . . $ `external/espeak/translate.h:458:9`!;
1406 tr->langopts.numbers2 = NUM2_THOUSANDS_VAR4cxx . . $ `external/espeak/translate.h:494:9`!;
1407 tr->langopts.thousands_sep = ' '; // don't allow dot as thousands separator
1408 break;
1409
1410 case L3cxx . . $ `external/espeak/translate.h:34:9`!('s', 'm', 'j'): // Lule Saami
1411 {
1412 static const unsigned char stress_amps_fi[8] = { 18, 16, 22, 22, 20, 22, 22, 22 };
1413 static const short stress_lengths_fi[8] = { 150, 180, 200, 200, 0, 0, 210, 250 };
1414
1415 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_fi, stress_amps_fi);
1416
1417 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
1418 tr->langopts.stress_flags = S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`! | S_2_TO_HEAVYcxx . . $ `external/espeak/translate.h:391:9`!; // move secondary stress from light to a following heavy syllable
1419 tr->langopts.long_stop = 130;
1420
1421 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_ALLOW_SPACEcxx . . $ `external/espeak/translate.h:448:9`! | NUM_SWAP_TENScxx . . $ `external/espeak/translate.h:440:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_DFRACTION_2cxx . . $ `external/espeak/translate.h:465:9`! | NUM_ORDINAL_DOTcxx . . $ `external/espeak/translate.h:450:9`!;
1422 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'y');
1423 tr->langopts.spelling_stress = true;
1424 tr->langopts.intonation_group = 3; // less intonation, don't raise pitch at comma
1425 }
1426 break;
1427
1428 case Lcxx . . $ `external/espeak/translate.h:33:9`!('s', 'q'): // Albanian
1429 {
1430 static const short stress_lengths_sq[8] = { 150, 150, 180, 180, 0, 0, 300, 300 };
1431 static const unsigned char stress_amps_sq[8] = { 16, 12, 16, 16, 20, 20, 21, 19 };
1432
1433 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_sq, stress_amps_sq);
1434
1435 tr->langopts.stress_rule = STRESSPOSN_1Rcxx . . $ `external/espeak/translate.h:357:9`!;
1436 tr->langopts.stress_flags = S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`! | S_FINAL_VOWEL_UNSTRESSEDcxx . . $ `external/espeak/translate.h:397:9`!;
1437 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'y');
1438 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_HUNDRED_ANDcxx . . $ `external/espeak/translate.h:442:9`! | NUM_AND_UNITScxx . . $ `external/espeak/translate.h:441:9`! | NUM_DFRACTION_4cxx . . $ `external/espeak/translate.h:467:9`!;
1439 tr->langopts.accents = 2; // "capital" after letter name
1440 }
1441 break;
1442 case Lcxx . . $ `external/espeak/translate.h:33:9`!('s', 'v'): // Swedish
1443 {
1444 static const unsigned char stress_amps_sv[] = { 16, 16, 20, 20, 20, 22, 22, 21 };
1445 static const short stress_lengths_sv[8] = { 160, 135, 220, 220, 0, 0, 250, 280 };
1446 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_sv, stress_amps_sv);
1447
1448 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
1449 SetLetterVowelcxx . . $ SetLetterVowel(44ca618724cd7367).(tr, 'y');
1450 tr->langopts.numbers = NUM_SINGLE_STRESScxx . . $ `external/espeak/translate.h:444:9`! | NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_ALLOW_SPACEcxx . . $ `external/espeak/translate.h:448:9`! | NUM_1900cxx . . $ `external/espeak/translate.h:447:9`!;
1451 tr->langopts.accents = 1;
1452 }
1453 break;
1454 case Lcxx . . $ `external/espeak/translate.h:33:9`!('s', 'w'): // Swahili
1455 case Lcxx . . $ `external/espeak/translate.h:33:9`!('t', 'n'): // Setswana
1456 {
1457 static const short stress_lengths_sw[8] = { 160, 170, 200, 200, 0, 0, 320, 340 };
1458 static const unsigned char stress_amps_sw[] = { 16, 12, 19, 19, 20, 22, 22, 21 };
1459
1460 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_sw, stress_amps_sw);
1461 tr->langopts.length_mods0 = tr->langopts.length_mods; // don't lengthen vowels in the last syllable
1462
1463 tr->langopts.vowel_pause = 1;
1464 tr->langopts.stress_rule = STRESSPOSN_2Rcxx . . $ `external/espeak/translate.h:356:9`!;
1465 tr->langopts.stress_flags = S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`!;
1466 tr->langopts.max_initial_consonants = 4; // for example: mwngi
1467
1468
1469 tr->langopts.numbers = NUM_AND_UNITScxx . . $ `external/espeak/translate.h:441:9`! | NUM_HUNDRED_ANDcxx . . $ `external/espeak/translate.h:442:9`! | NUM_SINGLE_ANDcxx . . $ `external/espeak/translate.h:443:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`!;
1470 }
1471 break;
1472 case Lcxx . . $ `external/espeak/translate.h:33:9`!('t', 'a'): // Tamil
1473 case Lcxx . . $ `external/espeak/translate.h:33:9`!('k', 'n'): // Kannada
1474 case Lcxx . . $ `external/espeak/translate.h:33:9`!('m', 'l'): // Malayalam
1475 case Lcxx . . $ `external/espeak/translate.h:33:9`!('t', 'e'): // Telugu
1476 {
1477 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_ta2, stress_amps_ta);
1478 tr->langopts.length_mods0 = tr->langopts.length_mods; // don't lengthen vowels in the last syllable
1479
1480 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
1481 tr->langopts.stress_flags = S_FINAL_DIM_ONLYcxx . . $ `external/espeak/translate.h:379:9`! | S_FINAL_NO_2cxx . . $ `external/espeak/translate.h:385:9`!; // use 'diminished' for unstressed final syllable
1482 tr->langopts.spelling_stress = true;
1483 tr->langopts.break_numbers = BREAK_LAKH_DVcxx . . $ `external/espeak/translate.h:506:9`!;
1484
1485 if (name2 == Lcxx . . $ `external/espeak/translate.h:33:9`!('t', 'a')) {
1486 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_ta, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!);
1487 tr->letter_bits_offset = OFFSET_TAMILcxx . . $ `external/espeak/tr_languages.cpp:50:9`!;
1488 tr->langopts.numbers = NUM_OMIT_1_THOUSANDcxx . . $ `external/espeak/translate.h:455:9`!;
1489 tr->langopts.numbers2 = NUM2_ORDINAL_AND_THOUSANDScxx . . $ `external/espeak/translate.h:483:9`!;
1490 tr->langopts.param[LOPT_WORD_MERGEcxx . . $ `external/espeak/translate.h:311:9`!] = 1; // don't break vowels between words
1491 } else if (name2 == Lcxx . . $ `external/espeak/translate.h:33:9`!('m', 'l')) {
1492 static const short stress_lengths_ml[8] = { 180, 160, 240, 240, 0, 0, 260, 260 };
1493 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_ml, stress_amps_equal);
1494 tr->letter_bits_offset = OFFSET_MALAYALAMcxx . . $ `external/espeak/tr_languages.cpp:53:9`!;
1495 tr->langopts.numbers = NUM_OMIT_1_THOUSANDcxx . . $ `external/espeak/translate.h:455:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`!;
1496 tr->langopts.numbers2 = NUM2_OMIT_1_HUNDRED_ONLYcxx . . $ `external/espeak/translate.h:482:9`!;
1497 tr->langopts.stress_rule = STRESSPOSN_1SLcxx . . $ `external/espeak/translate.h:365:9`!; // 1st syllable, unless 1st vowel is short and 2nd is long
1498 } else if (name2 == Lcxx . . $ `external/espeak/translate.h:33:9`!('k', 'n')) {
1499 tr->letter_bits_offset = OFFSET_KANNADAcxx . . $ `external/espeak/tr_languages.cpp:52:9`!;
1500 tr->langopts.numbers = NUM_DEFAULTcxx . . $ `external/espeak/translate.h:437:9`!;
1501 } else if (name2 == Lcxx . . $ `external/espeak/translate.h:33:9`!('t', 'e')) {
1502 tr->letter_bits_offset = OFFSET_TELUGUcxx . . $ `external/espeak/tr_languages.cpp:51:9`!;
1503 tr->langopts.numbers = NUM_DEFAULTcxx . . $ `external/espeak/translate.h:437:9`!;
1504 tr->langopts.numbers2 = NUM2_ORDINAL_DROP_VOWELcxx . . $ `external/espeak/translate.h:484:9`!;
1505 }
1506 SetIndicLetterscxx . . $ SetIndicLetters(801a8dd91605e066).(tr); // call this after setting OFFSET_
1507 SetLetterBitsRangecxx . . $ SetLetterBitsRange(84df82429726f05).(tr, LETTERGP_Bcxx . . $ `external/espeak/translate.h:200:9`!, 0x4e, 0x4e); // chillu-virama (unofficial)
1508 }
1509 break;
1510 case Lcxx . . $ `external/espeak/translate.h:33:9`!('t', 'r'): // Turkish
1511 case Lcxx . . $ `external/espeak/translate.h:33:9`!('a', 'z'): // Azerbaijan
1512 {
1513 static const unsigned char stress_amps_tr[8] = { 18, 16, 20, 21, 20, 21, 21, 20 };
1514 static const short stress_lengths_tr[8] = { 190, 180, 200, 230, 0, 0, 240, 250 };
1515
1516 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_tr, stress_amps_tr);
1517 tr->encoding = ESPEAKNG_ENCODING_ISO_8859_9;
1518
1519 tr->langopts.stress_rule = STRESSPOSN_1RUcxx . . $ `external/espeak/translate.h:361:9`!; // stress on the last syllable, before any explicitly unstressed syllable
1520 tr->langopts.stress_flags = S_NO_AUTO_2cxx . . $ `external/espeak/translate.h:388:9`!; // no automatic secondary stress
1521 tr->langopts.dotless_i = 1;
1522 tr->langopts.param[LOPT_SUFFIXcxx . . $ `external/espeak/translate.h:344:9`!] = 1;
1523
1524 if (name2 == Lcxx . . $ `external/espeak/translate.h:33:9`!('a', 'z'))
1525 tr->langopts.numbers = NUM_SINGLE_STRESScxx . . $ `external/espeak/translate.h:444:9`! | NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_ALLOW_SPACEcxx . . $ `external/espeak/translate.h:448:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_OMIT_1_THOUSANDcxx . . $ `external/espeak/translate.h:455:9`! | NUM_DFRACTION_2cxx . . $ `external/espeak/translate.h:465:9`!;
1526 else
1527 tr->langopts.numbers = NUM_SINGLE_STRESScxx . . $ `external/espeak/translate.h:444:9`! | NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_OMIT_1_THOUSANDcxx . . $ `external/espeak/translate.h:455:9`! | NUM_DFRACTION_2cxx . . $ `external/espeak/translate.h:465:9`!;
1528 tr->langopts.max_initial_consonants = 2;
1529 }
1530 break;
1531 case Lcxx . . $ `external/espeak/translate.h:33:9`!('t', 't'): // Tatar
1532 {
1533 SetCyrillicLetterscxx . . $ SetCyrillicLetters(801a8dd91605e066).(tr);
1534 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_fr, stress_amps_fr);
1535 tr->langopts.stress_rule = STRESSPOSN_1Rcxx . . $ `external/espeak/translate.h:357:9`!; // stress on final syllable
1536 tr->langopts.stress_flags = S_NO_AUTO_2cxx . . $ `external/espeak/translate.h:388:9`!; // no automatic secondary stress
1537 tr->langopts.numbers = NUM_SINGLE_STRESScxx . . $ `external/espeak/translate.h:444:9`! | NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`! | NUM_OMIT_1_THOUSANDcxx . . $ `external/espeak/translate.h:455:9`! | NUM_DFRACTION_4cxx . . $ `external/espeak/translate.h:467:9`!;
1538 }
1539 break;
1540 case Lcxx . . $ `external/espeak/translate.h:33:9`!('u', 'k'): // Ukrainian
1541 {
1542 Translator_Russiancxx . . $ Translator_Russian(801a8dd91605e066).(tr);
1543 }
1544 break;
1545 case Lcxx . . $ `external/espeak/translate.h:33:9`!('u', 'r'): // Urdu
1546 case Lcxx . . $ `external/espeak/translate.h:33:9`!('s', 'd'): // Sindhi
1547 {
1548 tr->letter_bits_offset = OFFSET_ARABICcxx . . $ `external/espeak/tr_languages.cpp:43:9`!;
1549 tr->langopts.param[LOPT_UNPRONOUNCABLEcxx . . $ `external/espeak/translate.h:305:9`!] = 1; // disable check for unpronouncable words
1550 tr->langopts.numbers = NUM_SWAP_TENScxx . . $ `external/espeak/translate.h:440:9`!;
1551 tr->langopts.break_numbers = BREAK_LAKH_URcxx . . $ `external/espeak/translate.h:508:9`!;
1552 }
1553 break;
1554 case Lcxx . . $ `external/espeak/translate.h:33:9`!('v', 'i'): // Vietnamese
1555 {
1556 static const short stress_lengths_vi[8] = { 150, 150, 180, 180, 210, 230, 230, 240 };
1557 static const unsigned char stress_amps_vi[] = { 16, 16, 16, 16, 22, 22, 22, 22 };
1558 static const wchar_t vowels_vi[] = {
1559 0x61, 0xe0, 0xe1, 0x1ea3, 0xe3, 0x1ea1, // a
1560 0x103, 0x1eb1, 0x1eaf, 0x1eb3, 0x1eb5, 0x1eb7, // ă
1561 0xe2, 0x1ea7, 0x1ea5, 0x1ea9, 0x1eab, 0x1ead, // â
1562 0x65, 0xe8, 0xe9, 0x1ebb, 0x1ebd, 0x1eb9, // e
1563 0xea, 0x1ec1, 0x1ebf, 0x1ec3, 0x1ec5, 0x1ec7, // i
1564 0x69, 0xec, 0xed, 0x1ec9, 0x129, 0x1ecb, // i
1565 0x6f, 0xf2, 0xf3, 0x1ecf, 0xf5, 0x1ecd, // o
1566 0xf4, 0x1ed3, 0x1ed1, 0x1ed5, 0x1ed7, 0x1ed9, // ô
1567 0x1a1, 0x1edd, 0x1edb, 0x1edf, 0x1ee1, 0x1ee3, // ơ
1568 0x75, 0xf9, 0xfa, 0x1ee7, 0x169, 0x1ee5, // u
1569 0x1b0, 0x1eeb, 0x1ee9, 0x1eed, 0x1eef, 0x1ef1, // ư
1570 0x79, 0x1ef3, 0xfd, 0x1ef7, 0x1ef9, 0x1ef5, // y
1571 0
1572 };
1573
1574 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_vi, stress_amps_vi);
1575 tr->langopts.length_mods0 = tr->langopts.length_mods; // don't lengthen vowels in the last syllable
1576
1577 tr->langopts.stress_rule = STRESSPOSN_1Lcxx . . $ `external/espeak/translate.h:354:9`!;
1578 tr->langopts.word_gap = 0x21; // length of a final vowel is less dependent on the next consonant, don't merge consonant with next word
1579 tr->letter_groups[0] = tr->letter_groups[7] = vowels_vi;
1580 tr->langopts.tone_language = 1; // Tone language, use CalcPitches_Tone() rather than CalcPitches()
1581 tr->langopts.unstressed_wd1 = 2;
1582 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_HUNDRED_AND_DIGITcxx . . $ `external/espeak/translate.h:457:9`! | NUM_DFRACTION_4cxx . . $ `external/espeak/translate.h:467:9`! | NUM_ZERO_HUNDREDcxx . . $ `external/espeak/translate.h:456:9`!;
1583
1584 }
1585 break;
1586 case L3cxx . . $ `external/espeak/translate.h:34:9`!('s', 'h', 'n'):
1587 tr->langopts.tone_language = 1; // Tone language, use CalcPitches_Tone() rather than CalcPitches()
1588 tr->langopts.length_mods0 = tr->langopts.length_mods; // don't lengthen vowels in the last syllable
1589 tr->langopts.numbers = NUM_DEFAULTcxx . . $ `external/espeak/translate.h:437:9`!;
1590 tr->langopts.break_numbers = BREAK_INDIVIDUALcxx . . $ `external/espeak/translate.h:509:9`!;
1591 break;
1592 case L3cxx . . $ `external/espeak/translate.h:34:9`!('c', 'm', 'n'): // no break, just go to 'zh' case
1593 case L3cxx . . $ `external/espeak/translate.h:34:9`!('y', 'u', 'e'):
1594 case Lcxx . . $ `external/espeak/translate.h:33:9`!('z','h'): // zh is used for backwards compatibility. Prefer cmn or yue.
1595 {
1596 static const short stress_lengths_zh[8] = { 230, 150, 230, 230, 230, 0, 240, 250 }; // 1=tone5. end-of-sentence, 6=tone 1&4, 7=tone 2&3
1597 static const unsigned char stress_amps_zh[] = { 22, 16, 22, 22, 22, 22, 22, 22 };
1598
1599 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_zh, stress_amps_zh);
1600
1601 tr->langopts.stress_rule = STRESSPOSN_1Rcxx . . $ `external/espeak/translate.h:357:9`!; // stress on final syllable of a "word"
1602 tr->langopts.stress_flags = S_NO_DIMcxx . . $ `external/espeak/translate.h:377:9`!; // don't automatically set diminished stress (may be set in the intonation module)
1603 tr->langopts.vowel_pause = 0;
1604 tr->langopts.tone_language = 1; // Tone language, use CalcPitches_Tone() rather than CalcPitches()
1605 tr->langopts.length_mods0 = tr->langopts.length_mods; // don't lengthen vowels in the last syllable
1606 tr->langopts.tone_numbers = 1; // a number after letters indicates a tone number (eg. pinyin or jyutping)
1607 tr->langopts.ideographs = 1;
1608 tr->langopts.our_alphabet = 0x3100;
1609 tr->langopts.word_gap = 0x21; // length of a final vowel is less dependent on the next consonant, don't merge consonant with next word
1610 tr->langopts.textmode = true;
1611 tr->langopts.listx = 1; // compile *_listx after *_list
1612 if (name2 == L3cxx . . $ `external/espeak/translate.h:34:9`!('y', 'u', 'e')) {
1613 tr->langopts.numbers = NUM_DEFAULTcxx . . $ `external/espeak/translate.h:437:9`!;
1614 tr->langopts.numbers2 = NUM2_ZERO_TENScxx . . $ `external/espeak/translate.h:485:9`!;
1615 tr->langopts.break_numbers = BREAK_INDIVIDUALcxx . . $ `external/espeak/translate.h:509:9`!;
1616 }
1617 }
1618 break;
1619 default:
1620 tr->langopts.param[LOPT_UNPRONOUNCABLEcxx . . $ `external/espeak/translate.h:305:9`!] = 1; // disable check for unpronouncable words
1621 break;
1622 }
1623
1624 tr->translator_name = name2;
1625
1626 ProcessLanguageOptions(&tr->langopts);
1627 return tr;
1628 }
1629
1630 void ProcessLanguageOptionscxx . . $ ProcessLanguageOptions(1db425bba47c15c8).(LANGUAGE_OPTIONS *langopts)
1631 {
1632 if (langopts->numbers & NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`!) {
1633 // use . and ; for thousands and decimal separators
1634 langopts->thousands_sep = '.';
1635 langopts->decimal_sep = ',';
1636 }
1637 if (langopts->numbers & NUM_THOUS_SPACEcxx . . $ `external/espeak/translate.h:438:9`!)
1638 langopts->thousands_sep = 0; // don't allow thousands separator, except space
1639 }
1640
1641 static void Translator_Russiancxx . . $ Translator_Russian(801a8dd91605e066).(Translator *tr)
1642 {
1643 static const unsigned char stress_amps_ru[] = { 16, 16, 18, 18, 20, 24, 24, 22 };
1644 static const short stress_lengths_ru[8] = { 150, 140, 220, 220, 0, 0, 260, 280 };
1645 static const char ru_ivowels[] = { 0x15, 0x18, 0x34, 0x37, 0 }; // add "е и є ї" to Y lettergroup (iotated vowels & soft-sign)
1646
1647 SetupTranslatorcxx . . $ SetupTranslator(69d1b4233dc0b764).(tr, stress_lengths_ru, stress_amps_ru);
1648 SetCyrillicLetterscxx . . $ SetCyrillicLetters(801a8dd91605e066).(tr);
1649 SetLetterBitscxx . . $ SetLetterBits(88dc7313601e5f0e).(tr, LETTERGP_Ycxx . . $ `external/espeak/translate.h:205:9`!, ru_ivowels);
1650
1651 tr->langopts.param[LOPT_UNPRONOUNCABLEcxx . . $ `external/espeak/translate.h:305:9`!] = 0x432; // [v] don't count this character at start of word
1652 tr->langopts.param[LOPT_REGRESSIVE_VOICINGcxx . . $ `external/espeak/translate.h:302:9`!] = 0x03;
1653 tr->langopts.param[LOPT_REDUCEcxx . . $ `external/espeak/translate.h:319:9`!] = 2;
1654 tr->langopts.stress_rule = STRESSPOSN_SYLCOUNTcxx . . $ `external/espeak/translate.h:359:9`!;
1655 tr->langopts.stress_flags = S_NO_AUTO_2cxx . . $ `external/espeak/translate.h:388:9`!;
1656
1657 tr->langopts.numbers = NUM_DECIMAL_COMMAcxx . . $ `external/espeak/translate.h:439:9`! | NUM_OMIT_1_HUNDREDcxx . . $ `external/espeak/translate.h:446:9`!;
1658 tr->langopts.numbers2 = NUM2_THOUSANDPLEX_VAR_THOUSANDScxx . . $ `external/espeak/translate.h:487:9`! | NUM2_THOUSANDS_VAR1cxx . . $ `external/espeak/translate.h:491:9`!; // variant numbers before thousands
1659 tr->langopts.max_digits = 32;
1660 tr->langopts.max_initial_consonants = 5;
1661 }