daisy/buildscript/units.toml

1027 lines
19 KiB
TOML
Raw Normal View History

2023-06-13 09:12:45 -07:00
# This file defines all units daisy knows about.
# Each unit is an entry in the `unit` array.
2023-06-14 09:05:37 -07:00
# Some "units" are constants (mph, for example). They are defined in the "constants" file.
2023-06-13 09:12:45 -07:00
#
#
# Basic properties:
# enum_name: unique capitalized string. The name of this unit's enum element.
# base: if true, this is a base unit. Optional, false if omitted.
# no_space: if true, don't put a space between this unit and its number. Optional, false if omitted.
2023-06-13 21:18:00 -07:00
# strings: array of arrays of strings. Specifies what strings are interpreted as this unit.
# Each entry looks like ["s", ...], where the first item is a string and ... is an optional list of valid prefixes. See `prefix.rs`.
# Note that the empty string must be in the list of prefixes if you want the string to be available without a prefix.
# Units with no prefix must be a one-element array.
# The first string in this array will be the string we print when displaying this unit.
2023-06-13 09:12:45 -07:00
#
#
# Base units (only apply if base = false):
# base_value_type: one of "exact", "approx", "fract"
# base_value: Depends on value type.
# if exact or approx: string representing a number
# if fract: two-element array that looks like [1, 7].
# both entries must be integers. The above array is interpreted as 1/7.
#
# "exact" implies that this is an exact decimal conversion factor
# "approx" implies that this is an approximate decimal conversion factor
# "fract" implies that this is an exact fractional conversion factor.
#
#
# base_units: Array of tables, looks like {u = "Second", p = 1}
# u = base unit enum name
# p = base unit power
# Any unit included here MUST have `base = true`. THIS IS NOT CHECKED, THINGS WILL BREAK!
2023-06-12 15:01:44 -07:00
[[unit]]
enum_name = "Second"
2023-06-13 21:18:00 -07:00
strings = [
["s", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["sec"], ["second"], ["seconds"]
]
2023-06-12 15:01:44 -07:00
base = true
[[unit]]
enum_name = "Gram"
2023-06-13 21:18:00 -07:00
strings = [
["g", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["gram"], ["grams"], ["gramme"], ["grammes"]
]
2023-06-12 15:01:44 -07:00
base = true
[[unit]]
enum_name = "Meter"
2023-06-13 21:18:00 -07:00
strings = [
["m", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["meter"], ["meters"]
]
2023-06-12 15:01:44 -07:00
base = true
[[unit]]
enum_name = "Ampere"
2023-06-13 21:18:00 -07:00
strings = [
["A", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["ampere"], ["amperes"], ["amp"]
]
2023-06-12 15:01:44 -07:00
base = true
[[unit]]
enum_name = "Kelvin"
2023-06-13 21:18:00 -07:00
strings = [
["K", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["Kelvin"], ["kelvin"]
]
2023-06-12 15:01:44 -07:00
base = true
[[unit]]
enum_name = "Mole"
2023-06-13 21:18:00 -07:00
strings = [
["mol", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["mole"]
]
2023-06-12 15:01:44 -07:00
base = true
[[unit]]
enum_name = "Candela"
2023-06-13 21:18:00 -07:00
strings = [
["cd", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["candela"]
]
2023-06-12 15:01:44 -07:00
base = true
# Time Units
[[unit]]
enum_name = "Minute"
2023-06-13 21:18:00 -07:00
strings = [
["min"], ["minute"], ["minutes"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "60"
base_units = [ { u = "Second", p = 1} ]
[[unit]]
enum_name = "Hour"
2023-06-13 21:18:00 -07:00
strings = [
["h"], ["hour"], ["hours"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "3600"
base_units = [ { u = "Second", p = 1} ]
[[unit]]
enum_name = "Day"
2023-06-13 21:18:00 -07:00
strings = [
["d"], ["day"], ["days"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "86400"
base_units = [ { u = "Second", p = 1} ]
[[unit]]
enum_name = "Week"
2023-06-13 21:18:00 -07:00
strings = [
["w"], ["week"], ["weeks"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "604800"
base_units = [ { u = "Second", p = 1} ]
[[unit]]
enum_name = "Month"
2023-06-13 21:18:00 -07:00
strings = [
["month"], ["months"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "2629746"
base_units = [ { u = "Second", p = 1} ]
[[unit]]
enum_name = "Fortnight"
2023-06-13 21:18:00 -07:00
strings = [
["fortnight"], ["fortnights"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "1209600"
base_units = [ { u = "Second", p = 1} ]
[[unit]]
enum_name = "GregorianYear"
2023-06-13 21:18:00 -07:00
strings = [
["year"], ["years"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "31557000"
base_units = [ { u = "Second", p = 1} ]
[[unit]]
enum_name = "JulianYear"
2023-06-13 21:18:00 -07:00
strings = [
["julianYear"], ["julianYears"],
["julianyear"], ["julianyears"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "31557600"
base_units = [ { u = "Second", p = 1} ]
# Length Units
[[unit]]
enum_name = "Angstrom"
2023-06-13 21:18:00 -07:00
strings = [
["Å"], ["angstrom"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "1e-10"
base_units = [ { u = "Meter", p = 1} ]
[[unit]]
enum_name = "Thou"
2023-06-13 21:18:00 -07:00
strings = [
["thou"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "0.0000254"
base_units = [ { u = "Meter", p = 1} ]
[[unit]]
enum_name = "Point"
2023-06-13 21:18:00 -07:00
strings = [
["pt"], ["point"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "0.0003514598"
base_units = [ { u = "Meter", p = 1} ]
[[unit]]
enum_name = "Inch"
2023-06-13 21:18:00 -07:00
strings = [
["in"], ["inch"], ["inches"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "0.0254"
base_units = [ { u = "Meter", p = 1} ]
[[unit]]
enum_name = "Foot"
2023-06-13 21:18:00 -07:00
strings = [
["ft"], ["foot"], ["feet"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "0.3048"
base_units = [ { u = "Meter", p = 1} ]
[[unit]]
enum_name = "Yard"
2023-06-13 21:18:00 -07:00
strings = [
["yd"], ["yard"], ["yards"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "0.9144"
base_units = [ { u = "Meter", p = 1} ]
[[unit]]
enum_name = "Furlong"
2023-06-13 21:18:00 -07:00
strings = [
["furlong"], ["furlongs"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "201.17"
base_units = [ { u = "Meter", p = 1} ]
2023-06-12 22:56:04 -07:00
[[unit]]
enum_name = "Rod"
2023-06-13 21:18:00 -07:00
strings = [
["rod"], ["rods"]
]
2023-06-12 22:56:04 -07:00
base_value_type = "exact"
base_value = "5.0292"
base_units = [ { u = "Meter", p = 1} ]
2023-06-12 15:01:44 -07:00
[[unit]]
enum_name = "Mile"
2023-06-13 21:18:00 -07:00
strings = [
["mi"], ["mile"], ["miles"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "1609.344"
base_units = [ { u = "Meter", p = 1} ]
[[unit]]
enum_name = "AstronomicalUnit"
2023-06-13 21:18:00 -07:00
strings = [
["au"], ["AU"], ["astronomicalUnit"], ["astronomicalUnits"],
["astronomicalunit"], ["astronomicalunits"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "149597870700"
base_units = [ { u = "Meter", p = 1} ]
[[unit]]
enum_name = "Lightyear"
2023-06-13 21:18:00 -07:00
strings = [
["ly"], ["lightyear"], ["lightyears"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "9460730472580800"
base_units = [ { u = "Meter", p = 1} ]
[[unit]]
enum_name = "Parsec"
2023-06-13 21:18:00 -07:00
strings = [
["pc"], ["parsec"], ["parsecs"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "3.085677581e16"
base_units = [ { u = "Meter", p = 1} ]
# Area units
[[unit]]
enum_name = "Barn"
2023-06-13 21:18:00 -07:00
strings = [
["barn"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "1e-28"
base_units = [ { u = "Meter", p = 2} ]
[[unit]]
enum_name = "Hectare"
2023-06-13 21:18:00 -07:00
strings = [
["ha"], ["hectare"], ["hectares"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "10000"
base_units = [ { u = "Meter", p = 2} ]
[[unit]]
enum_name = "Acre"
2023-06-13 21:18:00 -07:00
strings = [
["acre"], ["acres"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "4046.8564224"
base_units = [ { u = "Meter", p = 2} ]
# Volume units
[[unit]]
enum_name = "Liter"
2023-06-13 21:18:00 -07:00
strings = [
["l", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["L", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["liter"], ["liters"], ["litre"], ["litres"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "0.001"
base_units = [ { u = "Meter", p = 3} ]
[[unit]]
enum_name = "USGallon"
2023-06-13 21:18:00 -07:00
strings = [
["gal"], ["gals"], ["usgal"], ["gallon"], ["gallons"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "0.003785411784"
base_units = [ { u = "Meter", p = 3} ]
[[unit]]
enum_name = "Quart"
2023-06-13 21:18:00 -07:00
strings = [
["qt"], ["quart"], ["quarts"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "0.000946352946"
base_units = [ { u = "Meter", p = 3} ]
[[unit]]
enum_name = "ImperialGallon"
2023-06-13 21:18:00 -07:00
strings = [
["impgal"], ["imperialGallon"], ["imperialGallons"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "0.00454609"
base_units = [ { u = "Meter", p = 3} ]
[[unit]]
enum_name = "Hogshead"
2023-06-13 21:18:00 -07:00
strings = [
["hogshead"], ["hogsheads"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "0.2385" # 63 gallons
base_units = [ { u = "Meter", p = 3} ]
[[unit]]
enum_name = "Cup"
2023-06-13 21:18:00 -07:00
strings = [
["cup"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "0.0002365882365"
base_units = [ { u = "Meter", p = 3} ]
[[unit]]
enum_name = "Floz"
2023-06-13 21:18:00 -07:00
strings = [
["floz"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "0.0000295735295625"
base_units = [ { u = "Meter", p = 3} ]
[[unit]]
enum_name = "Pint"
2023-06-13 21:18:00 -07:00
strings = [
["pint"], ["pints"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "0.00056826125"
base_units = [ { u = "Meter", p = 3} ]
[[unit]]
enum_name = "Tablespoon"
2023-06-13 21:18:00 -07:00
strings = [
["tbsp"], ["Tbsp"], ["tablespoon"], ["Tablespoon"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "0.00001478676478125"
base_units = [ { u = "Meter", p = 3} ]
[[unit]]
enum_name = "Teaspoon"
2023-06-13 21:18:00 -07:00
strings = [
["tsp"], ["Tsp"], ["teaspoon"], ["teaspoons"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "0.000005"
base_units = [ { u = "Meter", p = 3} ]
# Pressure units
[[unit]]
enum_name = "Pascal"
2023-06-13 21:18:00 -07:00
strings = [
["Pa", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["pascal"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "1000"
base_units = [ { u = "Gram", p = 1}, { u = "Meter", p = -1}, { u = "Second", p = -2} ]
[[unit]]
enum_name = "Atmosphere"
2023-06-13 21:18:00 -07:00
strings = [
["atm"], ["atmosphere"], ["atmospheres"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "101325000"
base_units = [ { u = "Gram", p = 1}, { u = "Meter", p = -1}, { u = "Second", p = -2} ]
[[unit]]
enum_name = "Bar"
2023-06-13 21:18:00 -07:00
strings = [
["bar", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "100000000"
base_units = [ { u = "Gram", p = 1}, { u = "Meter", p = -1}, { u = "Second", p = -2} ]
[[unit]]
enum_name = "Barye"
2023-06-13 21:18:00 -07:00
strings = [
["Ba"], ["Barye"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "100"
base_units = [ { u = "Gram", p = 1}, { u = "Meter", p = -1}, { u = "Second", p = -2} ]
[[unit]]
enum_name = "Psi"
2023-06-13 21:18:00 -07:00
strings = [
["psi"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "6894757.2931783"
base_units = [ { u = "Gram", p = 1}, { u = "Meter", p = -1}, { u = "Second", p = -2} ]
[[unit]]
enum_name = "MillimeterMercury"
2023-06-13 21:18:00 -07:00
strings = [
["mmhg"], ["mmHg"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "133322.387415"
base_units = [ { u = "Gram", p = 1}, { u = "Meter", p = -1}, { u = "Second", p = -2} ]
[[unit]]
enum_name = "Torr"
2023-06-13 21:18:00 -07:00
strings = [
["torr"], ["Torr"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "fract"
base_value = [101325000, 760]
base_units = [ { u = "Gram", p = 1}, { u = "Meter", p = -1}, { u = "Second", p = -2} ]
[[unit]]
enum_name = "MeterSeaWater"
2023-06-13 21:18:00 -07:00
strings = [
["MSW"], ["msw"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "10000000"
base_units = [ { u = "Gram", p = 1}, { u = "Meter", p = -1}, { u = "Second", p = -2} ]
[[unit]]
enum_name = "FootSeaWater"
2023-06-13 21:18:00 -07:00
strings = [
["FSW"], ["fsw"]
]
2023-06-12 15:01:44 -07:00
base_value_type = "exact"
base_value = "3064330"
2023-06-12 19:37:16 -07:00
base_units = [ { u = "Gram", p = 1}, { u = "Meter", p = -1}, { u = "Second", p = -2} ]
# Electrical, Power, Etc
[[unit]]
enum_name = "Gauss"
2023-06-13 21:18:00 -07:00
strings = [
["G"], ["gauss"]
]
2023-06-12 19:37:16 -07:00
base_value_type = "exact"
base_value = "0.1"
base_units = [ { u = "Gram", p = 1}, { u = "Second", p = -2}, { u = "Ampere", p = -1} ]
[[unit]]
enum_name = "Tesla"
2023-06-13 21:18:00 -07:00
strings = [
["T", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["tesla"]
]
2023-06-12 19:37:16 -07:00
base_value_type = "exact"
base_value = "1000"
base_units = [ { u = "Gram", p = 1}, { u = "Second", p = -2}, { u = "Ampere", p = -1} ]
[[unit]]
enum_name = "Joule"
2023-06-13 21:18:00 -07:00
strings = [
["J", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["joule"], ["joules"]
]
2023-06-12 19:37:16 -07:00
base_value_type = "exact"
base_value = "1000"
base_units = [ { u = "Gram", p = 1}, { u = "Second", p = -2}, { u = "Meter", p = 2} ]
2023-06-12 22:56:04 -07:00
[[unit]]
enum_name = "Calorie"
2023-06-13 21:18:00 -07:00
strings = [
2023-06-13 21:24:00 -07:00
["cal", "","k"],
["calorie"], ["calories"]
2023-06-13 21:18:00 -07:00
]
2023-06-12 22:56:04 -07:00
base_value_type = "exact"
base_value = "4184"
base_units = [ { u = "Gram", p = 1}, { u = "Second", p = -2}, { u = "Meter", p = 2} ]
[[unit]]
enum_name = "BTU"
2023-06-13 21:18:00 -07:00
strings = [
["btu"], ["BTU"]
]
2023-06-12 22:56:04 -07:00
base_value_type = "exact"
base_value = "1055100"
base_units = [ { u = "Gram", p = 1}, { u = "Second", p = -2}, { u = "Meter", p = 2} ]
2023-06-12 19:37:16 -07:00
[[unit]]
enum_name = "Hertz"
2023-06-13 21:18:00 -07:00
strings = [
["Hz", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["hertz"], ["Hertz"]
]
2023-06-12 19:37:16 -07:00
base_value_type = "exact"
base_value = "1"
base_units = [ { u = "Second", p = -1} ]
[[unit]]
enum_name = "Ohm"
2023-06-13 21:18:00 -07:00
strings = [
["Ω", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["ohm", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["ohms", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"]
]
2023-06-12 19:37:16 -07:00
base_value_type = "exact"
base_value = "1000"
base_units = [ { u = "Gram", p = 1}, { u = "Meter", p = 2}, { u = "Ampere", p = -2}, { u = "Second", p = -3} ]
[[unit]]
enum_name = "Siemens"
2023-06-13 21:18:00 -07:00
strings = [
["S", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["℧"], ["mho"], ["mhos"], ["siemens"]
]
2023-06-12 19:37:16 -07:00
base_value_type = "exact"
base_value = "0.001"
base_units = [ { u = "Gram", p = -1}, { u = "Meter", p = -2}, { u = "Ampere", p = 2}, { u = "Second", p = 3} ]
[[unit]]
enum_name = "Coulomb"
2023-06-13 21:18:00 -07:00
strings = [
["C", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["coulomb"], ["coulombs"]
]
2023-06-12 19:37:16 -07:00
base_value_type = "exact"
base_value = "0.001"
base_units = [ { u = "Ampere", p = 1}, { u = "Second", p = 1} ]
[[unit]]
enum_name = "Watt"
2023-06-13 21:18:00 -07:00
strings = [
["W", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["watt"], ["Watt"], ["Watts"], ["watts"]
]
2023-06-12 19:37:16 -07:00
base_value_type = "exact"
base_value = "1000"
base_units = [ { u = "Gram", p = 1}, { u = "Meter", p = 2}, { u = "Second", p = -3} ]
[[unit]]
enum_name = "Volt"
2023-06-13 21:18:00 -07:00
strings = [
["V", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["volt"], ["volts"]
]
2023-06-12 19:37:16 -07:00
base_value_type = "exact"
base_value = "1000"
base_units = [ { u = "Gram", p = 1}, { u = "Meter", p = 2}, { u = "Second", p = -3}, { u = "Ampere", p = -1} ]
[[unit]]
enum_name = "Henry"
2023-06-13 21:18:00 -07:00
strings = [
["H", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["henry"], ["henries"], ["henrys"], ["Henry"], ["Henries"], ["Henrys"]
]
2023-06-12 19:37:16 -07:00
base_value_type = "exact"
base_value = "1000"
base_units = [ { u = "Gram", p = 1}, { u = "Meter", p = 2}, { u = "Second", p = -2}, { u = "Ampere", p = -2} ]
[[unit]]
enum_name = "Farad"
2023-06-13 21:18:00 -07:00
strings = [
["F", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["farad"], ["Farad"], ["farads"], ["Farads"]
]
2023-06-12 19:37:16 -07:00
base_value_type = "exact"
base_value = "0.001"
base_units = [ { u = "Gram", p = -1}, { u = "Meter", p = -2}, { u = "Second", p = 4}, { u = "Ampere", p = 2} ]
[[unit]]
enum_name = "ElectronVolt"
2023-06-13 21:18:00 -07:00
strings = [
["eV", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["electronvolt"], ["electronVolt"]
]
2023-06-12 19:37:16 -07:00
base_value_type = "exact"
base_value = "1.602176634e-16"
base_units = [ { u = "Gram", p = 1}, { u = "Second", p = -2}, { u = "Meter", p = 2} ]
[[unit]]
enum_name = "Weber"
2023-06-13 21:18:00 -07:00
strings = [
["Wb", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["weber"]
]
2023-06-12 19:37:16 -07:00
base_value_type = "exact"
base_value = "1000"
2023-06-12 22:56:04 -07:00
base_units = [ { u = "Gram", p = 1}, { u = "Meter", p = 2}, { u = "Second", p = -2}, { u = "Ampere", p = -1} ]
# Mass and Force
[[unit]]
enum_name = "Tonne"
2023-06-13 21:18:00 -07:00
strings = [
2023-06-13 21:24:00 -07:00
["t", "","k","M","G"],
["tonne"], ["tonnes"], ["ton"], ["tons"]
2023-06-13 21:18:00 -07:00
]
2023-06-12 22:56:04 -07:00
base_value_type = "exact"
base_value = "1000000"
base_units = [ { u = "Gram", p = 1} ]
[[unit]]
enum_name = "Ounce"
2023-06-13 21:18:00 -07:00
strings = [
["oz"], ["ounce"], ["ounces"]
]
2023-06-12 22:56:04 -07:00
base_value_type = "exact"
base_value = "28.349523125"
base_units = [ { u = "Gram", p = 1} ]
[[unit]]
enum_name = "Pound"
2023-06-13 21:18:00 -07:00
strings = [
["lb"], ["lbs"], ["pound"], ["pounds"]
]
2023-06-12 22:56:04 -07:00
base_value_type = "exact"
base_value = "453.59237"
base_units = [ { u = "Gram", p = 1} ]
[[unit]]
enum_name = "PoundForce"
2023-06-13 21:18:00 -07:00
strings = [
["lbf"], ["poundforce"]
]
2023-06-12 22:56:04 -07:00
base_value_type = "exact"
base_value = "4448.2216152605"
base_units = [ { u = "Gram", p = 1}, { u = "Meter", p = 1}, { u = "Second", p = -2} ]
[[unit]]
enum_name = "Newton"
2023-06-13 21:18:00 -07:00
strings = [
["N", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["newton"], ["newtons"], ["Newton"], ["Newtons"]
]
2023-06-12 22:56:04 -07:00
base_value_type = "exact"
base_value = "1000"
base_units = [ { u = "Gram", p = 1}, { u = "Meter", p = 1}, { u = "Second", p = -2} ]
# Misc Units
[[unit]]
enum_name = "Katal"
2023-06-13 21:18:00 -07:00
strings = [
["kat", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["katal"]
]
2023-06-12 22:56:04 -07:00
base_value_type = "exact"
base_value = "1"
base_units = [ { u = "Mole", p = 1}, { u = "Second", p = -1} ]
2023-06-13 09:12:45 -07:00
[[unit]]
enum_name = "Degree"
2023-06-13 21:18:00 -07:00
strings = [
["°"], ["deg"], ["degree"], ["degrees"]
]
2023-06-13 09:12:45 -07:00
base = true
no_space = true
[[unit]]
enum_name = "Radian"
2023-06-13 21:18:00 -07:00
strings = [
["r"], ["radian"], ["radians"]
]
2023-06-13 09:12:45 -07:00
base_value_type = "approx"
base_value = "57.295779513"
base_units = [ { u = "Degree", p = 1} ]
[[unit]]
enum_name = "RPM"
2023-06-13 21:18:00 -07:00
strings = [
["rpm"]
]
2023-06-13 09:12:45 -07:00
base_value_type = "exact"
base_value = "360"
base_units = [ { u = "Degree", p = 1}, { u = "Second", p = -1} ]
2023-06-12 22:56:04 -07:00
# Radioactivity
[[unit]]
enum_name = "Becquerel"
2023-06-13 21:18:00 -07:00
strings = [
["Bq", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["becquerel"]
]
2023-06-12 22:56:04 -07:00
base_value_type = "exact"
base_value = "1"
base_units = [ { u = "Second", p = -1} ]
2023-06-13 09:12:45 -07:00
2023-06-12 22:56:04 -07:00
[[unit]]
enum_name = "Gray"
2023-06-13 21:18:00 -07:00
strings = [
["Gy", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["gray"]
]
2023-06-12 22:56:04 -07:00
base_value_type = "exact"
base_value = "1"
base_units = [ { u = "Meter", p = 2}, { u = "Second", p = -2} ]
2023-06-13 09:12:45 -07:00
2023-06-12 22:56:04 -07:00
[[unit]] # Not radian, radioactivity unit
enum_name = "Rad"
2023-06-13 21:18:00 -07:00
strings = [
["rad", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
]
2023-06-12 22:56:04 -07:00
base_value_type = "exact"
base_value = "0.01"
2023-06-13 09:12:45 -07:00
base_units = [ { u = "Meter", p = 2}, { u = "Second", p = -2} ]
# Computing, Information
[[unit]]
enum_name = "Bit"
2023-06-13 21:18:00 -07:00
strings = [
["bit"], ["bits"]
]
2023-06-13 09:12:45 -07:00
base = true
[[unit]]
enum_name = "Frame"
2023-06-13 21:18:00 -07:00
strings = [
["frame"], ["frames"]
]
2023-06-13 09:12:45 -07:00
base = true
[[unit]]
enum_name = "Pixel"
2023-06-13 21:18:00 -07:00
strings = [
["px"], ["pixel"], ["pixels"], ["Pixel"], ["Pixels"]
]
2023-06-13 09:12:45 -07:00
base = true
[[unit]]
enum_name = "Dot"
2023-06-13 21:18:00 -07:00
strings = [
["dot"], ["dots"]
]
2023-06-13 09:12:45 -07:00
base = true
[[unit]]
enum_name = "Byte"
2023-06-13 21:18:00 -07:00
strings = [
["B", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["b", "","Q","R","Y","Z","E","P","T","G","M","k","h","da","d","c","m","u","n","p","f","a","z","y","r","q"],
["B", "Ei","Pi","Ti","Gi","Mi","Ki"],
["b", "Ei","Pi","Ti","Gi","Mi","Ki"],
["Bytes"], ["bytes"], ["Byte"], ["byte"], ["Octet"], ["Octets"], ["octets"], ["octet"]
]
2023-06-13 09:12:45 -07:00
base_value_type = "exact"
base_value = "8"
base_units = [ { u = "Bit", p = 1} ]