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
<ul><li><em>Note:</em> See full list at <a href="https://www.nist.gov/pml/special-publication-811">NIST special publication 811</a></li></ul></td></tr>
989
+
<ul><li><em>Constraint:</em> Must be an attribute value of the <code>type</code> in: <unitPrefix type='…' … power10='…'>.
990
+
See also <a href="https://www.nist.gov/pml/special-publication-811">NIST special publication 811</a></li></ul></td></tr>
988
991
989
992
<tr><td>binary_prefix</td><td>:=</td>
990
993
<td>"kibi", "mebi", …
991
-
<ul><li><em>Note:</em> See full list at <a href="https://physics.nist.gov/cuu/Units/binary.html">Prefixes for binary multiples</a></li></ul></td></tr>
994
+
<ul><li><em>Constraint:</em> Must be an attribute value of the <code>type</code> in: <unitPrefix type='…' … power2='…'>.
995
+
See also <a href="https://physics.nist.gov/cuu/Units/binary.html">Prefixes for binary multiples</a></li></ul></td></tr>
992
996
993
997
<tr><td>prefix_component</td><td>:=</td>
994
998
<td>[a-z]{3,∞}
@@ -1016,7 +1020,7 @@ Some of the constraints reference data from the unitIdComponents in [Unit_Conver
1016
1020
<li><em>Constraint:</em> must be value in: <unitIdComponent type="suffix"></li>
<li><em>Constraint:</em> The first part of the currency_unit is a standard prefix; the second part of the currency unit must be a valid <a href="tr35.md#UnicodeCurrencyIdentifier">Unicode currency identifier</a>.</li>
@@ -1047,7 +1051,9 @@ Some of the constraints reference data from the unitIdComponents in [Unit_Conver
1047
1051
1048
1052
</tbody></table>
1049
1053
1050
-
Note that while the syntax allows for number_prefixes in multiple places, the typical use case is only one instance, after a "-per-".
1054
+
Note that while the syntax allows for unit_constants in multiple places, the typical use case is only one instance, after a "-per-".
1055
+
The normalized form of a unit identifier has at most one unit_constant in the numerator and one in the denominator.
1056
+
For example, `2-kilowatt-7-hour-per-3-meter-5-second` has the equivalent normalized form `14-kilowatt-hour-per-15-meter-second`.
1051
1057
1052
1058
The simple_unit structure does not allow for any two simple_units to overlap.
1053
1059
That is, there are no cases where simple_unit1 consists of X-Y and simple_unit2 consists of Y-Z.
@@ -1322,12 +1328,12 @@ If there is no precomputed form, the following process in pseudocode is used to
1322
1328
2. set singlePluralCategory to be power0(singlePluralCategory)
1323
1329
3. set singleCaseVariant to be power0(singleCaseVariant)
1324
1330
4. remove the dimensionality_prefix from singleUnit
1325
-
4. if singleUnit starts with an si_prefix, such as 'centi' and/or a number_prefix such as '100'
1331
+
4. if singleUnit starts with an si_prefix, such as 'centi' and/or a unit_constant such as '100'
1326
1332
1. set siPrefixPattern to be getValue(that si_prefix, locale, length), such as "centy{0}"
1327
1333
2. set singlePluralCategory to be prefix0(singlePluralCategory)
1328
1334
3. set singleCaseVariant to be prefix0(singleCaseVariant)
1329
1335
4. remove the si_prefix from singleUnit
1330
-
5. set multiplier to be the locales integer numberFormat of number_prefix.
1336
+
5. set multiplier to be the locales integer numberFormat of unit_constant.
1331
1337
5. Set corePattern to be the getValue(singleUnit, locale, length, singlePluralCategory, singleCaseVariant), such as "{0} metrem"
1332
1338
6. Extract(corePattern, coreUnit, placeholder, placeholderPosition) from that pattern.
0 commit comments