asciimath2unitsml 0.2.5 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c5ec436a8b058ce5c93dc246a8493d88a724c7d5f1048b8e42f7a1429791d3c
4
- data.tar.gz: a7106b478a1efa4f48c0133c9b644d77197db0d71031d48152274c9c43dde1f6
3
+ metadata.gz: dfcf63b9b9f9f447f63f744608bb19423025756a5f174a123acb5fbecb2143a4
4
+ data.tar.gz: a45ba18eb0b8090ba886453bedf91ed18f531afc31061a90e9f33a6bc6e0085b
5
5
  SHA512:
6
- metadata.gz: e9fd0281fea82d844d833ae155875ab1b52d22cf384185a32330ed18709759aee6df93fb281e0b7844fe14bd79200211646d37b0152a0190a32b81d8d0176153
7
- data.tar.gz: 8cee75e492900a7ac7e622134feb3c1f0e10503af231af87c7f55d01c88aaf9d817ed66f753249ac5fe5c355a1de9963f3e6b3ed21379996335c89efccc9d022
6
+ metadata.gz: 61c26594d8ab5b4ab07439085ce23de798b8f4e38c0272790a60d64a247f10a19778e4d0cbdb37b9a3a79d6994a6a14ebf97c0dd031551366019ebe2905c5612
7
+ data.tar.gz: e60ff3e91ff37a31ac3d5ac0beccb30c5f05c9c9590e1cc0dd01915ff1c9b57520af1d11b14c1b718173d7258a41b318f67db4a509ccd3ed3b4af43501b50d87
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ .rubocop-https--*
data/.rubocop.yml ADDED
@@ -0,0 +1,14 @@
1
+ # This project follows the Ribose OSS style guide.
2
+ # https://github.com/riboseinc/oss-guides
3
+ # All project-specific additions and overrides should be specified in this file.
4
+ inherit_from:
5
+ - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
6
+
7
+ # local repo-specific modifications
8
+
9
+ AllCops:
10
+ DisplayCopNames: false
11
+ StyleGuideCopsOnly: false
12
+ TargetRubyVersion: 2.4
13
+ Rails:
14
+ Enabled: true
@@ -57,7 +57,7 @@ Gem::Specification.new do |spec|
57
57
  spec.add_development_dependency "guard-rspec", "~> 4.7"
58
58
  spec.add_development_dependency "rake", "~> 12.0"
59
59
  spec.add_development_dependency "rspec", "~> 3.6"
60
- spec.add_development_dependency "rubocop", "= 0.54.0"
60
+ spec.add_development_dependency "rubocop", "~> 1.5.2"
61
61
  spec.add_development_dependency "simplecov", "~> 0.15"
62
62
  spec.add_development_dependency "timecop", "~> 0.9"
63
63
  spec.add_development_dependency "rexml"
@@ -10,21 +10,25 @@ require_relative "unit"
10
10
 
11
11
  module Asciimath2UnitsML
12
12
  MATHML_NS = "http://www.w3.org/1998/Math/MathML".freeze
13
- UNITSML_NS = "http://unitsml.nist.gov/2005".freeze
13
+ UNITSML_NS = "https://schema.unitsml.org/unitsml/1.0".freeze
14
14
 
15
15
  class Conv
16
16
  def initialize(options = {})
17
- @dimensions_id = read_yaml("../unitsdb/dimensions.yaml").each_with_object({}) do |(k, v), m|
17
+ @dimensions_id = read_yaml("../unitsdb/dimensions.yaml").
18
+ each_with_object({}) do |(k, v), m|
18
19
  m[k.to_s] = UnitsDB::Dimension.new(k, v)
19
20
  end
20
- @prefixes_id = read_yaml("../unitsdb/prefixes.yaml").each_with_object({}) do |(k, v), m|
21
+ @prefixes_id = read_yaml("../unitsdb/prefixes.yaml").
22
+ each_with_object({}) do |(k, v), m|
21
23
  m[k] = UnitsDB::Prefix.new(k, v)
22
24
  end
23
25
  @prefixes = flip_name_and_symbol(@prefixes_id)
24
- @quantities = read_yaml("../unitsdb/quantities.yaml").each_with_object({}) do |(k, v), m|
26
+ @quantities = read_yaml("../unitsdb/quantities.yaml").
27
+ each_with_object({}) do |(k, v), m|
25
28
  m[k.to_s] = UnitsDB::Quantity.new(k, v)
26
29
  end
27
- @units_id = read_yaml("../unitsdb/units.yaml").each_with_object({}) do |(k, v), m|
30
+ @units_id = read_yaml("../unitsdb/units.yaml").
31
+ each_with_object({}) do |(k, v), m|
28
32
  m[k.to_s] = UnitsDB::Unit.new(k.to_s, v)
29
33
  end
30
34
  @units = flip_name_and_symbols(@units_id)
@@ -69,8 +73,10 @@ module Asciimath2UnitsML
69
73
  "kg" => { dimension: "Mass", order: 2, symbol: "M" },
70
74
  "s" => { dimension: "Time", order: 3, symbol: "T" },
71
75
  "A" => { dimension: "ElectricCurrent", order: 4, symbol: "I" },
72
- "K" => { dimension: "ThermodynamicTemperature", order: 5, symbol: "Theta" },
73
- "degK" => { dimension: "ThermodynamicTemperature", order: 5, symbol: "Theta" },
76
+ "K" => { dimension: "ThermodynamicTemperature", order: 5,
77
+ symbol: "Theta" },
78
+ "degK" => { dimension: "ThermodynamicTemperature", order: 5,
79
+ symbol: "Theta" },
74
80
  "mol" => { dimension: "AmountOfSubstance", order: 6, symbol: "N" },
75
81
  "cd" => { dimension: "LuminousIntensity", order: 7, symbol: "J" },
76
82
  "deg" => { dimension: "PlaneAngle", order: 8, symbol: "Phi" },
@@ -78,7 +84,9 @@ module Asciimath2UnitsML
78
84
 
79
85
  def units2dimensions(units)
80
86
  norm = decompose_units(units)
81
- return if norm.any? { |u| u[:unit] == "unknown" || u[:prefix] == "unknown" || u[:unit].nil? }
87
+ return if norm.any? do |u|
88
+ u[:unit] == "unknown" || u[:prefix] == "unknown" || u[:unit].nil?
89
+ end
82
90
  norm.map do |u|
83
91
  { dimension: U2D[u[:unit]][:dimension],
84
92
  unit: u[:unit],
@@ -88,7 +96,8 @@ module Asciimath2UnitsML
88
96
  end
89
97
 
90
98
  def dimension1(u)
91
- %(<#{u[:dimension]} symbol="#{u[:symbol]}" powerNumerator="#{float_to_display(u[:exponent])}"/>)
99
+ %(<#{u[:dimension]} symbol="#{u[:symbol]}"
100
+ powerNumerator="#{float_to_display(u[:exponent])}"/>)
92
101
  end
93
102
 
94
103
  def dim_id(dims)
@@ -97,9 +106,11 @@ module Asciimath2UnitsML
97
106
  dimsvector = %w(Length Mass Time ElectricCurrent ThermodynamicTemperature
98
107
  AmountOfSubstance LuminousIntensity PlaneAngle)
99
108
  .map { |h| dimhash.dig(h, :exponent) }.join(":")
100
- id = @dimensions_id&.values&.select { |d| d.vector == dimsvector }&.first&.id and return id.to_s
109
+ id = @dimensions_id&.values&.select { |d| d.vector == dimsvector }&.
110
+ first&.id and return id.to_s
101
111
  "D_" + dims.map do |d|
102
- U2D[d[:unit]][:symbol] + (d[:exponent] == 1 ? "" : float_to_display(d[:exponent]))
112
+ U2D[d[:unit]][:symbol] +
113
+ (d[:exponent] == 1 ? "" : float_to_display(d[:exponent]))
103
114
  end.join("")
104
115
  end
105
116
 
@@ -111,9 +122,12 @@ module Asciimath2UnitsML
111
122
  units.sort { |a, b| a[:unit] <=> b[:unit] }.each_with_object([]) do |k, m|
112
123
  if m.empty? || m[-1][:unit] != k[:unit] then m << k
113
124
  else
114
- m[-1] = { prefix: combine_prefixes(@prefixes[m[-1][:prefix]], @prefixes[k[:prefix]]),
115
- unit: m[-1][:unit],
116
- exponent: (k[:exponent]&.to_f || 1) + (m[-1][:exponent]&.to_f || 1) }
125
+ m[-1] = {
126
+ prefix: combine_prefixes(
127
+ @prefixes[m[-1][:prefix]], @prefixes[k[:prefix]]),
128
+ unit: m[-1][:unit],
129
+ exponent: (k[:exponent]&.to_f || 1) +
130
+ (m[-1][:exponent]&.to_f || 1) }
117
131
  end
118
132
  end
119
133
  end
@@ -128,8 +142,10 @@ module Asciimath2UnitsML
128
142
  { prefix: u[:prefix], unit: "unknown", exponent: u[:exponent] }
129
143
  else
130
144
  @units[u[:unit]].si_derived_bases.each_with_object([]) do |k, m|
131
- m << { prefix: !k[:prefix].nil? && !k[:prefix].empty? ?
132
- combine_prefixes(@prefixes_id[k[:prefix]], @prefixes[u[:prefix]]) : u[:prefix],
145
+ prefix = !k[:prefix].nil? && !k[:prefix].empty? ?
146
+ combine_prefixes(@prefixes_id[k[:prefix]], @prefixes[u[:prefix]]) :
147
+ u[:prefix]
148
+ m << { prefix: prefix,
133
149
  unit: @units_id[k[:id]].symbolid,
134
150
  exponent: (k[:power]&.to_i || 1) * (u[:exponent]&.to_f || 1) }
135
151
  end
@@ -156,9 +172,11 @@ module Asciimath2UnitsML
156
172
  end
157
173
 
158
174
  def quantity(normtext, quantity)
159
- return unless @units[normtext] && @units[normtext].quantities.size == 1 || @quantities[quantity]
175
+ return unless @units[normtext] && @units[normtext].quantities.size == 1 ||
176
+ @quantities[quantity]
160
177
  id = quantity || @units[normtext].quantities.first
161
- dim = %( dimensionURL="##{@units[normtext].dimension}") if @units[normtext]&.dimension
178
+ @units[normtext]&.dimension and
179
+ dim = %( dimensionURL="##{@units[normtext].dimension}")
162
180
  <<~END
163
181
  <Quantity xmlns='#{UNITSML_NS}' xml:id="#{id}"#{dim} quantityType="base">
164
182
  #{quantityname(id)}
@@ -1,3 +1,3 @@
1
1
  module Asciimath2UnitsML
2
- VERSION = '0.2.5'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  end
data/spec/conv_spec.rb CHANGED
@@ -22,7 +22,7 @@ RSpec.describe Asciimath2UnitsML do
22
22
  </mrow>
23
23
  </msup>
24
24
  </mrow>
25
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_mm.s-2' dimensionURL='#NISTd28'>
25
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_mm.s-2' dimensionURL='#NISTd28'>
26
26
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
27
27
  <UnitName xml:lang='en'>mm*s^-2</UnitName>
28
28
  <UnitSymbol type='HTML'>
@@ -51,14 +51,14 @@ RSpec.describe Asciimath2UnitsML do
51
51
  <EnumeratedRootUnit unit='second' powerNumerator='-2'/>
52
52
  </RootUnits>
53
53
  </Unit>
54
- <Prefix xmlns='http://unitsml.nist.gov/2005' prefixBase='10' prefixPower='-3' xml:id='NISTp10_-3'>
54
+ <Prefix xmlns='https://schema.unitsml.org/unitsml/1.0' prefixBase='10' prefixPower='-3' xml:id='NISTp10_-3'>
55
55
  <PrefixName xml:lang='en'>milli</PrefixName>
56
56
  <PrefixSymbol type='ASCII'>m</PrefixSymbol>
57
57
  <PrefixSymbol type='unicode'>m</PrefixSymbol>
58
58
  <PrefixSymbol type='LaTeX'>m</PrefixSymbol>
59
59
  <PrefixSymbol type='HTML'>m</PrefixSymbol>
60
60
  </Prefix>
61
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd28'>
61
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd28'>
62
62
  <Length symbol='L' powerNumerator='1'/>
63
63
  <Time symbol='T' powerNumerator='-2'/>
64
64
  </Dimension>
@@ -77,7 +77,7 @@ RSpec.describe Asciimath2UnitsML do
77
77
  <mrow xref='U_um'>
78
78
  <mi mathvariant='normal'>&#xB5;m</mi>
79
79
  </mrow>
80
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_um' dimensionURL='#NISTd1'>
80
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_um' dimensionURL='#NISTd1'>
81
81
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
82
82
  <UnitName xml:lang='en'>um</UnitName>
83
83
  <UnitSymbol type='HTML'>um</UnitSymbol>
@@ -92,14 +92,14 @@ RSpec.describe Asciimath2UnitsML do
92
92
  <EnumeratedRootUnit unit='meter' prefix='u'/>
93
93
  </RootUnits>
94
94
  </Unit>
95
- <Prefix xmlns='http://unitsml.nist.gov/2005' prefixBase='10' prefixPower='-6' xml:id='NISTp10_-6'>
95
+ <Prefix xmlns='https://schema.unitsml.org/unitsml/1.0' prefixBase='10' prefixPower='-6' xml:id='NISTp10_-6'>
96
96
  <PrefixName xml:lang='en'>micro</PrefixName>
97
97
  <PrefixSymbol type='ASCII'>u</PrefixSymbol>
98
98
  <PrefixSymbol type='unicode'>&#x3BC;</PrefixSymbol>
99
99
  <PrefixSymbol type='LaTeX'>$mu$</PrefixSymbol>
100
100
  <PrefixSymbol type='HTML'>&#xB5;</PrefixSymbol>
101
101
  </Prefix>
102
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd1'>
102
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd1'>
103
103
  <Length symbol='L' powerNumerator='1'/>
104
104
  </Dimension>
105
105
  </math>
@@ -116,7 +116,7 @@ INPUT
116
116
  <mrow xref='U_NISTu5'>
117
117
  <mi mathvariant='normal'>&#xB0;K</mi>
118
118
  </mrow>
119
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_NISTu5' dimensionURL='#NISTd5'>
119
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_NISTu5' dimensionURL='#NISTd5'>
120
120
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
121
121
  <UnitName xml:lang='en'>kelvin</UnitName>
122
122
  <UnitSymbol type='HTML'>K</UnitSymbol>
@@ -128,10 +128,10 @@ INPUT
128
128
  </math>
129
129
  </UnitSymbol>
130
130
  </Unit>
131
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd5'>
131
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd5'>
132
132
  <ThermodynamicTemperature symbol='Theta' powerNumerator='1'/>
133
133
  </Dimension>
134
- <Quantity xmlns='http://unitsml.nist.gov/2005' xml:id='NISTq5' dimensionURL='#NISTd5' quantityType='base'>
134
+ <Quantity xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTq5' dimensionURL='#NISTd5' quantityType='base'>
135
135
  <QuantityName xml:lang='en-US'>thermodynamic temperature</QuantityName>
136
136
  </Quantity>
137
137
  <mo>+</mo>
@@ -140,7 +140,7 @@ INPUT
140
140
  <mrow xref='U_NISTu147'>
141
141
  <mi mathvariant='normal'>&#x2032;</mi>
142
142
  </mrow>
143
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_NISTu147'>
143
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_NISTu147'>
144
144
  <UnitSystem name='not_SI' type='not_SI' xml:lang='en-US'/>
145
145
  <UnitName xml:lang='en'>minute (minute of arc)</UnitName>
146
146
  <UnitSymbol type='HTML'>&#x2032;</UnitSymbol>
@@ -152,10 +152,10 @@ INPUT
152
152
  </math>
153
153
  </UnitSymbol>
154
154
  </Unit>
155
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd9'>
155
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd9'>
156
156
  <PlaneAngle symbol='Phi' powerNumerator='1'/>
157
157
  </Dimension>
158
- <Quantity xmlns='http://unitsml.nist.gov/2005' xml:id='NISTq9' dimensionURL='#NISTd9' quantityType='base'>
158
+ <Quantity xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTq9' dimensionURL='#NISTd9' quantityType='base'>
159
159
  <QuantityName xml:lang='en-US'>plane angle</QuantityName>
160
160
  <QuantityName xml:lang='en-US'>angle</QuantityName>
161
161
  </Quantity>
@@ -171,7 +171,7 @@ INPUT
171
171
  <mrow xref='U_NISTu9'>
172
172
  <mi mathvariant='normal'>rad</mi>
173
173
  </mrow>
174
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_NISTu9' dimensionURL='#D_L0'>
174
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_NISTu9' dimensionURL='#D_L0'>
175
175
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
176
176
  <UnitName xml:lang='en'>radian</UnitName>
177
177
  <UnitSymbol type='HTML'>rad</UnitSymbol>
@@ -183,7 +183,7 @@ INPUT
183
183
  </math>
184
184
  </UnitSymbol>
185
185
  </Unit>
186
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='D_L0'>
186
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='D_L0'>
187
187
  <Length symbol='L' powerNumerator='0'/>
188
188
  </Dimension>
189
189
  <mo>+</mo>
@@ -199,7 +199,7 @@ INPUT
199
199
  <mrow xref='U_NISTu31'>
200
200
  <mi mathvariant='normal'>Hz</mi>
201
201
  </mrow>
202
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_NISTu31' dimensionURL='#NISTd24'>
202
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_NISTu31' dimensionURL='#NISTd24'>
203
203
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
204
204
  <UnitName xml:lang='en'>hertz</UnitName>
205
205
  <UnitSymbol type='HTML'>Hz</UnitSymbol>
@@ -211,10 +211,10 @@ INPUT
211
211
  </math>
212
212
  </UnitSymbol>
213
213
  </Unit>
214
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd24'>
214
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd24'>
215
215
  <Time symbol='T' powerNumerator='-1'/>
216
216
  </Dimension>
217
- <Quantity xmlns='http://unitsml.nist.gov/2005' xml:id='NISTq45' dimensionURL='#NISTd24' quantityType='base'>
217
+ <Quantity xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTq45' dimensionURL='#NISTd24' quantityType='base'>
218
218
  <QuantityName xml:lang='en-US'>frequency</QuantityName>
219
219
  </Quantity>
220
220
  </math>
@@ -231,7 +231,7 @@ INPUT
231
231
  <mrow xref='U_NISTu2'>
232
232
  <mi mathvariant='normal'>kg</mi>
233
233
  </mrow>
234
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_NISTu2' dimensionURL='#NISTd2'>
234
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_NISTu2' dimensionURL='#NISTd2'>
235
235
  <UnitSystem name='SI' type='SI_base' xml:lang='en-US'/>
236
236
  <UnitName xml:lang='en'>kilogram</UnitName>
237
237
  <UnitSymbol type='HTML'>kg</UnitSymbol>
@@ -246,24 +246,24 @@ INPUT
246
246
  <EnumeratedRootUnit unit='gram' prefix='k'/>
247
247
  </RootUnits>
248
248
  </Unit>
249
- <Prefix xmlns='http://unitsml.nist.gov/2005' prefixBase='10' prefixPower='3' xml:id='NISTp10_3'>
249
+ <Prefix xmlns='https://schema.unitsml.org/unitsml/1.0' prefixBase='10' prefixPower='3' xml:id='NISTp10_3'>
250
250
  <PrefixName xml:lang='en'>kilo</PrefixName>
251
251
  <PrefixSymbol type='ASCII'>k</PrefixSymbol>
252
252
  <PrefixSymbol type='unicode'>k</PrefixSymbol>
253
253
  <PrefixSymbol type='LaTeX'>k</PrefixSymbol>
254
254
  <PrefixSymbol type='HTML'>k</PrefixSymbol>
255
255
  </Prefix>
256
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd2'>
256
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd2'>
257
257
  <Mass symbol='M' powerNumerator='1'/>
258
258
  </Dimension>
259
- <Quantity xmlns='http://unitsml.nist.gov/2005' xml:id='NISTq2' dimensionURL='#NISTd2' quantityType='base'>
259
+ <Quantity xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTq2' dimensionURL='#NISTd2' quantityType='base'>
260
260
  <QuantityName xml:lang='en-US'>mass</QuantityName>
261
261
  </Quantity>
262
262
  <mo>&#x22C5;</mo>
263
263
  <mrow xref='U_NISTu1'>
264
264
  <mi mathvariant='normal'>m</mi>
265
265
  </mrow>
266
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_NISTu1' dimensionURL='#NISTd1'>
266
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_NISTu1' dimensionURL='#NISTd1'>
267
267
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
268
268
  <UnitName xml:lang='en'>meter</UnitName>
269
269
  <UnitSymbol type='HTML'>m</UnitSymbol>
@@ -275,7 +275,7 @@ INPUT
275
275
  </math>
276
276
  </UnitSymbol>
277
277
  </Unit>
278
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd1'>
278
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd1'>
279
279
  <Length symbol='L' powerNumerator='1'/>
280
280
  </Dimension>
281
281
  </math>
@@ -294,7 +294,7 @@ OUTPUT
294
294
  <mi mathvariant='normal'>Hz</mi>
295
295
  </msqrt>
296
296
  </mrow>
297
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_Hz0.5' dimensionURL='#D_T-0.5'>
297
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_Hz0.5' dimensionURL='#D_T-0.5'>
298
298
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
299
299
  <UnitName xml:lang='en'>Hz^0.5</UnitName>
300
300
  <UnitSymbol type='HTML'>&#x221A;Hz</UnitSymbol>
@@ -308,7 +308,7 @@ OUTPUT
308
308
  </math>
309
309
  </UnitSymbol>
310
310
  </Unit>
311
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='D_T-0.5'>
311
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='D_T-0.5'>
312
312
  <Time symbol='T' powerNumerator='-0.5'/>
313
313
  </Dimension>
314
314
  </math>
@@ -325,7 +325,7 @@ OUTPUT
325
325
  <mrow xref='U_NISTu2'>
326
326
  <mi mathvariant='normal'>kg</mi>
327
327
  </mrow>
328
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_NISTu2' dimensionURL='#NISTd2'>
328
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_NISTu2' dimensionURL='#NISTd2'>
329
329
  <UnitSystem name='SI' type='SI_base' xml:lang='en-US'/>
330
330
  <UnitName xml:lang='en'>kilogram</UnitName>
331
331
  <UnitSymbol type='HTML'>kg</UnitSymbol>
@@ -340,17 +340,17 @@ OUTPUT
340
340
  <EnumeratedRootUnit unit='gram' prefix='k'/>
341
341
  </RootUnits>
342
342
  </Unit>
343
- <Prefix xmlns='http://unitsml.nist.gov/2005' prefixBase='10' prefixPower='3' xml:id='NISTp10_3'>
343
+ <Prefix xmlns='https://schema.unitsml.org/unitsml/1.0' prefixBase='10' prefixPower='3' xml:id='NISTp10_3'>
344
344
  <PrefixName xml:lang='en'>kilo</PrefixName>
345
345
  <PrefixSymbol type='ASCII'>k</PrefixSymbol>
346
346
  <PrefixSymbol type='unicode'>k</PrefixSymbol>
347
347
  <PrefixSymbol type='LaTeX'>k</PrefixSymbol>
348
348
  <PrefixSymbol type='HTML'>k</PrefixSymbol>
349
349
  </Prefix>
350
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd2'>
350
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd2'>
351
351
  <Mass symbol='M' powerNumerator='1'/>
352
352
  </Dimension>
353
- <Quantity xmlns='http://unitsml.nist.gov/2005' xml:id='NISTq2' dimensionURL='#NISTd2' quantityType='base'>
353
+ <Quantity xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTq2' dimensionURL='#NISTd2' quantityType='base'>
354
354
  <QuantityName xml:lang='en-US'>mass</QuantityName>
355
355
  </Quantity>
356
356
  <mo>+</mo>
@@ -359,7 +359,7 @@ OUTPUT
359
359
  <mrow xref='U_NISTu27'>
360
360
  <mi mathvariant='normal'>g</mi>
361
361
  </mrow>
362
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_NISTu27' dimensionURL='#NISTd2'>
362
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_NISTu27' dimensionURL='#NISTd2'>
363
363
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
364
364
  <UnitName xml:lang='en'>gram</UnitName>
365
365
  <UnitSymbol type='HTML'>g</UnitSymbol>
@@ -385,7 +385,7 @@ OUTPUT
385
385
  <mrow xref='U_NISTu284'>
386
386
  <mi mathvariant='normal'>hp</mi>
387
387
  </mrow>
388
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_NISTu284'>
388
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_NISTu284'>
389
389
  <UnitSystem name='not_SI' type='not_SI' xml:lang='en-US'/>
390
390
  <UnitName xml:lang='en'>horsepower</UnitName>
391
391
  <UnitSymbol type='HTML'>hp</UnitSymbol>
@@ -397,12 +397,12 @@ OUTPUT
397
397
  </math>
398
398
  </UnitSymbol>
399
399
  </Unit>
400
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd16'>
400
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd16'>
401
401
  <Length symbol='L' powerNumerator='2'/>
402
402
  <Mass symbol='M' powerNumerator='1'/>
403
403
  <Time symbol='T' powerNumerator='-3'/>
404
404
  </Dimension>
405
- <Quantity xmlns='http://unitsml.nist.gov/2005' xml:id='NISTq20' dimensionURL='#NISTd16' quantityType='base'>
405
+ <Quantity xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTq20' dimensionURL='#NISTd16' quantityType='base'>
406
406
  <QuantityName xml:lang='en-US'>power</QuantityName>
407
407
  </Quantity>
408
408
  </math>
@@ -429,7 +429,7 @@ OUTPUT
429
429
  </mrow>
430
430
  </msup>
431
431
  </mrow>
432
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_kg.s-2' dimensionURL='#NISTd37'>
432
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_kg.s-2' dimensionURL='#NISTd37'>
433
433
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
434
434
  <UnitName xml:lang='en'>kg*s^-2</UnitName>
435
435
  <UnitSymbol type='HTML'>
@@ -458,14 +458,14 @@ OUTPUT
458
458
  <EnumeratedRootUnit unit='second' powerNumerator='-2'/>
459
459
  </RootUnits>
460
460
  </Unit>
461
- <Prefix xmlns='http://unitsml.nist.gov/2005' prefixBase='10' prefixPower='3' xml:id='NISTp10_3'>
461
+ <Prefix xmlns='https://schema.unitsml.org/unitsml/1.0' prefixBase='10' prefixPower='3' xml:id='NISTp10_3'>
462
462
  <PrefixName xml:lang='en'>kilo</PrefixName>
463
463
  <PrefixSymbol type='ASCII'>k</PrefixSymbol>
464
464
  <PrefixSymbol type='unicode'>k</PrefixSymbol>
465
465
  <PrefixSymbol type='LaTeX'>k</PrefixSymbol>
466
466
  <PrefixSymbol type='HTML'>k</PrefixSymbol>
467
467
  </Prefix>
468
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd37'>
468
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd37'>
469
469
  <Mass symbol='M' powerNumerator='1'/>
470
470
  <Time symbol='T' powerNumerator='-2'/>
471
471
  </Dimension>
@@ -499,7 +499,7 @@ INPUT
499
499
  <mrow xref='U_NISTu5'>
500
500
  <mi mathvariant='normal'>&#xB0;K</mi>
501
501
  </mrow>
502
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_NISTu5' dimensionURL='#NISTd5'>
502
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_NISTu5' dimensionURL='#NISTd5'>
503
503
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
504
504
  <UnitName xml:lang='en'>kelvin</UnitName>
505
505
  <UnitSymbol type='HTML'>K</UnitSymbol>
@@ -511,10 +511,10 @@ INPUT
511
511
  </math>
512
512
  </UnitSymbol>
513
513
  </Unit>
514
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd5'>
514
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd5'>
515
515
  <ThermodynamicTemperature symbol='Theta' powerNumerator='1'/>
516
516
  </Dimension>
517
- <Quantity xmlns='http://unitsml.nist.gov/2005' xml:id='NISTq5' dimensionURL='#NISTd5' quantityType='base'>
517
+ <Quantity xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTq5' dimensionURL='#NISTd5' quantityType='base'>
518
518
  <QuantityName xml:lang='en-US'>thermodynamic temperature</QuantityName>
519
519
  </Quantity>
520
520
  <mo>+</mo>
@@ -537,7 +537,7 @@ INPUT
537
537
  <mrow xref='U_NISTu362'>
538
538
  <mi mathvariant='normal'>mbar</mi>
539
539
  </mrow>
540
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_NISTu362'>
540
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_NISTu362'>
541
541
  <UnitSystem name='not_SI' type='not_SI' xml:lang='en-US'/>
542
542
  <UnitName xml:lang='en'>millibar</UnitName>
543
543
  <UnitSymbol type='HTML'>mbar</UnitSymbol>
@@ -552,14 +552,14 @@ INPUT
552
552
  <EnumeratedRootUnit unit='bar' prefix='m'/>
553
553
  </RootUnits>
554
554
  </Unit>
555
- <Prefix xmlns='http://unitsml.nist.gov/2005' prefixBase='10' prefixPower='-3' xml:id='NISTp10_-3'>
555
+ <Prefix xmlns='https://schema.unitsml.org/unitsml/1.0' prefixBase='10' prefixPower='-3' xml:id='NISTp10_-3'>
556
556
  <PrefixName xml:lang='en'>milli</PrefixName>
557
557
  <PrefixSymbol type='ASCII'>m</PrefixSymbol>
558
558
  <PrefixSymbol type='unicode'>m</PrefixSymbol>
559
559
  <PrefixSymbol type='LaTeX'>m</PrefixSymbol>
560
560
  <PrefixSymbol type='HTML'>m</PrefixSymbol>
561
561
  </Prefix>
562
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd14'>
562
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd14'>
563
563
  <Length symbol='L' powerNumerator='-1'/>
564
564
  <Mass symbol='M' powerNumerator='1'/>
565
565
  <Time symbol='T' powerNumerator='-2'/>
@@ -576,7 +576,7 @@ OUTPUT
576
576
  <mrow xref='NISTp10_-12'>
577
577
  <mi mathvariant='normal'>p</mi>
578
578
  </mrow>
579
- <Prefix xmlns='http://unitsml.nist.gov/2005' prefixBase='10' prefixPower='-12' xml:id='NISTp10_-12'>
579
+ <Prefix xmlns='https://schema.unitsml.org/unitsml/1.0' prefixBase='10' prefixPower='-12' xml:id='NISTp10_-12'>
580
580
  <PrefixName xml:lang='en'>pico</PrefixName>
581
581
  <PrefixSymbol type='ASCII'>p</PrefixSymbol>
582
582
  <PrefixSymbol type='unicode'>p</PrefixSymbol>
@@ -587,7 +587,7 @@ OUTPUT
587
587
  <mrow xref='NISTp10_1'>
588
588
  <mi mathvariant='normal'>da</mi>
589
589
  </mrow>
590
- <Prefix xmlns='http://unitsml.nist.gov/2005' prefixBase='10' prefixPower='1' xml:id='NISTp10_1'>
590
+ <Prefix xmlns='https://schema.unitsml.org/unitsml/1.0' prefixBase='10' prefixPower='1' xml:id='NISTp10_1'>
591
591
  <PrefixName xml:lang='en'>deka</PrefixName>
592
592
  <PrefixSymbol type='ASCII'>da</PrefixSymbol>
593
593
  <PrefixSymbol type='unicode'>da</PrefixSymbol>
@@ -606,24 +606,24 @@ INPUT
606
606
  <mrow xref='NISTp10_-6'>
607
607
  <mi mathvariant='normal'>&#xB5;</mi>
608
608
  </mrow>
609
- <Prefix xmlns='http://unitsml.nist.gov/2005' prefixBase='10' prefixPower='-6' xml:id='NISTp10_-6'>
609
+ <Prefix xmlns='https://schema.unitsml.org/unitsml/1.0' prefixBase='10' prefixPower='-6' xml:id='NISTp10_-6'>
610
610
  <PrefixName xml:lang='en'>micro</PrefixName>
611
611
  <PrefixSymbol type='ASCII'>u</PrefixSymbol>
612
612
  <PrefixSymbol type='unicode'>&#x3BC;</PrefixSymbol>
613
613
  <PrefixSymbol type='LaTeX'>$mu$</PrefixSymbol>
614
614
  <PrefixSymbol type='HTML'>&#xB5;</PrefixSymbol>
615
615
  </Prefix>
616
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd2'>
616
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd2'>
617
617
  <Mass symbol='M' powerNumerator='1'/>
618
618
  </Dimension>
619
- <Quantity xmlns='http://unitsml.nist.gov/2005' xml:id='NISTq2' dimensionURL='#NISTd2' quantityType='base'>
619
+ <Quantity xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTq2' dimensionURL='#NISTd2' quantityType='base'>
620
620
  <QuantityName xml:lang='en-US'>mass</QuantityName>
621
621
  </Quantity>
622
622
  <mo>+</mo>
623
623
  <mrow xref='U_um'>
624
624
  <mi mathvariant='normal'>&#xB5;m</mi>
625
625
  </mrow>
626
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_um' dimensionURL='#NISTd1'>
626
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_um' dimensionURL='#NISTd1'>
627
627
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
628
628
  <UnitName xml:lang='en'>um</UnitName>
629
629
  <UnitSymbol type='HTML'>um</UnitSymbol>
@@ -638,7 +638,7 @@ INPUT
638
638
  <EnumeratedRootUnit unit='meter' prefix='u'/>
639
639
  </RootUnits>
640
640
  </Unit>
641
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd1'>
641
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd1'>
642
642
  <Length symbol='L' powerNumerator='1'/>
643
643
  </Dimension>
644
644
  </math>
@@ -664,7 +664,7 @@ INPUT
664
664
  </mrow>
665
665
  </msup>
666
666
  </mrow>
667
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_A.C3' dimensionURL='#D_M3I4'>
667
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_A.C3' dimensionURL='#D_M3I4'>
668
668
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
669
669
  <UnitName xml:lang='en'>A*C^3</UnitName>
670
670
  <UnitSymbol type='HTML'>
@@ -692,7 +692,7 @@ INPUT
692
692
  <EnumeratedRootUnit unit='coulomb' powerNumerator='3'/>
693
693
  </RootUnits>
694
694
  </Unit>
695
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='D_M3I4'>
695
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='D_M3I4'>
696
696
  <Mass symbol='M' powerNumerator='3'/>
697
697
  <ElectricCurrent symbol='I' powerNumerator='4'/>
698
698
  </Dimension>
@@ -746,7 +746,7 @@ OUTPUT
746
746
  </mrow>
747
747
  </msup>
748
748
  </mrow>
749
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_kg-2' dimensionURL='#D_M-2'>
749
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_kg-2' dimensionURL='#D_M-2'>
750
750
  <UnitSystem name='SI' type='SI_base' xml:lang='en-US'/>
751
751
  <UnitName xml:lang='en'>kg^-2</UnitName>
752
752
  <UnitSymbol type='HTML'>
@@ -772,14 +772,14 @@ OUTPUT
772
772
  <EnumeratedRootUnit unit='gram' prefix='k' powerNumerator='-2'/>
773
773
  </RootUnits>
774
774
  </Unit>
775
- <Prefix xmlns='http://unitsml.nist.gov/2005' prefixBase='10' prefixPower='3' xml:id='NISTp10_3'>
775
+ <Prefix xmlns='https://schema.unitsml.org/unitsml/1.0' prefixBase='10' prefixPower='3' xml:id='NISTp10_3'>
776
776
  <PrefixName xml:lang='en'>kilo</PrefixName>
777
777
  <PrefixSymbol type='ASCII'>k</PrefixSymbol>
778
778
  <PrefixSymbol type='unicode'>k</PrefixSymbol>
779
779
  <PrefixSymbol type='LaTeX'>k</PrefixSymbol>
780
780
  <PrefixSymbol type='HTML'>k</PrefixSymbol>
781
781
  </Prefix>
782
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='D_M-2'>
782
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='D_M-2'>
783
783
  <Mass symbol='M' powerNumerator='-2'/>
784
784
  </Dimension>
785
785
  </math>
@@ -814,7 +814,7 @@ OUTPUT
814
814
  </mrow>
815
815
  </msup>
816
816
  </mrow>
817
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_kg.s-2' dimensionURL='#NISTd37'>
817
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_kg.s-2' dimensionURL='#NISTd37'>
818
818
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
819
819
  <UnitName xml:lang='en'>kg*s^-2</UnitName>
820
820
  <UnitSymbol type='HTML'>
@@ -843,14 +843,14 @@ OUTPUT
843
843
  <EnumeratedRootUnit unit='second' powerNumerator='-2'/>
844
844
  </RootUnits>
845
845
  </Unit>
846
- <Prefix xmlns='http://unitsml.nist.gov/2005' prefixBase='10' prefixPower='3' xml:id='NISTp10_3'>
846
+ <Prefix xmlns='https://schema.unitsml.org/unitsml/1.0' prefixBase='10' prefixPower='3' xml:id='NISTp10_3'>
847
847
  <PrefixName xml:lang='en'>kilo</PrefixName>
848
848
  <PrefixSymbol type='ASCII'>k</PrefixSymbol>
849
849
  <PrefixSymbol type='unicode'>k</PrefixSymbol>
850
850
  <PrefixSymbol type='LaTeX'>k</PrefixSymbol>
851
851
  <PrefixSymbol type='HTML'>k</PrefixSymbol>
852
852
  </Prefix>
853
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd37'>
853
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd37'>
854
854
  <Mass symbol='M' powerNumerator='1'/>
855
855
  <Time symbol='T' powerNumerator='-2'/>
856
856
  </Dimension>
@@ -875,7 +875,7 @@ OUTPUT
875
875
  </mrow>
876
876
  </msup>
877
877
  </mrow>
878
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_kg.s-2' dimensionURL='#NISTd37'>
878
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_kg.s-2' dimensionURL='#NISTd37'>
879
879
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
880
880
  <UnitName xml:lang='en'>kg*s^-2</UnitName>
881
881
  <UnitSymbol type='HTML'>
@@ -904,14 +904,14 @@ OUTPUT
904
904
  <EnumeratedRootUnit unit='second' powerNumerator='-2'/>
905
905
  </RootUnits>
906
906
  </Unit>
907
- <Prefix xmlns='http://unitsml.nist.gov/2005' prefixBase='10' prefixPower='3' xml:id='NISTp10_3'>
907
+ <Prefix xmlns='https://schema.unitsml.org/unitsml/1.0' prefixBase='10' prefixPower='3' xml:id='NISTp10_3'>
908
908
  <PrefixName xml:lang='en'>kilo</PrefixName>
909
909
  <PrefixSymbol type='ASCII'>k</PrefixSymbol>
910
910
  <PrefixSymbol type='unicode'>k</PrefixSymbol>
911
911
  <PrefixSymbol type='LaTeX'>k</PrefixSymbol>
912
912
  <PrefixSymbol type='HTML'>k</PrefixSymbol>
913
913
  </Prefix>
914
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd37'>
914
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd37'>
915
915
  <Mass symbol='M' powerNumerator='1'/>
916
916
  <Time symbol='T' powerNumerator='-2'/>
917
917
  </Dimension>
@@ -936,7 +936,7 @@ OUTPUT
936
936
  </mrow>
937
937
  </msup>
938
938
  </mrow>
939
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_kg.s-2' dimensionURL='#NISTd37'>
939
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_kg.s-2' dimensionURL='#NISTd37'>
940
940
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
941
941
  <UnitName xml:lang='en'>kg*s^-2</UnitName>
942
942
  <UnitSymbol type='HTML'>
@@ -965,14 +965,14 @@ OUTPUT
965
965
  <EnumeratedRootUnit unit='second' powerNumerator='-2'/>
966
966
  </RootUnits>
967
967
  </Unit>
968
- <Prefix xmlns='http://unitsml.nist.gov/2005' prefixBase='10' prefixPower='3' xml:id='NISTp10_3'>
968
+ <Prefix xmlns='https://schema.unitsml.org/unitsml/1.0' prefixBase='10' prefixPower='3' xml:id='NISTp10_3'>
969
969
  <PrefixName xml:lang='en'>kilo</PrefixName>
970
970
  <PrefixSymbol type='ASCII'>k</PrefixSymbol>
971
971
  <PrefixSymbol type='unicode'>k</PrefixSymbol>
972
972
  <PrefixSymbol type='LaTeX'>k</PrefixSymbol>
973
973
  <PrefixSymbol type='HTML'>k</PrefixSymbol>
974
974
  </Prefix>
975
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd37'>
975
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd37'>
976
976
  <Mass symbol='M' powerNumerator='1'/>
977
977
  <Time symbol='T' powerNumerator='-2'/>
978
978
  </Dimension>
@@ -1000,7 +1000,7 @@ INPUT
1000
1000
  </mrow>
1001
1001
  </msup>
1002
1002
  </mrow>
1003
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_mW.cm-2'>
1003
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_mW.cm-2'>
1004
1004
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
1005
1005
  <UnitName xml:lang='en'>mW*cm^-2</UnitName>
1006
1006
  <UnitSymbol type='HTML'>
@@ -1029,14 +1029,14 @@ INPUT
1029
1029
  <EnumeratedRootUnit unit='meter' prefix='c' powerNumerator='-2'/>
1030
1030
  </RootUnits>
1031
1031
  </Unit>
1032
- <Prefix xmlns='http://unitsml.nist.gov/2005' prefixBase='10' prefixPower='-3' xml:id='NISTp10_-3'>
1032
+ <Prefix xmlns='https://schema.unitsml.org/unitsml/1.0' prefixBase='10' prefixPower='-3' xml:id='NISTp10_-3'>
1033
1033
  <PrefixName xml:lang='en'>milli</PrefixName>
1034
1034
  <PrefixSymbol type='ASCII'>m</PrefixSymbol>
1035
1035
  <PrefixSymbol type='unicode'>m</PrefixSymbol>
1036
1036
  <PrefixSymbol type='LaTeX'>m</PrefixSymbol>
1037
1037
  <PrefixSymbol type='HTML'>m</PrefixSymbol>
1038
1038
  </Prefix>
1039
- <Prefix xmlns='http://unitsml.nist.gov/2005' prefixBase='10' prefixPower='-2' xml:id='NISTp10_-2'>
1039
+ <Prefix xmlns='https://schema.unitsml.org/unitsml/1.0' prefixBase='10' prefixPower='-2' xml:id='NISTp10_-2'>
1040
1040
  <PrefixName xml:lang='en'>centi</PrefixName>
1041
1041
  <PrefixSymbol type='ASCII'>c</PrefixSymbol>
1042
1042
  <PrefixSymbol type='unicode'>c</PrefixSymbol>
@@ -1057,7 +1057,7 @@ INPUT
1057
1057
  <mrow xref='U_NISTu1'>
1058
1058
  <mi mathvariant='normal'>m</mi>
1059
1059
  </mrow>
1060
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_NISTu1' dimensionURL='#NISTd1'>
1060
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_NISTu1' dimensionURL='#NISTd1'>
1061
1061
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
1062
1062
  <UnitName xml:lang='en'>meter</UnitName>
1063
1063
  <UnitSymbol type='HTML'>m</UnitSymbol>
@@ -1069,10 +1069,10 @@ INPUT
1069
1069
  </math>
1070
1070
  </UnitSymbol>
1071
1071
  </Unit>
1072
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd1'>
1072
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd1'>
1073
1073
  <Length symbol='L' powerNumerator='1'/>
1074
1074
  </Dimension>
1075
- <Quantity xmlns='http://unitsml.nist.gov/2005' xml:id='NISTq103' dimensionURL='#NISTd1' quantityType='base'>
1075
+ <Quantity xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTq103' dimensionURL='#NISTd1' quantityType='base'>
1076
1076
  <QuantityName xml:lang='en-US'>position vector</QuantityName>
1077
1077
  </Quantity>
1078
1078
  </math>
@@ -1105,7 +1105,7 @@ INPUT
1105
1105
  </mrow>
1106
1106
  </msup>
1107
1107
  </mrow>
1108
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_cal_th.cm-2'>
1108
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_cal_th.cm-2'>
1109
1109
  <UnitSystem name='not_SI' type='not_SI' xml:lang='en-US'/>
1110
1110
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
1111
1111
  <UnitName xml:lang='en'>langley</UnitName>
@@ -1144,7 +1144,7 @@ INPUT
1144
1144
  <EnumeratedRootUnit unit='meter' prefix='c' powerNumerator='-2'/>
1145
1145
  </RootUnits>
1146
1146
  </Unit>
1147
- <Prefix xmlns='http://unitsml.nist.gov/2005' prefixBase='10' prefixPower='-2' xml:id='NISTp10_-2'>
1147
+ <Prefix xmlns='https://schema.unitsml.org/unitsml/1.0' prefixBase='10' prefixPower='-2' xml:id='NISTp10_-2'>
1148
1148
  <PrefixName xml:lang='en'>centi</PrefixName>
1149
1149
  <PrefixSymbol type='ASCII'>c</PrefixSymbol>
1150
1150
  <PrefixSymbol type='unicode'>c</PrefixSymbol>
@@ -1168,7 +1168,7 @@ INPUT
1168
1168
  <mi mathvariant='normal'>a</mi>
1169
1169
  </math>
1170
1170
  </mrow>
1171
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_NISTu1' dimensionURL='#NISTd1'>
1171
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_NISTu1' dimensionURL='#NISTd1'>
1172
1172
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
1173
1173
  <UnitName xml:lang='en'>meter</UnitName>
1174
1174
  <UnitSymbol type='HTML'>m</UnitSymbol>
@@ -1180,7 +1180,7 @@ INPUT
1180
1180
  </math>
1181
1181
  </UnitSymbol>
1182
1182
  </Unit>
1183
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd1'>
1183
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd1'>
1184
1184
  <Length symbol='L' powerNumerator='1'/>
1185
1185
  </Dimension>
1186
1186
  <mo>+</mo>
@@ -1202,7 +1202,7 @@ INPUT
1202
1202
  <mn>2</mn>
1203
1203
  </math>
1204
1204
  </mrow>
1205
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_cm.s-2' dimensionURL='#NISTd28'>
1205
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_cm.s-2' dimensionURL='#NISTd28'>
1206
1206
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
1207
1207
  <UnitName xml:lang='en'>cm*s^-2</UnitName>
1208
1208
  <UnitSymbol type='HTML'>
@@ -1231,14 +1231,14 @@ INPUT
1231
1231
  <EnumeratedRootUnit unit='second' powerNumerator='-2'/>
1232
1232
  </RootUnits>
1233
1233
  </Unit>
1234
- <Prefix xmlns='http://unitsml.nist.gov/2005' prefixBase='10' prefixPower='-2' xml:id='NISTp10_-2'>
1234
+ <Prefix xmlns='https://schema.unitsml.org/unitsml/1.0' prefixBase='10' prefixPower='-2' xml:id='NISTp10_-2'>
1235
1235
  <PrefixName xml:lang='en'>centi</PrefixName>
1236
1236
  <PrefixSymbol type='ASCII'>c</PrefixSymbol>
1237
1237
  <PrefixSymbol type='unicode'>c</PrefixSymbol>
1238
1238
  <PrefixSymbol type='LaTeX'>c</PrefixSymbol>
1239
1239
  <PrefixSymbol type='HTML'>c</PrefixSymbol>
1240
1240
  </Prefix>
1241
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd28'>
1241
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd28'>
1242
1242
  <Length symbol='L' powerNumerator='1'/>
1243
1243
  <Time symbol='T' powerNumerator='-2'/>
1244
1244
  </Dimension>
@@ -1266,7 +1266,7 @@ INPUT
1266
1266
  </mrow>
1267
1267
  </msup>
1268
1268
  </mrow>
1269
- <Unit xmlns='http://unitsml.nist.gov/2005' xml:id='U_cm.s-2' dimensionURL='#NISTd28'>
1269
+ <Unit xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='U_cm.s-2' dimensionURL='#NISTd28'>
1270
1270
  <UnitSystem name='SI' type='SI_derived' xml:lang='en-US'/>
1271
1271
  <UnitName xml:lang='en'>cm*s^-2</UnitName>
1272
1272
  <UnitSymbol type='HTML'>
@@ -1295,14 +1295,14 @@ INPUT
1295
1295
  <EnumeratedRootUnit unit='second' powerNumerator='-2'/>
1296
1296
  </RootUnits>
1297
1297
  </Unit>
1298
- <Prefix xmlns='http://unitsml.nist.gov/2005' prefixBase='10' prefixPower='-2' xml:id='NISTp10_-2'>
1298
+ <Prefix xmlns='https://schema.unitsml.org/unitsml/1.0' prefixBase='10' prefixPower='-2' xml:id='NISTp10_-2'>
1299
1299
  <PrefixName xml:lang='en'>centi</PrefixName>
1300
1300
  <PrefixSymbol type='ASCII'>c</PrefixSymbol>
1301
1301
  <PrefixSymbol type='unicode'>c</PrefixSymbol>
1302
1302
  <PrefixSymbol type='LaTeX'>c</PrefixSymbol>
1303
1303
  <PrefixSymbol type='HTML'>c</PrefixSymbol>
1304
1304
  </Prefix>
1305
- <Dimension xmlns='http://unitsml.nist.gov/2005' xml:id='NISTd28'>
1305
+ <Dimension xmlns='https://schema.unitsml.org/unitsml/1.0' xml:id='NISTd28'>
1306
1306
  <Length symbol='L' powerNumerator='1'/>
1307
1307
  <Time symbol='T' powerNumerator='-2'/>
1308
1308
  </Dimension>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciimath2unitsml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-20 00:00:00.000000000 Z
11
+ date: 2021-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciimath
@@ -168,16 +168,16 @@ dependencies:
168
168
  name: rubocop
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '='
171
+ - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 0.54.0
173
+ version: 1.5.2
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '='
178
+ - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 0.54.0
180
+ version: 1.5.2
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: simplecov
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -230,7 +230,9 @@ extensions: []
230
230
  extra_rdoc_files: []
231
231
  files:
232
232
  - ".github/workflows/rake.yml"
233
+ - ".gitignore"
233
234
  - ".gitmodules"
235
+ - ".rubocop.yml"
234
236
  - Gemfile
235
237
  - LICENSE
236
238
  - README.adoc