1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
/// Tests for rules shared between various speech styles:
/// * this has tests focused on the various alphabets
use crate*;
/*
#[test]
fn special_alphabet_chars() {
let expr = "<math> <mi>ℌ</mi><mo>,</mo><mi>ℭ</mi></math>";
test("de", "SimpleSpeak", expr, "fraktur cap h comma, fraktur cap c");
let expr = "<math> <mi>ℍ</mi><mo>,</mo><mi>ℿ</mi></math>";
test("de", "SimpleSpeak", expr, "double struck cap h, comma, double struck cap pi");
let expr = "<math> <mi>ℐ</mi><mo>,</mo><mi>ℳ</mi></math>";
test("de", "SimpleSpeak", expr, "script cap i comma, script cap m");
}
#[test]
fn greek() {
let expr = "<math> <mi>Α</mi><mo>,</mo><mi>Ω</mi></math>";
test("de", "SimpleSpeak", expr, "cap alpha comma, cap omega");
let expr = "<math> <mi>α</mi><mo>,</mo><mi>ω</mi></math>";
test("de", "SimpleSpeak", expr, "alpha comma, omega");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "double struck cap delta, comma, double struck cap upsilon");
let expr = "<math> <mi>α</mi><mo>,</mo><mi>ω</mi></math>";
test("de", "SimpleSpeak", expr, "alpha comma, omega");
}
#[test]
fn cap_cyrillic() {
let expr = "<math> <mi>А</mi><mo>,</mo><mi>Я</mi></math>";
test("de", "SimpleSpeak", expr, "cap a comma, cap ya");
}
#[test]
fn parenthesized() {
let expr = "<math> <mi>⒜</mi><mo>,</mo><mi>⒵</mi></math>";
test("de", "SimpleSpeak", expr, "parenthesized eigh comma, parenthesized z");
}
#[test]
fn circled() {
let expr = "<math> <mi>Ⓐ</mi><mo>,</mo><mi>Ⓩ</mi></math>";
test("de", "SimpleSpeak", expr, "circled cap eigh comma, circled cap z");
let expr = "<math> <mi>ⓐ</mi><mo>,</mo><mi>ⓩ</mi></math>";
test("de", "SimpleSpeak", expr, "circled eigh comma, circled z");
}
#[test]
fn fraktur() {
let expr = "<math> <mi>𝔄</mi><mo>,</mo><mi>𝔜</mi></math>";
test("de", "SimpleSpeak", expr, "fraktur cap eigh comma, fraktur cap y");
let expr = "<math> <mi>𝔞</mi><mo>,</mo><mi>𝔷</mi></math>";
test("de", "SimpleSpeak", expr, "fraktur eigh comma, fraktur z");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "fraktur cap eigh comma, fraktur cap y");
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "fraktur eigh comma, fraktur z");
}
#[test]
fn bold_fraktur() {
let expr = "<math> <mi>𝕬</mi><mo>,</mo><mi>𝖅</mi></math>";
test("de", "SimpleSpeak", expr, "fraktur bold cap eigh, comma, fraktur bold cap z");
let expr = "<math> <mi>𝖆</mi><mo>,</mo><mi>𝖟</mi></math>";
test("de", "SimpleSpeak", expr, "fraktur bold eigh comma, fraktur bold z");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "fraktur bold cap eigh, comma, fraktur bold cap z");
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "fraktur bold eigh comma, fraktur bold z");
}
#[test]
fn double_struck() {
let expr = "<math> <mi>𝔸</mi><mo>,</mo><mi>𝕐</mi></math>";
test("de", "SimpleSpeak", expr, "double struck cap eigh, comma, double struck cap y");
let expr = "<math> <mi>𝕒</mi><mo>,</mo><mi>𝕫</mi></math>";
test("de", "SimpleSpeak", expr, "double struck eigh comma, double struck z");
let expr = "<math> <mi>𝟘</mi><mo>,</mo><mi>𝟡</mi></math>";
test("de", "SimpleSpeak", expr, "double struck 0 comma, double struck 9");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "double struck cap eigh, comma, double struck cap y");
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "double struck eigh comma, double struck z");
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "double struck 0 comma, double struck 9");
}
#[test]
fn script() {
let expr = "<math> <mi>𝒜</mi><mo>,</mo><mi>𝒵</mi></math>";
test("de", "SimpleSpeak", expr, "script cap eigh comma, script cap z");
let expr = "<math> <mi>𝒶</mi><mo>,</mo><mi>𝓏</mi></math>";
test("de", "SimpleSpeak", expr, "script eigh comma, script z");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "script cap eigh comma, script cap z");
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "script eigh comma, script z");
}
#[test]
fn bold_script() {
let expr = "<math> <mi>𝓐</mi><mo>,</mo><mi>𝓩</mi></math>";
test("de", "SimpleSpeak", expr, "eingekreist groß a komma eingekreist groß z");
let expr = "<math> <mi>𝓪</mi><mo>,</mo><mi>𝔃</mi></math>";
test("de", "SimpleSpeak", expr, "script bold eigh comma, script bold z");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "script bold cap eigh, comma, script bold cap z");
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "script bold eigh comma, script bold z");
}
#[test]
fn bold() {
let expr = "<math> <mi>𝐀</mi><mo>,</mo><mi>𝐙</mi></math>";
test("de", "SimpleSpeak", expr, "bold cap eigh comma, bold cap z");
let expr = "<math> <mi>𝐚</mi><mo>,</mo><mi>𝐳</mi></math>";
test("de", "SimpleSpeak", expr, "bold eigh comma, bold z");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "bold cap eigh comma, bold cap z");
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "bold eigh comma, bold z");
}
#[test]
fn italic() {
let expr = "<math> <mi>𝐴</mi><mo>,</mo><mi>𝑍</mi></math>";
test("de", "SimpleSpeak", expr, "cap eigh comma, cap z");
let expr = "<math> <mi>𝑎</mi><mo>,</mo><mi>𝑧</mi></math>";
test("de", "SimpleSpeak", expr, "eigh comma, z");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "cap eigh comma, cap z");
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "eigh comma, z");
}
#[test]
fn sans_serif() {
let expr = "<math> <mi>𝖠</mi><mo>,</mo><mi>𝖹</mi></math>";
test("de", "SimpleSpeak", expr, "cap eigh comma, cap z");
let expr = "<math> <mi>𝖺</mi><mo>,</mo><mi>𝗓</mi></math>";
test("de", "SimpleSpeak", expr, "eigh comma, z");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "cap eigh comma, cap z");
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "eigh comma, z");
}
#[test]
fn sans_serif_bold() {
let expr = "<math> <mi>𝗔</mi><mo>,</mo><mi>𝗭</mi></math>";
test("de", "SimpleSpeak", expr, "bold cap eigh comma, bold cap z");
let expr = "<math> <mi>𝗮</mi><mo>,</mo><mi>𝘇</mi></math>";
test("de", "SimpleSpeak", expr, "bold eigh comma, bold z");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "bold cap eigh comma, bold cap z");
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "bold eigh comma, bold z");
}
#[test]
fn sans_serif_italic() {
let expr = "<math> <mi>𝘈</mi><mo>,</mo><mi>𝘡</mi></math>";
test("de", "SimpleSpeak", expr, "cap eigh comma, cap z");
let expr = "<math> <mi>𝘢</mi><mo>,</mo><mi>𝘻</mi></math>";
test("de", "SimpleSpeak", expr, "eigh comma, z");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "cap eigh comma, cap z");
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "eigh comma, z");
}
#[test]
fn sans_serif_bold_italic() {
let expr = "<math> <mi>𝘼</mi><mo>,</mo><mi>𝙕</mi></math>";
test("de", "SimpleSpeak", expr, "bold cap eigh comma, bold cap z");
let expr = "<math> <mi>𝙖</mi><mo>,</mo><mi>𝙯</mi></math>";
test("de", "SimpleSpeak", expr, "bold eigh comma, bold z");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "bold cap eigh comma, bold cap z");
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "bold eigh comma, bold z");
}
#[test]
fn monospace() {
let expr = "<math> <mi>𝙰</mi><mo>,</mo><mi>𝚉</mi></math>";
test("de", "SimpleSpeak", expr, "cap eigh comma, cap z");
let expr = "<math> <mi>𝚊</mi><mo>,</mo><mi>𝚣</mi></math>";
test("de", "SimpleSpeak", expr, "eigh comma, z");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "cap eigh comma, cap z");
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "eigh comma, z");
}
#[test]
fn bold_greek() {
let expr = "<math> <mi>𝚨</mi><mo>,</mo><mi>𝛀</mi></math>";
test("de", "SimpleSpeak", expr, "bold cap alpha comma, bold cap omega");
let expr = "<math> <mi>𝛂</mi><mo>,</mo><mi>𝛚</mi></math>";
test("de", "SimpleSpeak", expr, "bold alpha comma, bold omega");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "bold cap alpha comma, bold cap omega");
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "bold alpha comma, bold omega");
}
#[test]
fn bold_greek_others() {
let expr = "<math> <mi>𝛛</mi><mo>,</mo><mi>𝛡</mi></math>";
test("de", "SimpleSpeak", expr, "bold partial derivative, comma, bold pi");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "bold partial derivative, comma, bold pi");
}
#[test]
fn italic_greek() {
let expr = "<math> <mi>𝛢</mi><mo>,</mo><mi>𝛺</mi></math>";
test("de", "SimpleSpeak", expr, "cap alpha comma, cap omega");
let expr = "<math> <mi>𝛼</mi><mo>,</mo><mi>𝜔</mi></math>";
test("de", "SimpleSpeak", expr, "alpha comma, omega");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "cap alpha comma, cap omega");
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "alpha comma, omega");
}
#[test]
fn italic_greek_others() {
let expr = "<math> <mi>𝜕</mi><mo>,</mo><mi>𝜛</mi></math>";
test("de", "SimpleSpeak", expr, "partial derivative comma, pi");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "partial derivative comma, pi");
}
#[test]
fn bold_italic_greek() {
let expr = "<math> <mi>𝜜</mi><mo>,</mo><mi>𝜴</mi></math>";
test("de", "SimpleSpeak", expr, "bold cap alpha comma, bold cap omega");
let expr = "<math> <mi>𝜶</mi><mo>,</mo><mi>𝝎</mi></math>";
test("de", "SimpleSpeak", expr, "bold alpha comma, bold omega");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "bold cap alpha comma, bold cap omega");
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "bold alpha comma, bold omega");
}
#[test]
fn bold_italic_greek_others() {
let expr = "<math> <mi>𝝏</mi><mo>,</mo><mi>𝝕</mi></math>";
test("de", "SimpleSpeak", expr, "bold partial derivative, comma, bold pi");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "bold partial derivative, comma, bold pi");
}
#[test]
fn sans_serif_bold_greek() {
let expr = "<math> <mi>𝝖</mi><mo>,</mo><mi>𝝮</mi></math>";
test("de", "SimpleSpeak", expr, "bold cap alpha comma, bold cap omega");
let expr = "<math> <mi>𝝰</mi><mo>,</mo><mi>𝞈</mi></math>";
test("de", "SimpleSpeak", expr, "bold alpha comma, bold omega");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "bold cap alpha comma, bold cap omega");
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "bold alpha comma, bold omega");
}
#[test]
fn sans_serif_bold_greek_others() {
let expr = "<math> <mi>𝞉</mi><mo>,</mo><mi>𝞏</mi></math>";
test("de", "SimpleSpeak", expr, "bold partial derivative, comma, bold pi");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "bold partial derivative, comma, bold pi");
}
#[test]
fn sans_serif_bold_italic_greek() {
let expr = "<math> <mi>𝞐</mi><mo>,</mo><mi>𝞨</mi></math>";
test("de", "SimpleSpeak", expr, "bold cap alpha comma, bold cap omega");
let expr = "<math> <mi>𝞪</mi><mo>,</mo><mi>𝟂</mi></math>";
test("de", "SimpleSpeak", expr, "bold alpha comma, bold omega");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "bold cap alpha comma, bold cap omega");
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "bold alpha comma, bold omega");
}
#[test]
fn sans_serif_bold_italic_greek_others() {
let expr = "<math> <mi>𝟃</mi><mo>,</mo><mi>𝟉</mi></math>";
test("de", "SimpleSpeak", expr, "bold partial derivative, comma, bold pi");
// MathType private space versions
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "bold partial derivative, comma, bold pi");
}
#[test]
fn pua_regular() {
let expr = "<math> <mi></mi><mo>,</mo><mi></mi></math>";
test("de", "SimpleSpeak", expr, "cap eigh comma, cap z");
}
#[test]
fn turned() {
let expr = "<math> <mi>Ⅎ</mi><mo>,</mo><mi>⅄</mi></math>";
test("de", "SimpleSpeak", expr, "turned cap f comma, turned sans-serif cap y");
}
*/