Skip to content

Commit c1f604c

Browse files
Moved placement of the comment "# audit-ignore"
1 parent ae03c41 commit c1f604c

4 files changed

Lines changed: 37 additions & 73 deletions

File tree

‎Rules/Languages/nb/SharedRules/calculus.yaml‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
2-
# audit-ignore
3-
- name: divergence
2+
- name: divergence # audit-ignore
43
tag: divergence
54
match: "count(*) = 1"
65
replace:
@@ -13,8 +12,7 @@
1312
then: [pause: short]
1413
- x: "*[1]"
1514

16-
# audit-ignore
17-
- name: curl
15+
- name: curl # audit-ignore
1816
tag: curl
1917
match: "count(*) = 1"
2018
replace:
@@ -27,8 +25,7 @@
2725
then: [pause: short]
2826
- x: "*[1]"
2927

30-
# audit-ignore
31-
- name: gradient
28+
- name: gradient # audit-ignore
3229
tag: gradient
3330
match: "count(*) = 1"
3431
replace:

‎Rules/Languages/nb/SharedRules/general.yaml‎

Lines changed: 23 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
- T: "punktum"
99
- x: "substring-after(., '.')"
1010

11-
# audit-ignore
1211
# 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
1413
tag: number-sets
1514
match: "count(*)=2 and *[2][.='+' or .='-']"
1615
replace:
@@ -90,9 +89,8 @@
9089
- bookmark: "@id"
9190
- T: "den imaginære delen" # phrase('the imaginary part' is part of a complex number)
9291

93-
# audit-ignore
9492
# rules on scripted vertical bars ('evaluated at')
95-
- name: evaluated-at-2
93+
- name: evaluated-at-2 # audit-ignore
9694
tag: evaluate
9795
match: "count(*)=2"
9896
replace:
@@ -106,8 +104,7 @@
106104
- pause: auto
107105
- x: "*[2]"
108106

109-
# audit-ignore
110-
- name: evaluated-at-3
107+
- name: evaluated-at-3 # audit-ignore
111108
tag: evaluate
112109
match: "count(*)=3"
113110
replace:
@@ -126,8 +123,7 @@
126123
- pause: short
127124
- x: "*[2]"
128125

129-
# audit-ignore
130-
- name: permutation
126+
- name: permutation # audit-ignore
131127
tag: pochhammer
132128
match: "count(*)=2"
133129
replace:
@@ -136,9 +132,8 @@
136132
- T: "elementer av" # phrase(the solution involves several 'permutations of' values)
137133
- x: "*[1]"
138134

139-
# audit-ignore
140135
# NORWEGIAN: Removed test for verbosity
141-
- name: intervals
136+
- name: intervals # audit-ignore
142137
tag: [open-interval, open-closed-interval, closed-interval, closed-open-interval]
143138
match: "count(*)=2"
144139
replace:
@@ -167,8 +162,7 @@
167162
# - T: "komma" # phrase(use a 'comma' to divide large numbers or as a decimal point)
168163
# - x: "*[2]"
169164

170-
# audit-ignore
171-
- name: default-point
165+
- name: default-point # audit-ignore
172166
tag: point
173167
match: "count(*)=2"
174168
replace:
@@ -177,8 +171,7 @@
177171
- T: "komma" # phrase(use a 'comma' to divide large numbers or as a decimal point)
178172
- x: "*[2]"
179173

180-
# audit-ignore
181-
- name: bigop-both
174+
- name: bigop-both # audit-ignore
182175
tag: large-op
183176
match: "count(*) = 3"
184177
replace:
@@ -192,9 +185,8 @@
192185
- test:
193186
if: "following-sibling::*"
194187
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
198190
tag: large-op
199191
match: "count(*)=2"
200192
replace:
@@ -206,8 +198,7 @@
206198
if: "following-sibling::*"
207199
then: [T: "av"] # phrase(the square root 'of' 25 equals 5)
208200

209-
# audit-ignore
210-
- name: largeop
201+
- name: largeop # audit-ignore
211202
tag: mrow
212203
match: "count(*)=2 and IsInDefinition(*[1], 'Speech', 'LargeOperators')"
213204
replace:
@@ -225,8 +216,7 @@
225216
- T: "med repeterende siffer" # phrase('with repeating digits')
226217
- SPELL: "*[2]"
227218

228-
# audit-ignore
229-
- name: msubsup-skip-super
219+
- name: msubsup-skip-super # audit-ignore
230220
# handles single, double, etc., prime
231221
tag: [skip-super, say-super]
232222
match: "count(*)=3"
@@ -395,10 +385,9 @@
395385
then: [x: "concat('\uF8FE', DefinitionValue($Word, 'Speech', 'PluralForms'))"]
396386
else: [x: "concat('\uF8FE', $Word)"]
397387

398-
# audit-ignore
399388
# need to reverse the order of speech: $ 3 -> 3 dollars
400389
# 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
402391
tag: mrow
403392
match: "count(*)=3 and DefinitionValue(*[1], 'Speech', 'CurrencySymbols') != ''"
404393
variables:
@@ -419,8 +408,7 @@
419408
then: [x: "DefinitionValue($CurrencyWord, 'Speech', 'PluralForms')"]
420409
else: [x: "$CurrencyWord"]
421410

422-
# audit-ignore
423-
- name: sin
411+
- name: sin # audit-ignore
424412
tag: mi
425413
match: ".='sin'"
426414
replace:
@@ -431,8 +419,7 @@
431419
else: [T: "sinus"] # phrase(the 'sine' of the angle)
432420
# SWEDISH/NORWEGIAN: Added short form.
433421

434-
# audit-ignore
435-
- name: cos
422+
- name: cos # audit-ignore
436423
tag: mi
437424
match: ".='cos'"
438425
replace:
@@ -442,8 +429,7 @@
442429
then: [T: "cos"] # phrase('cos' is the abbreviation for cosine)
443430
else: [T: "cosinus"] # phrase(find the 'cosine' in a right-angle triangle)
444431

445-
# audit-ignore
446-
- name: tan
432+
- name: tan # audit-ignore
447433
tag: mi
448434
match: ".='tan' or .='tg'"
449435
replace:
@@ -453,8 +439,7 @@
453439
then: [T: "tan"] # phrase(the 'tan' is the ratio of the opposite to the adjacent side of a right-angled triangle)
454440
else: [T: "tangens"] # phrase(a 'tangent' is a straight line that touches a curve)
455441

456-
# audit-ignore
457-
- name: sec
442+
- name: sec # audit-ignore
458443
tag: mi
459444
match: ".='sec'"
460445
replace:
@@ -464,8 +449,7 @@
464449
then: [T: "sec"] # phrase(to 'seek' a solution)
465450
else: [T: "sekans"] # phrase(a 'secant' intersects a curve at two or more points)
466451

467-
# audit-ignore
468-
- name: csc
452+
- name: csc # audit-ignore
469453
tag: mi
470454
match: ".='csc'"
471455
replace:
@@ -475,8 +459,7 @@
475459
then: [T: "cosec"] # phrase(we will 'cosecant' a solution)
476460
else: [T: "cosekans"] # phrase(the 'cosecant' is the reciprocal of the secant)
477461

478-
# audit-ignore
479-
- name: cot
462+
- name: cot # audit-ignore
480463
tag: mi
481464
match: ".='cot'"
482465
replace:
@@ -557,9 +540,8 @@
557540
then: [T: "exp"] # phrase('exp' means exponential function)
558541
else: [T: "eksponensialfunksjonen"] # phrase('exponential' function) #Norwegian: Spelled wrong for correct pronunciation
559542

560-
# audit-ignore
561543
# NORWEGIAN: Added this rule from English version, but removed test for verbosity.
562-
- name: covariance
544+
- name: covariance # audit-ignore
563545
tag: mi
564546
match: ".='Cov'"
565547
replace:
@@ -602,9 +584,8 @@
602584
else: [T: "den naturlige logaritmen"] # phrase(the 'natural log' function is used in mathematics)
603585

604586

605-
# audit-ignore
606587
# NORWEGIAN: Changed from Swedish to English version.
607-
- name: multi-line
588+
- name: multi-line # audit-ignore
608589
# that eliminates the need for the if: else_if: ...
609590
# IDEA: set a variable with the word to say for the row (e.g., RowLabel = Row/Case/Line/...)
610591
tag: [piecewise, system-of-equations, lines]
@@ -667,9 +648,8 @@
667648
then: [x: "*[position()>1]"]
668649
else: [x: "*"]
669650

670-
# audit-ignore
671651
# NORWEGIAN: Changed from Swedish to English version.
672-
- name: default-multiline
652+
- name: default-multiline # audit-ignore
673653
tag: mtd
674654
match: "parent::*[parent::m:piecewise or parent::m:system-of-equations or parent::m:lines]"
675655
variables: [LongPause: "$SpeechStyle = 'ClearSpeak' and $ClearSpeak_MultiLinePausesBetweenColumns = 'Long'"]
@@ -790,8 +770,7 @@
790770
then: [T: "vektor"] # phrase(the 2 column 'vector')
791771
else: [T: "matrise"] # phrase(the 2 by 2 'matrix')
792772

793-
# audit-ignore
794-
- name: default-column-matrix
773+
- name: default-column-matrix # audit-ignore
795774
tag: matrix
796775
variables: [IsColumnSilent: true()]
797776
match: "*[self::m:mtr][count(*) = 1]"
@@ -911,8 +890,7 @@
911890
then: [T: "determinant"] # phrase(the 2 by 2 'determinant')
912891
else: [T: "matrise"] # phrase(the 2 by 2 'matrix's)
913892

914-
# audit-ignore
915-
- name: chemistry-msub
893+
- name: chemistry-msub # audit-ignore
916894
tag: [chemical-formula]
917895
match: "*[1][.='msub']"
918896
replace:

‎Rules/Languages/nb/SharedRules/geometry.yaml‎

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
2-
# audit-ignore
3-
- name: line-segment
2+
- name: line-segment # audit-ignore
43
tag: line-segment
54
match: "count(*)=2"
65
replace:
@@ -16,8 +15,7 @@
1615
- x: "*[1]"
1716
- x: "*[2]"
1817

19-
# audit-ignore
20-
- name: geometry-ray
18+
- name: geometry-ray # audit-ignore
2119
tag: ray
2220
match: "count(*)=2"
2321
replace:
@@ -33,17 +31,15 @@
3331
- x: "*[1]"
3432
- x: "*[2]"
3533

36-
# audit-ignore
37-
- name: geometry-arc
34+
- name: geometry-arc # audit-ignore
3835
tag: arc
3936
match: "count(*)=2"
4037
replace:
4138
- T: "bue" # phrase(the 'arc' A B C)
4239
- x: "*[1]"
4340
- x: "*[2]"
4441

45-
# audit-ignore
46-
- name: measure-of-angle
42+
- name: measure-of-angle # audit-ignore
4743
tag: measure-of-angle
4844
match: "count(*)=3"
4945
replace:
@@ -57,8 +53,7 @@
5753
- x: "*[2]"
5854
- x: "*[3]"
5955

60-
# audit-ignore
61-
- name: coordinate
56+
- name: coordinate # audit-ignore
6257
tag: coordinate
6358
match: "."
6459
replace:

‎Rules/Languages/nb/SharedRules/linear-algebra.yaml‎

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
2-
# audit-ignore
3-
- name: scalar-determinant
2+
- name: scalar-determinant # audit-ignore
43
tag: determinant
54
match: "count(*)=1 and not(*[1][self::m:mtr])"
65
replace:
@@ -12,8 +11,7 @@
1211
if: "not(IsNode(*[1], 'simple'))"
1312
then: [T: "slutt determinant"] # phrase('end determinant' of a matrix)
1413

15-
# audit-ignore
16-
- name: subscripted-norm
14+
- name: subscripted-norm # audit-ignore
1715
tag: subscripted-norm
1816
match: "count(*)=2"
1917
replace:
@@ -23,8 +21,7 @@
2321
- T: "til" # phrase(systems 'of' linear equations)
2422
- x: "*[1]"
2523

26-
# audit-ignore
27-
- name: homomorphism
24+
- name: homomorphism # audit-ignore
2825
# can't use IntentMappings because this doesn't fit the function pattern
2926
tag: homomorphism
3027
match: "count(*)=1"
@@ -42,9 +39,8 @@
4239
then: [pause: short]
4340
else: [pause: auto]
4441

45-
# audit-ignore
4642
# NORWEGIAN: Removed test for Verbosity
47-
- name: kernel
43+
- name: kernel # audit-ignore
4844
# can't use IntentMappings because this doesn't fit the function pattern
4945
tag: kernel
5046
match: "count(*)=1"
@@ -60,18 +56,16 @@
6056
then: [pause: short]
6157
else: [pause: auto]
6258

63-
# audit-ignore
6459
# NORWEGIAN: Kept these rules here, cause we say "dimensjonen til" and "normen til" instead of "dimensjonen av" and "normen av".
65-
- name: dimension
60+
- name: dimension # audit-ignore
6661
tag: dimension
6762
match: "count(*)=1"
6863
replace:
6964
- T: "dimensjonen" # phrase(the 'dimension' of the matrix)
7065
- T: "til" # phrase(systems 'of' linear equations)
7166
- x: "*[1]"
7267

73-
# audit-ignore
74-
- name: norm
68+
- name: norm # audit-ignore
7569
tag: norm
7670
match: "count(*)=1"
7771
replace:

0 commit comments

Comments
 (0)