Skip to content

Commit

Permalink
Minor corrections to some unit abbreviations (#1496)
Browse files Browse the repository at this point in the history
**AreaMomentOfInertia:**
> Use superscript (cm², m³) instead of cm^2, m^3

**MolarEntropy:**
> Use · for products (N·m instead of Nm, N*m or N.m)

**SpecificEntropy:**
> Use · for products (N·m instead of Nm, N*m or N.m)

Using parentheses for mathematically correct display; using the correct
symbol for degrees Celsius

**SpecificFuelConsumption:**
It looks like some unusual multiplication sign was used

**WarpingMomentOfInertia:**
> Use superscript (cm², m³) instead of cm^2, m^3

---

For ^4 and ^6 UnitParser.NormalizeUnitString() will handle this
situation

---------

Co-authored-by: Alexey Yagelo <Alexey.Yagelo@medi.report>
Co-authored-by: Andreas Gullberg Larsen <andreas.larsen84@gmail.com>
  • Loading branch information
3 people authored Jan 19, 2025
1 parent d3cf2df commit b583121
Show file tree
Hide file tree
Showing 19 changed files with 169 additions and 457 deletions.
12 changes: 6 additions & 6 deletions Common/UnitDefinitions/AreaMomentOfInertia.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "m⁴", "m^4" ]
"Abbreviations": [ "m⁴" ]
}
]
},
Expand All @@ -32,7 +32,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "dm⁴", "dm^4" ]
"Abbreviations": [ "dm⁴" ]
}
]
},
Expand All @@ -47,7 +47,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "cm⁴", "cm^4" ]
"Abbreviations": [ "cm⁴" ]
}
]
},
Expand All @@ -62,7 +62,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "mm⁴", "mm^4" ]
"Abbreviations": [ "mm⁴" ]
}
]
},
Expand All @@ -77,7 +77,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "ft⁴", "ft^4" ]
"Abbreviations": [ "ft⁴" ]
}
]
},
Expand All @@ -92,7 +92,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "in⁴", "in^4" ]
"Abbreviations": [ "in⁴" ]
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion Common/UnitDefinitions/Entropy.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "J/C" ]
"Abbreviations": [ "J/°C" ]
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion Common/UnitDefinitions/MolarEntropy.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "J/(mol*K)" ]
"Abbreviations": [ "J/(mol·K)" ]
}
]
}
Expand Down
6 changes: 3 additions & 3 deletions Common/UnitDefinitions/SpecificEntropy.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "J/kg.K" ]
"Abbreviations": [ "J/kg·K" ]
}
]
},
Expand All @@ -30,7 +30,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "J/kg.C" ]
"Abbreviations": [ "J/kg·°C" ]
}
]
},
Expand All @@ -43,7 +43,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "cal/g.K" ]
"Abbreviations": [ "cal/g·K" ]
}
]
},
Expand Down
6 changes: 3 additions & 3 deletions Common/UnitDefinitions/SpecificFuelConsumption.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "kg/(kgfh)" ]
"Abbreviations": [ "kg/(kgf·h)" ]
}
]
},
Expand All @@ -37,8 +37,8 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "g/(kNs)" ],
"AbbreviationsForPrefixes": { "Kilo": [ "kg/(kNs)" ] }
"Abbreviations": [ "g/(kN·s)" ],
"AbbreviationsForPrefixes": { "Kilo": [ "kg/(kN·s)" ] }
}
]
}
Expand Down
12 changes: 6 additions & 6 deletions Common/UnitDefinitions/WarpingMomentOfInertia.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "m⁶", "m^6" ]
"Abbreviations": [ "m⁶" ]
}
]
},
Expand All @@ -32,7 +32,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "dm⁶", "dm^6" ]
"Abbreviations": [ "dm⁶" ]
}
]
},
Expand All @@ -47,7 +47,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "cm⁶", "cm^6" ]
"Abbreviations": [ "cm⁶" ]
}
]
},
Expand All @@ -62,7 +62,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "mm⁶", "mm^6" ]
"Abbreviations": [ "mm⁶" ]
}
]
},
Expand All @@ -77,7 +77,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "ft⁶", "ft^6" ]
"Abbreviations": [ "ft⁶"]
}
]
},
Expand All @@ -92,7 +92,7 @@
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "in⁶", "in^6" ]
"Abbreviations": [ "in⁶" ]
}
]
}
Expand Down
Loading

0 comments on commit b583121

Please sign in to comment.