|
8 | 8 | - T: "punktum" |
9 | 9 | - x: "substring-after(., '.')" |
10 | 10 |
|
11 | | -# audit-ignore |
12 | 11 | # number-sets are a little messy in that the base was converted to a number-set, so we have to match that (simple) case last |
13 | | -- name: pos-neg-number-sets |
| 12 | +- name: pos-neg-number-sets # audit-ignore |
14 | 13 | tag: number-sets |
15 | 14 | match: "count(*)=2 and *[2][.='+' or .='-']" |
16 | 15 | replace: |
|
90 | 89 | - bookmark: "@id" |
91 | 90 | - T: "den imaginære delen" # phrase('the imaginary part' is part of a complex number) |
92 | 91 |
|
93 | | -# audit-ignore |
94 | 92 | # rules on scripted vertical bars ('evaluated at') |
95 | | -- name: evaluated-at-2 |
| 93 | +- name: evaluated-at-2 # audit-ignore |
96 | 94 | tag: evaluate |
97 | 95 | match: "count(*)=2" |
98 | 96 | replace: |
|
106 | 104 | - pause: auto |
107 | 105 | - x: "*[2]" |
108 | 106 |
|
109 | | -# audit-ignore |
110 | | -- name: evaluated-at-3 |
| 107 | +- name: evaluated-at-3 # audit-ignore |
111 | 108 | tag: evaluate |
112 | 109 | match: "count(*)=3" |
113 | 110 | replace: |
|
126 | 123 | - pause: short |
127 | 124 | - x: "*[2]" |
128 | 125 |
|
129 | | -# audit-ignore |
130 | | -- name: permutation |
| 126 | +- name: permutation # audit-ignore |
131 | 127 | tag: pochhammer |
132 | 128 | match: "count(*)=2" |
133 | 129 | replace: |
|
136 | 132 | - T: "elementer av" # phrase(the solution involves several 'permutations of' values) |
137 | 133 | - x: "*[1]" |
138 | 134 |
|
139 | | -# audit-ignore |
140 | 135 | # NORWEGIAN: Removed test for verbosity |
141 | | -- name: intervals |
| 136 | +- name: intervals # audit-ignore |
142 | 137 | tag: [open-interval, open-closed-interval, closed-interval, closed-open-interval] |
143 | 138 | match: "count(*)=2" |
144 | 139 | replace: |
|
167 | 162 | # - T: "komma" # phrase(use a 'comma' to divide large numbers or as a decimal point) |
168 | 163 | # - x: "*[2]" |
169 | 164 |
|
170 | | -# audit-ignore |
171 | | -- name: default-point |
| 165 | +- name: default-point # audit-ignore |
172 | 166 | tag: point |
173 | 167 | match: "count(*)=2" |
174 | 168 | replace: |
|
177 | 171 | - T: "komma" # phrase(use a 'comma' to divide large numbers or as a decimal point) |
178 | 172 | - x: "*[2]" |
179 | 173 |
|
180 | | -# audit-ignore |
181 | | -- name: bigop-both |
| 174 | +- name: bigop-both # audit-ignore |
182 | 175 | tag: large-op |
183 | 176 | match: "count(*) = 3" |
184 | 177 | replace: |
|
192 | 185 | - test: |
193 | 186 | if: "following-sibling::*" |
194 | 187 | then: [T: "av"] # phrase(the square root 'of' 25 equals 5) |
195 | | - |
196 | | -# audit-ignore |
197 | | -- name: bigop-under |
| 188 | + |
| 189 | +- name: bigop-under # audit-ignore |
198 | 190 | tag: large-op |
199 | 191 | match: "count(*)=2" |
200 | 192 | replace: |
|
206 | 198 | if: "following-sibling::*" |
207 | 199 | then: [T: "av"] # phrase(the square root 'of' 25 equals 5) |
208 | 200 |
|
209 | | -# audit-ignore |
210 | | -- name: largeop |
| 201 | +- name: largeop # audit-ignore |
211 | 202 | tag: mrow |
212 | 203 | match: "count(*)=2 and IsInDefinition(*[1], 'Speech', 'LargeOperators')" |
213 | 204 | replace: |
|
225 | 216 | - T: "med repeterende siffer" # phrase('with repeating digits') |
226 | 217 | - SPELL: "*[2]" |
227 | 218 |
|
228 | | -# audit-ignore |
229 | | -- name: msubsup-skip-super |
| 219 | +- name: msubsup-skip-super # audit-ignore |
230 | 220 | # handles single, double, etc., prime |
231 | 221 | tag: [skip-super, say-super] |
232 | 222 | match: "count(*)=3" |
|
395 | 385 | then: [x: "concat('\uF8FE', DefinitionValue($Word, 'Speech', 'PluralForms'))"] |
396 | 386 | else: [x: "concat('\uF8FE', $Word)"] |
397 | 387 |
|
398 | | -# audit-ignore |
399 | 388 | # need to reverse the order of speech: $ 3 -> 3 dollars |
400 | 389 | # Added test for neuter currencies, which use "ett" instead of "en" for the singular form of "one". |
401 | | -- name: currency |
| 390 | +- name: currency # audit-ignore |
402 | 391 | tag: mrow |
403 | 392 | match: "count(*)=3 and DefinitionValue(*[1], 'Speech', 'CurrencySymbols') != ''" |
404 | 393 | variables: |
|
419 | 408 | then: [x: "DefinitionValue($CurrencyWord, 'Speech', 'PluralForms')"] |
420 | 409 | else: [x: "$CurrencyWord"] |
421 | 410 |
|
422 | | -# audit-ignore |
423 | | -- name: sin |
| 411 | +- name: sin # audit-ignore |
424 | 412 | tag: mi |
425 | 413 | match: ".='sin'" |
426 | 414 | replace: |
|
431 | 419 | else: [T: "sinus"] # phrase(the 'sine' of the angle) |
432 | 420 | # SWEDISH/NORWEGIAN: Added short form. |
433 | 421 |
|
434 | | -# audit-ignore |
435 | | -- name: cos |
| 422 | +- name: cos # audit-ignore |
436 | 423 | tag: mi |
437 | 424 | match: ".='cos'" |
438 | 425 | replace: |
|
442 | 429 | then: [T: "cos"] # phrase('cos' is the abbreviation for cosine) |
443 | 430 | else: [T: "cosinus"] # phrase(find the 'cosine' in a right-angle triangle) |
444 | 431 |
|
445 | | -# audit-ignore |
446 | | -- name: tan |
| 432 | +- name: tan # audit-ignore |
447 | 433 | tag: mi |
448 | 434 | match: ".='tan' or .='tg'" |
449 | 435 | replace: |
|
453 | 439 | then: [T: "tan"] # phrase(the 'tan' is the ratio of the opposite to the adjacent side of a right-angled triangle) |
454 | 440 | else: [T: "tangens"] # phrase(a 'tangent' is a straight line that touches a curve) |
455 | 441 |
|
456 | | -# audit-ignore |
457 | | -- name: sec |
| 442 | +- name: sec # audit-ignore |
458 | 443 | tag: mi |
459 | 444 | match: ".='sec'" |
460 | 445 | replace: |
|
464 | 449 | then: [T: "sec"] # phrase(to 'seek' a solution) |
465 | 450 | else: [T: "sekans"] # phrase(a 'secant' intersects a curve at two or more points) |
466 | 451 |
|
467 | | -# audit-ignore |
468 | | -- name: csc |
| 452 | +- name: csc # audit-ignore |
469 | 453 | tag: mi |
470 | 454 | match: ".='csc'" |
471 | 455 | replace: |
|
475 | 459 | then: [T: "cosec"] # phrase(we will 'cosecant' a solution) |
476 | 460 | else: [T: "cosekans"] # phrase(the 'cosecant' is the reciprocal of the secant) |
477 | 461 |
|
478 | | -# audit-ignore |
479 | | -- name: cot |
| 462 | +- name: cot # audit-ignore |
480 | 463 | tag: mi |
481 | 464 | match: ".='cot'" |
482 | 465 | replace: |
|
557 | 540 | then: [T: "exp"] # phrase('exp' means exponential function) |
558 | 541 | else: [T: "eksponensialfunksjonen"] # phrase('exponential' function) #Norwegian: Spelled wrong for correct pronunciation |
559 | 542 |
|
560 | | -# audit-ignore |
561 | 543 | # NORWEGIAN: Added this rule from English version, but removed test for verbosity. |
562 | | -- name: covariance |
| 544 | +- name: covariance # audit-ignore |
563 | 545 | tag: mi |
564 | 546 | match: ".='Cov'" |
565 | 547 | replace: |
|
602 | 584 | else: [T: "den naturlige logaritmen"] # phrase(the 'natural log' function is used in mathematics) |
603 | 585 |
|
604 | 586 |
|
605 | | -# audit-ignore |
606 | 587 | # NORWEGIAN: Changed from Swedish to English version. |
607 | | -- name: multi-line |
| 588 | +- name: multi-line # audit-ignore |
608 | 589 | # that eliminates the need for the if: else_if: ... |
609 | 590 | # IDEA: set a variable with the word to say for the row (e.g., RowLabel = Row/Case/Line/...) |
610 | 591 | tag: [piecewise, system-of-equations, lines] |
|
667 | 648 | then: [x: "*[position()>1]"] |
668 | 649 | else: [x: "*"] |
669 | 650 |
|
670 | | -# audit-ignore |
671 | 651 | # NORWEGIAN: Changed from Swedish to English version. |
672 | | -- name: default-multiline |
| 652 | +- name: default-multiline # audit-ignore |
673 | 653 | tag: mtd |
674 | 654 | match: "parent::*[parent::m:piecewise or parent::m:system-of-equations or parent::m:lines]" |
675 | 655 | variables: [LongPause: "$SpeechStyle = 'ClearSpeak' and $ClearSpeak_MultiLinePausesBetweenColumns = 'Long'"] |
|
790 | 770 | then: [T: "vektor"] # phrase(the 2 column 'vector') |
791 | 771 | else: [T: "matrise"] # phrase(the 2 by 2 'matrix') |
792 | 772 |
|
793 | | -# audit-ignore |
794 | | -- name: default-column-matrix |
| 773 | +- name: default-column-matrix # audit-ignore |
795 | 774 | tag: matrix |
796 | 775 | variables: [IsColumnSilent: true()] |
797 | 776 | match: "*[self::m:mtr][count(*) = 1]" |
|
911 | 890 | then: [T: "determinant"] # phrase(the 2 by 2 'determinant') |
912 | 891 | else: [T: "matrise"] # phrase(the 2 by 2 'matrix's) |
913 | 892 |
|
914 | | -# audit-ignore |
915 | | -- name: chemistry-msub |
| 893 | +- name: chemistry-msub # audit-ignore |
916 | 894 | tag: [chemical-formula] |
917 | 895 | match: "*[1][.='msub']" |
918 | 896 | replace: |
|
0 commit comments