Skip to content

Commit 038e2da

Browse files
Minor clean-ups
Definitons.yaml: Changed the intent prefix "plus" from "positive" to "pluss". We for example say "plus infinity" and not "positive infinity". Cleaned up some comments.
1 parent 34f6ea3 commit 038e2da

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

Rules/Languages/nb/ClearSpeak_Rules.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@
513513
# # note that *[2] is an mrow with X, ",", Y, so getting X or Y is a double index
514514
# onto the [not] [including]... part
515515

516-
# SWEDISH/NORWEGIAN: rewrote the intervals function to better deal with Swedish convention of speaking intervals
516+
# SWEDISH/NORWEGIAN: rewrote the intervals function to better deal with Swedish/Norwegian convention of speaking intervals
517517
# NORWEGIAN: Removed test for verbosity, cause you should always say "det åpne" etc.
518518
- name: ClearSpeak-intervals # avoid overriding with default "intervals" name
519519
variables:

Rules/Languages/nb/SharedRules/default.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,14 @@
203203
- x: "*[last()]"
204204
# - t: "power" # phrase(5 raised to the second 'power' equals 25)
205205

206-
#NORWEGIAN: Changed to English version. Think it sounds better when I tried navigation in character mode.
206+
#NORWEGIAN: Changed to English version. Sounds better when navigating in character mode.
207207
- name: default
208208
tag: munder
209209
match: "."
210210
replace:
211211
- test:
212212
if: "not(IsNode(*[1], 'leaf'))"
213-
then: [T: "uttrykk"] # phrase(phrase(x 'modified' with y above it) #NORWEGIAN: Can't find a way to trigger this statement. Not sure if the translation is correct.
213+
then: [T: "uttrykk"] # phrase(phrase(x 'modified' with y above it) #NORWEGIAN: Can't find a way to trigger this expression. Not sure if the translation is correct.
214214
- x: "*[1]"
215215
- pause: short
216216
- T: "med" # phrase(x 'with' z below it)
@@ -225,29 +225,29 @@
225225
- x: "*[1]"
226226
- x: "*[2]"
227227

228-
#NORWEGIAN: Changed to English version. Think it sounds better when I tried navigation in character mode.
228+
#NORWEGIAN: Changed to English version. Sounds better when navigating in character mode.
229229
- name: default
230230
tag: mover
231231
match: "."
232232
replace:
233233
- test:
234234
if: "not(IsNode(*[1], 'leaf'))"
235-
then: [T: "uttrykk"] # phrase(phrase(x 'modified' with y above it) #NORWEGIAN: Can't find a way to trigger this statement. Not sure if the translation is correct.
235+
then: [T: "uttrykk"] # phrase(phrase(x 'modified' with y above it) #NORWEGIAN: Can't find a way to trigger this expression. Not sure if the translation is correct.
236236
- x: "*[1]"
237237
- pause: short
238238
- T: "med" # phrase(x modified 'with' y above it)
239239
- x: "*[2]"
240240
- T: "over" # phrase(x modified 'with' y above it)
241241
- pause: short
242242

243-
#NORWEGIAN: Changed to English version. Think it sounds better when I tried navigation in character mode
243+
#NORWEGIAN: Changed to English version. Sounds better when navigating in character mode
244244
- name: default
245245
tag: munderover
246246
match: "."
247247
replace:
248248
- test:
249249
if: "not(IsNode(*[1], 'leaf'))"
250-
then: [T: "uttrykk"] # phrase(the equation has been 'modified') #NORWEGIAN: Can't find a way to trigger this statement. Not sure if the translation is correct.
250+
then: [T: "uttrykk"] # phrase(the equation has been 'modified') #NORWEGIAN: Can't find a way to trigger this expression. Not sure if the translation is correct.
251251
- x: "*[1]"
252252
- T: "med" # phrase(x modified 'with' y above it)
253253
- x: "*[2]"

Rules/Languages/nb/SharedRules/general.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
#match: "."
215215
#replace:
216216
#- x: "*[1]"
217-
#- t: "med repeterende siffer" # phrase('with repeating digits')
217+
#- T: "med repeterende siffer" # phrase('with repeating digits')
218218
#- spell: "*[2]"
219219

220220
- name: msubsup-skip-super

Rules/Languages/nb/SimpleSpeak_Rules.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188
- name: simple-integer
189189
tag: power
190-
match: "*[2][self::m:mn][not(contains(., '.'))]"
190+
match: "*[2][self::m:mn][not(contains(., '.'))]" #Norwegian: Here the decimal point should probably be comma
191191
replace:
192192
- x: "*[1]"
193193
- T: "opphøyd i"
@@ -198,7 +198,7 @@
198198
tag: power
199199
match:
200200
- "*[2][self::m:minus and count(*)=1 and"
201-
- " *[1][self::m:mn][not(contains(., '.'))]]"
201+
- " *[1][self::m:mn][not(contains(., '.'))]]" #Norwegian: Here the decimal point should probably be comma
202202
replace:
203203
- x: "*[1]"
204204
- T: "opphøyd i"

Rules/Languages/nb/definitions.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"logarithm-with-base": "prefix=log med grunntall: logaritmen med grunntall: logaritmen med grunntall",
3030
#"natural-logarithm": "function=l n: den naturlige logaritmen: den naturlige logaritmen",
3131
"minus": "infix=minus || prefix=minus",
32-
"plus": "infix=pluss || prefix=positiv",
32+
"plus": "infix=pluss || prefix=pluss",
3333
#"real-part": "function=realdelen",
3434

3535
"transpose": "postfix=transponert || function=transponert",
@@ -139,7 +139,7 @@
139139
# time
140140
"": "sekund", "\"": "sekund",
141141
"": "minutt", "'": "minutt", "min": "minutt",
142-
"h": "time", "hr": "time", "Hr": "time", "t": "time", #t used often for hour in Norwegian, but t is officially the symbol for "tonn"
142+
"h": "time", "hr": "time", "Hr": "time", "t": "time", #NORWEGIAN: t is often used for hour, but t is officially the symbol for "tonn"
143143
"d": "dag", "dy": "dag",
144144
"w": "uke", "wk": "uke",
145145
"y": "år", "yr": "år",
@@ -152,14 +152,14 @@
152152
"MOA": "bueminutt",
153153
"arcsec": "buesekund",
154154
"asec": "buesekund",
155-
"as": "buesekund", #Also a used symbol in Norwegian
155+
"as": "buesekund", #NORWEGIAN: Also a used symbol
156156

157157
# distance
158158
"au": "astronomisk enhet", "AU": "astronomisk enhet", "a.u.": "astronomisk enhet",
159159
"ltyr": "lysår", "ly": "lysår", "l.y.": "lysår",
160160
"pc": "parsec",
161161
"Å": "ångstrøm", "Å": "ångstrøm", # U+00C5 and U+212B
162-
"fm": "fermi", #Norwegian: F is the official symbol for "fermi", but this is also the symbol for Farad...
162+
"fm": "fermi", #Norwegian: F is the official symbol for "fermi", but this is also the symbol for "Farad"...
163163

164164
# others
165165
"ha": "hektar",

Rules/Languages/nb/unicode.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131

3232
- "0-9": [T: "."] # (en: '.', google: 'A')
3333

34-
- " ": [T: " "] # 0x20 #Added from English version. Not in Swedish version
34+
- " ": [T: " "] # 0x20 #NORWEGIAN: Added from English version. Not in Swedish version.
3535

3636
- "!": # 0x21
3737
- test:
38-
if: "ancestor-or-self::*[contains(@data-intent-property, ':literal:')]" #Norwegian: Changed from ":structure" to be equal to English translation
38+
if: "ancestor-or-self::*[contains(@data-intent-property, ':literal:')]" #NORWEGIAN: Changed from ":structure" to be equal to English translation
3939
then_test:
4040
if: "$Verbosity = 'Terse'"
4141
then: [T: "utropstegn"] # 0x21 (en: 'bang', google translation)
@@ -170,7 +170,7 @@
170170
- "~": [T: "tilde"] # 0x7e
171171
- " ": # 0xa0
172172
- test:
173-
if: "@data-empty-in-2D and not(ancestor::*[self::m:piecewise or self::m:system-of-equations or self::m:lines])" #Changed to English version. Now it doesn't speak "tom tom" for continued_row
173+
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
174174
then: [T: "tom"] # want to say something for fraction (etc) with empty child (en: 'empty', google translation)
175175
else: [T: ""]
176176

0 commit comments

Comments
 (0)