You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d7ff14e
Browse filesBrowse the repository at this point in the historyBrowse files
nb: Fix and enhance Norwegian fraction pronunciation
Extend the range of denominators recognized as ordinal fractions up to 100.
Implement correct singular and plural forms for fractions, including specific handling for a numerator of one with denominators greater than 19.
Simplify ordinal fractional word forms (e.g., 'tredjedel' to 'tredel') and ensure proper hyphenation when combining fractions with units.
Copy file name to clipboardExpand all lines: Rules/Languages/nb/ClearSpeak_Rules.yaml
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -140,10 +140,11 @@
140
140
tag: fraction
141
141
match:
142
142
- "($ClearSpeak_Fractions='Auto' or $ClearSpeak_Fractions='Ordinal' or $ClearSpeak_Fractions='EndFrac') and"
143
-
- "*[1][self::m:mn][not(contains(., $DecimalSeparators)) and ($ClearSpeak_Fractions='Ordinal' or text()<20)] and"# NORWEGIAN: Changed decimal point to $DecimalSeparators
144
-
- "*[2][self::m:mn][not(contains(., $DecimalSeparators)) and (2<= text() and text()<=10)]"# NORWEGIAN: Removed $ClearSpeak_Fractions='Ordinal', cause the pattern for ordinal fractions is not right.
143
+
- "*[1][self::m:mn][not(contains(., $DecimalSeparators)) and ($ClearSpeak_Fractions='Ordinal' or text()<100)] and"# NORWEGIAN: Changed decimal point to $DecimalSeparators
144
+
- "*[2][self::m:mn][not(contains(., $DecimalSeparators)) and (2<= text() and text()<=100)]"# NORWEGIAN: Removed $ClearSpeak_Fractions='Ordinal', cause the pattern for ordinal fractions is not right.
# ---------------- Cardinal and Ordinal Numbers --------------------------
@@ -442,15 +442,8 @@
442
442
# The definitions for the "ones" should extend until a regular pattern begins
443
443
# The minimum length is 10.
444
444
445
-
# NORWEGIAN: The pattern for fraction is not correct.
446
-
# 1/20 = "1 tjuende". Needs a number set for NumbersOrdinalFractionalTens. ("tidel", "tjuedel"...)
447
-
# 2/24 = "2 tjue fjerde". The set NumbersOrdinalPluralOnes should be changed to ("", "endeler", "todeler", "tredeler"...)
448
-
# 1/100 = "1 hundrede". Needs a number set for NumbersOrdinalFractionalHundreds". ("hundredel", "to hundredel"...)
449
-
# 1/1000 = "1 én tusende". Needs number set for NumbersOrdinalFractionalLargeNumbers, and "én" should be removed. ("tusendel", "milliondel"...)
450
-
# 2/1000 = "2 én tusendeler". Needs to remove "én".
451
-
# 2/1008 = "2 én tusen åttende"
452
-
453
445
# For English, a regular pattern starts at twenty
446
+
454
447
# NORWEGIAN: Added in front of the numbers in "NumbersOrdinalLarge" and "NumbersLarge". Easiest to just remove "én", but you will probably never see these big ordinal numbers.
0 commit comments