""" Common unit definitions for chemistry, physics, and mathematics. Contains: - COMMON_UNITS: Set of common units that should be formatted as \\mathrm{unit} Includes: chemistry units, SI base units, SI derived units, non-SI units, angular units, time units, concentration units, biological units """ # Common units that should be formatted as ~\mathrm{unit}~ (with preceding and trailing space) COMMON_UNITS = { # Chemistry units 'mol', 'M', 'mM', 'µM', 'nM', 'pM', 'pH', 'pOH', 'atm', 'bar', 'Torr', 'eq', 'aq', 'sol', 'ppm', 'ppb', 'vol', 'wt', # SI base units 'kg', 'g', 'mg', 'µg', 'ng', 'pg', 'ton', 'tonne', 'm', 'km', 'cm', 'mm', 'µm', 'nm', 'pm', 'Å', 's', 'ms', 'µs', 'ns', 'ps', 'min', 'h', 'hr', 'day', 'A', 'mA', 'µA', 'nA', 'pA', 'K', 'mK', 'µK', 'nK', 'cd', 'lm', 'lx', # SI derived units 'Hz', 'kHz', 'MHz', 'GHz', 'THz', 'N', 'kN', 'MN', 'µN', 'nN', 'pN', 'Pa', 'kPa', 'MPa', 'GPa', 'hPa', 'mbar', 'J', 'kJ', 'MJ', 'µJ', 'nJ', 'pJ', 'mJ', 'W', 'kW', 'MW', 'GW', 'mW', 'µW', 'nW', 'pW', 'C', 'mC', 'µC', 'nC', 'pC', 'V', 'kV', 'MV', 'mV', 'µV', 'nV', 'F', 'mF', 'µF', 'nF', 'pF', 'Ω', 'kΩ', 'MΩ', 'GΩ', 'mΩ', 'µΩ', 'S', 'mS', 'µS', 'nS', 'Wb', 'mWb', 'µWb', 'nWb', 'T', 'mT', 'µT', 'nT', 'pT', 'H', 'mH', 'µH', 'nH', 'pH', # Common non-SI units 'L', 'mL', 'µL', 'nL', 'pL', 'dL', 'cL', '°C', '°F', '°K', 'celsius', 'fahrenheit', 'kelvin', 'eV', 'keV', 'MeV', 'GeV', 'TeV', 'meV', 'µeV', 'cal', 'kcal', 'Cal', 'Bq', 'kBq', 'MBq', 'GBq', 'mBq', 'Gy', 'mGy', 'µGy', 'kGy', 'Sv', 'mSv', 'µSv', 'kSv', # Angular units 'rad', 'mrad', 'µrad', 'sr', 'deg', 'arcmin', 'arcsec', # Time units 'ms', 'µs', 'ns', 'ps', 'fs', 'as', 'year', 'yr', 'month', 'week', 'day', 'hr', 'min', # Concentration and biological units 'IU', 'U', 'unit', 'units', 'Da', 'kDa', 'MDa', 'bp', 'kbp', 'Mbp', 'kb', 'Mb', 'Gb', 'rpm', 'rps', 'Hz', 'cps', # Physics constants (when used as units) 'c', 'h', 'ħ', 'kB', 'NA', 'R', 'σ', 'ε₀', 'μ₀', }