/[drupal]/contributions/modules/unitsapi/units.xml
ViewVC logotype

Contents of /contributions/modules/unitsapi/units.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Fri Feb 27 21:29:29 2009 UTC (8 months, 3 weeks ago) by raspberryman
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-ALPHA1, HEAD
Changes since 1.2: +9 -1 lines
File MIME type: text/xml
#383620 requested by Axel Pressbutton, added stone conversion
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- $Id: units.xml,v 1.2 2009/02/27 20:46:23 raspberryman Exp $ -->
3 <!--
4 * @file
5 * Unit type data for the Units Module.
6 -->
7
8 <units>
9 <length>
10 <unit>
11 <key>millimeter</key>
12 <singular>millimeter</singular>
13 <plural>millimeters</plural>
14 <symbol>mm</symbol>
15 <factor>0.001</factor>
16 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
17 </unit>
18 <unit>
19 <key>centimeter</key>
20 <singular>centimeter</singular>
21 <plural>centimeters</plural>
22 <symbol>cm</symbol>
23 <factor>0.01</factor>
24 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
25 </unit>
26 <unit>
27 <key>decimeter</key>
28 <singular>decimeter</singular>
29 <plural>decimeters</plural>
30 <symbol>dm</symbol>
31 <factor>0.1</factor>
32 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
33 </unit>
34 <unit>
35 <key>meter</key>
36 <singular>meter</singular>
37 <plural>meters</plural>
38 <symbol>m</symbol>
39 <factor>1</factor>
40 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
41 </unit>
42 <unit>
43 <key>kilometer</key>
44 <singular>kilometer</singular>
45 <plural>kilometers</plural>
46 <symbol>km</symbol>
47 <factor>1000</factor>
48 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
49 </unit>
50 <unit>
51 <key>foot</key>
52 <singular>foot</singular>
53 <plural>feet</plural>
54 <symbol>ft</symbol>
55 <factor>3.048 E-01</factor>
56 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
57 </unit>
58 <unit>
59 <key>inch</key>
60 <singular>inch</singular>
61 <plural>inches</plural>
62 <symbol>in</symbol>
63 <factor>2.54 E-02</factor>
64 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
65 </unit>
66 <unit>
67 <key>mile</key>
68 <singular>mile</singular>
69 <plural>miles</plural>
70 <symbol>mi</symbol>
71 <factor>1.609 344 E+03</factor>
72 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
73 </unit>
74 <unit>
75 <key>yard</key>
76 <singular>yard</singular>
77 <plural>yards</plural>
78 <symbol>yd</symbol>
79 <factor>9.144 E-01</factor>
80 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
81 </unit>
82 </length>
83 <volume> <!-- Volume uses the cubic meter value -->
84 <unit>
85 <key>cubic foot</key>
86 <singular>cubic foot</singular>
87 <plural>cubic feet</plural>
88 <symbol>ft3</symbol>
89 <factor>2.831 685 E-02</factor>
90 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
91 </unit>
92 <unit>
93 <key>cubic inch</key>
94 <singular>cubic inch</singular>
95 <plural>cubic inches</plural>
96 <symbol>in3</symbol>
97 <factor>1.638 706 E-05</factor>
98 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
99 </unit>
100 <unit>
101 <key>cubic mile</key>
102 <singular>cubic mile</singular>
103 <plural>cubic miles</plural>
104 <symbol>mi3</symbol>
105 <factor>4.168 182 E+09</factor>
106 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
107 </unit>
108 <unit>
109 <key>cubic yard</key>
110 <singular>cubic yard</singular>
111 <plural>cubic yards</plural>
112 <symbol>yd3</symbol>
113 <factor>7.645 549 E-01</factor>
114 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
115 </unit>
116 <unit>
117 <key>cup</key>
118 <singular>cup</singular>
119 <plural>cups</plural>
120 <symbol>cup</symbol>
121 <factor>2.365 882 E-04</factor>
122 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
123 </unit>
124 <unit>
125 <key>imperial gallon</key>
126 <singular>Imperial gallon</singular>
127 <plural>Imperial gallons</plural>
128 <symbol>gal</symbol>
129 <factor>4.546 09 E-03</factor>
130 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
131 </unit>
132 <unit>
133 <key>us gallon</key>
134 <singular>US gallon</singular>
135 <plural>US gallons</plural>
136 <symbol>gal</symbol>
137 <factor>3.785 412 E-03</factor>
138 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
139 </unit>
140 <unit>
141 <key>liter</key>
142 <singular>liter</singular>
143 <plural>liters</plural>
144 <symbol>L</symbol>
145 <factor>1 E-03</factor>
146 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
147 </unit>
148 <unit>
149 <key>imperial fluid ounce</key>
150 <singular>Imperial fluid ounce</singular>
151 <plural>Imperial fluid ounces</plural>
152 <symbol>fl oz</symbol>
153 <factor>2.841 306 E-05</factor>
154 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
155 </unit>
156 <unit>
157 <key>us fluid ounce</key>
158 <singular>US fluid ounce</singular>
159 <plural>US fluid ounces</plural>
160 <symbol>fl oz</symbol>
161 <factor>2.957 353 E-05</factor>
162 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
163 </unit>
164 <unit>
165 <key>imperial pint</key>
166 <singular>Imperial pint</singular>
167 <plural>Imperial pints</plural>
168 <symbol>pt</symbol>
169 <factor>5.68261 25 E-04</factor>
170 <source>http://en.wikipedia.org/wiki/Conversion_of_units</source>
171 </unit>
172 <unit>
173 <key>us liquid pint</key>
174 <singular>US pint (liquid)</singular>
175 <plural>US pints (liquid)</plural>
176 <symbol>pt</symbol>
177 <factor>4.731 765 E-04</factor>
178 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
179 </unit>
180 <unit>
181 <key>us dry pint</key>
182 <singular>US pint (dry)</singular>
183 <plural>US pints (dry)</plural>
184 <symbol>pt</symbol>
185 <factor>5.506 105 E-04</factor>
186 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
187 </unit>
188 <unit>
189 <key>imperial quart</key>
190 <singular>Imperial quart</singular>
191 <plural>Imperial quarts</plural>
192 <symbol>qt</symbol>
193 <factor>1.136 522 97 E-03</factor>
194 <source>http://en.wikipedia.org/wiki/Conversion_of_units</source>
195 </unit>
196 <unit>
197 <key>us liquid quart</key>
198 <singular>US quart (liquid)</singular>
199 <plural>US quarts (liquid)</plural>
200 <symbol>qt</symbol>
201 <factor>9.463 529 E-04</factor>
202 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
203 </unit>
204 <unit>
205 <key>us dry quart</key>
206 <singular>US quart (dry)</singular>
207 <plural>US quarts (dry)</plural>
208 <symbol>qt</symbol>
209 <factor>1.101 221 E-03</factor>
210 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
211 </unit>
212 <unit>
213 <key>tablespoon</key>
214 <singular>tablespoon</singular>
215 <plural>tablespoons</plural>
216 <symbol>tbsp</symbol>
217 <factor>1.478 676 E-05</factor>
218 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
219 </unit>
220 <unit>
221 <key>teaspoon</key>
222 <singular>teaspoon</singular>
223 <plural>teaspoons</plural>
224 <symbol>tspn</symbol>
225 <factor>4.928 922 E-06</factor>
226 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
227 </unit>
228 </volume>
229 <weight> <!-- Weight uses the kilogram value -->
230 <unit>
231 <key>milligram</key>
232 <singular>milligram</singular>
233 <plural>milligrams</plural>
234 <symbol>mg</symbol>
235 <factor>0.000001</factor>
236 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
237 </unit>
238 <unit>
239 <key>gram</key>
240 <singular>gram</singular>
241 <plural>grams</plural>
242 <symbol>g</symbol>
243 <factor>0.001</factor>
244 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
245 </unit>
246 <unit>
247 <key>kilogram</key>
248 <singular>kilogram</singular>
249 <plural>kilograms</plural>
250 <symbol>kg</symbol>
251 <factor>1</factor>
252 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
253 </unit>
254 <unit>
255 <key>carat</key>
256 <singular>carat</singular>
257 <plural>carats</plural>
258 <symbol>CD</symbol>
259 <factor>2.0 E-04</factor>
260 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
261 </unit>
262 <unit>
263 <key>grain</key>
264 <singular>grain</singular>
265 <plural>grains</plural>
266 <symbol>gr</symbol>
267 <factor>6.479 891 E-05</factor>
268 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
269 </unit>
270 <unit>
271 <key>ounce</key>
272 <singular>ounce</singular>
273 <plural>ounces</plural>
274 <symbol>oz</symbol>
275 <factor>2.834 952 E-02</factor>
276 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
277 </unit>
278 <unit>
279 <key>pennyweight</key>
280 <singular>pennyweight</singular>
281 <plural>pennyweights</plural>
282 <symbol>dwt</symbol>
283 <factor>1.555 174 E-03</factor>
284 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
285 </unit>
286 <unit>
287 <key>pound</key>
288 <singular>pound</singular>
289 <plural>pounds</plural>
290 <symbol>lb</symbol>
291 <factor>4.535 924 E-01</factor>
292 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
293 </unit>
294 <unit>
295 <key>stone</key>
296 <singular>stone</singular>
297 <plural>stones</plural>
298 <symbol>st</symbol>
299 <factor>6.35029318</factor>
300 <source>http://en.wikipedia.org/wiki/Conversion_of_units</source>
301 </unit>
302 <unit>
303 <key>slug</key>
304 <singular>slug</singular>
305 <plural>slugs</plural>
306 <symbol>slug</symbol>
307 <factor>1.459 390 E+01</factor>
308 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
309 </unit>
310 <unit>
311 <key>metric ton</key>
312 <singular>metric ton</singular>
313 <plural>metric tons</plural>
314 <symbol>t</symbol>
315 <factor>1.0 E+03</factor>
316 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
317 </unit>
318 <unit>
319 <key>long ton</key>
320 <singular>long ton</singular>
321 <plural>long tons</plural>
322 <symbol>t</symbol>
323 <factor>1.016 047 E+03</factor>
324 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
325 </unit>
326 <unit>
327 <key>short ton</key>
328 <singular>short ton</singular>
329 <plural>short tons</plural>
330 <symbol>t</symbol>
331 <factor>9.071 847 E+02</factor>
332 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
333 </unit>
334 </weight>
335 <area> <!-- Area uses square meters -->
336 <unit>
337 <key>acre</key>
338 <singular>acre</singular>
339 <plural>acres</plural>
340 <symbol>acre</symbol>
341 <factor>4.046 873 E+03</factor>
342 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
343 </unit>
344 <unit>
345 <key>hectare</key>
346 <singular>hectare</singular>
347 <plural>hectares</plural>
348 <symbol>ha</symbol>
349 <factor>1.0 E+04</factor>
350 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
351 </unit>
352 <unit>
353 <key>square foot</key>
354 <singular>square foot</singular>
355 <plural>square feet</plural>
356 <symbol>ft2</symbol>
357 <factor>9.290 304 E-02</factor>
358 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
359 </unit>
360 <unit>
361 <key>square inch</key>
362 <singular>square inch</singular>
363 <plural>square inches</plural>
364 <symbol>in2</symbol>
365 <factor>6.4516 E-04</factor>
366 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
367 </unit>
368 <unit>
369 <key>square yard</key>
370 <singular>square yard</singular>
371 <plural>square yards</plural>
372 <symbol>yd2</symbol>
373 <factor>8.361 274 E-01</factor>
374 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
375 </unit>
376 <unit>
377 <key>square mile</key>
378 <singular>square mile</singular>
379 <plural>square miles</plural>
380 <symbol>mi2</symbol>
381 <factor>2.589 988 E+06</factor>
382 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
383 </unit>
384 </area>
385 <time>
386 <unit>
387 <key>day</key>
388 <singular>day</singular>
389 <plural>days</plural>
390 <symbol>d</symbol>
391 <factor>8.64 E+04</factor>
392 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
393 </unit>
394 <unit>
395 <key>hour</key>
396 <singular>hour</singular>
397 <plural>hours</plural>
398 <symbol>h</symbol>
399 <factor>3.6 E+03</factor>
400 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
401 </unit>
402 <unit>
403 <key>minute</key>
404 <singular>minute</singular>
405 <plural>minutes</plural>
406 <symbol>min</symbol>
407 <factor>6 E+01</factor>
408 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
409 </unit>
410 <unit>
411 <key>year</key>
412 <singular>year</singular>
413 <plural>years</plural>
414 <symbol>yr</symbol>
415 <factor>3.1536 E+07</factor>
416 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
417 </unit>
418 </time>
419 <temperature>
420 <unit>
421 <key>celsius</key>
422 <singular>celsius</singular>
423 <plural>celsius</plural>
424 <symbol>°C</symbol>
425 <factors>
426 <factor from="fahrenheit">(t/°F – 32)/1.8</factor>
427 <factor from="kelvin">T/K - 273.15</factor>
428 </factors>
429 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
430 </unit>
431 <unit>
432 <key>fahrenheit</key>
433 <singular>fahrenheit</singular>
434 <plural>fahrenheit</plural>
435 <symbol>°F</symbol>
436 <factors>
437 <factor from="celsius">(t/°C*1.8)+32</factor>
438 <factor from="kelvin">((T/K-273.15)*1.8)+32</factor>
439 </factors>
440 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
441 </unit>
442 <unit>
443 <key>kelvin</key>
444 <singular>kelvin</singular>
445 <plural>kelvin</plural>
446 <symbol>K</symbol>
447 <factors>
448 <factor from="celsius">t/°C + 273.15</factor>
449 <factor from="fahrenheit">(t/°F + 459.67)/1.8</factor>
450 </factors>
451 <source>http://physics.nist.gov/Pubs/SP811/contents.html</source>
452 </unit>
453 </temperature>
454 </units>

  ViewVC Help
Powered by ViewVC 1.1.2