mathcat 0.7.5

MathCAT: Math Capable Assistive Technology ('Speech and braille from MathML')
Documentation
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
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
---
 - "a-z": 
    - test: 
        if: "$TTS='none'"
        then: [T: "."]                            #  (en: '.', google translation)
        else: [spell: "'.'"]

 # Capital letters are a little tricky: users can pick their favorite word (something that was requested) and 
 # screen readers have options to use pitch changes or beeps instead of or in addition to say "cap"
 # Also, if a user can see the screen, they probably don't need to hear "cap", but if they specified an override, they must want to hear the override.
            
 - "A-Z":
    - test: 
        if: "$CapitalLetters_Beep"
        then:
        - audio:
            value: "beep.mp4"
            replace: []
    - test: 
        if: "$CapitalLetters_UseWord"
        then_test:
          if: "$SpeechOverrides_CapitalLetters = ''"
          then_test:
            if: "$Impairment = 'Blindness'"
            then: [T: "stor"]                #  (en: 'cap', google translation)
          else: [x: "$SpeechOverrides_CapitalLetters"] 
    - pitch:
        value: "$CapitalLetters_Pitch"
        # note: processing of ranges converts '.' into the character, so it needs to be in quotes below
        replace: [spell: "translate('.', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')"]

 - "0-9": [T: "."]                               #  (en: '.', google: 'A')
 
 - " ": [T: " "]                     # 0x20      #NORWEGIAN: Added from English version. Not in Swedish version.

 - "!":                                          #  0x21
    - test:
        if: "ancestor-or-self::*[contains(@data-intent-property, ':literal:')]"  #NORWEGIAN: Changed from ":structure" to be equal to English translation
        then_test:
            if: "$Verbosity = 'Terse'"
            then: [T: "utropstegn"]            #  0x21 (en: 'bang', google translation)
            else: [T: "utropstegn"]            #  0x21 (en: 'exclamation point')
        else: [T: "fakultet"]                    #  0x21 (en: 'factorial')
          
 - "\"": [T: "anførselstegn"]                  #  0x22 (en: 'quotation mark')
 - "#": [T: "nummertegn"]                      #  0x23 (en: 'number', MathPlayer: 'numeriskt tecken', google: 'siffra')
 - "$": [T: "dollar"]                            #  0x24 (en: 'dollars')
 - "%": [T: "prosent"]                           #  0x25 (en: 'percent')
 - "&": [T: "og-tegn"]                         #  0x26 (en: 'ampersand')
 - "'": [T: "apostrof"]                          #  0x27 (en: 'apostrophe')
 - "(":                                          #  0x28
    - test:
        if: $SpeechStyle = 'ClearSpeak' or $SpeechStyle = 'SimpleSpeak'
        then_test:
            if: "$Verbosity='Terse'"
            then: [{pause: short}, {T: "startparentes"}]                   #  0x28 (en: 'open', google translation)
            else: [{pause: short}, {T: "startparentes"}]          #  0x28 (en: 'open paren')
        else: [T: "venstreparentes"]            #  0x28 (en: 'left paren')
    - pause: short
 - ")":                                          #  0x29
    - pause: short
    - test:
        if: $SpeechStyle = 'ClearSpeak' or $SpeechStyle = 'SimpleSpeak'
        then_test:
            if: "$Verbosity='Terse'"
            then: [T: "sluttparentes"]                   #  0x29 (en: 'close', google translation)
            else: [T: "sluttparentes"]          #  0x29 (en: 'close paren')
        else: [T: "høyreparentes"]              #  0x29 (en: 'right paren')

 - "*":                                          #  0x2a
    test:
        if: "parent::*[name(.)='msup' or name(.)='msubsup' or name(.)='skip-super']"
        then: [T: "stjerne"]                    #  0x2a (en: 'star', google translation)
        else: [T: "ganger"]                      #  0x2a (en: 'times')
 - "+": [T: "pluss"]                              #  0x2b
 - ",":                                          #  0x2c
    # the following deals with the interaction of "," with "…" which sometimes wants the ',' to be silent
    # that this test is here and not with "…" is not ideal, but seems simplest
     test:
        if:
            - "$SpeechStyle != 'ClearSpeak' or $ClearSpeak_Ellipses = 'Auto' or "
               # must be ClearSpeak and $ClearSpeak_Ellipses = 'AndSoOn'
               # speak "comma" when not adjacent to '…'
            - "( following-sibling::*[1][text()!= '…'] and preceding-sibling::*[1][text()!='…']  ) or "
               # except if expression starts with '…'
            - "../*[1][.='…'] "
        then:
        - T: "komma"                         # 	(en: 'comma', google translation)
        - test:
            if: "$Verbosity != Terse"
            then: [pause: short]
        # else silent

 - "-": [T: "minus"]                             #  0x2d
 - ".":                                          #  0x2e
    - test:
        if: "parent::*[1][self::m:mn]"
        then: [T: "punktum"]                       #  (en: 'point', google translation)                               
        else: [T: "prikk"]                       #  (en: 'dot')                                                     
 - "/": [T: "delt på"]                         #  0x2f (en: 'divided by')
 - ":": [T: "kolon"]                             #  0x3a (en: 'colon')
 - ";": [T: "semikolon"]                         #  0x3b (en: 'semicolon')
 - "<":                                          #  0x3c
     - test: 
         if: "$Verbosity!='Terse'"
         then: [T: "er"]                         #  (en: 'is', google translation)
     - T: "mindre enn"                            #  (en: 'less than')
 - "=":                                          #  0x3d
     # SWEDISH: We remove "är" from all occurrences of = after consulting our mathematician advisor.
     - test: 
        if: "$Verbosity!='Terse'"
        then: [T: "er"]
     - T: "lik"                             #  (en: 'equals', MathPlayer: 'lik', google: 'lika')

 - ">":                                          #  0x3e
     - test: 
         if: "$Verbosity!='Terse'"
         then: [T: "er"]                         #  (en: 'is', google translation)
     - T: "større enn"                            #  (en: 'greater than')
 - "?": [T: "spørsmålstegn"]                       #  0x3f (en: 'question mark')
 - "@": [T: "krøllalfa"]                          #  0x40 (en: 'at sign')
 - "[":                                          #  0x5b
    - test:
        if: $SpeechStyle = 'ClearSpeak' or $SpeechStyle = 'SimpleSpeak'
        then: [T: "start hakeparentes"]           #  (en: 'open bracket', google translation)
        else: [T: "venstre hakeparentes"]         #  (en: 'left bracket')
    - pause: short
 - "\\": [T: "omvendt skråstrek"]                #  0x5c (en: 'back slash')
 - "]":                                          #  0x5d
    - pause: short
    - test:
        if: $SpeechStyle = 'ClearSpeak' or $SpeechStyle = 'SimpleSpeak'
        then: [T: "slutt hakeparentes"]           #  (en: 'close bracket', google translation)
        else: [T: "høyre hakeparentes"]           #  (en: 'right bracket')
 - "^": [T: "hatt"]                               #  0x5e (en: 'hat')
 - "_": [T: "understrek"]                       #  0x5f (en: 'under bar', MathPlayer: 'streck under', google: 'under bar')
 - "`": [T: "grav aksent"]                       #  0x60 (en: 'grave')
 - "{":                                          #  0x7b
    - test:
        if: $SpeechStyle = 'ClearSpeak' or $SpeechStyle = 'SimpleSpeak'
        then: [T: "start krøllparentes"]       #  (en: 'open brace', google translation)
        else: [T: "venstre krøllparentes"]     #  (en: 'left brace')
    - pause: short
 - "|":                                          #  0x7c   NORWEGIAN: Changed to English version
    # note: for ClearSpeak and SimpleSpeak, "|" inside of sets is handled at the mrow level, same for 'sets'
     - with:
        variables: [DefaultToGiven: "count(preceding-sibling::*)=1 and count(following-sibling::*)=1 and ../../../*[1][.='P']"] # P(A|B)
        replace:
        - test:
            - if: "$SpeechStyle != 'ClearSpeak'"
              then_test:
                - if: "$DefaultToGiven"
                  then: [pause: short, T: "gitt"]
                - else_if: "preceding-sibling::*[1][self::m:mn and not(contains(., $DecimalSeparators))] and 
                            following-sibling::*[1][self::m:mn and not(contains(., $DecimalSeparators))]"
                  then: [T: "deler"]
                  else: [T: "vertikal strek"]
            - else_if: "not(preceding-sibling::*) or not(following-sibling::*)"
              then: [T: "vertikal strek"]
            - else_if: "$ClearSpeak_VerticalLine = 'SuchThat'"
              then: [T: "slik at"]
            - else_if: "$ClearSpeak_VerticalLine = 'Given' or $DefaultToGiven"
              then: [pause: short, T: "gitt"] 
            - else: [T: "deler"]

 - "}":                                          #  0x7d
    - pause: short
    - test:
        if: $SpeechStyle = 'ClearSpeak' or $SpeechStyle = 'SimpleSpeak'
        then: [T: "slutt krøllparentes"]       #  (en: 'close brace', google translation)
        else: [T: "høyre krøllparentes"]       #  (en: 'right brace')

 - "~": [T: "tilde"]                             #  0x7e
 - " ":                                          #  0xa0
    - test:
        if: "@data-empty-in-2D and not(ancestor::*[self::m:piecewise or self::m:system-of-equations or self::m:lines])"   #NORWEGIAN: Changed to English version. Now it doesn't speak "tom tom" for continued_row
        then: [T: "tom"]                       #  want to say something for fraction (etc) with empty child (en: 'empty', google translation)
        else: [T: ""]                            

 - "¬": [T: "ikke"]                              #  0xac (en: 'not')
 - "°": [T: "grader"]                              #  0xb0 (en: 'degrees')
 - "±": [T: "pluss minus"]                        #  0xb1 (en: 'plus or minus')
 - "´": [T: "akutt aksent"]                       #  0xb4 (en: 'acute')
 - "·":                                          #  0xB7
    - test:
        if: "$SpeechStyle = 'LiteralSpeak' or not($SpeechStyle = 'ClearSpeak' and $ClearSpeak_MultSymbolDot = 'Auto')"
        then: [T: "midtstilt prikk"]                       #  (en: 'times', google translation)                        
        else: [T: "ganger"]               #  (en: 'dot', MathPlayer: 'mellanpunkt', google: 'punkt')             
 - "×":                                          #  0xd7
    - test:
        if: "$SpeechStyle != 'ClearSpeak' or $ClearSpeak_MultSymbolX = 'Auto'"
        then: [T: "ganger"]                       #  (en: 'times', google translation)
        else_test:
            if: $ClearSpeak_MultSymbolX = 'By'
            then: [T: "ganger"]                   #  (en: 'by', google translation)
            else: [T: "kryss"]                  #  (en: 'cross')
 - "÷": [T: "delt på"]                          #  0xf7 (en: 'divided by')
 - "̀": [T: "grav aksent"]                #  0x300 (en: 'grave accent embellishment', google: 'allvarlig accentutsmyckning')
 - "́": [T: "akutt aksent"]            #  0x301 (en: 'acute accent embellishment', google: 'akut accentutsmyckning')
 - "̂": [T: "cirkumfleks"]                 #  0x302 (en: 'circumflex accent embellishment', google: 'circumflex accent utsmyckning')  
 - "̃": [T: "tilde"]               #  0x303 (google: 'tilde utsmyckning')                           
 - "̄": [T: "makron"]                 #  0x304 (en: 'macron embellishment', google: 'macron -utsmyckning')
 - "̅": [T: "strek"]             #  0x305 (google: 'överbar utsmyckning')
 - "̆": [T: "breve"]                 #  0x306 (en: 'breve', google: 'breve')
 - "̇": [T: "prikk"]           #  0x307 (google: 'prick ovanför utsmyckning')

   # Note: ClearSpeak has pref TriangleSymbol for "Δ", but that is wrong
 - "Α-Ω": 
    - test: 
        if: "$CapitalLetters_Beep"
        then:
        - audio:
            value: "beep.mp4"
            replace: []
    - test: 
        if: "$CapitalLetters_UseWord"
        then_test:
          if: "$SpeechOverrides_CapitalLetters = ''"
          then_test:
            if: "$Impairment = 'Blindness'"
            then: [T: "stor"]                  #  (en: 'cap', google translation)
          else: [x: "$SpeechOverrides_CapitalLetters"] 
    - pitch:
        value: "$CapitalLetters_Pitch"
        # note: processing of ranges converts '.' into the character, so it needs to be in quotes below
        replace: [spell: "translate('.', 'ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ΢ΣΤΥΦΧΨΩ', 'αβγδεζηθικλμνξοπρςστυφχψω')"]

 - "α": [T: "alfa"]                              #  0x3b1 (en: 'alpha')
 - "β": [T: "beta"]                              #  0x3b2
 - "γ": [T: "gamma"]                             #  0x3b3
 - "δ": [T: "delta"]                             #  0x3b4
 - "ε": [T: "epsilon"]                           #  0x3b5
 - "ζ": [T: "zeta"]                              #  0x3b6
 - "η": [T: "eta"]                               #  0x3b7
 - "θ": [T: "theta"]                             #  0x3b8
 - "ι": [T: "jota"]                              #  0x3b9 (en: 'iota', google: 'iota')
 - "κ": [T: "kappa"]                             #  0x3ba
 - "λ": [T: "lambda"]                             #  0x3bb (en: 'lambda', google: 'lambda')
 - "μ": [T: "my"]                                #  0x3bc (en: 'mu', google: 'mu')
 - "ν": [T: "ny"]                                #  0x3bd (en: 'nu', google: 'nu')
 - "ξ": [T: "ksi"]                                #  0x3be (en: 'zai', google: 'zai')
 - "ο": [T: "omikron"]                           #  0x3bf (en: 'omicron', google: 'omicron')
 - "π": [T: "pi"]                                #  0x3c0
 - "ρ": [T: "rho"]                               #  0x3c1
 - "ς": [T: "sluttsigma"]                  #  0x3c2 (en: 'final sigma', google: 'slutlig sigma')
 - "σ": [T: "sigma"]                             #  0x3c3
 - "τ": [T: "tau"]                               #  0x3c4
 - "υ": [T: "ypsilon"]                           #  0x3c5 (en: 'upsilon', google: 'upsilon')
 - "φ": [T: "fi"]                                #  0x3c6 (en: 'phi', google: 'phi')
 - "χ": [T: "khi"]                               #  0x3c7
 - "ψ": [T: "psi"]                               #  0x3c8
 - "ω": [T: "omega"]                             #  0x3c9
 - "ϕ": [T: "fi"]                                 #  0x3d5 (en: 'phi', google: 'phi')
 - "ϖ": [T: "pi"]                                #  0x3d6 (en: 'pi', google: 'pi')
 - "ϵ": [T: "epsilon"]                           #  0x3f5
 - "϶": [T: "omvendt epsilon"]                   #  0x3f6 (en: 'reversed epsilon')

 - "": [T: "tankestrek"]                        #  0x2013 (en: 'en dash')          
 - "": [T: "lang tankestrek"]                  #  0x2014 (en: 'em dash')
 - "": [T: "horisontal strek"]                #  0x2015 (en: 'horizontal bar')
 - "": [T: "dobbel loddrett strek"]          #  0x2016 (en: 'double vertical line')
 - "":                                          #  0x2026
    test:
        if:
            - "$SpeechStyle != 'ClearSpeak' or $ClearSpeak_Ellipses = 'Auto' or"
               # must be ClearSpeak and $ClearSpeak_Ellipses = 'AndSoOn'
               # speak '…' as 'and so on...' unless expr starts with '…'
            - "../*[1][.='…']"
        then: [T: "prikk prikk prikk"]           #  (en: 'dot dot dot', google translation)
        else_test:                               #  must have $ClearSpeak_Ellipses = 'AndSoOn'
            if: "count(following-sibling::*) = 0"
            then: [T: "og så videre"]           #  (en: 'and so on', google translation)
            else: [T: "og så videre opp til"]       #  (en: 'and so on up to')

 - "":                                          #  0x2061 #NORWEGIAN: Changed to literal. Didn't add the test with "TrigFunctionName, cause want to say "sinus hyperbolicus av"
    - test:
        if: "preceding-sibling::*[1][.='log' or .='ln' or .='lg' or .='exp'] or
             not(
              ( $Verbosity='Terse' or ($SpeechStyle = 'ClearSpeak' and IsNode(following-sibling::*[1],'simple')) and
                preceding-sibling::*[1][IfThenElse($SpeechStyle='ClearSpeak',
                                                   IsInDefinition(., 'Speech', 'ClearSpeakTrigFunctionNames'),
                                                   IsInDefinition(., 'Speech', 'TrigFunctionNames') )]
              ) or
              preceding-sibling::*[1][IsInDefinition(., 'Speech', 'GeometryShapes')] or
              (@data-changed='added' and ancestor-or-self::*[contains(@data-intent-property, ':literal:')])
            )"
        then: [T: "av"]                          #  (en: 'of', google translation)

 - "": [T: ""]                                  #  0x2062
 - "": [T: ""]                                  #  0x2063
 - "": [T: "og"]                              #  0x2064 (en: 'and', google: 'og')
 - "": [T: "primtegn"]                              #  0x2032 (en: 'prime')
 - "": [T: "dobbelt primtegn"]                               #  0x2033 (en: 'double prime')
 - "": [T: "trippelt primtegn"]                              #  0x2034 (en: 'triple prime')

 - "ℂℕℚℝℤ":                                      #  here we rely on this running through the table again to speak "cap xxx"
    - T: "dobbeltstreket"                          #  (en: 'double-struck')
    - spell: "translate('.', 'ℂℕℚℝℤ', 'CNQRZ')"

 - "": [T: "grader celsius"]                    #  0x2103 (en: 'degrees celsius')
 - "": [T: "grader fahrenheit"]                 #  0x2109 (en: 'degrees fahrenheit')
 - "ℋℛℓ":                                        #  0x210b
    - T: "script font"                        #  (en: 'script', google: 'manus')             
    - spell: "translate('.', 'ℋℛℓ', 'HRl')"
 - "": [T: "plancks konstant"]                   #  0x210e
 - "":                                          #  0x211c
    - T: "fraktur"                       #  (en: 'fraktur', google: 'fraktur')
    - spell: "'R'"

 - "": [T: "ohm"]                               #  0x2126 (en: 'ohms')
 - "": [T: "kelvin"]                     #  0x212a (en: 'kelvin')
 - "": [T: "ångstrøm"]                         #  0x212b
 - "ⅆⅇⅈⅉ":                                       #  0x2146-9
    - T: "dobbeltstreket kursiv"                 #  (en: 'double-struck italic')
    - spell: "translate('.', 'ⅆⅇⅈⅉ', 'deij')"
                         
 - "": [T: "venstrepil"]                    #  0x2190 (en: 'leftwards arrow')
 - "": [T: "oppoverpil"]                         #  0x2191 (en: 'upwards arrow')
 - "":                                          #  0x2192
     - test:
        if: "ancestor::*[2][self::m:limit]"
        then: [T: "går mot"]               #  (en: 'approaches', google translation)
        else: [T: "høyrepil"]                #  (en: 'right arrow')

 - "": [T: "nedoverpil"]                         #  0x2193 (en: 'downwards arrow')
 - "": [T: "impliserer"]                 #  0x21d2 (en: 'rightwards double arrow')
 - "": [T: "for alle"]                          #  0x2200 (en: 'for all')
 - "": [T: "partiell derivert"]                                         #  0x2202
     # SWEDISH: This is only refered to as "del" in Swedish, but we write "dell" for correct pronounciation.
 - "": [T: "det eksisterer"]                     #  0x2203 (en: 'there exists')
 - "": [T: "det eksisterer ikke"]                #  0x2204 (en: 'there does not exist')
 - "": [T: "den tomme mengden"]                     #  0x2205 (en: 'empty set')
 - "": [T: "laplace av"]                     # 0x2206 (en: 'laplacian of')
 - "":                                          #  0x2208
    - test:
        if: "$SpeechStyle != 'ClearSpeak'"
        then:
        - T: "i"                         #(en: "is an element of")
        # NORWEGIAN: "i" sounds best in all cases for the non-ClearSpeak case
        # Several options for speaking elements in ClearSpeak -- they split between being inside a set or not and then the option
        # SWEDISH/NORWEGIAN: The word "medlem" is not commonly used in set theory, so we removed that rule. If the parsing has set the parameter to "Member" it will fall under the "else" case.
        else_test:
            if: "../../self::m:set or ../../../self::m:set" #  inside a set
            then_test:
              - if: $ClearSpeak_SetMemberSymbol = 'Auto' or $ClearSpeak_SetMemberSymbol = 'In'
                then: [T: "i"]                   #  (en: 'in', google translation)
              - else_if: $ClearSpeak_SetMemberSymbol = 'Element'
                then: [T: "element i"]          #  (en: 'element of', google translation)
              - else: [T: "tilhørende"]             #  $ClearSpeak_SetMemberSymbol = 'Belongs' (en: 'belonging to')
            else_test:
              - if: $ClearSpeak_SetMemberSymbol = 'Auto' or $ClearSpeak_SetMemberSymbol = 'In'
                then: [T: "i"] # NORWEGIAN: Set the "auto" case to be "i"
              - else_if: $ClearSpeak_SetMemberSymbol = 'Element'
                then: [T: "er et element i"]                #  (en: 'is in', google translation)
              - else: [T: "tilhører"]             #  $ClearSpeak_SetMemberSymbol = 'Belongs' (en: 'belongs to')
 - "":                                          #  0x2209
    # rule is identical to 0x2208
     - test:
        if: "$SpeechStyle != 'ClearSpeak'"
        then:
        - test:
            if: "not(ancestor::*[self::m:set])"    # "the set x is an element of ..." sounds bad"
            then: [T: "er"]
        - T: "ikke et element i"
        # Several options for speaking elements in ClearSpeak -- they split between being inside a set or not and then the option
        # SWEDISH/NORWEGIAN: The word "medlem" is not commonly used in set theory, so we removed that rule. If the parsing has set the parameter to "Member" it will fall under the "else" case.
        else_test:
            if: "../../self::m:set or ../../../self::m:set" #  inside a set
            then_test:
              - if: $ClearSpeak_SetMemberSymbol = 'Auto' or $ClearSpeak_SetMemberSymbol = 'In'
                then: [T: "ikke i"]              #  (en: 'not in', google translation)
              - else_if: $ClearSpeak_SetMemberSymbol = 'Element'
                then: [T: "ikke element i"]     #  (en: 'not element of', google translation)
              - else: [T: "ikke tilhørende"]        #  $ClearSpeak_SetMemberSymbol = 'Belongs' (en: 'not belonging to')
            else_test:
              - if: $ClearSpeak_SetMemberSymbol = 'Auto' or $ClearSpeak_SetMemberSymbol = 'Element'
                then: [T: "er ikke et element i"]    #  (en: 'is not an element of', google translation)
              - else_if: $ClearSpeak_SetMemberSymbol = 'In'
                then: [T: "er ikke i"]           #  (en: 'is not in', google translation)
              - else: [T: "tilhører ikke"]        #  $ClearSpeak_SetMemberSymbol = 'Belongs' (en: 'does not belong to')
 - "":                                          #  0x220a
   - test:
        if: "$SpeechStyle != 'ClearSpeak'"
        then:
        - T: "i"                                 #(en: "is an element of")
        # NORWEGIAN: "i" sounds best in all cases for the non-ClearSpeak case
        # Several options for speaking elements in ClearSpeak -- they split between being inside a set or not and then the option
        # SWEDISH/NORWEGIAN: The word "medlem" is not commonly used in set theory, so we removed that rule. If the parsing has set the parameter to "Member" it will fall under the "else" case.
        else_test:
            if: "../../self::m:set or ../../../self::m:set" #  inside a set
            then_test:
              - if: $ClearSpeak_SetMemberSymbol = 'Auto' or $ClearSpeak_SetMemberSymbol = 'In'
                then: [T: "i"]                   #  (en: 'in', google translation)
              - else_if: $ClearSpeak_SetMemberSymbol = 'Element'
                then: [T: "element i"]          #  (en: 'element of', google translation)
              - else: [T: "tilhørende"]             #  $ClearSpeak_SetMemberSymbol = 'Belongs' (en: 'belonging to')
            else_test:
              - if: $ClearSpeak_SetMemberSymbol = 'Auto' or $ClearSpeak_SetMemberSymbol = 'In'
                then: [T: "i"]         #  (en: 'is an element of', google translation) #NORWEGIAN: Set the "auto" case to be "i"
              - else_if: $ClearSpeak_SetMemberSymbol = 'Element'
                then: [T: "er et element i"]                #  (en: 'is in', google translation)
              - else: [T: "tilhører"]             #  $ClearSpeak_SetMemberSymbol = 'Belongs' (en: 'belongs to')
 - "": [T: "produktet"]                           #  0x220f (en: 'product')
 - "": [T: "koproduktet"]                   #  0x2210 (en: 'co-product', MathPlayer: 'coproduct', google: 'samprodukt')
 - "": [T: "sum"]                             #  0x2211 (en: 'sum')
 - "": [T: "minus"]                             #  0x2212
 - "": [T: "minus pluss"]                        #  0x2213 (en: 'minus or plus')
 - "": [T: "ganger"]                      #  0x2217 (en: 'times')
 - "": [T: "sammensatt med"]                               #  0x2218 (en: 'composed with')
 - "": [T: "kvadratroten av"]                    #  0x221a (en: 'square root of')
 - "":                                          #  0x221d
     - test: 
         if: "$Verbosity!='Terse'"
         then: [T: "er"]                         #  (en: 'is', google translation)
     - T: "proporsjonal med"                    #  (en: 'proportional to')
 - "": [T: "uendelig"]                        #  0x221e (en: 'infinity')
 - "": [T: "rett vinkel"]                      #  0x221f (en: 'right angle')
 - "": [T: "vinkel"]                            #  0x2220 (en: 'angle')
 - "": [T: "målt vinkel"]                       #  0x2221 (en: 'measured angle')
 - "": [T: "deler"]                             #  0x2223 (en: 'divides')
 - "": [T: "deler ikke"]                        #  0x2224 (en: 'does not divide')
 - "":                                           # 0x2225
     - test:
         if: "ancestor-or-self::*[contains(@data-intent-property, ':literal:')]"
         then: [T: "dobbel vertikal linje"]
         else:
         - test:
              if: "$Verbosity!='Terse'"
              then: [T: "er"]
         - T: "parallell med"
 - "":                                          #  0x2226
     - test: 
         if: "$Verbosity!='Terse'"
         then: [T: "er"]                         #  (en: 'is', google translation)
     - T: "ikke parallell med"                  #  (en: 'not parallel to')
 - "": [T: "og"]                               #  0x2227 (en: 'and')
 - "": [T: "eller"]                             #  0x2228 (en: 'or')
 - "": [T: "snitt"]                             #  0x2229 (en: 'intersection')
 - "": [T: "union"]                             #  0x222a
 - "": [T: "integralet"]                          #  0x222b
 - "": [T: "dobbeltintegralet"]                   #  0x222c (en: 'double integral')
 - "": [T: "trippelintegralet"]                  #  0x222d (en: 'triple integral')
 - "": [T: "kurveintegralet"]                      #  0x222e (en: 'contour integral')
 - "":                                          #  0x2236
     - T: "til"                            #  (en: 'to')
 - "": [T: "som"]                        #  0x2237 (en: 'as', MathPlayer: 'proportion', google: 'som')
 - "":                                   #  0x223c (en: 'varies with')
     - test: 
        if: "$Verbosity!='Terse'"
        then: [T: "er"]
     - T: "proporsjonal med"
 - "": [T: "omvendt tilde"]                     #  0x223d (en: 'reversed tilde')
 - "":                                          #  0x223e
     # SWEDISH: Could not find any examples of how this character is used and what specific meaning it has. In ClearSpeak rules, it is
     #          translated as "omvänt långdraget s".
     - T: "omvendt langstrakt s"                  #  (en: 'most positive', MathPlayer: 'inverted lazy s', google: 'mest positiva')
 - "": [T: "sinuskurve"]                        #  0x223f (en: 'sine wave')
 - "":                                             #  0x2260
     - test: 
        if: "$Verbosity!='Terse'"
        then: [T: "er"]
     - T: "ikke lik"                      #  (en: 'not equal to')
 - "":                                          #  0x2261
     - test: 
         if: "$Verbosity!='Terse'"
         then: [T: "er"]
     - T: "identisk med"                         #  (en: 'identical to')
 - "":                                          #  0x2264
     - test: 
         if: "$Verbosity!='Terse'"
         then: [T: "er"] 
     - T: "mindre enn eller lik"
     
 - "":                                          #  0x2265
     - test: 
         if: "$Verbosity!='Terse'"
         then: [T: "er"]
     - T: "større enn eller lik"
    
 - "":                                    #  0x2266 (en: 'less than over equal to')
     - test: 
         if: "$Verbosity!='Terse'"
         then: [T: "er"] 
     - T: "mindre enn eller lik"
     
 - "":                                    #  0x2267 (en: 'greater than over equal to')
     - test: 
         if: "$Verbosity!='Terse'"
         then: [T: "er"]
     - T: "større enn eller lik"
     
 - "": [T: "foregår"]                       #  0x227a (en: 'precedes') 
 - "": [T: "følger"]                      #  0x227b (en: 'succeeds')   
 - "":                                          #  0x2282
     - test: 
         if: "$Verbosity!='Terse'"
         then: [T: "er en"]                         #     (en: 'is a', google translation)
     - T: "ekte delmengde av"
    
 - "":                                          #  0x2283
     - test: 
         if: "$Verbosity!='Terse'"
         then: [T: "er en"]                         #     (en: 'is a', google translation)
     - T: "ekte overmengde av"
     
 - "":                                          #  0x2284
     - test: 
         if: "$Verbosity!='Terse'"
         then: [T: "er"]                            #     (en: 'is', google translation)
     - T: "ikke en ekte delmengde av"
     
 - "":                                          #  0x2285  
     - test: 
         if: "$Verbosity!='Terse'"
         then: [T: "er"]                            #     (en: 'is', google translation)
     - T: "ikke en ekte overmengde av"
    
 - "":                                          #  0x2286
     - test: 
         if: "$Verbosity!='Terse'"
         then: [T: "er en"]                         #     (en: 'is a', google translation)
     - T: "delmengde av"
     
 - "":                                          #  0x2287
     - test: 
         if: "$Verbosity!='Terse'"
         then: [T: "er en"]                         #     (en: 'is a', google translation)
     - T: "overmengde av"