Skip to content

Commit 9244899

Browse files
committed
Include more CLDR units
Add new units as well as new categories (pressure-per-length, acceleration, substance-amount, concentration-mass, graphics, ionizing-radiation, solid-angle, catalytic-activity) and fill gaps in existing categories (astronomical units, imperial units, etc.). Move locale-specific units (the Japanese measurement system, Scandinavian mile, person-duration variants) to intl.emu as supplemental conversion factor tables. The script for generating this table has been extended to distinguish 262-vs-402 unts.
1 parent 9913c7d commit 9244899

3 files changed

Lines changed: 1151 additions & 141 deletions

File tree

intl.emu

Lines changed: 276 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,282 @@
126126
</emu-clause>
127127
</emu-clause>
128128

129+
<emu-clause id="sec-amount-intl-unit-conversion">
130+
<h1>Supplemental Unit Conversion Factors</h1>
131+
<p>The following tables define additional unit conversion factors for locale-specific and regional measurement systems. These tables supplement the Unit Conversion Factors tables defined in the base specification and are searched by GetUnitConversionFactor in the same manner.</p>
132+
133+
<emu-table id="table-unit-conversion-factors-length-intl" caption="Unit Conversion Factors: Length (base unit: meter)">
134+
<table>
135+
<thead>
136+
<tr>
137+
<th>Unit</th>
138+
<th>Factor Numerator</th>
139+
<th>Factor Denominator</th>
140+
<th>Offset Numerator</th>
141+
<th>Offset Denominator</th>
142+
</tr>
143+
</thead>
144+
<tbody>
145+
<tr>
146+
<td>mile-scandinavian</td>
147+
<td>10000</td>
148+
<td>1</td>
149+
<td>0</td>
150+
<td>1</td>
151+
</tr>
152+
<tr>
153+
<td>rin</td>
154+
<td>1</td>
155+
<td>30250</td>
156+
<td>0</td>
157+
<td>1</td>
158+
</tr>
159+
<tr>
160+
<td>sun</td>
161+
<td>2</td>
162+
<td>605</td>
163+
<td>0</td>
164+
<td>1</td>
165+
</tr>
166+
<tr>
167+
<td>shaku-length</td>
168+
<td>4</td>
169+
<td>121</td>
170+
<td>0</td>
171+
<td>1</td>
172+
</tr>
173+
<tr>
174+
<td>shaku-cloth</td>
175+
<td>5</td>
176+
<td>121</td>
177+
<td>0</td>
178+
<td>1</td>
179+
</tr>
180+
<tr>
181+
<td>ken</td>
182+
<td>24</td>
183+
<td>121</td>
184+
<td>0</td>
185+
<td>1</td>
186+
</tr>
187+
<tr>
188+
<td>jo-jp</td>
189+
<td>40</td>
190+
<td>121</td>
191+
<td>0</td>
192+
<td>1</td>
193+
</tr>
194+
<tr>
195+
<td>ri-jp</td>
196+
<td>51840</td>
197+
<td>121</td>
198+
<td>0</td>
199+
<td>1</td>
200+
</tr>
201+
</tbody>
202+
</table>
203+
</emu-table>
204+
205+
<emu-table id="table-unit-conversion-factors-mass-intl" caption="Unit Conversion Factors: Mass (base unit: kilogram)">
206+
<table>
207+
<thead>
208+
<tr>
209+
<th>Unit</th>
210+
<th>Factor Numerator</th>
211+
<th>Factor Denominator</th>
212+
<th>Offset Numerator</th>
213+
<th>Offset Denominator</th>
214+
</tr>
215+
</thead>
216+
<tbody>
217+
<tr>
218+
<td>fun</td>
219+
<td>3</td>
220+
<td>8000</td>
221+
<td>0</td>
222+
<td>1</td>
223+
</tr>
224+
</tbody>
225+
</table>
226+
</emu-table>
227+
228+
<emu-table id="table-unit-conversion-factors-volume-intl" caption="Unit Conversion Factors: Volume (base unit: cubic-meter)">
229+
<table>
230+
<thead>
231+
<tr>
232+
<th>Unit</th>
233+
<th>Factor Numerator</th>
234+
<th>Factor Denominator</th>
235+
<th>Offset Numerator</th>
236+
<th>Offset Denominator</th>
237+
</tr>
238+
</thead>
239+
<tbody>
240+
<tr>
241+
<td>dessert-spoon-imperial</td>
242+
<td>454609</td>
243+
<td>204800000000</td>
244+
<td>0</td>
245+
<td>1</td>
246+
</tr>
247+
<tr>
248+
<td>cup-imperial</td>
249+
<td>454609</td>
250+
<td>1600000000</td>
251+
<td>0</td>
252+
<td>1</td>
253+
</tr>
254+
<tr>
255+
<td>kosaji</td>
256+
<td>1</td>
257+
<td>200000</td>
258+
<td>0</td>
259+
<td>1</td>
260+
</tr>
261+
<tr>
262+
<td>osaji</td>
263+
<td>3</td>
264+
<td>200000</td>
265+
<td>0</td>
266+
<td>1</td>
267+
</tr>
268+
<tr>
269+
<td>cup-jp</td>
270+
<td>1</td>
271+
<td>10000</td>
272+
<td>0</td>
273+
<td>1</td>
274+
</tr>
275+
<tr>
276+
<td>shaku</td>
277+
<td>2401</td>
278+
<td>133100000</td>
279+
<td>0</td>
280+
<td>1</td>
281+
</tr>
282+
<tr>
283+
<td>sai</td>
284+
<td>2401</td>
285+
<td>1331000000</td>
286+
<td>0</td>
287+
<td>1</td>
288+
</tr>
289+
<tr>
290+
<td>to-jp</td>
291+
<td>2401</td>
292+
<td>133100</td>
293+
<td>0</td>
294+
<td>1</td>
295+
</tr>
296+
<tr>
297+
<td>koku</td>
298+
<td>2401</td>
299+
<td>13310</td>
300+
<td>0</td>
301+
<td>1</td>
302+
</tr>
303+
</tbody>
304+
</table>
305+
</emu-table>
306+
307+
<emu-table id="table-unit-conversion-factors-area-intl" caption="Unit Conversion Factors: Area (base unit: square-meter)">
308+
<table>
309+
<thead>
310+
<tr>
311+
<th>Unit</th>
312+
<th>Factor Numerator</th>
313+
<th>Factor Denominator</th>
314+
<th>Offset Numerator</th>
315+
<th>Offset Denominator</th>
316+
</tr>
317+
</thead>
318+
<tbody>
319+
<tr>
320+
<td>bu-jp</td>
321+
<td>400</td>
322+
<td>121</td>
323+
<td>0</td>
324+
<td>1</td>
325+
</tr>
326+
<tr>
327+
<td>se-jp</td>
328+
<td>12000</td>
329+
<td>121</td>
330+
<td>0</td>
331+
<td>1</td>
332+
</tr>
333+
<tr>
334+
<td>cho</td>
335+
<td>1200000</td>
336+
<td>121</td>
337+
<td>0</td>
338+
<td>1</td>
339+
</tr>
340+
</tbody>
341+
</table>
342+
</emu-table>
343+
344+
<emu-table id="table-unit-conversion-factors-duration-intl" caption="Unit Conversion Factors: Duration (base unit: second)">
345+
<table>
346+
<thead>
347+
<tr>
348+
<th>Unit</th>
349+
<th>Factor Numerator</th>
350+
<th>Factor Denominator</th>
351+
<th>Offset Numerator</th>
352+
<th>Offset Denominator</th>
353+
</tr>
354+
</thead>
355+
<tbody>
356+
<tr>
357+
<td>day-person</td>
358+
<td>86400</td>
359+
<td>1</td>
360+
<td>0</td>
361+
<td>1</td>
362+
</tr>
363+
<tr>
364+
<td>week-person</td>
365+
<td>604800</td>
366+
<td>1</td>
367+
<td>0</td>
368+
<td>1</td>
369+
</tr>
370+
</tbody>
371+
</table>
372+
</emu-table>
373+
374+
<emu-table id="table-unit-conversion-factors-year-duration-intl" caption="Unit Conversion Factors: Year Duration (base unit: year)">
375+
<table>
376+
<thead>
377+
<tr>
378+
<th>Unit</th>
379+
<th>Factor Numerator</th>
380+
<th>Factor Denominator</th>
381+
<th>Offset Numerator</th>
382+
<th>Offset Denominator</th>
383+
</tr>
384+
</thead>
385+
<tbody>
386+
<tr>
387+
<td>month-person</td>
388+
<td>1</td>
389+
<td>12</td>
390+
<td>0</td>
391+
<td>1</td>
392+
</tr>
393+
<tr>
394+
<td>year-person</td>
395+
<td>1</td>
396+
<td>1</td>
397+
<td>0</td>
398+
<td>1</td>
399+
</tr>
400+
</tbody>
401+
</table>
402+
</emu-table>
403+
</emu-clause>
404+
129405
<emu-clause id="sec-amount-intl-normative-references">
130406
<h1>Amendment to the Normative References of ECMA-402</h1>
131407
<emu-note type="editor">

0 commit comments

Comments
 (0)