unitsdb 2.2.9 → 2.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02e9966f9b73a990ff0c608a12bbe0671d94fb25b6d263bf919d2f631ff4585d
4
- data.tar.gz: 710c16aba9a41c61a4af9f891f434a4b0b64b09789c1427f42cd2a47035a435c
3
+ metadata.gz: 6b474aab1388c7ac1e170980f0f3c9cfde3b1a9850f4282b730b05299b59b181
4
+ data.tar.gz: 913ff3787d0acd54baa66b311cad1206c3761adcc470547c64d6404856227a1b
5
5
  SHA512:
6
- metadata.gz: 111baa323a50019347d6f2643236de1ff9eba13a8a7285d5d8c0140d7c47ea08b3d6dfe54fa286641651ab075ec964a04ad72fb274f2eab30cc1c6c1ea34b29f
7
- data.tar.gz: 4d542496fb728459db62795ba6c8186144837c4671b73591f414f1764486f42f0290ac288017d398607347362c3307ed413cb9b673bc8d37bdf404fac8bdbd4d
6
+ metadata.gz: a6c08032416d563d90caaca3d15cdb92541ed895ff1cea4c4870badc0e550cf6d1099298943c23293593c019c1d56f25f26186abc3c862319062239258318f0f
7
+ data.tar.gz: 7a48a231d2c5806473d7496947eec5da5cc713c2fa4609c887d7b244e547fee3f53a0149928deed34b88737253675140874b711732afb92482b26fc55c4dec01
data/data/currencies.yaml CHANGED
@@ -1,6 +1,6 @@
1
1
  # yaml-language-server: $schema=schemas/currencies-schema.yaml
2
2
  ---
3
- schema_version: "2.0.0"
3
+ schema_version: "2.1.0"
4
4
  # ISO 4217 active codes (List One) as first-class entities, verified against
5
5
  # the ISO 4217 list one (178 codes: national currencies, funds and units of
6
6
  # account, precious-metal codes, bond-market units, supranationals, and the
data/data/dimensions.yaml CHANGED
@@ -1,6 +1,6 @@
1
1
  # yaml-language-server: $schema=schemas/dimensions-schema.yaml
2
2
  ---
3
- schema_version: 2.0.0
3
+ schema_version: 2.1.0
4
4
  dimensions:
5
5
  - identifiers:
6
6
  - type: nist
data/data/prefixes.yaml CHANGED
@@ -1,6 +1,6 @@
1
1
  # yaml-language-server: $schema=schemas/prefixes-schema.yaml
2
2
  ---
3
- schema_version: 2.0.0
3
+ schema_version: 2.1.0
4
4
  prefixes:
5
5
  - base: 10
6
6
  identifiers:
data/data/quantities.yaml CHANGED
@@ -1,6 +1,6 @@
1
1
  # yaml-language-server: $schema=schemas/quantities-schema.yaml
2
2
  ---
3
- schema_version: 2.0.0
3
+ schema_version: 2.1.0
4
4
  quantities:
5
5
  - dimension_reference:
6
6
  type: nist
data/data/scales.yaml CHANGED
@@ -1,6 +1,4 @@
1
- # yaml-language-server: $schema=schemas/scales-schema.yaml
2
- ---
3
- schema_version: 2.0.0
1
+ schema_version: 2.1.0
4
2
  scales:
5
3
  - identifiers:
6
4
  - id: continuous_ratio
@@ -12,8 +10,8 @@ scales:
12
10
  lang: en
13
11
  short: continuous_ratio
14
12
  description:
15
- - value: A measurement scale with continuous values and a true zero point, allowing
16
- for ratio comparisons
13
+ - value: A measurement scale with continuous values and a true zero point, allowing for ratio
14
+ comparisons
17
15
  lang: en
18
16
  properties:
19
17
  continuous: true
@@ -21,6 +19,13 @@ scales:
21
19
  logarithmic: false
22
20
  interval: true
23
21
  ratio: true
22
+ operations:
23
+ - addition
24
+ - subtraction
25
+ - scaling
26
+ - multiplication
27
+ - division
28
+ - comparison
24
29
  - identifiers:
25
30
  - id: continuous_interval
26
31
  type: unitsml
@@ -31,8 +36,8 @@ scales:
31
36
  lang: en
32
37
  short: continuous_interval
33
38
  description:
34
- - value: A measurement scale with continuous values but an arbitrary zero point,
35
- allowing for interval but not ratio comparisons
39
+ - value: A measurement scale with continuous values but an arbitrary zero point, allowing for
40
+ interval but not ratio comparisons
36
41
  lang: en
37
42
  properties:
38
43
  continuous: true
@@ -40,6 +45,10 @@ scales:
40
45
  logarithmic: false
41
46
  interval: true
42
47
  ratio: false
48
+ operations:
49
+ - addition
50
+ - subtraction
51
+ - comparison
43
52
  - identifiers:
44
53
  - id: logarithmic_ratio
45
54
  type: unitsml
@@ -50,8 +59,8 @@ scales:
50
59
  lang: en
51
60
  short: logarithmic_ratio
52
61
  description:
53
- - value: A scale where equal ratios appear as equal intervals, with a zero point
54
- representing a reference value
62
+ - value: A scale where equal ratios appear as equal intervals, with a zero point representing a
63
+ reference value
55
64
  lang: en
56
65
  properties:
57
66
  continuous: true
@@ -59,6 +68,9 @@ scales:
59
68
  logarithmic: true
60
69
  interval: true
61
70
  ratio: true
71
+ operations:
72
+ - comparison
73
+ - scaling
62
74
  - identifiers:
63
75
  - id: logarithmic_field
64
76
  type: unitsml
@@ -77,6 +89,8 @@ scales:
77
89
  logarithmic: true
78
90
  interval: true
79
91
  ratio: false
92
+ operations:
93
+ - comparison
80
94
  - identifiers:
81
95
  - id: discrete
82
96
  type: unitsml
@@ -95,3 +109,7 @@ scales:
95
109
  logarithmic: false
96
110
  interval: true
97
111
  ratio: true
112
+ operations:
113
+ - addition
114
+ - subtraction
115
+ - comparison
@@ -33,6 +33,12 @@ definitions:
33
33
  description: "Multilingual names for this scale"
34
34
  items:
35
35
  $ref: "#/definitions/Name"
36
+ operations:
37
+ type: array
38
+ description: "Arithmetic and comparison operations this scale permits, per ISO 80000-1/VIM scale semantics. Absence means the operation is not defined on the scale."
39
+ items:
40
+ type: string
41
+ enum: ["addition", "subtraction", "scaling", "multiplication", "division", "comparison"]
36
42
  properties:
37
43
  $ref: "#/definitions/ScaleProperties"
38
44
  description: "Mathematical properties of the scale"
@@ -33,6 +33,24 @@ definitions:
33
33
  description: "Multilingual names for this unit"
34
34
  items:
35
35
  $ref: "#/definitions/Name"
36
+ canonical_conversion:
37
+ type: object
38
+ description: "Affine conversion to the canonical (SI-referenced) target: value_target = value * factor + offset. factor and offset are exact decimal or rational strings (e.g. \"5/9\"). Present only where the conversion is not derivable from si_derived_bases or prefix composition."
39
+ required: ["factor", "root_units"]
40
+ properties:
41
+ factor:
42
+ type: string
43
+ description: "Multiplicative factor, exact decimal or rational string"
44
+ pattern: "^-?\\d+(?:/\\d+)?(?:\\.\\d+)?$"
45
+ offset:
46
+ type: string
47
+ description: "Additive offset in target units, exact decimal or rational string"
48
+ pattern: "^-?\\d+(?:/\\d+)?(?:\\.\\d+)?$"
49
+ root_units:
50
+ type: array
51
+ description: "The canonical target unit composition"
52
+ items:
53
+ $ref: "#/definitions/RootUnit"
36
54
  scale_reference:
37
55
  $ref: "#/definitions/ScaleReference"
38
56
  description: "Reference to the measurement scale"
@@ -1,6 +1,6 @@
1
1
  # yaml-language-server: $schema=schemas/unit_systems-schema.yaml
2
2
  ---
3
- schema_version: 2.0.0
3
+ schema_version: 2.1.0
4
4
  unit_systems:
5
5
  - acceptable: true
6
6
  identifiers:
data/data/units.yaml CHANGED
@@ -1,6 +1,4 @@
1
- # yaml-language-server: $schema=schemas/units-schema.yaml
2
- ---
3
- schema_version: 2.0.0
1
+ schema_version: 2.1.0
4
2
  units:
5
3
  - identifiers:
6
4
  - type: nist
@@ -1911,6 +1909,13 @@ units:
1911
1909
  html: L
1912
1910
  id: L
1913
1911
  mathml: "<mi mathvariant='normal'>L</mi>"
1912
+ canonical_conversion:
1913
+ factor: '0.001'
1914
+ root_units:
1915
+ - power: 3
1916
+ unit_reference:
1917
+ type: nist
1918
+ id: NISTu1
1914
1919
  - identifiers:
1915
1920
  - type: nist
1916
1921
  id: NISTu131
@@ -1946,6 +1951,13 @@ units:
1946
1951
  html: M
1947
1952
  id: M
1948
1953
  mathml: "<mi mathvariant='normal'>M</mi>"
1954
+ canonical_conversion:
1955
+ factor: '1852'
1956
+ root_units:
1957
+ - power: 1
1958
+ unit_reference:
1959
+ type: nist
1960
+ id: NISTu1
1949
1961
  - identifiers:
1950
1962
  - type: nist
1951
1963
  id: NISTu133
@@ -1979,6 +1991,14 @@ units:
1979
1991
  html: "&#176;F"
1980
1992
  id: degF
1981
1993
  mathml: "<mi mathvariant='normal'>&#176;F</mi>"
1994
+ canonical_conversion:
1995
+ factor: 5/9
1996
+ offset: 229835/900
1997
+ root_units:
1998
+ - power: 1
1999
+ unit_reference:
2000
+ type: nist
2001
+ id: NISTu5
1982
2002
  - identifiers:
1983
2003
  - type: nist
1984
2004
  id: NISTu134
@@ -5794,6 +5814,14 @@ units:
5794
5814
  html: "&#176;C"
5795
5815
  id: degC
5796
5816
  mathml: "<mi mathvariant='normal'>&#176;C</mi>"
5817
+ canonical_conversion:
5818
+ factor: '1'
5819
+ offset: '273.15'
5820
+ root_units:
5821
+ - power: 1
5822
+ unit_reference:
5823
+ type: nist
5824
+ id: NISTu5
5797
5825
  - identifiers:
5798
5826
  - type: nist
5799
5827
  id: NISTu230
@@ -6213,13 +6241,13 @@ units:
6213
6241
  short: natural_unit_of_velocity
6214
6242
  symbols:
6215
6243
  - latex: "\\ensuremath{\\mathit{c}_{0}}"
6216
- unicode: "\U0001D450₀"
6244
+ unicode: "𝑐₀"
6217
6245
  ascii: c_0
6218
6246
  html: "<i>c</i><sub>0</sub>"
6219
6247
  id: c_0
6220
6248
  mathml: "<msub><mi mathvariant='italic'>c</mi><mn>0</mn></msub>"
6221
6249
  - latex: "\\ensuremath{\\mathit{c}}"
6222
- unicode: "\U0001D450"
6250
+ unicode: "𝑐"
6223
6251
  ascii: c
6224
6252
  html: "<i>c</i>"
6225
6253
  id: c
@@ -6271,7 +6299,7 @@ units:
6271
6299
  short: natural_unit_of_mass
6272
6300
  symbols:
6273
6301
  - latex: "\\ensuremath{\\mathit{m}_\\mathrm{e}}"
6274
- unicode: "\U0001D45Aₑ"
6302
+ unicode: "𝑚ₑ"
6275
6303
  ascii: m_e
6276
6304
  html: "<i>m</i><sub>e</sub>"
6277
6305
  id: m_e
@@ -6297,7 +6325,7 @@ units:
6297
6325
  short: natural_unit_of_time
6298
6326
  symbols:
6299
6327
  - latex: "\\ensuremath{\\mathit{\\hbar}/(\\mathit{m}_\\mathrm{e}\\mathit{c}^\\mathrm{2}})"
6300
- unicode: "ℏ/\U0001D45Aₑ\U0001D450²"
6328
+ unicode: "ℏ/𝑚ₑ𝑐²"
6301
6329
  ascii: h-bar*(m_e*c^2)
6302
6330
  html: "<i>&#295;</i>/<i>m</i><sub>e</sub><i>c</i><sup>2</sup>"
6303
6331
  id: h-bar*(m_e*c^2)
@@ -6328,7 +6356,7 @@ units:
6328
6356
  short: atomic_unit_of_charge
6329
6357
  symbols:
6330
6358
  - latex: "\\ensuremath{\\mathit{e}}"
6331
- unicode: "\U0001D452"
6359
+ unicode: "𝑒"
6332
6360
  ascii: e
6333
6361
  html: "<i>e</i>"
6334
6362
  id: e
@@ -6354,7 +6382,7 @@ units:
6354
6382
  short: atomic_unit_of_mass
6355
6383
  symbols:
6356
6384
  - latex: "\\ensuremath{\\mathit{m}_\\mathrm{e}}"
6357
- unicode: "\U0001D45Aₑ"
6385
+ unicode: "𝑚ₑ"
6358
6386
  ascii: m_e
6359
6387
  html: "<i>m</i><sub>e</sub>"
6360
6388
  id: m_e_atomic
@@ -6406,7 +6434,7 @@ units:
6406
6434
  short: atomic_unit_of_length
6407
6435
  symbols:
6408
6436
  - latex: "\\ensuremath{\\mathit{a}_\\mathrm{0}}"
6409
- unicode: "\U0001D44E₀"
6437
+ unicode: "𝑎₀"
6410
6438
  ascii: a_0
6411
6439
  html: "<i>a</i><sub>0</sub>"
6412
6440
  id: a_0
@@ -6475,7 +6503,7 @@ units:
6475
6503
  short: atomic_unit_of_energy
6476
6504
  symbols:
6477
6505
  - latex: "\\ensuremath{\\mathit{E}_\\mathrm{h}}"
6478
- unicode: "\U0001D438ₕ"
6506
+ unicode: "𝐸ₕ"
6479
6507
  ascii: E_h
6480
6508
  html: "<i>E</i><sub>h</sub>"
6481
6509
  id: E_h
@@ -6501,7 +6529,7 @@ units:
6501
6529
  short: atomic_unit_of_time
6502
6530
  symbols:
6503
6531
  - latex: "\\ensuremath{\\mathit{\\hbar}/\\mathit{E}_\\mathrm{h}}"
6504
- unicode: "ℏ/\U0001D438ₕ"
6532
+ unicode: "ℏ/𝐸ₕ"
6505
6533
  ascii: h-bar/E_h
6506
6534
  html: "<i>&#295;</i>/<i>E</i><sub>h</sub>"
6507
6535
  id: h-bar/E_h
@@ -6528,7 +6556,7 @@ units:
6528
6556
  short: atomic_unit_of_magnetizability
6529
6557
  symbols:
6530
6558
  - latex: "\\ensuremath{\\mathit{e}^2\\mathit{a}_0^2/\\mathit{m}_\\mathrm{e}}"
6531
- unicode: "\U0001D452²\U0001D44E₀²/\U0001D45Aₑ"
6559
+ unicode: "𝑒²𝑎₀²/𝑚ₑ"
6532
6560
  ascii: e^2*a_0^2*m_e-1
6533
6561
  html: "<i>e</i><sup>2</sup><i>a</i><sub>0</sub><sup>2</sup>/<i>m</m><sub>e</sub>"
6534
6562
  id: e^2*a_0^2*m_e-1
@@ -6556,7 +6584,7 @@ units:
6556
6584
  short: atomic_unit_of_magnetic_flux_density
6557
6585
  symbols:
6558
6586
  - latex: "\\ensuremath{\\mathit{\\hbar}/\\mathit{e}a_0^2}"
6559
- unicode: "ℏ/\U0001D452\U0001D44E₀²"
6587
+ unicode: "ℏ/𝑒𝑎₀²"
6560
6588
  ascii: h-bar*(e*a_0^2)-1
6561
6589
  html: "<i>&#295;</i>/<i>e</i><i>a</i><sub>0</sub><sup>2</sup>"
6562
6590
  id: h-bar*(e*a_0^2)-1
@@ -6583,7 +6611,7 @@ units:
6583
6611
  short: atomic_unit_of_magnetic_dipole_moment
6584
6612
  symbols:
6585
6613
  - latex: "\\ensuremath{\\mathit{\\hbar e}/\\mathit{m}_\\mathrm{e}}"
6586
- unicode: "ℏ\U0001D452/\U0001D45Aₑ"
6614
+ unicode: "ℏ𝑒/𝑚ₑ"
6587
6615
  ascii: h-bar*e*(m_e)-1
6588
6616
  html: "<i>&#295;e</i>/<i>m</i><sub>e</sub>"
6589
6617
  id: h-bar*e*(m_e)-1
@@ -6610,7 +6638,7 @@ units:
6610
6638
  short: atomic_unit_of_momentum
6611
6639
  symbols:
6612
6640
  - latex: "\\ensuremath{\\mathit{\\hbar}/\\mathit{a}_0}"
6613
- unicode: "ℏ/\U0001D44E₀"
6641
+ unicode: "ℏ/𝑎₀"
6614
6642
  ascii: h-bar*(a_0)-1
6615
6643
  html: "<i>&#295;</i>/<i>a</i><sub>0</sub>"
6616
6644
  id: h-bar*(a_0)-1
@@ -6636,7 +6664,7 @@ units:
6636
6664
  short: atomic_unit_of_charge_density
6637
6665
  symbols:
6638
6666
  - latex: "\\ensuremath{\\mathit{e}\\mathit{a}_0^{3}}"
6639
- unicode: "\U0001D452\U0001D44E₀³"
6667
+ unicode: "𝑒𝑎₀³"
6640
6668
  ascii: e*(a_0^3)
6641
6669
  html: "<i>e</i><i>a</i><sub>0</sub><sup>3</sup>"
6642
6670
  id: e*(a_0^3)
@@ -6662,7 +6690,7 @@ units:
6662
6690
  short: atomic_unit_of_current
6663
6691
  symbols:
6664
6692
  - latex: "\\ensuremath{\\mathit{e}E_{h}/\\mathit{\\hbar}}"
6665
- unicode: "\U0001D452\U0001D438ₕ/ℏ"
6693
+ unicode: "𝑒𝐸ₕ/ℏ"
6666
6694
  ascii: eE_h*h-bar^-1
6667
6695
  html: "<i>eE</i><sub>h</sub>/&#295;"
6668
6696
  id: eE_h*h-bar^-1
@@ -6689,7 +6717,7 @@ units:
6689
6717
  short: atomic_unit_of_electric_dipole_moment
6690
6718
  symbols:
6691
6719
  - latex: "\\ensuremath{\\mathit{e}\\mathit{a}_0}"
6692
- unicode: "\U0001D452\U0001D44E₀"
6720
+ unicode: "𝑒𝑎₀"
6693
6721
  ascii: e*a_0
6694
6722
  html: "<i>ea</i><sub>0</sub>"
6695
6723
  id: e*a_0
@@ -6715,7 +6743,7 @@ units:
6715
6743
  short: atomic_unit_of_electric_field
6716
6744
  symbols:
6717
6745
  - latex: "\\ensuremath{\\mathit{E}_{h}/\\mathit{\\e}\\mathit{a}_0}"
6718
- unicode: "\U0001D438ₕ/\U0001D452\U0001D44E₀"
6746
+ unicode: "𝐸ₕ/𝑒𝑎₀"
6719
6747
  ascii: E_h*(e*a_0)
6720
6748
  html: "<i>E</i><sub>h</sub>/<i>ea</i><sub>0</sub>"
6721
6749
  id: E_h*(e*a_0)
@@ -6782,7 +6810,7 @@ units:
6782
6810
  short: atomic_unit_of_electric_field_gradient
6783
6811
  symbols:
6784
6812
  - latex: "\\ensuremath{\\mathit{E}_{h}/\\mathit{\\e}\\mathit{a}_0^2}"
6785
- unicode: "\U0001D438ₕ/\U0001D452\U0001D44E₀²"
6813
+ unicode: "𝐸ₕ/𝑒𝑎₀²"
6786
6814
  ascii: E_h*(e*a_0^2)
6787
6815
  html: "<i>E</i><sub>h</sub>/<i>ea</i><sub>0</sub><sup>2</sup>"
6788
6816
  id: E_h*(e*a_0^2)
@@ -6813,7 +6841,7 @@ units:
6813
6841
  short: atomic_unit_of_electric_potential
6814
6842
  symbols:
6815
6843
  - latex: "\\ensuremath{\\mathit{E}_{h}/\\mathit{\\e}}"
6816
- unicode: "\U0001D438ₕ/\U0001D452"
6844
+ unicode: "𝐸ₕ/𝑒"
6817
6845
  ascii: E_h*e-1
6818
6846
  html: "<i>E</i><sub>h</sub>/<i>e</i>"
6819
6847
  id: E_h*e-1
@@ -6842,7 +6870,7 @@ units:
6842
6870
  short: atomic_unit_of_force
6843
6871
  symbols:
6844
6872
  - latex: "\\ensuremath{\\mathit{E}_{h}/\\mathit{a}_0}"
6845
- unicode: "\U0001D438ₕ/\U0001D44E₀"
6873
+ unicode: "𝐸ₕ/𝑎₀"
6846
6874
  ascii: E_h*(a_0)-1
6847
6875
  html: "<i>E</i><sub>h</sub>/<i>a</i><sub>0</sub>"
6848
6876
  id: E_h*(a_0)-1
@@ -6869,7 +6897,7 @@ units:
6869
6897
  short: atomic_unit_of_electric_quadrupole_moment
6870
6898
  symbols:
6871
6899
  - latex: "\\ensuremath{\\mathit{e}\\mathit{a}_0^2}"
6872
- unicode: "\U0001D452\U0001D44E₀²"
6900
+ unicode: "𝑒𝑎₀²"
6873
6901
  ascii: e*a_0^2
6874
6902
  html: "<i>e</i><i>a</i><sub>0</sub><sup>2</sup>"
6875
6903
  id: e*a_0^2
@@ -6895,7 +6923,7 @@ units:
6895
6923
  short: atomic_unit_of_electric_polarizability
6896
6924
  symbols:
6897
6925
  - latex: "\\ensuremath{\\mathit{e}\\mathit{a}_0^2/\\mathit{E}_h}"
6898
- unicode: "\U0001D452²\U0001D44E₀²/\U0001D438ₕ"
6926
+ unicode: "𝑒²𝑎₀²/𝐸ₕ"
6899
6927
  ascii: e^2*a_0^2*(E_h)^-1
6900
6928
  html: "<i>e</i><sup>2</sup><i>a</i><sub>0</sub><sup>2</sup>/<i>E</i><sub>h</sub>"
6901
6929
  id: e^2*a_0^2*(E_h)^-1
@@ -7109,6 +7137,13 @@ units:
7109
7137
  html: g
7110
7138
  id: g
7111
7139
  mathml: "<mi mathvariant='normal'>g</mi>"
7140
+ canonical_conversion:
7141
+ factor: 1/1000
7142
+ root_units:
7143
+ - power: 1
7144
+ unit_reference:
7145
+ type: nist
7146
+ id: NISTu2
7112
7147
  - identifiers:
7113
7148
  - type: nist
7114
7149
  id: NISTu270
@@ -8094,6 +8129,13 @@ units:
8094
8129
  html: "&#176;R"
8095
8130
  id: degR
8096
8131
  mathml: "<mi mathvariant='normal'>&#176;R</mi>"
8132
+ canonical_conversion:
8133
+ factor: 5/9
8134
+ root_units:
8135
+ - power: 1
8136
+ unit_reference:
8137
+ type: nist
8138
+ id: NISTu5
8097
8139
  - identifiers:
8098
8140
  - type: nist
8099
8141
  id: NISTu289
@@ -8228,7 +8270,7 @@ units:
8228
8270
  short: atomic_unit_of_1st_hyperpolarizability
8229
8271
  symbols:
8230
8272
  - latex: "\\ensuremath{\\mathit{e}^3/\\mathit(a}_0^3\\mathit{E}_h^3}"
8231
- unicode: "\U0001D452³\U0001D44E₀³\U0001D438ₕ³"
8273
+ unicode: "𝑒³𝑎₀³𝐸ₕ³"
8232
8274
  ascii: e^3a_0^3*(E_h^3)
8233
8275
  html: "<i>e</i><sup>3</sup><i>a</i><sub>0</sub><sup>3</sup><i>E</i><sub>h</sub><sup>3</sup>"
8234
8276
  id: e^3a_0^3*(E_h^3)
@@ -8256,7 +8298,7 @@ units:
8256
8298
  short: atomic_unit_of_2nd_hyperpolarizability
8257
8299
  symbols:
8258
8300
  - latex: "\\ensuremath{\\mathit{e}^4/\\mathit(a}_0^4\\mathit{E}_h^3}"
8259
- unicode: "\U0001D452⁴\U0001D44E₀⁴\U0001D438ₕ⁴"
8301
+ unicode: "𝑒⁴𝑎₀⁴𝐸ₕ⁴"
8260
8302
  ascii: e^4a_0^4*(E_h^3)
8261
8303
  html: "<i>e</i><sup>4</sup><i>a</i><sub>0</sub><sup>4</sup><i>E</i><sub>h</sub><sup>3</sup>"
8262
8304
  id: e^4a_0^4*(E_h^3)
@@ -8284,7 +8326,7 @@ units:
8284
8326
  short: atomic_unit_of_permittivity
8285
8327
  symbols:
8286
8328
  - latex: "\\ensuremath{\\mathit{e}^2/\\mathit(a}_0\\mathit{E}_h}"
8287
- unicode: "\U0001D452²/\U0001D44E₀\U0001D438ₕ"
8329
+ unicode: "𝑒²/𝑎₀𝐸ₕ"
8288
8330
  ascii: e^2*(a_0*E_h)-1
8289
8331
  html: "<i>e</i><sup>2</sup>/<i>a</i><sub>0</sub><i>E</i><sub>h</sub>"
8290
8332
  id: e^2*(a_0*E_h)-1
@@ -8312,7 +8354,7 @@ units:
8312
8354
  short: atomic_unit_of_velocity
8313
8355
  symbols:
8314
8356
  - latex: "\\ensuremath{\\mathit{a}_\\mathrm{0}\\mathit{E}_{h}/\\mathit{\\hbar}}"
8315
- unicode: "\U0001D44E₀\U0001D438ₕ/ℏ"
8357
+ unicode: "𝑎₀𝐸ₕ/ℏ"
8316
8358
  ascii: a_0*E_h*h-bar-1
8317
8359
  html: "<i>a</i><sub>0</sub><i>E</i><sub>h</sub>/&#295;"
8318
8360
  id: a_0*E_h*h-bar-1
@@ -8340,7 +8382,7 @@ units:
8340
8382
  short: natural_unit_of_energy
8341
8383
  symbols:
8342
8384
  - latex: "\\ensuremath{\\mathit{m}_e\\mathit{c}^2}"
8343
- unicode: "\U0001D45Aₑ\U0001D450²"
8385
+ unicode: "𝑚ₑ𝑐²"
8344
8386
  ascii: m_e*c^2
8345
8387
  html: "<i>m</i><sub>e</sub><i>c</i><sup>2</sup>"
8346
8388
  id: m_e*c^2
@@ -8367,7 +8409,7 @@ units:
8367
8409
  short: natural_unit_of_momentum
8368
8410
  symbols:
8369
8411
  - latex: "\\ensuremath{\\mathit{m}_e\\mathit{c}}"
8370
- unicode: "\U0001D45Aₑ\U0001D450"
8412
+ unicode: "𝑚ₑ𝑐"
8371
8413
  ascii: m_e*c
8372
8414
  html: "<i>m</i><sub>e</sub><i>c</i>"
8373
8415
  id: m_e*c
@@ -8420,7 +8462,7 @@ units:
8420
8462
  short: natural_unit_of_energy_in_MeV
8421
8463
  symbols:
8422
8464
  - latex: "\\ensuremath{\\mathit{m}_e\\mathit{c}^2}"
8423
- unicode: "\U0001D45Aₑ\U0001D450²"
8465
+ unicode: "𝑚ₑ𝑐²"
8424
8466
  ascii: m_e*c^2
8425
8467
  html: "<i>m</i><sub>e</sub><i>c</i><sup>2</sup>"
8426
8468
  id: m_e*c^2_MeV
@@ -8447,7 +8489,7 @@ units:
8447
8489
  short: natural_unit_of_momentum_in_MeV_per_c
8448
8490
  symbols:
8449
8491
  - latex: "\\ensuremath{\\mathit{m}_e\\mathit{c}}"
8450
- unicode: "\U0001D45Aₑ\U0001D450"
8492
+ unicode: "𝑚ₑ𝑐"
8451
8493
  ascii: m_e*c
8452
8494
  html: "<i>m</i><sub>e</sub><i>c</i>"
8453
8495
  id: m_e*c_MeV/C
@@ -10852,6 +10894,13 @@ units:
10852
10894
  html: "&#8242;"
10853
10895
  id: prime_min
10854
10896
  mathml: "<mi mathvariant='normal'>&#8242;</mi>"
10897
+ canonical_conversion:
10898
+ factor: '60'
10899
+ root_units:
10900
+ - power: 1
10901
+ unit_reference:
10902
+ type: nist
10903
+ id: NISTu3
10855
10904
  - identifiers:
10856
10905
  - type: nist
10857
10906
  id: NISTu360
@@ -11186,6 +11235,13 @@ units:
11186
11235
  html: h
11187
11236
  id: h
11188
11237
  mathml: "<mi mathvariant='normal'>h</mi>"
11238
+ canonical_conversion:
11239
+ factor: '3600'
11240
+ root_units:
11241
+ - power: 1
11242
+ unit_reference:
11243
+ type: nist
11244
+ id: NISTu3
11189
11245
  - identifiers:
11190
11246
  - type: nist
11191
11247
  id: NISTu376
@@ -11328,6 +11384,13 @@ units:
11328
11384
  html: d
11329
11385
  id: d
11330
11386
  mathml: "<mi mathvariant='normal'>d</mi>"
11387
+ canonical_conversion:
11388
+ factor: '86400'
11389
+ root_units:
11390
+ - power: 1
11391
+ unit_reference:
11392
+ type: nist
11393
+ id: NISTu3
11331
11394
  - identifiers:
11332
11395
  - type: nist
11333
11396
  id: NISTu380
@@ -13259,6 +13322,13 @@ units:
13259
13322
  html: "&#8242;"
13260
13323
  id: prime_ft
13261
13324
  mathml: "<mi mathvariant='normal'>&#8242;</mi>"
13325
+ canonical_conversion:
13326
+ factor: '0.3048'
13327
+ root_units:
13328
+ - power: 1
13329
+ unit_reference:
13330
+ type: nist
13331
+ id: NISTu1
13262
13332
  - identifiers:
13263
13333
  - type: nist
13264
13334
  id: NISTu8
@@ -13306,6 +13376,13 @@ units:
13306
13376
  html: "&#8243;"
13307
13377
  id: dprime_in
13308
13378
  mathml: "<mi mathvariant='normal'>&#8243;</mi>"
13379
+ canonical_conversion:
13380
+ factor: '0.0254'
13381
+ root_units:
13382
+ - power: 1
13383
+ unit_reference:
13384
+ type: nist
13385
+ id: NISTu1
13309
13386
  - identifiers:
13310
13387
  - type: nist
13311
13388
  id: NISTu83
@@ -13341,6 +13418,13 @@ units:
13341
13418
  html: mi
13342
13419
  id: mi
13343
13420
  mathml: "<mi mathvariant='normal'>mi</mi>"
13421
+ canonical_conversion:
13422
+ factor: '1609.344'
13423
+ root_units:
13424
+ - power: 1
13425
+ unit_reference:
13426
+ type: nist
13427
+ id: NISTu1
13344
13428
  - identifiers:
13345
13429
  - type: nist
13346
13430
  id: NISTu84
@@ -13376,6 +13460,13 @@ units:
13376
13460
  html: yd
13377
13461
  id: yd
13378
13462
  mathml: "<mi mathvariant='normal'>yd</mi>"
13463
+ canonical_conversion:
13464
+ factor: '0.9144'
13465
+ root_units:
13466
+ - power: 1
13467
+ unit_reference:
13468
+ type: nist
13469
+ id: NISTu1
13379
13470
  - identifiers:
13380
13471
  - type: nist
13381
13472
  id: NISTu85
@@ -13734,6 +13825,13 @@ units:
13734
13825
  html: bar
13735
13826
  id: bar
13736
13827
  mathml: "<mi mathvariant='normal'>bar</mi>"
13828
+ canonical_conversion:
13829
+ factor: '100000'
13830
+ root_units:
13831
+ - power: 1
13832
+ unit_reference:
13833
+ type: nist
13834
+ id: NISTu12
13737
13835
  - identifiers:
13738
13836
  - type: nist
13739
13837
  id: NISTu92
@@ -27,7 +27,7 @@ module Unitsdb
27
27
 
28
28
  DATABASE_FILES = REQUIRED_DATABASE_FILES.merge(OPTIONAL_DATABASE_FILES).freeze
29
29
 
30
- SUPPORTED_SCHEMA_VERSIONS = %w[2.0.0 2.1.0].freeze
30
+ SUPPORTED_SCHEMA_VERSIONS = %w[2.0.0 2.1.0 2.2.0].freeze
31
31
 
32
32
  # Transitional: 2.1.0 adds optional canonical_conversion/operations
33
33
  # fields only — 2.0.0 data remains valid.
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Unitsdb
4
- VERSION = "2.2.9"
4
+ VERSION = "2.2.12"
5
5
 
6
6
  # The version of the bundled UnitsDB data (from the data/ submodule).
7
7
  # This version corresponds to a tag/commit in https://github.com/unitsml/unitsdb.
8
- UNITS_DATA_VERSION = "2.0.2"
8
+ UNITS_DATA_VERSION = "2.1.1"
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unitsdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.9
4
+ version: 2.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-10-27 00:00:00.000000000 Z
11
+ date: 2026-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fuzzy_match