pax_global_header 0000666 0000000 0000000 00000000064 13635744055 0014526 g ustar 00root root 0000000 0000000 52 comment=95ab355099720dd33a61122b458260b0fbfb3e9d
ConvertAll-0.8.0/ 0000775 0000000 0000000 00000000000 13635744055 0013604 5 ustar 00root root 0000000 0000000 ConvertAll-0.8.0/.gitignore 0000664 0000000 0000000 00000000051 13635744055 0015570 0 ustar 00root root 0000000 0000000 *.pyc
*~
*.swp
*/__pycache__/
*.hgignore
ConvertAll-0.8.0/README.md 0000664 0000000 0000000 00000001157 13635744055 0015067 0 ustar 00root root 0000000 0000000 # What is ConvertAll?
Why write another unit converter? There are plenty of them out there. Well, I
couldn't find one that worked quite the way I wanted.
With ConvertAll, you can combine the units any way you want. If you want to
convert from inches per decade, that's fine. Or from meter-pounds. Or from
cubic nautical miles. The units don't have to make sense to anyone else.
# More Info
See the [ConvertAll homepage](http://convertall.bellz.org) for more info.
There is also an [online version](http://convertall-js.bellz.org), written in
JavaScript (see the doug-101/ConvertAll-js repository for the source code).
ConvertAll-0.8.0/convertall.desktop 0000664 0000000 0000000 00000000343 13635744055 0017350 0 ustar 00root root 0000000 0000000 [Desktop Entry]
Type=Application
Version=1.1
Name=ConvertAll
GenericName=Unit Converter
Comment=a flexible unit converter
Exec=convertall
Icon=convertall-icon
StartupNotify=true
Terminal=false
Categories=Math;Science;Education
ConvertAll-0.8.0/data/ 0000775 0000000 0000000 00000000000 13635744055 0014515 5 ustar 00root root 0000000 0000000 ConvertAll-0.8.0/data/units.dat 0000664 0000000 0000000 00000077474 13635744055 0016374 0 ustar 00root root 0000000 0000000 #*****************************************************************************
#units.dat, the units data file, version 0.7.3
#
# ConvertAll, a units conversion program
# Copyright (C) 2020, Douglas W. Bell
#
# This is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License, Version 2. This program is
# distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.
#*****************************************************************************
#
# Units are defined by an optional quantity and an equivalent unit or unit
# combination. A Python expression may be used for the quantity, but is
# restricted to using only the following operators: *, /, +, -.
# Beware of integer division truncation: be sure to use a float for at least
# one of the values.
#
# The unit type must be placed in square brackets before a set of units. The
# first comment after the equivalent unit will be put in parenthesis after the
# unit name (usually used to give the full name of an abbreviated unit). The
# next comment will be used in the program list's comment column; later
# comments and full line comments are ignored.
#
# Non-linear units are indicated with an equivalent unit in square brackets,
# followed by either equations or equivalency lists for the definition. For
# equations, two are given, separated by a ';'. Both are functions of "x", the
# first going from the unit to the equivalent unit and the second one in
# reverse. Any valid Python expression returning a float (including the
# functions in the math module) should work. The equivalency list is a Python
# list of tuples giving points for linear interpolation.
#
# All units must reduce to primitive units, which are indicated by an
# equivalent unit starting with '!'. A special "unitless" primitve unit
# (usualty called "unit") has '!!' for an equivalent unit. Circular references
# must also be avoided.
#
# Primitive units: kg, m, s, K, A, mol, cd, rad, sr, bit, unit
#
##############################################################################
#
# mass units
#
[mass]
kg = ! # kilogram
kilogram = kg
key = kg # # drug slang
hectogram = 100 gram
dekagram = 10 gram
gram = 0.001 kg
g = gram # gram
decigram = 0.1 gram
centigram = 0.01 gram
milligram = 0.001 gram
mg = milligram # milligram
microgram = 0.001 mg
tonne = 1000 kg # # metric
metric ton = tonne
megagram = tonne
kilotonne = 1000 tonne # # metric
gigagram = 1e9 gram
teragram = 1e12 gram
carat = 0.2 gram
ct = carat # carat
amu = 1.660539066605e-27 kg # atomic mass
atomic mass unit = amu
dalton = amu # # atomic mass
Da = amu # dalton # atomic mass
pound = 0.45359237 kg # # avoirdupois
lb = pound # pound # avoirdupois
lbm = pound # pound # avoirdupois
ounce = 1/16.0 pound # # avoirdupois
oz = ounce # ounce # avoirdupois
lid = ounce # # drug slang
dram = 1/16.0 ounce # # avoirdupois
pound troy = 5760 grain
lb troy = pound troy # pound troy
ounce troy = 1/12.0 lb troy
oz troy = ounce troy # ounce troy
ton = 2000 lb # # non-metric
kiloton = 1000 ton # # non-metric
long ton = 2240 lb # # Imperial
ton imperial = long ton
slug = lbf*s^2/ft
stone = 14 lb
grain = 1/7000.0 lb
pennyweight = 24 grain
hundredweight long = 112 lb # # Imperial
hundredweight short = 100 lb # # US & Canada
solar mass = 1.9891e30 kg
#
# length / distance units
#
[length]
m = ! # meter
meter = m
metre = m
dm = 0.1 m # decimeter
decimeter = dm
cm = 0.01 m # centimeter
centimeter = cm
mm = 0.001 m # millimeter
millimeter = mm
micrometer = 1e-6 m
micron = micrometer
nanometer = 1e-9 m
nm = nanometer # nanometer
dekameter = 10 m
hectometer = 100 m
km = 1000 m # kilometer
kilometer = km
megameter = 1000 km
angstrom = 1e-10 m
fermi = 1e-15 m # # nuclear sizes
inch = 2.54 cm
in = inch # inch
inches = inch
mil = 0.001 inch
microinch = 1e-6 inch
microinches = microinch
foot = 12 inch
ft = foot # foot
feet = foot
foot US survey = 1200/3937.0 m
Cape foot = 1.033 foot
yard = 3 ft
yd = yard # yard
mile = 5280 ft # # statute mile
mi = mile # mile # statute mile
nautical mile = 1852 m
nmi = nautical mile # nautical mile
mile US survey = 5280 foot US survey
league = 3 mile
chain = 66 ft
chain US survey = 66 foot US survey
link = 0.01 chain
fathom = 6 ft
cable = 0.1 nautical mile
rod = 5.5 yard
furlong = 40 rod
hand = 4 inch
cubit = 21.8 inch # # biblical unit
point = 1/72.0 inch # # desktop publishing point
pica = 12 point
caliber = 1.0 inch # # bullet sizes
rack unit = 1.75 in # # computing
smoot = 67 inch
football field = 100 yd
marathon = 46145 yd
mil Swedish = 10 km
versta = 3500 ft # # Russian unit
au = 1.495978707e11 m # astronomical unit
astronomical unit = au
LD = 384400 km # lunar distance # astronomical
lunar distance = LD # # astronomical distance
light year = 365.25 light speed * day
light minute = light speed * min
light second = light speed * s
parsec = 648000 au/pi
kiloparsec = 1000 parsec
megaparsec = 1000 kiloparsec
screw size = [in] 0.013*x + 0.06 ; (x - 0.06) / 0.013 \
# # Unified diameters, non-linear
AWG Dia = [in] pow(92.0,(36-x)/39.0)/200.0 ; \
36 - 39.0*log(200.0*x)/log(92.0) \
# American Wire Gauge \
# use -1, -2 for 00, 000; non-linear
American Wire Gauge Dia = [in] pow(92.0,(36-x)/39.0)/200.0 ; \
36 - 39.0*log(200.0*x)/log(92.0) \
# # use -1, -2 for 00, 000; non-linear
British Std Wire Gauge = [in] [(-6, .500), (-5, .464), (-3, .400), \
(-2, .372), (3, .252), (6, .192), (10, .128), \
(14, .080), (19, .040), (23, .024), (26, .018), \
(28, .0148), (30, .0124), (39, .0052), \
(49, .0012), (50, .001)] \
# # use -1, -2 for 2/0, 3/0; non-linear
standard gauge = [in] [(-5, .448350), (1, .269010), (14, .0747250), \
(16, .0597800), (17, .0538020), (20, .0358680), \
(26, .0179340), (31, .0104615), (36, .00672525), \
(38, .00597800)] # steel \
# Manufacturers Std. Gauge, non-linear
zinc gauge = [in] [(1, .002), (10, .02), (15, .04), (19, .06), \
(23, .1), (24, .125), (27, .5), (28, 1)] \
# # sheet metal thickness, non-linear
ring size = [in] 0.1018*x + 1.4216 ; (x - 1.4216) / 0.1018 \
# # US size, circum., non-linear
shoe size mens = [in] x/3.0 + 7 + 1/3.0 ; (x - 7 - 1/3.0) * 3 \
# # US sizes, non-linear
shoe size womens = [in] x/3.0 + 6 + 5/6.0 ; (x - 6 - 5/6.0) * 3 \
# # US sizes, non-linear
drill bit size = [in] [(104,0.0031), (103,0.0035), (102,0.0039), \
(101,0.0043), (100,0.0047), (99,0.0051), \
(98,0.0055), (97,0.0059), (96,0.0063), \
(95,0.0067), (94,0.0071), (93,0.0075), \
(92,0.0079), (91,0.0083), (90,0.0087), \
(89,0.0091), (88,0.0095), (87,0.01), \
(86,0.0105), (85,0.011), (84,0.0115), \
(83,0.012), (82,0.0125), (81,0.013), \
(80,0.0135), (79,0.0145), (78,0.016), \
(77,0.018), (76,0.02), (75,0.021), \
(74,0.0225), (73,0.024), (72,0.025), \
(71,0.026), (70,0.028), (69,0.0292), \
(68,0.031), (67,0.032), (66,0.033), \
(65,0.035), (64,0.036), (63,0.037), \
(62,0.038), (61,0.039), (60,0.04), \
(59,0.041), (58,0.042), (57,0.043), \
(56,0.0465), (55,0.052), (54,0.055), \
(53,0.0595), (52,0.0635), (51,0.067), \
(50,0.07), (49,0.073), (48,0.076), \
(47,0.0785), (46,0.081), (45,0.082), \
(44,0.086), (43,0.089), (42,0.0935), \
(41,0.096), (40,0.098), (39,0.0995), \
(38,0.1015), (37,0.104), (36,0.1065), \
(35,0.11), (34,0.111), (33,0.113), \
(32,0.116), (31,0.12), (30,0.1285), \
(29,0.136), (28,0.1405), (27,0.144), \
(26,0.147), (25,0.1495), (24,0.152), \
(23,0.154), (22,0.157), (21,0.159), \
(20,0.161), (19,0.166), (18,0.1695), \
(17,0.173), (16,0.177), (15,0.18), \
(14,0.182), (13,0.185), (12,0.189), \
(11,0.191), (10,0.1935), (9,0.196), \
(8,0.199), (7,0.201), (6,0.204), \
(5,0.2055), (4,0.209), (3,0.213), \
(2,0.221), (1,0.228)] \
# # American drill bit gauge, non-linear
#
# time units
#
[time]
s = ! # second
sec = s # second
second = s
ms = 0.001 s # millisecond
millisecond = ms
microsecond = 1e-6 s
ns = 1e-9 s # nanosecond
nanosecond = ns
minute = 60 s
min = minute # minute
hour = 60 min
hr = hour # hour
bell = 30 min # # naval definition
watch = 4 hour
watches = watch
day = 24 hr
week = 7 day
wk = week # week
fortnight = 14 day
month = 1/12.0 year
year = 365.242198781 day
yr = year # year
calendar year = 365 day
decade = 10 year
century = 100 year
centuries = century
millennium = 1000 year
millennia = millennium
[scheduling]
man hour = 168/40.0 hour
man week = 40 man hour
man month = 1/12.0 man year
man year = 52 man week
#
# temperature
#
[temperature]
K = ! # Kelvin
Kelvin = K
deg K = K # Kelvin
degree Kelvin = K
C = [K] x + 273.15 ; x - 273.15 # Celsius # non-linear
Celsius = [K] x + 273.15 ; x - 273.15 # # non-linear
deg C = [K] x + 273.15 ; x - 273.15 # Celsius # non-linear
degree Celsius = [K] x + 273.15 ; x - 273.15 # # non-linear
R = 5/9.0 K # Rankine
Rankine = R
deg R = R # Rankine
F = [R] x + 459.67 ; x - 459.67 # Fahrenheit # non-linear
Fahrenheit = [R] x + 459.67 ; x - 459.67 # # non-linear
deg F = [R] x + 459.67 ; x - 459.67 # Fahrenheit # non-linear
degree Fahrenheit = [R] x + 459.67 ; x - 459.67 # # non-linear
[temp. diff.]
C deg = K # Celsius degree
Celsius degree = C deg
F deg = R # Fahrenheit deg.
Fahrenheit degree = F deg
#
# electrical units
#
[current]
A = ! # ampere
ampere = A
amp = A
milliampere = 0.001 A
milliamp = milliampere
mA = milliampere # milliampere
microampere = 0.001 mA
kiloampere = 1000 A
kA = kiloampere # kiloampere
[charge]
coulomb = A*s
amp hour = A*hr
mAh = 0.001 amp hour # milliamp hour
milliamp hour = mAh
[potential]
volt = W/A
V = volt # volt
millivolt = 0.001 volt
mV = millivolt # millivolt
kilovolt = 1000 volt
kV = kilovolt # kilovolt
[resistance]
ohm = V/A
milliohm = 0.001 ohm
microhm = 0.001 milliohm
kilohm = 1000 ohm
[conductance]
siemens = A/V
[capacitance]
farad = coulomb/V
millifarad = 0.001 farad
microfarad = 0.001 millifarad
nanofarad = 1e-9 farad
picofarad = 1e-12 farad
[magn. flux]
weber = V*s
Wb = weber # weber
maxwell = 1e-8 Wb
[inductance]
henry = Wb/A
H = henry # henry
millihenry = 0.001 henry
mH = millihenry # millihenry
microhenry = 0.001 mH
[flux density]
tesla = Wb/m^2
T = tesla # tesla
gauss = maxwell/cm^2
#
# molecular units
#
[molecular qty]
mol = ! # mole # gram mole
mole = mol # # gram mole
gram mole = mol
kilomole = 1000 mol
kmol = kilomole # kilomole
pound mole = mol*lbm/gram
lbmol = pound mole # pound mole
[size of a mol]
avogadro = gram/(amu*mol)
#
# Illumination units
#
[lum. intens.]
cd = ! # candela
candela = cd
[luminous flux]
lumen = cd * sr
lm = lumen # lumen
[illuminance]
lux = lumen/m^2
footcandle = lumen/ft^2
metercandle = lumen/m^2
[luminance]
lambert = cd/(pi*cm^2)
millilambert = 0.001 lambert
footlambert = cd/(pi*ft^2)
#
# angular units
#
[angle]
radian = !
rad = radian # radian
circle = 2 pi*radian
turn = circle
revolution = circle
rev = revolution # revolution
degree = 1/360.0 circle
deg = degree # degree
arc min = 1/60.0 degree # minute
arc minute = arc min
min arc = arc min # minute
minute arc = arc min
arc sec = 1/60.0 arc min # second
arc second = arc sec
sec arc = arc sec # second
second arc = arc sec
quadrant = 1/4.0 circle
right angle = quadrant
gradian = 0.01 quadrant
#
# solid angle units
#
[solid angle]
sr = ! # steradian
steradian = sr
sphere = 4 pi*sr
hemisphere = 1/2.0 sphere
#
# information units
#
[data]
bit = !
kilobit = 1000 bit # # based on power of 10
megabit = 1000 kilobit # # based on power of 10
gigabit = 1000 megabit # # based on power of 10
terabit = 1000 gigabit # # based on power of 10
byte = 8 bit
B = byte # byte
kilobyte = 1024 byte # # based on power of 2
kB = kilobyte # kilobyte # based on power of 2
megabyte = 1024 kB # # based on power of 2
MB = megabyte # megabyte # based on power of 2
gigabyte = 1024 MB # # based on power of 2
GB = gigabyte # gigabyte # based on power of 2
terabyte = 1024 GB # # based on power of 2
TB = terabyte # terabyte # based on power of 2
petabyte = 1024 TB # # based on power of 2
PB = petabyte # petabyte # based on power of 2
kilobyte SI std = 1000 byte # # based on power of 10
kB SI std = kilobyte SI std # kilobyte # based on power of 10
megabyte SI std = 1000 kB SI std # # based on power of 10
MB SI std = megabyte SI std # megabyte # based on power of 10
gigabyte SI std = 1000 MB SI std # # based on power of 10
GB SI std = gigabyte SI std # gigabyte # based on power of 10
terabyte SI std = 1000 GB SI std # # based on power of 10
TB SI std = terabyte SI std # terabyte # based on power of 10
petabyte SI std = 1000 TB SI std # # based on power of 10
PB SI std = petabyte SI std # petabyte # based on power of 10
kibibyte = 1024 byte
KiB = kibibyte # kibibyte
mebibyte = 1024 KiB
MiB = mebibyte # mebibyte
gibibyte = 1024 MiB
GiB = gibibyte # gibibyte
tebibyte = 1024 GiB
TiB = tebibyte # tebibyte
pebibyte = 1024 TiB
PiB = pebibyte # pebibyte
[data transfer]
bps = bit/sec # bits / second
kbps = 1000 bps # kilobits / sec. # based on power of 10
#
# Unitless numbers
#
[quantity]
unit = !!
1 = unit # unit
pi = 3.14159265358979323846 unit
pair = 2 unit
hat trick = 3 unit # # sports
dozen = 12 unit
doz = dozen # dozen
bakers dozen = 13 unit
score = 20 unit
gross = 144 unit
great gross = 12 gross
ream = 500 unit
percent = 0.01 unit
% = percent
mill = 0.001 unit
[interest rate]
APR = [unit] log(1 + x/100) ; (exp(x) - 1)*100 \
# annual % rate # based on continuous compounding
[concentration]
proof = 1/200.0 unit # # alcohol content
ppm = 1e-6 unit # parts per million
parts per million = ppm
ppb = 1e-9 unit # parts per billion
parts per billion = ppb
ppt = 1e-12 unit # parts per trillion
parts per trillion = ppt
karat = 1/24.0 unit # # gold purity
carat gold = karat # # gold purity
#
# force units
#
[force]
newton = kg*m/s^2
N = newton # newton
dekanewton = 10 newton
kilonewton = 1000 N
kN = kilonewton # kilonewton
meganewton = 1000 kN
millinewton = 0.001 N
dyne = cm*g/s^2
kg force = kg * gravity # kilogram f
kgf = kg force # kilogram force
kilogram force = kg force
kp = kg force # kilopond
kilopond = kg force
gram force = g * gravity
pound force = lbm * gravity # # avoirdupois
lbf = pound force # pound force # avoirdupois
ton force = ton * gravity
ounce force = ounce * gravity
ozf = ounce force # ounce force
tonne force = tonne * gravity # # metric
pdl = lbm * ft / sec^2 # poundal # Imperial force
poundal = pdl # # Imperial force
#
# area units
#
[area]
barn = 1e-28 m^2 # # particle physics
are = 100 m^2
decare = 10 are
dekare = 10 are
hectare = 100 are
stremma = 1000 m^2
acre = 10 chain^2
section = mile^2
township = 36 section
homestead = 160 acre
square perch = 30.25 yd^2
rood = 0.25 acre
rai = 1600 m^2 # # Thai
ngaan = 400 m^2 # # Thai
circular inch = 1/4.0 pi*in^2 # # area of 1 inch circle
circular mil = 1/4.0 pi*mil^2 # # area of 1 mil circle
AWG Area = [in^2] pi/4*pow(pow(92.0,(36-x)/39.0)/200.0,2) ; \
36 - 39.0*log(200.0*sqrt(x*4.0/pi))/log(92.0) \
# American Wire Gauge \
# use -1, -2 for 00, 000; non-linear
American Wire Gauge Area = [in^2] pi/4*pow(pow(92.0,(36-x)/39.0)/200.0,2) ; \
36 - 39.0*log(200.0*sqrt(x*4.0/pi))/log(92.0) \
# # use -1, -2 for 00, 000; non-linear
#
# volume units
#
[volume]
cc = cm^3 # cubic centimeter
cubic centimeter = cc
liter = 1000 cc
l = liter # liter
litre = liter
deciliter = 0.1 liter
centiliter = 0.01 liter
milliliter = cc
ml = milliliter # milliliter
microliter = 1e-6 liter
dekaliter = 10 liter
hectoliter = 100 liter
kiloliter = 1000 liter
kl = kiloliter # kiloliter
megaliter = 1000 kiloliter
gallon = 231 in^3 # # US liquid
gal = gallon # gallon # US liquid
quart = 1/4.0 gallon # # US liquid
qt = quart # quart # US liquid
pint = 1/2.0 quart # # US liquid
pt = pint # pint # US liquid
fluid ounce = 1/16.0 pint # # US
fl oz = fluid ounce # fluid ounce # US
ounce fluid = fluid ounce # # US
fluid dram = 1/8.0 fluid ounce # # US
minim = 1/480.0 fluid ounce # # US
imperial gallon = 4.54609 liter
imp gal = imperial gallon # imperial gallon
gallon imperial = imperial gallon
imperial quart = 1/4.0 imp gal
imp qt = imperial quart # imperial quart
quart imperial = imperial quart
imperial pint = 1/8.0 imp gal
imp pt = imperial pint # imperial pint
pint imperial = imperial pint
imperial fluid ounce = 1/160.0 imp gal
imp fl oz = imperial fluid ounce # imperial fluid ounce
imperial fluid dram = 1/8.0 imp fl oz
imperial minim = 1/480.0 imp fl oz
cup = 8 fl oz
tablespoon = 1/16.0 cup
tbsp = tablespoon # tablespoon
teaspoon = 1/3.0 tbsp
tsp = teaspoon # teaspoon
barrel = 42 gallon
bbl = barrel # barrel
shot = 1.5 fl oz
fifth = 1/5.0 gallon # # alcohol
wine bottle = 750 ml
magnum = 1.5 liter # # alcohol
keg = 15.5 gallon # # beer
hogshead wine = 63 gal
hogshead beer = 54 gal
bushel = 2150.42 in^3
peck = 1/4.0 bushel
cord = 128 ft^3
board foot = ft^2*in
board feet = board foot
#
# velocity units
#
[velocity]
knot = nmi/hr
kt = knot # knot
light speed = 2.99792458e8 m/s
mph = mi/hr # miles/hour
kph = km/hr # kilometers/hour
mach = 340.29 m/s # # speed sound at STP
Beaufort wind = [m/s] 0.836 * x**1.5 ; (x / 0.836)**(2/3) \
# # wind speed, non-linear
[rot. velocity]
rpm = rev/min # rev/min
rps = rev/sec # rev/sec
#
# flow rate units
#
[fluid flow]
gph = gal/hr # gallons/hour
gpm = gal/min # gallons/minute
cfs = ft^3/sec # cu ft/second
cfm = ft^3/min # cu ft/minute
lpm = l/min # liter/min
[gas flow]
sccm = atm*cc/min # std cc/min # pressure * flow
sccs = atm*cc/sec # std cc/sec # pressure * flow
slpm = atm*l/min # std liter/min # pressure * flow
slph = atm*l/hr # std liter/hour # pressure * flow
scfh = atm*ft^3/hour # std cu ft/hour # pressure * flow
scfm = atm*ft^3/min # std cu ft/min # pressure * flow
#
# pressure units
#
[pressure]
Pa = N/m^2 # pascal
pascal = Pa
hPa = 100 Pa # hectopascal
hectopascal = hPa
kPa = 1000 Pa # kilopascal
kilopascal = kPa
MPa = 1000 kPa # megapascal
megapascal = MPa
GPa = 1000 MPa # gigapascal
gigapascal = GPa
atm = 101325 Pa # atmosphere
atmosphere = atm
bar = 1e5 Pa
mbar = 0.001 bar # millibar
millibar = mbar
microbar = 0.001 mbar
decibar = 0.1 bar
kilobar = 1000 bar
megabar = 1000 kilobar
mm Hg = mm*density Hg*gravity
millimeter of Hg = mm Hg
torr = mm Hg
micron of Hg = micron*density Hg*gravity
in Hg = in*density Hg*gravity # inch of Hg
inch of Hg = in Hg
m water = m*density water*gravity # meter of H2O # fresh water
m H2O = m water # meter of H2O # fresh water
meter of water = m water # # fresh water
in water = in*density water*gravity # inch of H2O # fresh water
in H2O = in water # inch of H2O # fresh water
inch of water = in water # # fresh water
ft water = ft*density water*gravity # feet of H2O # fresh water
ft H2O = ft water # feet of H20 # fresh water
feet of water = ft water # # fresh water
foot of head = ft water # # fresh water
ft hd = ft water # foot of head # fresh water
psi = lbf/in^2 # pound / sq inch
pound per sq inch = psi
ksi = 1000 psi # 1000 lb / sq inch
#
# density units
#
[density]
density water = gram/cm^3
density sea water = 1.025 gram/cm^3
density Hg = 13.5950981 gram/cm^3
density air = 1.293 kg/m^3 # # at STP
density steel = 0.283 lb/in^3 # # carbon steel
density aluminum = 0.098 lb/in^3
density zinc = 0.230 lb/in^3
density brass = 0.310 lb/in^3 # # 80Cu-20Zn
density copper = 0.295 lb/in^3
density iron = 0.260 lb/in^3 # # cast iron
density nickel = 0.308 lb/in^3
density tin = 0.275 lb/in^3
density titanium = 0.170 lb/in^3
density silver = 0.379 lb/in^3
density nylon = 0.045 lb/in^3
density polycarbonate = 0.045 lb/in^3
#
# energy units
#
[energy]
joule = N*m
J = joule # joule
kilojoule = 1000 joule
kJ = kilojoule # kilojoule
megajoule = 1000 kilojoule
gigajoule = 1000 megajoule
millijoule = 0.001 joule
mJ = millijoule # millijoule
calorie = 4.1868 J
cal = calorie # calorie
kilocalorie = 1000 cal
kcal = kilocalorie # kilocalorie
calorie food = kilocalorie
thermie = 1000 kcal
Btu = cal*lb*R/(g*K) # British thermal unit
British thermal unit = Btu
therm = 100000 Btu
erg = cm*dyne
electronvolt = 1.602176634e-19 J
eV = electronvolt # electronvolt
Ry = 2.179872361103542e-18 J # Rydberg unit
Rydberg unit = Ry
hartree = 2 Ry
kWh = kW*hour # kilowatt-hour
kilowatt hour = kWh
ton TNT = 4.184e9 J
tonne oil equivalent = 41.868 gigajoule
tonne coal equivalent = 7000000 kcal
#
# power units
#
[power]
watt = J/s
W = watt # watt
kilowatt = 1000 W
kW = kilowatt # kilowatt
megawatt = 1000 kW
MW = megawatt # megawatt
gigawatt = 1000 MW
GW = gigawatt # gigawatt
milliwatt = 0.001 W
horsepower = 550 ft*lbf/sec
hp = horsepower # horsepower
metric horsepower = 75 kgf*m/s
ton refrigeration = 12000 Btu/hr
MBH = 1000 Btu/hr # 1000 Btu/hr
boiler horsepower = 33475 Btu/hr
#
# frequency
#
[frequency]
hertz = unit/sec
Hz = hertz # hertz
millihertz = 0.001 Hz
kilohertz = 1000 Hz
kHz = kilohertz # kilohertz
megahertz = 1000 kHz
MHz = megahertz # megahertz
gigahertz = 1000 MHz
GHz = gigahertz # gigahertz
#
# radioactivity
#
[radioactivity]
becquerel = unit/sec
Bq = becquerel # becquerel
curie = 3.7e10 Bq
millicurie = 0.001 curie
roentgen = 2.58e-4 coulomb/kg
[radiation dose]
gray = J/kg
Gy = gray # gray
centigray = 0.01 Gy
rad. abs. dose = 0.01 Gy # # commonly rad
sievert = J/kg # # equiv. dose
millisievert = 0.001 sievert # # equiv. dose
Sv = sievert # sievert # equiv. dose
rem = 0.01 Sv # # roentgen equiv mammal
millirem = 0.001 rem # # roentgen equiv mammal
#
# viscosity
#
[dyn viscosity]
poise = g/(cm*s)
P = poise # poise
centipoise = 0.01 poise
cP = centipoise # centipoise
[kin viscosity]
stokes = cm^2/s
St = stokes # stokes
centistokes = 0.01 stokes
cSt = centistokes # centistokes
#
# misc. units
#
[acceleration]
gravity = 9.80665 m/s^2
galileo = cm/s^2
[constant]
gravity constant = 6.673e-11 N*m^2/kg^2
gas constant = 8.314472 J/(mol*K) # R
Planck constant = 6.62607015e-34 J*s
[fuel consumpt.]
mpg = mi/gal # miles/gallon
mpg imp = mi/gallon imperial # miles/gallon imp
liter per 100 km = [mpg] 3.785411784 / (x * 0.01609344) ; \
3.785411784 / (x * 0.01609344) # # non-linear
[optical power]
diopter = m^-1 # # American spelling
dioptre = diopter # # British spelling
[permeability]
darcy = 1 cm^2*centipoise/atm/s
millidarcy = 0.001 darcy
[thermal resistance]
Rvalue = R*ft^2*hr/Btu
RSI = K*m^2/W # R-value SI
Rvalue SI = RSI
ConvertAll-0.8.0/data/units_ca.dat 0000664 0000000 0000000 00000117130 13635744055 0017017 0 ustar 00root root 0000000 0000000 #*****************************************************************************
#units.dat, the units data file, version 0.7.3
#
# ConvertAll, a units conversion program
# Copyright (C) 2017, Douglas W. Bell
# Copyright (C) 2019, Pere Orga , per la versió catalana.
#
# This is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License, Version 2. This program is
# distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.
#*****************************************************************************
#
# Units are defined by an optional quantity and an equivalent unit or unit
# combination. A Python expression may be used for the quantity, but is
# restricted to using only the following operators: *, /, +, -.
# Beware of integer division truncation: be sure to use a float for at least
# one of the values.
#
# The unit type must be placed in square brackets before a set of units. The
# first comment after the equivalent unit will be put in parenthesis after the
# unit name (usually used to give the full name of an abbreviated unit). The
# next comment will be used in the program list's comment column; later
# comments and full line comments are ignored.
#
# Non-linear units are indicated with an equivalent unit in square brackets,
# followed by either equations or equivalency lists for the definition. For
# equations, two are given, separated by a ';'. Both are functions of "x", the
# first going from the unit to the equivalent unit and the second one in
# reverse. Any valid Python expression returning a float (including the
# functions in the math module) should work. The equivalency list is a Python
# list of tuples giving points for linear interpolation.
#
# All units must reduce to primitive units, which are indicated by an
# equivalent unit starting with '!'. A special "unitless" primitve unit
# (usualty called "unit") has '!!' for an equivalent unit. Circular references
# must also be avoided.
#
# Primitive units: kg, m, s, K, A, mol, cd, rad, sr, bit, unit
#
##############################################################################
#
# unitats de massa
#
[massa]
kg = ! # kilogram
quilogram = kg # kilogram
kilogram = kg
quilo = kg # kilogram
key = kg # # argot de drogues
hectogram = 100 gram
decagram = 10 gram
gram = 0.001 kg
g = gram # gram
decigram = 0.1 gram
centigram = 0.01 gram
mil·ligram = 0.001 gram
mg = mil·ligram # mil·ligram
microgram = 0.001 mg
tona = 1000 kg # # mètrica
tona mètrica = tona
megagram = tona
kilotona = 1000 tona # # mètrica
quilotona = kilotona # kilotona
gigagram = 1e9 gram
teragram = 1e12 gram
quirat = 0.2 gram
ct = quirat # quirat
amu = 1.66053873e-27 kg # # massa atòmica
u = amu # # massa atòmica
dalton = amu # # massa atòmica
Da = amu # dalton
unitat de massa atòmica = amu # # massa atòmica
lliura = 0.45359237 kg # # Països anglosaxons
lb = lliura # lliura # avoirdupois
lbm = lliura # lliura # avoirdupois
unça = 1/16.0 lliura # # avoirdupois
oz = unça # unça # avoirdupois
lid = unça # # argot de drogues
dram = 1/16.0 unça # # avoirdupois
lliura troy = 5760 gra
lb troy = lliura troy # lliura troy
unça troy = 1/12.0 lb troy
oz troy = unça troy # unça troy
tona no mètrica = 2000 lliura
kilotona no mètrica = 1000 ton
tona llarga = 2240 lliura # # imperial
tona imperial = tona llarga
slug = lbf*s^2/ft
stone = 14 lliura
gra = 1/7000.0 lliura
pennyweight = 24 gra
hundredweight llarg = 112 lliura # # Imperial
hundredweight curt = 100 lliura # # Estats Units i Canadà
massa solar = 1.9891e30 kg
lliura catalana = 0.4 kg # # Catalunya
terça = lliura catalana # # Catalunya, carn
arrova = 26 lliura catalana # # Catalunya, Balears
unça catalana = 1/12.0 lliura catalana # # Catalunya
argenç = 1/16.0 unça # # Països Catalans
#
# unitats de longitud
#
[longitud]
m = ! # metre
metre = m
dm = 0.1 m # decímetre
decímetre = dm
cm = 0.01 m # centímetre
centímetre = cm
mm = 0.001 m # mil·límetre
mil·límetre = mm
micròmetre = 1e-6 m
micra = micròmetre # micròmetre
micró = micròmetre # micròmetre
nanòmetre = 1e-9 m
nm = nanòmetre # nanòmetre
decàmetre = 10 m
hectòmetre = 100 m
km = 1000 m # kilòmetre
quilòmetre = km # kilòmetre
kilòmetre = km
megàmetre = 1000 km
angstrom = 1e-10 m
fermi = 1e-15 m # # mides nuclears
polzada = 2.54 cm # ”
in = polzada # polzada
mil = 0.001 polzada # polzada
micropolzada = 1e-6 polzada
peu = 12 polzada # '
peu romà = 29.57 cm
ft = peu # peu
peu americà = 1200/3937.0 m
Cape foot = 1.033 peu
iarda = 3 peu
vara anglesa = iarda # iarda
yd = iarda # iarda
milla = 5280 peu # # milla actual
mi = milla # milla # milla actual
milla marina = 1852 m
milla nàutica = milla marina
nmi = milla marina # milla marina
milla americana = 5280 peu americà
llegua = 3 milla
cadena = 66 peu
cadena americana = 66 peu americà
link = 0.01 cadena
fathom = 6 peu
cable = 0.1 milla marina
rod = 5.5 iarda
furlong = 40 rod
estadi = furlong
mà = 4 polzada # # Països anglosaxons
colze = 21.8 polzada # # unitat bíblica
punt = 1/72.0 polzada # # punt (publicació)
pica = 12 punt
calibre = 1.0 polzada # # mida de les bales
unitat rack = 1.75 polzada # # computació
smoot = 67 polzada
camp de futbol = 100 yd
marató = 46145 yd
mil sueca = 10 km
versta = 3500 peu # # Unitat russa
au = 1.49597870691e11 m # unitat astronòmica
unitat astronòmica = au
LD = 384400 km # distància lunar # astronòmica
distància lunar = LD # # distància astronòmica
any llum = 365.25 velocitat de la llum * dia
minut llum = velocitat de la llum * min
segon llum = velocitat de la llum * s
parsec = 3.0856775813e16 m
kiloparsec = 1000 parsec
quiloparsec = kiloparsec # kiloparsec
megaparsec = 1000 kiloparsec
mida del caragol = [polzada] 0.013*x + 0.06 ; (x - 0.06) / 0.013 \
# # diàmetres unificats, no lineal
AWG Dia = [polzada] pow(92.0,(36-x)/39.0)/200.0 ; \
36 - 39.0*log(200.0*x)/log(92.0) \
# galga cable americà \
# feu servir -1, -2 per 00, 000; no lineal
galga cable americà = [polzada] pow(92.0,(36-x)/39.0)/200.0 ; \
36 - 39.0*log(200.0*x)/log(92.0) \
# # feu servir -1, -2 per 00, 000; no lineal
galga cable estàndard britànic = [polzada] [(-6, .500), (-5, .464), (-3, .400), \
(-2, .372), (3, .252), (6, .192), (10, .128), \
(14, .080), (19, .040), (23, .024), (26, .018), \
(28, .0148), (30, .0124), (39, .0052), \
(49, .0012), (50, .001)] \
# # feu servir -1, -2 per 2/0, 3/0; no lineal
ample ferroviari estàndard = [polzada] [(-5, .448350), (1, .269010), (14, .0747250), \
(16, .0597800), (17, .0538020), (20, .0358680), \
(26, .0179340), (31, .0104615), (36, .00672525), \
(38, .00597800)] # acer \
# estàndard dels fabricants, no lineal
galga zinc = [polzada] [(1, .002), (10, .02), (15, .04), (19, .06), \
(23, .1), (24, .125), (27, .5), (28, 1)] \
# # gruix de xapa, no lineal
mida de l'anell = [polzada] 0.1018*x + 1.4216 ; (x - 1.4216) / 0.1018 \
# # Mida circum., Estats Units, no lineal
mida de sabata d'home (Estats Units) = [polzada] x/3.0 + 7 + 1/3.0 ; (x - 7 - 1/3.0) * 3 \
# # Mides d'Estats Units, no lineals
mida de sabata de dona (Estats Units) = [polzada] x/3.0 + 6 + 5/6.0 ; (x - 6 - 5/6.0) * 3 \
# # Mides d'Estats Units, no lineals
mida de broca = [polzada] [(104,0.0031), (103,0.0035), (102,0.0039), \
(101,0.0043), (100,0.0047), (99,0.0051), \
(98,0.0055), (97,0.0059), (96,0.0063), \
(95,0.0067), (94,0.0071), (93,0.0075), \
(92,0.0079), (91,0.0083), (90,0.0087), \
(89,0.0091), (88,0.0095), (87,0.01), \
(86,0.0105), (85,0.011), (84,0.0115), \
(83,0.012), (82,0.0125), (81,0.013), \
(80,0.0135), (79,0.0145), (78,0.016), \
(77,0.018), (76,0.02), (75,0.021), \
(74,0.0225), (73,0.024), (72,0.025), \
(71,0.026), (70,0.028), (69,0.0292), \
(68,0.031), (67,0.032), (66,0.033), \
(65,0.035), (64,0.036), (63,0.037), \
(62,0.038), (61,0.039), (60,0.04), \
(59,0.041), (58,0.042), (57,0.043), \
(56,0.0465), (55,0.052), (54,0.055), \
(53,0.0595), (52,0.0635), (51,0.067), \
(50,0.07), (49,0.073), (48,0.076), \
(47,0.0785), (46,0.081), (45,0.082), \
(44,0.086), (43,0.089), (42,0.0935), \
(41,0.096), (40,0.098), (39,0.0995), \
(38,0.1015), (37,0.104), (36,0.1065), \
(35,0.11), (34,0.111), (33,0.113), \
(32,0.116), (31,0.12), (30,0.1285), \
(29,0.136), (28,0.1405), (27,0.144), \
(26,0.147), (25,0.1495), (24,0.152), \
(23,0.154), (22,0.157), (21,0.159), \
(20,0.161), (19,0.166), (18,0.1695), \
(17,0.173), (16,0.177), (15,0.18), \
(14,0.182), (13,0.185), (12,0.189), \
(11,0.191), (10,0.1935), (9,0.196), \
(8,0.199), (7,0.201), (6,0.204), \
(5,0.2055), (4,0.209), (3,0.213), \
(2,0.221), (1,0.228)] \
# # Calibre de broca americà, no lineal
pam = 194.5 cm # # mesura aproximativa, Corona d'Aragó
cana = 8 pam # # mesura aproximativa, Corona d'Aragó
destre = 12 pam # # mesura aproximativa, Corona d'Aragó
alna de València = 906 mm # # mesura aproximativa, Catalunya vella i Regne de València
colzada = 1/2.0 alna de València # # mesura aproximativa, Catalunya vella i Regne de València
#
# unitats de temps
#
[temps]
s = ! # segon
seg = s # segon
segon = s
ms = 0.001 s # mil·lisegon
mil·lisegon = ms
microsegon = 1e-6 s
ns = 1e-9 s # nanosegon
nanosegon = ns
minut = 60 s
min = minut # minut
hora = 60 min
hr = hora # hora
bell = 30 min # # definició naval
watch = 4 hora
watches = watch
dia = 24 hr
setmana = 7 dia
# wk = setmana # setmana
quinzena = 15 dia # 15 dies
mes = 1/12.0 any
any = 365.242198781 dia # 365.242198781 dies
# yr = any # any
any civil = 365 dia # 365 dies
dècada = 10 any
segle = 100 any
mil·lenni = 1000 any
[planificació]
hora persona = 168/40.0 hora
setmana persona = 40 hora persona
mes persona = 1/12.0 any persona
any persona = 52 setmana persona
#
# temperatura
#
[temperatura]
K = ! # graus Kelvin
Kelvin = K # graus Kelvin
graus Kelvin = K
C = [K] x + 273.15 ; x - 273.15 # graus Celsius # no lineal
Celsius = [K] x + 273.15 ; x - 273.15 # # no lineal
graus Celsius = [K] x + 273.15 ; x - 273.15 # # no lineal
R = 5/9.0 K # graus Rankine
Rankine = R # graus Rankine
graus Rankine = R
F = [R] x + 459.67 ; x - 459.67 # graus Fahrenheit # no lineal
Fahrenheit = [R] x + 459.67 ; x - 459.67 # # no lineal
graus Fahrenheit = [R] x + 459.67 ; x - 459.67 # # no lineal
# [dif. de temp.]
# C deg = K # Celsius degree
# Celsius degree = C deg
# F deg = R # Fahrenheit deg.
# Fahrenheit degree = F deg
#
# unitats elèctriques
#
[corrent]
A = ! # ampere
ampere = A
mil·liampere = 0.001 A
mA = mil·liampere # mil·liampere
microampere = 0.001 mA
kiloampere = 1000 A
quiloampere = kiloampere # kiloampere
kA = kiloampere # kiloampere
[càrrega]
coulomb = A*s
ampere-hora = A*hr
Ah = ampere-hora # ampere-hora
mAh = 0.001 ampere-hora # mil·liampere-hora
mil·liampere-hora = mAh
[potència]
volt = W/A
V = volt # volt
mil·livolt = 0.001 volt
mV = mil·livolt # mil·livolt
kilovolt = 1000 volt
quilovolt = kilovolt # kilovolt
kV = kilovolt # kilovolt
[resistència]
ohm = V/A
mil·liohm = 0.001 ohm
microhm = 0.001 mil·liohm
kilohm = 1000 ohm
quilohm = kilohm # kilohm
[conductivitat]
siemens = A/V
[capacitança]
farad = coulomb/V
mil·lifarad = 0.001 farad
microfarad = 0.001 mil·lifarad
nanofarad = 1e-9 farad
picofarad = 1e-12 farad
[flux magn.]
weber = V*s
Wb = weber # weber
maxwell = 1e-8 Wb
[inductància]
henry = Wb/A
H = henry # henry
mil·lihenry = 0.001 henry
mH = mil·lihenry # mil·lihenry
microhenry = 0.001 mH
[densitat de flux]
tesla = Wb/m^2
T = tesla # tesla
gauss = maxwell/cm^2
#
# unitats moleculars
#
[quantitat molecular]
mol = ! # # gram mol
gram mol = mol
kilomol = 1000 mol
quilomol = kilomol # kilomol
kmol = kilomol # kilomol
lliura mol = mol*lbm/gram
lbmol = lliura mol # lliura mol
[pes d'un mol]
avogadro = gram/(amu*mol)
#
# unitats d'il·luminació
#
[intensitat de llum]
cd = ! # candela
candela = cd
[flux de llum]
lumen = cd * sr
lm = lumen # lumen
[il·luminància]
lux = lumen/m^2
candela-peu = lumen/peu^2
candela-metre = lumen/m^2
[luminància]
lambert = cd/(pi*cm^2)
mil·lilambert = 0.001 lambert
lambert-peu = cd/(pi*peu^2)
#
# unitats angulars
#
[angle]
radian = ! # radiant °
rad = radian # radiant °
circumferència = 2 pi*radian
volta = circumferència # circumferència
revolució = circumferència
rev = revolució # revolució
grau sexagesimal = 1/360.0 circumferència # °
minut d'arc = 1/60.0 grau sexagesimal # ′
segon d'arc = 1/60.0 minut d'arc # ′′
quadrant = 1/4.0 circumferència
angle recte = quadrant
grau centesimal = 0.01 quadrant # °
#
# unitats d'angle sòlid
#
[angle sòlid]
sr = ! # estereoradian
estereoradian = sr # estereoradiant
esfera = 4 pi*sr
hemisferi = 1/2.0 esfera
semiesfera = hemisferi
#
# unitats d'informació
#
[dades]
bit = !
kilobit = 1000 bit # # basat en potència de 10
quilobit = kilobit # kilobit # basat en potència de 10
megabit = 1000 kilobit # # basat en potència de 10
gigabit = 1000 megabit # # basat en potència de 10
terabit = 1000 gigabit # # basat en potència de 10
byte = 8 bit # # basat en potència de 2
octet = byte # byte # basat en potència de 2
B = byte # byte # basat en potència de 2
kilobyte = 1024 byte # # basat en potència de 2
quilooctet = kilobyte # kilobyte # basat en potència de 2
kB = kilobyte # kilobyte # basat en potència de 2
megabyte = 1024 kB # # basat en potència de 2
megaoctet = megabyte # megabyte # basat en potència de 2
MB = megabyte # megabyte # basat en potència de 2
gigabyte = 1024 MB # # basat en potència de 2
gigaoctet = gigabyte # gigabyte # basat en potència de 2
GB = gigabyte # gigabyte # basat en potència de 2
terabyte = 1024 GB # # basat en potència de 2
teraoctet = terabyte # terabyte # basat en potència de 2
TB = terabyte # terabyte # basat en potència de 2
petabyte = 1024 TB # # basat en potència de 2
petaoctet = petabyte # petabyte # basat en potència de 2
PB = petabyte # petabyte # basat en potència de 2
kilobyte estàndard CEI = 1000 byte # # basat en potència de 10
kB estàndard CEI = kilobyte estàndard CEI # kilobyte # basat en potència de 10
megabyte estàndard CEI = 1000 kB estàndard CEI # # basat en potència de 10
MB estàndard CEI = megabyte estàndard CEI # megabyte # basat en potència de 10
gigabyte estàndard CEI = 1000 MB estàndard CEI # # basat en potència de 10
GB estàndard CEI = gigabyte estàndard CEI # gigabyte # basat en potència de 10
terabyte estàndard CEI = 1000 GB estàndard CEI # # basat en potència de 10
TB estàndard CEI = terabyte estàndard CEI # terabyte # basat en potència de 10
petabyte estàndard CEI = 1000 TB estàndard CEI # # basat en potència de 10
PB estàndard CEI = petabyte estàndard CEI # petabyte # basat en potència de 10
kibibyte = 1024 byte
KiB = kibibyte # kibibyte
mebibyte = 1024 KiB
MiB = mebibyte # mebibyte
gibibyte = 1024 MiB
GiB = gibibyte # gibibyte
tebibyte = 1024 GiB
TiB = tebibyte # tebibyte
pebibyte = 1024 TiB
PiB = pebibyte # pebibyte
[transferència de dades]
bps = bit/seg # bits per segon
kbps = 1000 bps # kilobits per segon # basat en potència de 10
#
# nombres sense unitat
#
[quantitat]
unitat = !!
1 = unitat # unitat
pi = 3.14159265358979323846 unitat
parell = 2 unitat
hat trick = 3 unitat # # esports de pilota
dotzena = 12 unitat
dotzena de forner = 13 unitat
vintena = 20 unitat
grossa = 144 unitat
grossa gran = 12 grossa
raima = 500 unitat
tant per cent = 0.01 unitat # %
% = tant per cent
mil·lèsima part = 0.001 unitat
[tipus d'interès]
TAE = [unitat] log(1 + x/100) ; (exp(x) - 1)*100 \
# taxa anual equivalent, en % # basat en compost continu
[concentració]
proof = 1/200.0 unitat # # contingut d'alcohol
ppm = 1e-6 unitat # part per milió
part per milió = ppm
ppb = 1e-9 unitat # part per bilió
part per bilió = ppb
ppt = 1e-12 unitat # part per trilió
part per trilió = ppt
quirat de puresa = 1/24.0 unitat # # unitat de puresa de metalls preciosos
#
# unitats de força
#
[força]
newton = kg*m/s^2
N = newton # newton
decanewton = 10 newton
kilonewton = 1000 N
quilonewton = kilonewton # kilonewton
kN = kilonewton # kilonewton
meganewton = 1000 kN
mil·linewton = 0.001 N
dina = cm*g/s^2
kg force = kg * gravetat # kilogram f
kgf = kg force # kilogram-força
kilogram-força = kg force # kilopond
kp = kg force # kilopond
kilopond = kg force # kilogram-força
quilopond = kilopond # kilopond
gram-força = g * gravetat
lliura-força = lbm * gravetat # # avoirdupois
lbf = lliura-força # lliura-força # avoirdupois
tona-força = tona * gravetat
unça-força = unça * gravetat
ozf = unça-força # unça-força
tona no mètrica-força = tona no mètrica * gravetat
pdl = lbm * peu / seg^2 # poundal # Força imperial
poundal = pdl # # Força imperial
#
# unitats d'àrea
#
[àrea]
barn = 1e-28 m^2 # # física de partícules
àrea = 100 m^2
decàrea = 10 àrea
hectàrea = 100 àrea
stremma = 1000 m^2 # # unitat grega
acre = 10 cadena^2 # # Estats Units
secció = milla^2 # # Estats Units
township = 36 section # # Estats Units
homestead = 160 acre # # Estats Units
perxa quadrada = 30.25 yd^2 # # Estats Units
rood = 0.25 acre # # Estats Units
rai = 1600 m^2 # # Tailàndia
ngaan = 400 m^2 # # Tailàndia
polzada circular = 1/4.0 pi*polzada^2 # # àrea d'un cercle d'una polzada
mil circular = 1/4.0 pi*mil^2 # # àrea d'un cercle d'un mil
àrea AWG = [polzada^2] pi/4*pow(pow(92.0,(36-x)/39.0)/200.0,2) ; \
36 - 39.0*log(200.0*sqrt(x*4.0/pi))/log(92.0) \
# galga cable americà \
# feu servir -1, -2 per 00, 000; no lineal
àrea galga cable americà = [polzada^2] pi/4*pow(pow(92.0,(36-x)/39.0)/200.0,2) ; \
36 - 39.0*log(200.0*sqrt(x*4.0/pi))/log(92.0) \
# # feu servir -1, -2 per 00, 000; no lineal
jornal = 4358.3025 m^2 # no estàndard, per terme mitjà # Països Catalans, terrenys de cultiu
jornal de mida = 48.96 àrea # # Besalú, terrenys de cultiu
jornal de terra = 29.77 àrea # # Seu d'Urgell, terrenys de cultiu
jornal de cavar = 3.97 àrea # # Olesa de Montserrat, terrenys de cultiu
jornal de dallar prat = 17.43 àrea # # Vall d'Aran, terrenys de cultiu
jornal de mula = 34.22 àrea # # Igualada, terrenys de cultiu
jornal petit = 29.8 àrea # # Alacant, terrenys de cultiu
fanecada = 833.3 m^2 # # Regne de València, terrenys de cultiu
cafissada = 6 fanecada # # Regne de València, terrenys de cultiu
hort valencià = 1.5 fanecada # # Regne de València, terrenys de cultiu
jovada valenciana = 36 fanecada # # Regne de València, terrenys de cultiu
quartó de jovada = 9 fanecada # # Regne de València, terrenys de cultiu
quartó valencià = 1/4.0 fanecada # # Regne de València, terrenys de cultiu
braça quadrada = 4.15548 m^2 # # Regne de València, terrenys de cultiu
quarterada = 7103.1 m^2 # # Mallorca, terrenys de cultiu
quartó = 1/4.0 quarterada # # Mallorca, terrenys de cultiu
hort = 443.94 m^2 # # Mallorca, terrenys de cultiu
jovada = 16 quarterada # # Mallorca, terrenys de cultiu
tornall = 550 m^2 # # Eivissa, terrenys de cultiu
#
# unitats de volum
#
[volum]
cc = cm^3 # centímetre cúbic
centímetre cúbic = cc
litre = 1000 cc
l = litre # litre
decilitre = 0.1 litre
centilitre = 0.01 litre
mil·lilitre = cc
ml = mil·lilitre # mil·lilitre
microlitre = 1e-6 litre
decalitre = 10 litre
hectolitre = 100 litre
kilolitre = 1000 litre
quilolitre = kilolitre # kilolitre
kl = kilolitre # kilolitre
megalitre = 1000 kilolitre
galó = 231 in^3 # # Estats Units, líquid
gal = galó # galó # Estats Units, líquid
quart = 1/4.0 galó # # Estats Units, líquid
qt = quart # quart # Estats Units, líquid
pinta = 1/2.0 quart # # Estats Units, líquid
pt = pinta # pinta # Estats Units, líquid
unça líquida = 1/16.0 pinta # # Estats Units, líquid
fl oz = unça líquida # unça líquida # Estats Units
dram líquid = 1/8.0 unça líquida # # Estats Units
minim = 1/480.0 unça líquida # # Estats Units
galó imperial = 4.54609 litre
imp gal = galó imperial # galó imperial
quart imperial = 1/4.0 imp gal
imp qt = quart imperial # quart imperial
pinta imperial = 1/8.0 imp gal
imp pt = pinta imperial # pinta imperial
unça líquida imperial = 1/160.0 imp gal
imp fl oz = unça líquida imperial # unça líquida imperial
dram líquid imperial = 1/8.0 imp fl oz
minim imperial = 1/480.0 imp fl oz
tassa = 8 fl oz
cullerada = 1/16.0 tassa
tbsp = cullerada # cullerada
culleradeta = 1/3.0 tbsp
tsp = culleradeta # culleradeta
barril = 42 galó # # Països anglosaxons
bbl = barril # barril # Països anglosaxons
colpet = 1.5 fl oz # # Països anglosaxons
fifth = 1/5.0 galó # # Països anglosaxons, alcohol
ampolla de vi = 750 ml
magnum = 1.5 litre # # Països anglosaxons, alcohol
keg = 15.5 galó # # Països anglosaxons, cervesa
vi hogshead = 63 gal
cervesa hogshead = 54 gal
bushel = 2150.42 polzada^3
peck = 1/4.0 bushel
cord = 128 peu^3
peu-taula = peu^2*polzada
quinto = 1/5.0 l # # Països Catalans, cervesa
mitjana = 1/3.0 l # # Països Catalans, cervesa
porró = l # # mesura aproximativa, Països Catalans, líquids
xau = 1/2.0 porró # # mesura aproximativa, Països Catalans, líquids
quartí = 1/4.0 porró # # mesura aproximativa, Països Catalans, líquids
petricó = 1/4.0 porró # # mesura aproximativa, Països Catalans, líquids
xicra = 1/8.0 porró # # mesura aproximativa, Països Catalans, líquids
càntir = 12 porró # # mesura aproximativa, Països Catalans, líquids
#
# unitats de velocitat
#
[velocitat]
nus = nmi/hora # nuc
kt = nus # nus
velocitat de la llum = 2.99792458e8 m/s
mph = milla/hora # milles/hora
kph = km/hora # quilòmetres/hora
mach = 340.29 m/s # # velocitat del so en condicions estàndard de pressió i temperatura
[velocitat de rotació]
rpm = rev/min # revolucions/minut
rps = rev/seg # revolucions/segon
#
# unitats de taxa de flux
#
[flux de fluids]
gph = gal/hora # galons/hora
gpm = gal/min # galons/minut
cfs = peu^3/seg # peus cúbics/segon
cfm = peu^3/min # peus cúbics/minut
lpm = l/min # litres/minut
[flux de gasos]
sccm = atm*cc/min # centímetres cúbics en condicions estàndard de pressió i temperatura/minut # presió * flux
sccs = atm*cc/seg # centímetres cúbics en condicions estàndard de pressió i temperatura/segon # presió * flux
slpm = atm*l/min # litres en condicions estàndard de pressió i temperatura/min # presió * flux
slph = atm*l/hora # litres en condicions estàndard de pressió i temperatura/hora # presió * flux
scfh = atm*peu^3/hora # peus cúbics en condicions estàndard de pressió i temperatura/hora # presió * flux
scfm = atm*peu^3/min # peus cúbics en condicions estàndard de pressió i temperatura/minut # presió * flux
#
# unitats de pressió
#
[pressió]
Pa = N/m^2 # pascal
pascal = Pa
hPa = 100 Pa # hectopascal
hectopascal = hPa
kPa = 1000 Pa # kilopascal
kilopascal = kPa
quilopascal = kPa # kilopascal
MPa = 1000 kPa # megapascal
megapascal = MPa
GPa = 1000 MPa # gigapascal
gigapascal = GPa
atm = 101325 Pa # atmosfera estàndard
atmosfera = atm # atmosfera estàndard
bar = 1e5 Pa
mbar = 0.001 bar # mil·libar
mil·libar = mbar
microbar = 0.001 mbar
decibar = 0.1 bar
kilobar = 1000 bar
quilobar = kilobar # kilobar
megabar = 1000 kilobar
mm Hg = mm*densitat Hg*gravetat
mil·límetre d'Hg = mm Hg
torr = mm Hg
micró d'Hg = micró*densitat Hg*gravetat
polzada d'Hg = polzada*densitat Hg*gravetat # polzada Hg
m aigua = m*densitat aigua*gravetat # metre H2O
metre d'aigua = m aigua # metre H2O
polzada d'aigua = polzada*densitat aigua*gravetat # polzada H2O
peu d'aigua = peu*densitat aigua*gravetat
psi = lbf/polzada^2 # lliura / polzada quadrada
lliura per polzada quadrada = psi
ksi = 1000 psi # 1000 lliura / polzada quadrada
#
# unitats de densitat
#
[densitat]
densitat aigua = gram/cm^3
densitat aigua de mar = 1.025 gram/cm^3
densitat Hg = 13.5950981 gram/cm^3
densitat aire = 1.293 kg/m^3 # # en condicions estàndard de pressió i temperatura
densitat acer = 0.283 lliura/polzada^3 # # acer carboni
densitat alumini = 0.098 lliura/polzada^3
densitat zinc = 0.230 lliura/polzada^3
densitat llautó = 0.310 lliura/polzada^3 # # 80Cu-20Zn
densitat coure = 0.295 lliura/polzada^3
densitat ferro = 0.260 lliura/polzada^3 # # ferro colat
densitat níquel = 0.308 lliura/polzada^3
densitat estany = 0.275 lliura/polzada^3
densitat titani = 0.170 lliura/polzada^3
densitat plata = 0.379 lliura/polzada^3
densitat niló = 0.045 lliura/polzada^3
densitat policarbonat = 0.045 lliura/polzada^3
#
# unitats d'energia
#
[energia]
joule = N*m
J = joule # joule
kilojoule = 1000 joule
quilojoule = kilojoule # kilojoule
kJ = kilojoule # kilojoule
megajoule = 1000 kilojoule
gigajoule = 1000 megajoule
mil·lijoule = 0.001 joule
mJ = mil·lijoule # mil·lijoule
caloria = 4.1868 J
cal = caloria # caloria
kilocaloria = 1000 cal
quilocaloria = kilocaloria # kilocaloria
kcal = kilocaloria # kilocaloria
caloria de menjar = kilocaloria # kilocaloria
tèrmia = 1000 kcal
Btu = cal*lliura*R/(g*K) # # unitat tèrmica britànica
unitat tèrmica britànica = Btu
therm = 100000 Btu # # 100000 unitats tèrmiques britàniques
erg = cm*dina
electró-volt = 1.602176462e-19 J
eV = electró-volt # electró-volt
kWh = kW*hora # kilowatt hora
kilowatt hora = kWh
tona TNT = 4.184e9 J
equivalent a tona d'oli = 41.868 gigajoule
equivalent a tona de carbó = 7000000 kcal
#
# unitats de potència
#
[potència]
watt = J/s
W = watt # watt
kilowatt = 1000 W
quilowatt = kilowatt # kilowatt
kW = kilowatt # kilowatt
megawatt = 1000 kW
MW = megawatt # megawatt
gigawatt = 1000 MW
GW = gigawatt # gigawatt
mil·liwatt = 0.001 W
cavall de potència = 550 peu*lbf/seg # no mètric
hp = cavall de potència # cavalls de potència
cavall de vapor = 75 kgf*m/s # mètric
cv = cavall de vapor # cavalls de vapor
tona de refrigeració = 12000 Btu/hora # no mètrica
MBH = 1000 Btu/hora # 1000 Btu/hora
cavall de potència de bullició = 33475 Btu/hora
#
# freqüència
#
[freqüència]
hertz = unitat/seg
Hz = hertz # hertz
mil·lihertz = 0.001 Hz
kilohertz = 1000 Hz
quilohertz = kilohertz # kilohertz
kHz = kilohertz # kilohertz
megahertz = 1000 kHz
MHz = megahertz # megahertz
gigahertz = 1000 MHz
GHz = gigahertz # gigahertz
#
# radioactivitat
#
[radioactivitat]
becquerel = unitat/seg
Bq = becquerel # becquerel
curie = 3.7e10 Bq
mil·licurie = 0.001 curie
roentgen = 2.58e-4 coulomb/kg
[dosi de radiació]
gray = J/kg
Gy = gray # gray
centigray = 0.01 Gy
rad. abs. dose = 0.01 Gy # # normalment rad
sievert = J/kg # # dosi equivalent
mil·lisievert = 0.001 sievert # # dosi equivalent
Sv = sievert # sievert # dosi equivalent
rem = 0.01 Sv # # dosi equivalent roentgen
mil·lirem = 0.001 rem # # dosi equivalent roentgen
#
# viscositat
#
[viscositat dinàmica]
poise = g/(cm*s)
P = poise # poise
centipoise = 0.01 poise
cP = centipoise # centipoise
[viscositat cinemàtica]
stoke = cm^2/s
St = stoke # stoke
centistoke = 0.01 stoke
cSt = centistoke # centistoke
#
# unitats diverses
#
[acceleració]
gravetat = 9.80665 m/s^2
galileo = cm/s^2
[constant]
constant gravitacional = 6.673e-11 N*m^2/kg^2
constant dels gasos = 8.314472 J/(mol*K) # R
[consum de combustible]
mpg = mi/gal # miles/galó
mpg imp = mi/galó imperial # miles/galó imp
litre per 100 km = [mpg] 3.785411784 / (x * 0.01609344) ; \
3.785411784 / (x * 0.01609344) # # no lineal
[permeabilitat]
darcy = 1 cm^2*centipoise/atm/s
mil·lidarcy = 0.001 darcy
ConvertAll-0.8.0/data/units_de.dat 0000664 0000000 0000000 00000102701 13635744055 0017022 0 ustar 00root root 0000000 0000000 #*****************************************************************************
# units.dat, the units data file, version 0.6.0
#
# ConvertAll, a units conversion program
# Copyright (C) 2015, Douglas W. Bell
#
# This is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License, Version 2. This program is
# distributed in the hope that it will be useful, but WITTHOUT ANY WARRANTY.
#*****************************************************************************
#
# Units are defined by an optional quantity and an equivalent unit or unit
# combination. A python expression may be used for the quantity, but is
# resticted to using only the following operators: *, /, +, -, **, (, ).
# Beware of integer division truncation: be sure to use a float for at
# least one of the values.
#
# The unit type must be placed in square brackets before a set of units.
# The first comment after the equivalent unit will be put in parenthesis after
# the unit name (usually used to give the full name of an abbreviated unit).
# The next comment will be used in the program list's comment column;
# later comments and full line comments are ignored.
#
# Non-linear units are indicated with an equivalent unit in square brackets,
# followed by either equations or equivalency lists for the definition.
# For equations, two are given, separated by a ';'. Both are functions of
# "x", the first going from the unit to the equivalent unit and the second
# one in reverse. Any valid Python expression returning a float (including
# the functions in the math module) should work. The equivalency list is a
# python list of tuples giving points for linear interpolation.
#
# All units must reduce to primitive units, which are indicated by an
# equivalent unit starting with '!'. A special "unitless" primitve unit
# (usualty called "unit") has '!!' for an equivalent unit. Circular references
# must also be avoided.
#
# Primitive units: kg, m, s, K, A, mol, cd, rad, sr, bit, unit
#
##############################################################################
#
# mass units
#
[Masse]
kg = ! # Kilogramm
Kilogramm = kg
Hektogramm = 100 Gramm
Dekagramm = 10 Gramm
Gramm = 0.001 kg
g = Gramm # Gramm
Dezigramm = 0.1 Gramm
Zentigramm = 0.01 Gramm
Milligramm = 0.001 Gramm
mg = Milligramm # Milligramm
Mikrogramm = 0.001 mg
µg = Mikrogramm # Mikrogramm
t = 1000 kg # Tonne # metrisch
Tonne = t
Metrische Tonne = t
Megagramm = t
Kilotonne = 1000 t # # metrisch
Gigagramm = 1e9 g
Teragramm = 1e12 g
Karat = 0.2 g # # Gewichtsmaß für Edelsteine
ct = Karat # Karat # engl. carat
amu = 1.66053873e-27 kg # Atomare Masseneinheit
atomare Masseneinheit = amu
Pfund deutsch = 500 g # # dt. Sprachraum, ugs.
pound = 0.45359237 kg # # angloamer. Pfund
Pfund = pound # # angloamer. Pfund
lb = pound # Pfund # engl. pound
lbm = pound # Pfund # engl. pound
ounce = 1/16.0 pound # Unze
Unze = ounce # # engl. ounce
oz = ounce # Unze # engl. ounce
lid = ounce # Unze # Drogenslang
pound troy = 5760 grain # # angloamer. Apotheker-Pfund
lb troy = pound troy # # angloamer. Apotheker-Pfund
ounce troy = 1/12.0 lb troy # Feinunze # angloamer. Apotheker-Unze
oz troy = ounce troy # Feinunze # angloamer. Apotheker-Unze
Feinunze = ounce troy # # Gewichtseinheit für Goldhandel
ton = 2000 lb # nicht-metrisch # angloamer. Tonne
kiloton = 1000 ton # nicht-metrisch # angloamer. Tonne
slug = lbf*s^2/ft
hyl = kp*s^2/m # # seit 1978 untersagt
stone = 14 lb
grain = 1/7000.0 lb
pennyweight = 24 grain
hundredweight long = 112 lb # # britisches Maß
hundredweight short = 100 lb
Erdmasse = 5.974e24 kg
Mondmasse = 7.349e22 kg
Sonnenmasse = 1.9891e30 kg
#
# length / distance units
#
[Länge]
m = ! # Meter
Meter = m
metre = m
Dezimeter = 0.1 m
dm = Dezimeter # Dezimeter
Zentimeter = 0.01 m
cm = Zentimeter # Zentimeter
Millimeter = 0.001 m
mm = Millimeter # Millimeter
Mikrometer = 1e-6 m
Mikron = Mikrometer
µm = Mikrometer # Mikrometer
Nanometer = 1e-9 m
nm = Nanometer # Nanometer
Dekameter = 10 m
Hektometer = 100 m
Kilometer = 1000 m
km = Kilometer # Kilometer
Megameter = 1000 km
Ångström = 1e-10 m
Angström = Ångström
Å = Angström # Ångström
fm = 1e-15 m # Femtometer
Fermi = fm # # Kerngrößen, veraltet
Zoll = 2.54 cm
in = Zoll # Zoll # engl. inch
inch = Zoll
inches = inch
mil US = 0.001 inch # # angloamer. Millizoll
Mikrozoll = 1e-6 Zoll
microinch = Mikrozoll
Fuß = 12 Zoll
foot = Fuß # Fuß
ft = foot # Fuß # engl. foot
feet = foot # Fuß
foot US survey = 1200/3937.0 m
yard = 3 ft # # engl. Schritt
yd = yard # Yard # engl. Schritt
Schritt = yard
Meile = 5280 ft
mile = Meile # Meile # brit. Landmeile
mi = Meile # Meile # brit. Landmeile
Nautische Meile = 1852 m
nmi = Nautische Meile # nautische Meile
league = 3 mile # # engl. Wegstunde / Landleug
Wegstunde = league
chain = 66 ft # # Kette(nlänge)
fathom = 6 ft # # nautischer Faden
Faden = fathom # # nautischer Faden
rod = 5.5 yard # # Rute
furlong = 40 rod # # Furchenlänge (angloamer.)
hand = 4 inch # # angloamer. Höhenmaß für Pferde
cubit = 21.8 inch # # biblische Einheit
point = 1/72.0 inch # # Punkt im Desktop Publishing
pica = 12 point
Kaliber = 1.0 inch # # Geschossdurchmesser
caliber = Kaliber # # Geschossdurchmesser
Footballfeld = 100 yd # # amer. Football
Marathondistanz = 46145 yd
mil = 10 km # # Metrische/Skandinav. Meile
au = 1.49597870691e11 m # Astronomische Einheit
Astronomische Einheit = au
Lichtjahr = 365.25 Tage * Lichtgeschwindigkeit
Lichtminute = Lichtgeschwindigkeit * min
Lichtsekunde = Lichtgeschwindigkeit * s
Parsec = 3.0856775813e16 m
pc = Parsec # Parsec
Kiloparsec = 1000 Parsec
Megaparsec = 1000 Kiloparsec
Schraubenmaß = [in] 0.013*x + 0.06 ; (x - 0.06) / 0.013 \
# zöllig # Vereinheitlichte Durchmesser, nicht-linear
AWG Dia = [in] 92.0**((36-x)/39.0)/200.0 ; \
36 - 39.0*log(200.0*x)/log(92.0) \
# American Wire Gauge \
# US-Maß für Drahtdurchmesser; -1, -2 für 00, 000 benutzen; nicht-linear
American Wire Gauge Dia = [in] 92.0**((36-x)/39.0)/200.0 ; \
36 - 39.0*log(200.0*x)/log(92.0) \
# # US-Maß für Drahtdurchmesser; -1, -2 für 00, 000 benutzen; nicht-linear
Standard gauge = [in] [(-5, .448350), (1, .269010), (14, .0747250), \
(16, .0597800), (17, .0538020), (20, .0358680), \
(26, .0179340), (31, .0104615), (36, .00672525), \
(38, .00597800)] # Stahl \
# US-Maß für Dicke von Stahlblechen, nicht-linear
Zinc gauge = [in] [(1, .002), (10, .02), (15, .04), (19, .06), \
(23, .1), (24, .125), (27, .5), (28, 1)] \
# # US-Maß für Dicke von Zinkblechen, nicht-linear
Ringgröße US = [in] 0.1018*x + 1.4216 ; (x - 1.4216) / 0.1018 \
# # Umfang, nicht-linear
Schuhgrößen Männer US = [in] x/3.0 + 7 + 1/3.0 ; (x - 7 - 1/3.0) * 3 \
# # US-Größen, nicht-linear
Schuhgrößen Frauen US = [in] x/3.0 + 6 + 5/6.0 ; (x - 6 - 5/6.0) * 3 \
# # US-Größen, nicht-linear
Schuhgrößen EU = [cm] (x * 2.0 / 3.0) - 1.5 ; (x + 1.5) * 3.0 / 2.0 \
# # Innenmaß, nicht-linear
#
# time units
#
[Zeit]
s = ! # Sekunde
sec = s # Sekunde
Sekunde = s
Sekunden = Sekunde
ms = 0.001 s # Millisekunde
Millisekunde = ms
Mikrosekunde = 1e-6 s
µs = Mikrosekunde # Mikrosekunde
ns = 1e-9 s # Nanosekunde
Nanosekunde = ns
Minute = 60 s
min = Minute # Minute
Stunde = 60 min
Stunden = Stunde
Std = Stunde # Stunde
hr = Stunde # Stunde # (lat. hora)
Glasen = 30 min # # Schifffahrt
Glasenschläge = Glasen # # Schifffahrt
Wache = 4 hr # # Schifffahrt
Wachen = 4 hr # # Schifffahrt
Tag = 24 hr
Tage = Tag
d = Tag # Tag # (lat. dies)
Woche = 7 Tage
Wochen = Woche
fortnight = 14 Tage # 14 Tage # (engl.)
Monat = 1/12.0 Jahr
Jahr = 365.242198781 Tage
Jahre = Jahr
y = Jahr # Jahr # (engl. year)
yr = Jahr # Jahr # (engl. year)
Kalenderjahr = 365 Tage
Dekade = 10 Jahre
Jahrzehnt = Dekade
Jahrzehnte = Dekade
Dezennium = Dekade
Jahrhundert = 100 Jahre
Centennium = Jahrhundert
Hektode = Jahrhundert
Jahrhunderte = Jahrhundert
Millennium = 1000 Jahre
Millennia = Millennium
[Zeitplanung]
Personenstunde = 168/40.0 Stunden # # auf 40-Std.-Wochen gerechnet
Personenstunden = Personenstunde
Mannstunde = Personenstunde # # veraltet für "Personenstunde"
Mannstunden = Personenstunde # # veraltet für "Personenstunden"
Personentag = 8 Personenstunden
Personentage = Personentag
Manntag = Personentag # # veraltet für "Personentag"
Manntage = Personentag # # veraltet für "Personentage"
Personenwoche = 5 Personentage
Personenwochen = Personenwoche
Mannwoche = Personenwoche # # veraltet für "Personenwoche"
Mannwochen = Personenwoche # # veraltet für "Personenwochen"
Personenmonat = 20 Personentage
Personenmonate = Personenmonat
Mannmonat = Personenmonat # # veraltet für "Personenmonat"
Mannmonate = Personenmonat # # veraltet für "Personenmonate"
Personenjahr = 2000 Personenstunden
Personenjahre = Personenjahr
Mannjahr = Personenjahr # # veraltet für "Personenjahr"
Mannjahre = Personenjahr # # veraltet für "Personenjahre"
#
# temperature
#
[Temperatur]
K = ! # Kelvin
Kelvin = K
°K = K # Kelvin
Grad Kelvin = K
C = [K] x + 273.15 ; x - 273.15 # Celsius # nicht-linear
Celsius = [K] x + 273.15 ; x - 273.15 # # nicht-linear
°C = [K] x + 273.15 ; x - 273.15 # Celsius # nicht-linear
Grad Celsius = [K] x + 273.15 ; x - 273.15 # # nicht-linear
R = 5/9.0 K # Rankine
Rankine = R
°R = R # Rankine
F = [R] x + 459.67 ; x - 459.67 # Fahrenheit # nicht-linear
Fahrenheit = [R] x + 459.67 ; x - 459.67 # # nicht-linear
°F = [R] x + 459.67 ; x - 459.67 # Fahrenheit # nicht-linear
Grad Fahrenheit = [R] x + 459.67 ; x - 459.67 # # nicht-linear
[Temperaturdifferenz]
C Grad = K # Grad Celsius
Celsius Grad = C Grad
F Grad = R # Grad Fahrenheit
Fahrenheit Grad = F Grad
#
# electrical units
#
[Strom]
A = ! # Ampere
Ampere = A
Milliampere = 0.001 A
mA = Milliampere # Milliampere
Mikroampere = 0.001 mA
Kiloampere = 1000 A
kA = Kiloampere # Kiloampere
[Ladung]
Coulomb = A*s
Amperestunde = A*hr
Amperestunden = Amperestunde
mAh = 0.001 Amperestunde # Milliamperestunde
Milliamp hr = mAh
[Spannung]
Volt = W/A
V = Volt # Volt
Millivolt = 0.001 Volt
mV = Millivolt # Millivolt
Kilovolt = 1000 Volt
kV = Kilovolt # Kilovolt
[Widerstand]
Ohm = V/A
Ω = Ohm # Ohm
Milliohm = 0.001 ohm
Mikroohm = 0.001 Milliohm
Kiloohm = 1000 ohm
[Leitfähigkeit]
Siemens = A/V
℧ = Siemens # Mho # veraltet für Siemens ("Ohm" rückwärts)
[Kapazität]
Farad = Coulomb/V
Millifarad = 0.001 Farad
Mikrofarad = 0.001 Millifarad
Nanofarad = 1e-9 Farad
Pikofarad = 1e-12 Farad
[Magn. Fluss]
Weber = V*s
Wb = Weber # Weber
Maxwell = 1e-8 Wb
[Induktivität]
Henry = Wb/A
H = Henry # Henry
Millihenry = 0.001 Henry
mH = Millihenry # Millihenry
Mikrohenry = 0.001 mH
[Flussdichte]
Tesla = Wb/m^2
# T = Tesla # Tesla ### t = metric ton!
Gauss = Maxwell/cm^2
Gauß = Gauss
#
# molecular units
#
[Molekulare Mengen]
mol = ! # Mol
Kilomol = 1000 mol
kmol = Kilomol # Kilomol
pound mole = mol*lbm/gramm # Pfund Mol # engl.
lbmol = pound mole # Pfund Mol # engl. pound mole
[Größe eines Mol]
Avogadrozahl = Gramm/(amu*mol)
#
# Illumination units
#
[Lichtstärke]
cd = ! # Candela
Candela = cd
[Lichtstrom]
Lumen = cd * sr
lm = Lumen # Lumen
[Beleuchtungsstärke]
lx = Lumen/m^2 # Lux
Lux = lx
footcandle = Lumen/ft^2
metercandle = lx
[Leuchtdichte]
Lambert = cd/(pi*cm^2) # # US-Maß
la = Lambert # Lambert
Millilambert = 0.001 Lambert
footlambert = cd/(pi*ft^2) # # Fuß-Lambert (angloamer.)
#
# angular units
#
[Winkel]
Radian = !
rad = Radian # Radian # Bogengrad
Kreis = 2 pi*rad
Umdrehung = Kreis
rev = Umdrehung # Umdrehung # engl. revolution
Grad = 1/360.0 Kreis
degree = Grad # Grad # engl.
deg = degree # Grad # engl. degree
Bogenminute = 1/60.0 Grad
arc min = Bogenminute # Bogenminute # engl. arc minute
arc minute = Bogenminute # Bogenminute # engl. arc minute
min arc = Bogenminute # Bogenminute # engl. minute arc
minute arc = Bogenminute # Bogenminute
Bogensekunde = 1/60.0 Bogenminute
arc sec = Bogensekunde # Bogensekunde # engl. arc second
arc second = Bogensekunde # Bogensekunde
sec arc = Bogensekunde # Bogensekunde # engl. second arc
second arc = Bogensekunde # Bogensekunde
Halbkreis = 1/2.0 Kreis
Viertelkreis = 1/4.0 Kreis
Quadrant = Viertelkreis
rechter Winkel = Viertelkreis
gon = 0.01 Viertelkreis
gradian = gon # gon # engl. Maß
#
# solid angle units
#
[Raumwinkel]
sr = ! # Steradian
Steradian = sr
Kugel = 4 pi*sr
Halbkugel = 1/2.0 Kugel
Hemisphäre = Halbkugel
#
# information units
#
[Daten]
bit = !
Kilobit = 1000 bit # # basierend auf Basis 10
Megabit = 1000 Kilobit # # basierend auf Basis 10
Nibble = 4 bit
Byte = 8 bit
Bytes = byte
B = byte # Byte
Kilobyte = 1024 byte # # basierend auf Basis 2
kB = Kilobyte # Kilobyte # basierend auf Basis 2
Megabyte = 1024 kB # # basierend auf Basis 2
MB = Megabyte # Megabyte # basierend auf Basis 2
Gigabyte = 1024 MB # # basierend auf Basis 2
GB = Gigabyte # Gigabyte # basierend auf Basis 2
Terabyte = 1024 GB # # basierend auf Basis 2
TB = Terabyte # Terabyte # basierend auf Basis 2
petabyte = 1024 TB # # basierend auf Basis 2
PB = petabyte # Petabyte # basierend auf Basis 2
Kilobyte IEC std = 1000 byte # # basierend auf Basis 10
kB IEC std = Kilobyte IEC std # Kilobyte # basierend auf Basis 10
Megabyte IEC std = 1000 kB IEC std # # basierend auf Basis 10
MB IEC std = Megabyte IEC std # Megabyte # basierend auf Basis 10
Gigabyte IEC std = 1000 MB IEC std # # basierend auf Basis 10
GB IEC std = Gigabyte IEC std # Gigabyte # basierend auf Basis 10
Terabyte IEC std = 1000 GB IEC std # # basierend auf Basis 10
TB IEC std = terabyte IEC std # Terabyte # basierend auf Basis 10
petabyte IEC std = 1000 TB IEC std # # basierend auf Basis 10
PB IEC std = petabyte IEC std # Petabyte # basierend auf Basis 10
Kibibyte = 1024 byte
KiB = Kibibyte # Kibibyte
Mebibyte = 1024 KiB
MiB = Mebibyte # Mebibyte
Gibibyte = 1024 MiB
GiB = Gibibyte # Gibibyte
Tebibyte = 1024 GiB
TiB = Tebibyte # Tebibyte
Pebibyte = 1024 TiB
PiB = Pebibyte # Pebibyte
[Datenübertragung]
bps = bit/sec # Bit/sec
kbps = 1000 bps # Kilobit/sec # basierend auf Basis 10
Mbps = 1000 kbps # Megabit/sec # basierend auf Basis 10
Gbps = 1000 Mbps # Gigabit/sec # basierend auf Basis 10
#
# Unitless numbers
#
[Anzahl]
unit = !!
Stück = unit
1 = Stück # Stück
pi = 3.14159265358979323846 Stück # π # Kreiszahl
π = pi # # Kreiszahl
Paar = 2 Stück
hat trick = 3 Stück # # Sport
Halbstiege = 10 Stück
Dutzend = 12 Stück
dozen = Dutzend # Dutzend # engl.
Dtz = Dutzend # Dutzend
doz = Dutzend # Dutzend # engl. dozen
bakers dozen = 13 Stück # # engl.
Mandel = 15 Stück
Malter = Mandel
Große Mandel = 16 Stück
Bauernmandel = Große Mandel
score = 20 Stück # # engl.
Stiege = 20 Stück
Steige = Stiege
Band = 30 Stück
Bund = Band
Schock = 5 Dutzend
Großschock = 4 Bauernmandel
Bauernschock = Großschock
Gros = 12 Dutzend
gross = Gros # # engl.
Großgros = 12 Gros
great gross = 12 gross # # engl.
ream = 500 Stück # # engl.
Prozent = 0.01 Stück
percent = Prozent # # engl.
% = Prozent
Promille = 0.001 Stück
mill = 0.001 Stück # # engl.
[Verzinsung]
APR = [unit] log(1 + x/100) ; (exp(x) - 1)*100 \
# annual percent rate # basierend auf stetiger Verzinsung
[Konzentration]
proof = 1/200.0 Stück # # Alkoholgehalt
ppm = 1e-6 Stück # parts per million # Teile auf eine Million
parts per million = ppm # # Teile auf eine Million
ppb = 1e-9 Stück # parts per billion # Teile auf eine Milliarde
parts per billion = ppb # # Teile auf eine Milliarde
ppt = 1e-12 Stück # parts per trillion # Teile auf eine Billion
parts per trillion = ppt # # Teile auf eine Billion
Karat Gold = 1/24.0 Stück # # Goldreinheit
#
# force units
#
[Kraft]
Newton = kg*m/s^2
N = Newton # Newton
Dekanewton = 10 Newton
Kilonewton = 1000 N
kN = Kilonewton # Kilonewton
Meganewton = 1000 kN
Millinewton = 0.001 N
dyn = cm*g/s^2
dyne = dyn
Kilopond = kg * Erdbeschleunigung
kp = Kilopond # Kilopond
kg force = Kilopond # Kilopond
kgf = Kilopond # Kilopond
Pond = g * Erdbeschleunigung
gram force = Pond # Pond
pound force = lbm * Erdbeschleunigung # # Gewichtskraft eines Pfunds
lbf = pound force # pound force # Gewichtskraft eines Pfunds
ton force = ton * Erdbeschleunigung # # Gewichtskraft einer angloamer. Tonne
ounce force = ounce * Erdbeschleunigung # # Gewichtskraft einer Unze
ozf = ounce force # ounce force # Gewichtskraft einer Unze
tonne force = Tonne * Erdbeschleunigung # # Gewichtskraft einer metrischen Tonne
#
# area units
#
[Fläche]
Quadratmeter = m^2
qm = m^2 # Quadratmeter
Barn = 1e-28 m^2 # # Teilchenphysik
Ar = 100 m^2
are = Ar # # engl. Ar
Dekar = 10 Ar
Hektar = 100 Ar
acre = 10 chain^2
section = mile^2
township = 36 section
homestead = 160 acre
rai = 1600 m^2 # # Thailändisch
ngaan = 400 m^2 # # Thailändisch
circular inch = 1/4.0 pi*in^2 # # Fläche eines Kreises mit 1 Zoll Durchmesser
circular mil = 1/4.0 pi*mil^2 # # Fläche eines Kreises mit 1 Zoll Durchmesser
AWG Area = [in^2] pi/4*(92.0**((36-x)/39.0)/200.0)**2 ; \
36 - 39.0*log(200.0*sqrt(x*4.0/pi))/log(92.0) \
# American Wire Gauge \
# US-Maß für Drahtquerschnitte; -1, -2 für 00, 000 benutzen; nicht-linear
American Wire Gauge Area = [in^2] pi/4*(92.0**((36-x)/39.0)/200.0)**2 ; \
36 - 39.0*log(200.0*sqrt(x*4.0/pi))/log(92.0) \
# # US-Maß für Drahtquerschnitte; -1, -2 für 00, 000 benutzen; nicht-linear
#
# volume units
#
[Volumen]
cc = cm^3 # Kubikzentimeter # engl. cubic centimeter
Kubikzentimeter = cc
Liter = 1000 cc
l = Liter # Liter
litre = Liter # # engl.
Deziliter = 0.1 Liter
Zentiliter = 0.01 Liter
Milliliter = cc
ml = Milliliter # Milliliter
Dekaliter = 10 Liter
Hektoliter = 100 Liter
Kiloliter = 1000 Liter
kl = Kiloliter # Kiloliter
Megaliter = 1000 Kiloliter
gallon = 231 in^3 # Gallone
Gallone = gallon #
gal = gallon # Gallone
quart = 1/4.0 gallon #
qt = quart # Quart
pint = 1/2.0 quart #
pt = pint # Pint
fluid ounce = 1/16.0 pint # # Flüssigunze
fl oz = fluid ounce # fluid ounce # US
ounce fluid = fluid ounce # # US
imperial gallon = 4.54609 Liter
imp gal = imperial gallon # imperial gallon
gallon imperial = imperial gallon
imperial quart = 1/4.0 imp gal
imp qt = imperial quart # imperial quart
quart imperial = imperial quart
imperial pint = 1/8.0 imp gal
imp pt = imperial pint # imperial pint
pint imperial = imperial pint
imperial fluid ounce = 1/160.0 imp gal
imp fl oz = imperial fluid ounce # imperial fluid ounce
cup = 8 fl oz # Tasse # engl.
tablespoon = 1/16.0 cup # Esslöffel # engl.
tbsp = tablespoon # Esslöffel # engl. tablespoon
teaspoon = 1/3.0 tbsp # Teelöffel # engl.
tsp = teaspoon # Teelöffel # engl. teaspoon
barrel = 42 gallon
bbl = barrel # barrel
shot = 1.5 fl oz
fifth = 1/5.0 gallon # # Alkohol
wine bottle = 750 ml
magnum = 1.5 Liter # # Alkohol
keg = 15.5 gallon # Fass # Bierfass
hogshead wine = 63 gal
hogshead beer = 54 gal
bushel = 2150.42 in^3
peck = 1/4.0 bushel
cord = 128 ft^3
board foot = ft^2*in
board feet = board foot
#
# velocity units
#
[Geschwindigkeit]
knot = nmi/hr # Knoten # Schifffahrt
kt = knot # Knoten # Schifffahrt, engl. knot
Lichtgeschwindigkeit = 2.99792458e8 m/s # # definiert
kmh = km/hr # Kilometer/Std
Stundenkilometer = kmh # # ugs. für km/h
mph = mi/hr # Meilen pro Stunde # engl. miles per hour
Mach = 340.29 m/s # # Schallgeschwindigkeit unter Std.bedingungen
[Umdrehungsgeschw.]
rpm = rev/min # Umdrehungen/min # engl. rounds per min
rps = rev/sec # Umdrehungen/sec # engl. rounds per sec
Upm = rev/min # Umdrehungen/min
Ups = rev/sec # Umdrehungen/sec
#
# flow rate units
#
[Flüssigkeitsfluss]
gph = gal/hr # Gallonen/Std
gpm = gal/min # Gallonen/min
cfs = ft^3/sec # cu ft/sec # Kubikfuß pro Sekunde
cfm = ft^3/min # cu ft/min # Kubikfuß pro Minute
lpm = l/min # Liter/min
[Gasfluss]
sccm = atm*cc/min # std cc/min # Druck * Fluss
sccs = atm*cc/sec # std cc/sec # Druck * Fluss
slpm = atm*l/min # std Liter/min # Druck * Fluss
slph = atm*l/hr # std Liter/hr # Druck * Fluss
scfh = atm*ft^3/hr # std cu ft/hr # Druck * Fluss
scfm = atm*ft^3/min # std cu ft/min # Druck * Fluss
#
# pressure units
#
[Druck]
Pa = N/m^2 # Pascal
Pascal = Pa
hPa = 100 Pa # Hektopascal
Hektopascal = hPa
kPa = 1000 Pa # Kilopascal
Kilopascal = kPa
MPa = 1000 kPa # Megapascal
Megapascal = MPa
GPa = 1000 MPa # Gigapascal
Gigapascal = GPa
atm = 101325 Pa # Atmosphäre
Atmosphäre = atm
Atmosphären = atm
Normaldruck = atm # # definiert
bar = 1e5 Pa
mbar = 0.001 bar # Millibar
Millibar = mbar
Mikrobar = 0.001 mbar
Dezibar = 0.1 bar
Kilobar = 1000 bar
Megabar = 1000 Kilobar
mm Hg = mm*Dichte Hg*Erdgravitation # Millimeter Quecksilbersäule
Millimeter Quecksilbersäule = mm Hg
Torr = mm Hg
in Hg = in*Dichte Hg*Erdgravitation # Zoll Quecksilbersäule
Zoll Hg = in Hg # Zoll Quecksilbersäule
Zoll Quecksilbersäule = in Hg
m Wassersäule = Meter Wassersäule
m H2O = Meter Wassersäule # Meter Wassersäule
Meter Wassersäule = m*Dichte Wasser*Erdgravitation
in water = Zoll Wassersäule # Zoll Wassersäule
in H2O = Zoll Wassersäule # Zoll Wassersäule
Zoll Wassersäule = in*Dichte Wasser*Erdgravitation
ft H2O = Fuß Wassersäule # Fuß Wassersäule
Fuß Wassersäule = ft*Dichte Wasser*Erdgravitation
foot of head = Fuß Wassersäule # Fuß Wassersäule
ft hd = Fuß Wassersäule # Fuß Wassersäule # engl. foot of head
ft water = Fuß Wassersäule # Fuß Wassersäule
psi = lbf/in^2 # pound per sq inch # Pfund pro Quadratzoll (engl.)
pound per sq inch = psi
ksi = 1000 psi # kilopound per sq inch # Kilopfund pro Quadratzoll (engl. 1000 lb / sq inch)
#
# density units
#
[Dichte]
Dichte Wasser = g/cm^3
Dichte Seewasser = 1.025 g/cm^3
Dichte Hg = 13.5950981 g/cm^3 # Quecksilber
Dichte Quecksilber = Dichte Hg
Dichte Luft = 1.293 kg/m^3 # # unter Standardbedingungen
Dichte Stahl = 0.283 lb/in^3 # # Kohlenstoffstahl
Dichte Aluminium = 0.098 lb/in^3
Dichte Zink = 0.230 lb/in^3
Dichte Messing = 0.310 lb/in^3 # # 80Cu-20Zn
Dichte Kupfer = 0.295 lb/in^3
Dichte Eisen = 0.260 lb/in^3 # # Gusseisen
Dichte Nickel = 0.308 lb/in^3
Dichte Zinn = 0.275 lb/in^3
Dichte Titan = 0.170 lb/in^3
Dichte Silber = 0.379 lb/in^3
Dichte Nylon = 0.045 lb/in^3
Dichte Polykarbonat = 0.045 lb/in^3
#
# energy units
#
[Energie]
Joule = N*m
J = Joule # Joule
Kilojoule = 1000 Joule
kJ = Kilojoule # Kilojoule
Megajoule = 1000 Kilojoule
Gigajoule = 1000 Megajoule
Millijoule = 0.001 Joule
mJ = Millijoule # Millijoule
Kalorie = 4.1868 J
Kalorien = Kalorie
cal = Kalorie # Kalorie
Kilokalorie = 1000 Kalorie
kcal = Kilokalorie # Kilokalorie
Kalorien in Nahrung = Kilokalorie # Kilokalorie
thermie = 1000 kcal
Btu = cal*lb*R/(g*K) # British thermal unit
British thermal unit = Btu
therm = 100000 Btu
erg = cm*dyne
Elektronenvolt = 1.602176462e-19 J
eV = Elektronenvolt # Elektronenvolt
kWh = kW*hr # Kilowattstunde
Kilowattstunde = kWh
Tonne TNT = 4.184e9 J
Tonne Erdöläquivalent = 41.868 Gigajoule
Tonne Kohleäquivalent = 7000000 kcal
#
# power units
#
[Leistung]
Watt = J/s
W = Watt # Watt
Kilowatt = 1000 W
kW = Kilowatt # Kilowatt
Megawatt = 1000 kW
MW = Megawatt # Megawatt
Gigawatt = 1000 MW
GW = Gigawatt # Gigawatt
Milliwatt = 0.001 W
PS = 735.49875 W # Pferdestärke
Pferdestärke = PS
horsepower = 550 ft*lbf/sec # engl. Pferdestärke
hp = horsepower # engl. Pferdestärke # engl. horsepower
metric horsepower = 75 kgf*m/s # Pferdestärke
ton refrigeration = 12000 Btu/hr # # amer. Einheit für Kühlleistung
#
# frequency
#
[Frequenz]
Hertz = unit/sec
Hz = Hertz # Hertz
Millihertz = 0.001 Hz
Kilohertz = 1000 Hz
kHz = Kilohertz # Kilohertz
Megahertz = 1000 kHz
MHz = Megahertz # Megahertz
Gigahertz = 1000 MHz
GHz = Gigahertz # Gigahertz
#
# radioactivity
#
[Radioaktivität]
Becquerel = unit/sec
Bq = Becquerel # Becquerel
Curie = 3.7e10 Bq
Millicurie = 0.001 Curie
Roentgen = 2.58e-4 Coulomb/kg
Röntgen = Roentgen
[Strahlungsdosis]
Gray = J/kg
Gy = Gray # Gray
rad Dosis = 0.01 Gy # #
Sievert = J/kg # # Äquivalentdosis
Millisievert = 0.001 Sievert # # Äquivalentdosis
Sv = Sievert # Sievert # Äquivalentdosis
rem = 0.01 Sv # # Äquivalentdosis, veraltet
Millirem = 0.001 rem # # Äquivalentdosis, veraltet
#
# viscosity
#
[dyn. Viskosität]
Poise = g/(cm*s)
P = Poise # Poise
Zentipoise = 0.01 Poise
cP = Zentipoise # Zentipoise
[kinem. Viskosität]
Stokes = cm^2/s
St = Stokes # Stokes
Zentistokes = 0.01 Stokes
cSt = Zentistokes # Zentistokes
#
# misc. units
#
[Beschleunigung]
Erdbeschleunigung = 9.80665 m/s^2 # # Mittelwert, internat. Konvention
Erdschwerebeschleunigung = Erdbeschleunigung
Erdgravitation = Erdbeschleunigung
Gravitation = Erdbeschleunigung # Erdbeschleunigung
[Konstanten]
Gravitationskonstante = 6.673e-11 N*m^2/kg^2
Gaskonstante = 8.314472 J/(mol*K) # R
[Benzinverbrauch]
Meilen pro Gallone = mi/gal
mpg = Meilen pro Gallone # Meilen pro Gallone
mpg imp = mi/gallon imperial # Meilen pro Gallone (brit.)
Liter pro 100 km = [mpg] 3.785411784 / (x * 0.01609344) ; \
3.785411784 / (x * 0.01609344) # # non-linear
[Permeabilität]
Darcy = 1 cm^2*Zentipoise/atm/s
Millidarcy = 0.001 Darcy
ConvertAll-0.8.0/data/units_es.dat 0000664 0000000 0000000 00000066764 13635744055 0017063 0 ustar 00root root 0000000 0000000 #*****************************************************************************
# units.dat, el archivo de datos de unidad, versión 0.6.0
#
# ConvertAll, un programa para convertir unidades
# Copyright (C) 2015, Douglas W. Bell
#
# This is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License, Version 2. This program is
# distributed in the hope that it will be useful, but WITTHOUT ANY WARRANTY.
#*****************************************************************************
#
# Units are defined by an optional quantity and an equivalent unit or unit
# combination. A python expression may be used for the quantity, but is
# resticted to using only the following operators: *, /, +, -, **, (, ).
# Beware of integer division truncation: be sure to use a float for at
# least one of the values.
#
# The unit type must be placed in square brackets before a set of units.
# The first comment after the equivalent unit will be put in parenthesis after
# the unit name (usually used to give the full name of an abbreviated unit).
# The next comment will be used in the program list's comment column;
# later comments and full line comments are ignored.
#
# Non-linear units are indicated with an equivalent unit in square brackets,
# followed by either equations or equivalency lists for the definition.
# For equations, two are given, separated by a ';'. Both are functions of
# "x", the first going from the unit to the equivalent unit and the second
# one in reverse. Any valid Python expression returning a float (including
# the functions in the math module) should work. The equivalency list is a
# python list of tuples giving points for linear interpolation.
#
# All units must reduce to primitive units, which are indicated by an
# equivalent unit starting with '!'. A special "unitless" primitve unit
# (usualty called "unit") has '!!' for an equivalent unit. Circular references
# must also be avoided.
#
# Primitive units: kg, m, s, K, A, mol, cd, rad, sr, bit, unit
#
##############################################################################
#
# unidades de masa
#
[masa]
kg = ! # kilogramo
kilogramo = kg
key = kg # # jerga de drogas
hectogramo = 100 gramo
decagramo = 10 gramo
gramo = 0.001 kg
g = gramo # gramo
decigramo = 0.1 gramo
centigramo = 0.01 gramo
miligramo = 0.001 gramo
mg = miligramo # miligramo
microgramo = 0.001 mg
tonelada = 1000 kg # # métrica
tonelada métrica = tonelada
megagramo = tonelada
kilotonelada = 1000 tonelada # # métrica
gigagramo = 1e9 gramo
teragramo = 1e12 gramo
carat = 0.2 gramo
ct = carat # carat
amu = 1.66053873e-27 kg # masa atómica
unidad de masa atómica = amu
libra = 0.45359237 kg
lb = libra # libra
lbm = libra # libra
onza = 1/16.0 libra
oz = onza # onza
lid = onza # # jerga de drogas
libra troy = 5760 grain
lb troy = libra troy # libra troy
onza troy = 1/12.0 lb troy
oz troy = onza troy # onza troy
ton = 2000 lb # # no métrico
kilotón = 1000 ton # # no métrico
slug = lbf*s^2/ft
stone = 14 lb
grain = 1/7000.0 lb
pennyweight = 24 grain
hundredweight long = 112 lb # # Imperial
hundredweight short = 100 lb # # US & Canadá
masa solar = 1.9891e30 kg
#
# unidades de longitud / distancia
#
[longitud]
m = ! # metro
metro = m
metre = m
decímetro = 0.1 m
cm = 0.01 m # centímetro
centímetro = cm
mm = 0.001 m # milímetro
milímetro = mm
micrómetro = 1e-6 m
micrón = micrómetro
nanómetro = 1e-9 m
nm = nanómetro # nanómetro
decámetro = 10 m
hectómetro = 100 m
km = 1000 m # kilómetro
kilómetro = km
megámetro = 1000 km
angstrom = 1e-10 m
fermi = 1e-15 m # # tamaño nuclear
pulgada = 2.54 cm
in = pulgada # pulgada
pulgadas = pulgada
mil = 0.001 pulgada
micropulgada = 1e-6 pulgada
micropulgadas = micropulgada
pie = 12 pulgada
ft = pie # pie
pies = pie
pie US survey = 1200/3937.0 m
yarda = 3 ft
yd = yarda # yarda
milla = 5280 ft
mi = milla # milla
milla náutica = 1852 m
nmi = milla náutica # milla náutica
legua = 3 milla
chain = 66 ft
braza = 6 ft
rod = 5.5 yarda
furlong = 40 rod
estadio = furlong
mano = 4 pulgada
codo = 21.8 pulgada # # unidad bíblica
point = 1/72.0 pulgada # # punto de carácter tipográfico
pica = 12 point
calibre = 1.0 pulgada # # tamaño de una bala
football field = 100 yd
marathon = 46145 yd
milla escandinava = 10 km
au = 1.49597870691e11 m # unidad astronómica
unidad astronómica = au
año luz = 365.25 velocidad de la luz * día
minuto luz = velocidad de la luz * min
segundo luz = velocidad de la luz * s
parsec = 3.0856775813e16 m
kiloparsec = 1000 parsec
megaparsec = 1000 kiloparsec
screw size = [in] 0.013*x + 0.06 ; (x - 0.06) / 0.013 \
# # Diámetro unificado, no linear
AWG Dia = [in] 92.0**((36-x)/39.0)/200.0 ; \
36 - 39.0*log(200.0*x)/log(92.0) \
# American Wire Gauge \
# use -1, -2 for 00, 000; non-linear
American Wire Gauge Dia = [in] 92.0**((36-x)/39.0)/200.0 ; \
36 - 39.0*log(200.0*x)/log(92.0) \
# # use -1, -2 for 00, 000; non-linear
standard gauge = [in] [(-5, .448350), (1, .269010), (14, .0747250), \
(16, .0597800), (17, .0538020), (20, .0358680), \
(26, .0179340), (31, .0104615), (36, .00672525), \
(38, .00597800)] # steel \
# Manufacturers Std. Gauge, non-linear
zinc gauge = [in] [(1, .002), (10, .02), (15, .04), (19, .06), \
(23, .1), (24, .125), (27, .5), (28, 1)] \
# # sheet metal thickness, non-linear
ring size = [in] 0.1018*x + 1.4216 ; (x - 1.4216) / 0.1018 \
# # US size, circum., non-linear
tamaño de zapato para hombres = [in] x/3.0 + 7 + 1/3.0 ; (x - 7 - 1/3.0) * 3 \
# # medida US, no linear
tamaño de zapato para mujeres = [in] x/3.0 + 6 + 5/6.0 ; (x - 6 - 5/6.0) * 3 \
# # medida US, no linear
#
# unidades de tiempo
#
[tiempo]
s = ! # segundo
seg = s # segundo
segundo = s
ms = 0.001 s # milisegundo
milisegundo = ms
microsegundo = 1e-6 s
ns = 1e-9 s # nanosegundo
nanosegundo = ns
minuto = 60 s
min = minuto # minuto
hora = 60 min
hr = hora # hora
bell = 30 min # # definición naval
watch = 4 hora
watches = watch
día = 24 hr
semana = 7 día
wk = semana # semana
fortnight = 14 días
mes = 1/12.0 año
año = 365.242198781 día
años = año
yr = año # año
año calendario = 365 día
década = 10 año
siglo = 100 año
siglos = siglo
milenio = 1000 año
milenios = milenio
[planificación]
horas hombre = 168/40.0 hora
semanas hombre = 40 horas hombre
meses hombre = 1/12.0 años hombre
años hombre = 52 semanas hombre
#
# temperatura
#
[temperatura]
K = ! # Kelvin
Kelvin = K
deg K = K # Kelvin
grado Kelvin = K
C = [K] x + 273.15 ; x - 273.15 # Celsius # no linear
Celsius = [K] x + 273.15 ; x - 273.15 # # no linear
deg C = [K] x + 273.15 ; x - 273.15 # Celsius # no linear
grado Celsius = [K] x + 273.15 ; x - 273.15 # # no linear
R = 5/9.0 K # Rankine
Rankine = R
deg R = R # Rankine
F = [R] x + 459.67 ; x - 459.67 # Fahrenheit # no linear
Fahrenheit = [R] x + 459.67 ; x - 459.67 # # no linear
deg F = [R] x + 459.67 ; x - 459.67 # Fahrenheit # no linear
grado Fahrenheit = [R] x + 459.67 ; x - 459.67 # # no linear
[temp. diff.]
C deg = K # grados Celsius
grados Celsius = C deg
F deg = R # grados Fahrenheit
grados Fahrenheit = F deg
#
# unidades eléctricas
#
[corriente]
A = ! # ampere
ampere = A
amp = A
amperio = A
miliamperio = 0.001 A
miliamp = miliamperio
mA = miliamperio # miliamperio
microamperio = 0.001 mA
kiloamperio = 1000 A
kA = kiloamperio # kiloamperio
[carga]
coulomb = A*s
amp hora = A*hr
mAh = 0.001 amp hora # miliamp hora
miliamp hora = mAh
[potencial]
voltio = W/A
V = voltio # voltio
milivoltio = 0.001 voltio
mV = milivoltio # milivoltio
kilovoltio = 1000 voltio
kV = kilovoltio # kilovoltio
[resistencia]
ohm = V/A
miliohm = 0.001 ohm
microhm = 0.001 miliohm
kilohm = 1000 ohm
[conductancia]
siemens = A/V
[capacitancia]
farad = coulomb/V
milifarad = 0.001 farad
microfarad = 0.001 milifarad
nanofarad = 1e-9 farad
picofarad = 1e-12 farad
[flujo magnético]
weber = V*s
Wb = weber # weber
maxwell = 1e-8 Wb
[inductancia]
henry = Wb/A
H = henry # henry
milihenry = 0.001 henry
mH = milihenry # milihenry
microhenry = 0.001 mH
[densidad de flujo]
tesla = Wb/m^2
T = tesla # tesla
gauss = maxwell/cm^2
#
# unidades moleculares
#
[cantidades moleculares]
mol = ! # mole # gramo mole
mole = mol # # gramo mole
gramo mole = mol
kilomol = 1000 mol
kmol = kilomol # kilomol
libra mole = mol*lbm/gramo
lbmol = libra mole # libra mole
[tamaño de un mol]
avogadro = gramo/(amu*mol)
#
# Unidades de iluminación
#
[intensidad de iluminación]
cd = ! # candela
candela = cd
[flujo luminoso]
lumen = cd * sr
lm = lumen # lumen
[iluminancia]
lux = lumen/m^2
footcandle = lumen/ft^2
metercandle = lumen/m^2
[luminancia]
lambert = cd/(pi*cm^2)
mililambert = 0.001 lambert
footlambert = cd/(pi*ft^2)
#
# unidades angulares
#
[ángulo]
radián = !
rad = radián # radián
círculo = 2 pi*radián
giro = círculo
revolución = círculo
rev = revolución # revolución
grado = 1/360.0 círculo
deg = grado # grado
arc min = 1/60.0 grado # minuto
arc minute = arc min
min arc = arc min # minuto
minute arc = arc min
arc seg = 1/60.0 arc min # segundo
arc segundo = arc seg
seg arc = arc seg # segundo
segundo arc = arc seg
cuadrante = 1/4.0 círculo
ángulo recto = cuadrante
gradián = 0.01 cuadrante
#
# unidades de ángulo sólido
#
[ángulo sólido]
sr = ! # estereorradián
estereorradián = sr
esfera = 4 pi*sr
hemiesfera = 1/2.0 esfera
#
# unidades de información
#
[datos]
bit = !
kilobit = 1000 bit # # basado en potencias de 10
megabit = 1000 kilobit # # basado en potencias de 10
byte = 8 bit
B = byte # byte
kilobyte = 1024 byte # # basado en potencias de 2
kB = kilobyte # kilobyte # basado en potencias de 2
megabyte = 1024 kB # # basado en potencias de 2
MB = megabyte # megabyte # basado en potencias de 2
gigabyte = 1024 MB # # basado en potencias de 2
GB = gigabyte # gigabyte # basado en potencias de 2
terabyte = 1024 GB # # basado en potencias de 2
TB = terabyte # terabyte # basado en potencias de 2
petabyte = 1024 TB # # basado en potencias de 2
PB = petabyte # petabyte # basado en potencias de 2
kilobyte IEC std = 1000 byte # # basado en potencias de 10
kB IEC std = kilobyte IEC std # kilobyte # basado en potencias de 10
megabyte IEC std = 1000 kB IEC std # # basado en potencias de 10
MB IEC std = megabyte IEC std # megabyte # basado en potencias de 10
gigabyte IEC std = 1000 MB IEC std # # basado en potencias de 10
GB IEC std = gigabyte IEC std # gigabyte # basado en potencias de 10
terabyte IEC std = 1000 GB IEC std # # basado en potencias de 10
TB IEC std = terabyte IEC std # terabyte # basado en potencias de 10
petabyte IEC std = 1000 TB IEC std # # basado en potencias de 10
PB IEC std = petabyte IEC std # petabyte # basado en potencias de 10
kibibyte = 1024 byte
KiB = kibibyte # kibibyte
mebibyte = 1024 KiB
MiB = mebibyte # mebibyte
gibibyte = 1024 MiB
GiB = gibibyte # gibibyte
tebibyte = 1024 GiB
TiB = tebibyte # tebibyte
pebibyte = 1024 TiB
PiB = pebibyte # pebibyte
[transferencia de datos]
bps = bit/seg # bits / segundo
kbps = 1000 bps # kilobits / sec. # basado en potencias de 10
#
# Números sin unidades
#
[cantidad]
unidad = !!
1 = unidad # unidad
pi = 3.14159265358979323846 unidad
par = 2 unidad
hat trick = 3 unidad # # deportes
docena = 12 unidad
doz = docena # docena
bakers dozen = 13 unidad
score = 20 unidad
gross = 144 unidad
great gross = 12 gross
ream = 500 unidad
porciento = 0.01 unidad
% = porciento
mill = 0.001 unidad
[tasa de interés]
APR = [unidad] log(1 + x/100) ; (exp(x) - 1)*100 \
# annual % rate # based on continuous compounding
[concentración]
proof = 1/200.0 unidad # # contenido alcohólico
ppm = 1e-6 unidad # partes por millón
partes por millón = ppm
ppb = 1e-9 unidad # partes por billón (US: en realidad es millardo)
partes por billón = ppb
ppt = 1e-12 unidad # partes por trillón (US: en realidad es billón)
partes por trillón = ppt
karat = 1/24.0 unidad # # pureza del oro
carat oro = karat # # pureza del oro
#
# unidades de fuerza
#
[fuerza]
newton = kg*m/s^2
N = newton # newton
decanewton = 10 newton
kilonewton = 1000 N
kN = kilonewton # kilonewton
meganewton = 1000 kN
milinewton = 0.001 N
dyna = cm*g/s^2
kg fuerza = kg * gravedad # kilogramo f
kgf = kg fuerza # kilogramo fuerza
kilogramo fuerza = kg fuerza
gramo fuerza = g * gravedad
libra fuerza = lbm * gravedad
lbf = libra fuerza # libra fuerza
ton fuerza = ton * gravedad
onza fuerza = onza * gravedad
ozf = onza fuerza # onza fuerza
tonelada fuerza = tonelada * gravedad # # métrica
#
# unidades de área
#
[área]
barn = 1e-28 m^2 # # física de partículas
área = 100 m^2
decaárea = 10 área
dekare = 10 área
hectárea = 100 área
acre = 10 chain^2
section = milla^2
township = 36 section
homestead = 160 acre
rai = 1600 m^2 # # Thai
ngaan = 400 m^2 # # Thai
pulgada circular = 1/4.0 pi*in^2 # # área de un círculo de 1 pulgada de diámetro
milla circular = 1/4.0 pi*mil^2 # # área de un círculo de 1 milla de diámetro
AWG Area = [in^2] pi/4*(92.0**((36-x)/39.0)/200.0)**2 ; \
36 - 39.0*log(200.0*sqrt(x*4.0/pi))/log(92.0) \
# American Wire Gauge \
# use -1, -2 for 00, 000; non-linear
American Wire Gauge Area = [in^2] pi/4*(92.0**((36-x)/39.0)/200.0)**2 ; \
36 - 39.0*log(200.0*sqrt(x*4.0/pi))/log(92.0) \
# # use -1, -2 for 00, 000; non-linear
#
# unidades de volumen
#
[volumen]
cc = cm^3 # centímetro cúbico
centímetro cúbico = cc
litro = 1000 cc
l = litro # litro
litros = litro
decilitro = 0.1 litro
centilitro = 0.01 litro
mililitro = cc
ml = mililitro # mililitro
decalitro = 10 litro
hectolitro = 100 litro
kilolitro = 1000 litro
kl = kilolitro # kilolitro
megalitro = 1000 kilolitro
galón = 231 in^3 # # líquidos en US
gal = galón # galón # líquidos en US
quart = 1/4.0 galón # # líquidos en US
qt = quart # quart # líquidos en US
pint = 1/2.0 quart # # líquidos en US
pt = pint # pint # líquidos en US
onza líquida = 1/16.0 pint # # US
fl oz = onza líquida # onza líquida # US
galón imperial = 4.54609 litro
imp gal = galón imperial # galón imperial
imperial galón = galón imperial
cuarto imperial = 1/4.0 imp gal
imp qt = cuarto imperial # cuarto imperial
imperial cuarto = cuarto imperial
imperial pinta = 1/8.0 imp gal
imp pt = imperial pinta # pinta imperial
pinta imperial = imperial pinta
onza líquida imperial = 1/160.0 imp gal
imp fl oz = onza líquida imperial # onza líquida imperial
taza = 8 fl oz
cuchara de mesa = 1/16.0 taza
tbsp = cuchara de mesa # cuchara de mesa
cuchara de té = 1/3.0 tbsp
tsp = cuchara de té # cuchara de té
barril = 42 galón
bbl = barril # barril
shot = 1.5 fl oz
fifth = 1/5.0 galón # # alcohol
botella de vino = 750 ml
magnum = 1.5 litro # # alcohol
keg = 15.5 galón # # cerveza
hogshead wine = 63 gal
hogshead beer = 54 gal
bushel = 2150.42 in^3
peck = 1/4.0 bushel
cord = 128 ft^3
board foot = ft^2*in
board feet = board foot
#
# unidades de velocidad
#
[velocidad]
nudo = nmi/hr
kt = nudo # nudo
velocidad de la luz = 2.99792458e8 m/s
mph = mi/hr # millas/hora
kph = km/hr # kilómetros/hora
mach = 340.29 m/s # # velocidad del sonido a STP
[velocidad de rotación]
rpm = rev/min # rev/min
rps = rev/seg # rev/seg
#
# unidades de flujo
#
[unidades de flujo]
gph = gal/hr # galón/hora
gpm = gal/min # galón/minuto
cfs = ft^3/seg # cu ft/segundo
cfm = ft^3/min # cu ft/minuto
lpm = l/min # litro/min
[flujo de gas]
sccm = atm*cc/min # std cc/min # presión * flujo
sccs = atm*cc/seg # std cc/seg # presión * flujo
slpm = atm*l/min # std litro/min # presión * flujo
slph = atm*l/hr # std litro/hora # presión * flujo
scfh = atm*ft^3/hora # std cu ft/hora # presión * flujo
scfm = atm*ft^3/min # std cu ft/min # presión * flujo
#
# unidades de presión
#
[presión]
Pa = N/m^2 # pascal
pascal = Pa
hPa = 100 Pa # hectopascal
hectopascal = hPa
kPa = 1000 Pa # kilopascal
kilopascal = kPa
MPa = 1000 kPa # megapascal
megapascal = MPa
GPa = 1000 MPa # gigapascal
gigapascal = GPa
atm = 101325 Pa # atmósfera
atmósfera = atm
bar = 1e5 Pa
mbar = 0.001 bar # milibar
milibar = mbar
microbar = 0.001 mbar
decibar = 0.1 bar
kilobar = 1000 bar
megabar = 1000 kilobar
mm Hg = mm*densidad Hg*gravedad
milímetro de Hg = mm Hg
torr = mm Hg
in Hg = in*densidad Hg*gravedad # pulgadas de Hg
pulgadas de Hg = in Hg
m agua = m*densidad agua*gravedad # metros de H2O
m H2O = m agua # metros de H2O
metros de agua = m agua
in de agua = in*densidad agua*gravedad # pulgadas de H2O
in H2O = in de agua # pulgadas de H2O
pulgadas de agua = in de agua
ft de agua = ft*densidad agua*gravedad # pies de H2O
ft H2O = ft de agua # pies de H20
pies de agua = ft de agua
pies de head = ft de agua
ft hd = ft de agua # pies de head
psi = lbf/in^2 # libra / pulgada cuadrada
libra por pulgada cuadrada = psi
ksi = 1000 psi # 1000 lb / pulgada cuadrada
#
# unidades de densidad
#
[densidad]
densidad agua = gramo/cm^3
densidad agua de mar = 1.025 gramo/cm^3
densidad Hg = 13.5950981 gramo/cm^3
densidad aire = 1.293 kg/m^3 # # a STP
densidad acero = 0.283 lb/in^3 # # acero al carbón
densidad aluminio = 0.098 lb/in^3
densidad zinc = 0.230 lb/in^3
densidad bronce = 0.310 lb/in^3 # # 80Cu-20Zn
densidad cobre = 0.295 lb/in^3
densidad hierro = 0.260 lb/in^3 # # hierro colado
densidad nickel = 0.308 lb/in^3
densidad estaño = 0.275 lb/in^3
densidad titanio = 0.170 lb/in^3
densidad plata = 0.379 lb/in^3
densidad nylon = 0.045 lb/in^3
densidad polycarbonato = 0.045 lb/in^3
#
# unidades de energía
#
[energía]
joule = N*m
J = joule # joule
kilojoule = 1000 joule
kJ = kilojoule # kilojoule
megajoule = 1000 kilojoule
gigajoule = 1000 megajoule
milijoule = 0.001 joule
mJ = milijoule # milijoule
caloría = 4.1868 J
cal = caloría # caloría
kilocaloría = 1000 cal
kcal = kilocaloría # kilocaloría
caloría comida = kilocaloría
thermie = 1000 kcal
Btu = cal*lb*R/(g*K) # British thermal unit
British thermal unit = Btu
therm = 100000 Btu
erg = cm*dyna
electronvolt = 1.602176462e-19 J
eV = electronvolt # electronvolt
kWh = kW*hora # kilowatt-hora
kilowatt hora = kWh
ton TNT = 4.184e9 J
tonelada de aceite equivalente = 41.868 gigajoule
tonelada de carbón equivalente = 7000000 kcal
#
# unidades de potencia
#
[potencia]
watt = J/s
W = watt # watt
kilowatt = 1000 W
kW = kilowatt # kilowatt
megawatt = 1000 kW
MW = megawatt # megawatt
gigawatt = 1000 MW
GW = gigawatt # gigawatt
miliwatt = 0.001 W
caballo de fuerza = 550 ft*lbf/seg
caballo de potencia = caballo de fuerza
hp = caballo de fuerza # caballo de fuerza
caballo de fuerza métrico = 75 kgf*m/s
ton refrigeración = 12000 Btu/hr
#
# frecuencia
#
[frecuencia]
hertz = unidad/seg
Hz = hertz # hertz
milihertz = 0.001 Hz
kilohertz = 1000 Hz
kHz = kilohertz # kilohertz
megahertz = 1000 kHz
MHz = megahertz # megahertz
gigahertz = 1000 MHz
GHz = gigahertz # gigahertz
#
# radioactividad
#
[radioactividad]
becquerel = unidad/seg
Bq = becquerel # becquerel
curie = 3.7e10 Bq
milicurie = 0.001 curie
roentgen = 2.58e-4 coulomb/kg
[dosis de radiación]
gray = J/kg
Gy = gray # gray
rad. abs. dose = 0.01 Gy # # comúnmente rad
sievert = J/kg # # dosis equivalente
milisievert = 0.001 sievert # # dosis equivalente
Sv = sievert # sievert # dosis equivalente
rem = 0.01 Sv # # roentgen equiv mamífero
milirem = 0.001 rem # # roentgen equiv mamífero
#
# viscosidad
#
[viscosidad dinámica]
poise = g/(cm*s)
P = poise # poise
centipoise = 0.01 poise
cP = centipoise # centipoise
[viscosidad cinemática]
stokes = cm^2/s
St = stokes # stokes
centistokes = 0.01 stokes
cSt = centistokes # centistokes
#
# unidades misceláneas
#
[aceleración]
gravedad = 9.80665 m/s^2
[constante]
constante gravitacional = 6.673e-11 N*m^2/kg^2
constante de los gases = 8.314472 J/(mol*K) # R
[consumo de combustible]
mpg = mi/gal # millas/galón
mpg imp = mi/galón imperial # millas/galón imp
litro por 100 km = [mpg] 3.785411784 / (x * 0.01609344) ; \
3.785411784 / (x * 0.01609344) # # non-linear
[permeabilidad]
darcy = 1 cm^2*centipoise/atm/s
milidarcy = 0.001 darcy
ConvertAll-0.8.0/data/units_fr.dat 0000664 0000000 0000000 00000063271 13635744055 0017051 0 ustar 00root root 0000000 0000000 #*****************************************************************************
# units.dat, the units data file, version 0.6.0
#
# ConvertAll, a units conversion programme
# Copyright (C) 2014, Douglas W. Bell
#
# This is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License, Version 2. This programme is
# distributed in the hope that it will be useful, but WITTHOUT ANY WARRANTY.
#*****************************************************************************
#
# Units are defined by an optional quantity and an equivalent unit or unit
# combination. A python expression may be used for the quantity, but is
# resticted to using only the following operators: *, /, +, -, **, (, ).
# Beware of integer division truncation: be sure to use a float for at
# least one of the values.
#
# The unit type must be placed in square brackets before a set of units.
# The first comment after the equivalent unit will be put in parenthesis after
# the unit name (usually used to give the full name of an abbreviated unit).
# The next comment will be used in the programme list's comment column;
# later comments and full line comments are ignored.
#
# Non-linear units are indicated with an equivalent unit in square brackets,
# followed by either equations or equivalency lists for the definition.
# For equations, two are given, separated by a ';'. Both are functions of
# "x", the first going from the unit to the equivalent unit and the second
# one in reverse. Any valid Python expression returning a float (including
# the functions in the math module) should work. The equivalency list is a
# python list of tuples giving points for linear interpolation.
#
# All units must reduce to primitive units, which are indicated by an
# equivalent unit starting with '!'. A special "unitless" primitve unit
# (usualty called "unit") has '!!' for an equivalent unit. Circular references
# must also be avoided.
#
# Primitive units: kg, m, s, K, A, mol, cd, rad, sr, bit, unit
#
##############################################################################
#
# mass units
#
[masse]
kg = ! # kilogramme
kilogramme = kg
key = kg # # jargon de drogue
hectogramme = 100 gramme
decagramme = 10 gramme
gramme = 0.001 kg
g = gramme # gramme
decigramme = 0.1 gramme
centigramme = 0.01 gramme
milligramme = 0.001 gramme
mg = milligramme # milligramme
microgramme = 0.001 mg
tonne = 1000 kg # # metriqu
tonne metrique = tonne
megagramme = tonne
kilotonne = 1000 tonne # # metrique
gigagramme = 1e9 gramme
teragramme = 1e12 gramme
carat = 0.2 gramme
ct = carat # carat
amu = 1.66053873e-27 kg # masse atomique
masse atomique = amu
livre = 0.45359237 kg
lb = livre # livres
lbm = livre # livres
once = 1/16.0 livre
oz = once # once
lid = once # # jargon de drogue
livre troy = 5760 grain
lb troy = livre troy # livre troy
once troy = 1/12.0 lb troy
oz troy = once troy # once troy
ton = 2000 lb # # impériale
kiloton = 1000 ton # # impériale
slug = lbf*s^2/ft
stone = 14 lb
grain = 1/7000.0 lb
pennyweight = 24 grain
masse solaire = 1.9891e30 kg
#
# length / distance units
#
[longueur]
m = ! # mètre
mètre = m
decimètre = 0.1 m
cm = 0.01 m # centimètre
centimètre = cm
mm = 0.001 m # millimètre
millimètre = mm
micromètre = 1e-6 m
micron = micromètre
nanomètre = 1e-9 m
nm = nanomètre # nanomètre
decamètre = 10 m
hectomètre = 100 m
km = 1000 m # kilomètre
kilomètre = km
megamètre = 1000 km
angstrom = 1e-10 m
fermi = 1e-15 m # # grandeur nucléaire
pouce = 2.54 cm
in = pouce # pouce
inches = pouce
mil = 0.001 pouce
microinch = 1e-6 pouce
microinches = microinch
pied = 12 pouce
ft = pied # pied
feet = pied
pied US survey = 1200/3937.0 m
verge = 3 ft
yd = verge # verge
mile = 5280 ft
mi = mile # mille
nautical mile = 1852 m
nmi = nautical mile # mille nautique
league = 3 mile
chain = 66 ft
brasse = 6 ft
fm = brasse
perche = 5.5 verge
furlong = 40 perche
main = 4 pouce
cubit = 21.8 pouce # # coudée biblique
point = 1/72.0 pouce # # point de caractère
pica = 12 point
calibre = 1.0 pouce # # calibre d'une arme
terrain de football = 100 yd
marathon = 46145 yd
mille suedois = 10 km
ua = 1.49597870691e11 m # unité astronomique
unite astronomique = ua
annee lumiere = 365.25 vitesse lumiere * jour
minute lumiere = vitesse lumiere * min
seconde lumiere = vitesse lumiere * s
parsec = 3.0856775813e16 m
kiloparsec = 1000 parsec
megaparsec = 1000 kiloparsec
screw size = [in] 0.013*x + 0.06 ; (x - 0.06) / 0.013 \
# # Diamètre unifié, non linéaire
AWG = [in] 92.0**((36-x)/39.0)/200.0 ; \
36 - 39.0*log(200.0*x)/log(92.0) \
# Diamètre de câble électrique \
# utilisé -1, -2 for 00, 000; non linéaire
American Wire Gauge = [in] 92.0**((36-x)/39.0)/200.0 ; \
36 - 39.0*log(200.0*x)/log(92.0) \
# # utilisé -1, -2 for 00, 000; non linéaire
standard gauge = [in] [(-5, .448350), (1, .269010), (14, .0747250), \
(16, .0597800), (17, .0538020), (20, .0358680), \
(26, .0179340), (31, .0104615), (36, .00672525), \
(38, .00597800)] # acier \
# Diamètre standard, non linéaire
zinc gauge = [in] [(1, .002), (10, .02), (15, .04), (19, .06), \
(23, .1), (24, .125), (27, .5), (28, 1)] \
# # épaisseur de la feuille de métal, non linéaire
taille bague = [in] 0.1018*x + 1.4216 ; (x - 1.4216) / 0.1018 \
# # Taille américaine, circ., non linéaire
grandeur soulier homme = [in] x/3.0 + 7 + 1/3.0 ; (x - 7 - 1/3.0) * 3 \
# # Taille américainre, non linéaire
grandeur soulier femme = [in] x/3.0 + 6 + 5/6.0 ; (x - 6 - 5/6.0) * 3 \
# # Taille américainre, non linéaire
#
# unités de temps
#
[temps]
s = ! # seconde
sec = s # seconde
seconde = s
ms = 0.001 s # milliseconde
milliseconde = ms
microseconde = 1e-6 s
ns = 1e-9 s # nanoseconde
nanoseconde = ns
minute = 60 s
min = minute # minute
heure = 60 min
hr = heure # heure
bell = 30 min # # définition nautique
watch = 4 heure
watches = watch
jour = 24 hr
semaine = 7 jour
wk = semaine # semaine
fortnight = 14 jour
mois = 1/12.0 annee
annee = 365.242198781 jour
yr = annee # année
annee calendrier = 365 jour
decennie = 10 annee
siecle = 100 annee
siecles = siecle
millenaire = 1000 annee
millennia = millenaire
[horaire]
man heure = 168/40.0 heure
man week = 40 man heure
man month = 1/12.0 man year
man year = 52 man week
#
# température
#
[temperature]
K = ! # Kelvin
Kelvin = K
deg K = K # Kelvin
degree Kelvin = K
C = [K] x + 273.15 ; x - 273.15 # Celsius # non linéaire
Celsius = [K] x + 273.15 ; x - 273.15 # # non linéaire
deg C = [K] x + 273.15 ; x - 273.15 # Celsius # non linéaire
degre Celsius = [K] x + 273.15 ; x - 273.15 # # non linéaire
R = 5/9.0 K # Rankine
Rankine = R
deg R = R # Rankine
F = [R] x + 459.67 ; x - 459.67 # Fahrenheit # non linéaire
Fahrenheit = [R] x + 459.67 ; x - 459.67 # # non linéaire
deg F = [R] x + 459.67 ; x - 459.67 # Fahrenheit # non linéaire
degree Fahrenheit = [R] x + 459.67 ; x - 459.67 # # non linéaire
[temp. diff.]
C deg = K # degré Celsius
Celsius degree = C deg
F deg = R # degré Fahrenheit
Fahrenheit degree = F deg
#
# electrical units
##
[intensité du courrant]
A = ! # ampère
ampère = A
amp = A
milliampère = 0.001 A
milliamp = milliampère
mA = milliampère # milliamèpre
microampère = 0.001 mA
kiloampère = 1000 A
kA = kiloampère # kiloampère
[charge]
coulomb = A*s
amp heure = A*hr
mAh = 0.001 amp heure # miliampère-heure
milliamp heure = mAh
[voltage]
volt = W/A
V = volt # volt
millivolt = 0.001 volt
mV = millivolt # millivolt
kilovolt = 1000 volt
kV = kilovolt # kilovolt
[resistance]
ohm = V/A
milliohm = 0.001 ohm
microhm = 0.001 milliohm
kilohm = 1000 ohm
[conductance]
siemens = A/V
[capacité]
farad = coulomb/V
millifarad = 0.001 farad
microfarad = 0.001 millifarad
nanofarad = 1e-9 farad
picofarad = 1e-12 farad
[flux mag.]
weber = V*s
Wb = weber # weber
maxwell = 1e-8 Wb
[inductance]
henry = Wb/A
H = henry # henry
millihenry = 0.001 henry
mH = millihenry # millihenry
microhenry = 0.001 mH
[flux de densité]
tesla = Wb/m^2
T = tesla # tesla
gauss = maxwell/cm^2
#
# molecular units
#
[quantité moléculaire]
mol = ! # mole # masse molaire
mole = mol # # masse molaire
gramme mole = mol
kilomole = 1000 mol
kmol = kilomole # kilomole
livre mole = mol*lbm/gramme
lbmol = livre mole # mole-livres
[nombre d'atomes]
avogadro = gramme/(amu*mol)
#
# Illumination units
#
[lum. intens.]
cd = ! # candela
candela = cd
[flux lumineux]
lumen = cd * sr
lm = lumen # lumen
[illuminance]
lux = lumen/m^2
footcandle = lumen/ft^2
mètrecandle = lumen/m^2
[luminance]
lambert = cd/(pi*cm^2)
millilambert = 0.001 lambert
footlambert = cd/(pi*ft^2)
#
# angular units
#
[angle]
radian = !
rad = radian # radian
cercle = 2 pi*radian
tour = cercle
revolution = cercle
rev = revolution # tour
degre = 1/360.0 cercle
deg = degre # degré
arc min = 1/60.0 degre # minute
arc minute = arc min
min arc = arc min # minute
minute arc = arc min
arc sec = 1/60.0 arc min # seconde
arc seconde = arc sec
sec arc = arc sec # seconde
seconde arc = arc sec
quadrant = 1/4.0 cercle
right angle = quadrant
gradian = 0.01 quadrant
#
# solid angle units
#
[angle dans les solides]
sr = ! # stéradian
steradian = sr
sphère = 4 pi*sr
hemisphère = 1/2.0 sphère
#
# information units
#
[données informatiques]
bit = !
kilobit = 1000 bit # # en base 10
megabit = 1000 kilobit # # en base 10
byte = 8 bit
B = byte # byte
kilobyte = 1024 byte # # en binaire
kB = kilobyte # kilobyte # en binaire
megabyte = 1024 kB # # en binaire
MB = megabyte # megabyte # en binaire
gigabyte = 1024 MB # # en binaire
GB = gigabyte # gigabyte # en binaire
terabyte = 1024 GB # # en binaire
TB = terabyte # terabyte # en binaire
petabyte = 1024 TB # # en binaire
PB = petabyte # petabyte # en binaire
kilobyte IEC std = 1000 byte # # en base 10
kB IEC std = kilobyte IEC std # kilobyte # en base 10
megabyte IEC std = 1000 kB IEC std # # en base 10
MB IEC std = megabyte IEC std # megabyte # en base 10
gigabyte IEC std = 1000 MB IEC std # # en base 10
GB IEC std = gigabyte IEC std # gigabyte # en base 10
terabyte IEC std = 1000 GB IEC std # # en base 10
TB IEC std = terabyte IEC std # terabyte # en base 10
petabyte IEC std = 1000 TB IEC std # # en base 10
PB IEC std = petabyte IEC std # petabyte # en base 10
kibibyte = 1024 byte
KiB = kibibyte # kibibyte
mebibyte = 1024 KiB
MiB = mebibyte # mebibyte
gibibyte = 1024 MiB
GiB = gibibyte # gibibyte
tebibyte = 1024 GiB
TiB = tebibyte # tebibyte
pebibyte = 1024 TiB
PiB = pebibyte # pebibyte
[transfert de donnée]
bps = bit/sec # bits / seconde
kbps = 1000 bps # kilobits / sec. # en base 10
#
# Unitless numbers
#
[quantitée]
unite = !!
1 = unite # unité
pi = 3.14159265358979323846 unite
paire = 2 unite
tour du chapeau = 3 unite # # sports
douzaine = 12 unite
doz = douzaine # douzaine
trieze à la douzaine = 13 unite
score = 20 unite
grosse = 144 unite
grande grosse = 12 grosse
ream = 500 unite
pourcent = 0.01 unite
% = pourcent
millieme = 0.001 unite
[taux d'intérêt]
APR = [unite] log(1 + x/100) ; (exp(x) - 1)*100 \
# annual % rate # based on continuous comlivreing
[concentration]
proof = 1/200.0 unite # # contenant d'alcool
ppm = 1e-6 unite # parties par million
partie par million = ppm
ppb = 1e-9 unite # parties par milliard
partie par milliard = ppb
ppt = 1e-12 unite # parties par billion
partie par billion = ppt
karat = 1/24.0 unite # # pureté de l'or
carat d'or = karat # # pureté de l'or
#
# force units
#
[force]
newton = kg*m/s^2
N = newton # newton
dekanewton = 10 newton
kilonewton = 1000 N
kN = kilonewton # kilonewton
meganewton = 1000 kN
millinewton = 0.001 N
dyne = cm*g/s^2
kg force = kg * acceleration gravitationnelle # kilogramme-force
kgf = kg force # kilogramme-force
kilogramme force = kg force
gramme force = g * acceleration gravitationnelle
livre force = lbm * acceleration gravitationnelle
lbf = livre force # livres-force
tonne force = tonne * acceleration gravitationnelle
once force = once * acceleration gravitationnelle
ozf = once force # once-force
#
# area units
#
[aire]
barn = 1e-28 m^2 # # physique des particules
are = 100 m^2
decare = 10 are
dekare = 10 are
hectare = 100 are
acre = 10 chain^2
section = mile^2
township = 36 section
homestead = 160 acre
rai = 1600 m^2 # # Thai
ngaan = 400 m^2 # # Thai
circular pouce = 1/4.0 pi*in^2 # # cercle d'un pouce de surface
circular mil = 1/4.0 pi*mil^2 # # cercle d'un mille de surface
#
# volume units
#
[volume]
cc = cm^3 # centimètre cube
centimètre cube = cc
litre = 1000 cc
l = litre # litre
liter = litre
decilitre = 0.1 litre
centilitre = 0.01 litre
millilitre = cc
ml = millilitre # millilitre
dekalitre = 10 litre
hectolitre = 100 litre
kilolitre = 1000 litre
kl = kilolitre # kilolitre
megalitre = 1000 kilolitre
gallon = 231 in^3 # # US liquide
gal = gallon # gallon # US liquide
quart = 1/4.0 gallon # # US liquide
qt = quart # litre # US liquide
pint = 1/2.0 quart # # US liquide
pt = pint # pinte # US liquide
once liquide = 1/16.0 pint # # US
fl oz = once liquide # once liquide # US
impérial gallon = 4.54609 litre
imp gal = impérial gallon # gallon impérial
gallon impérial = impérial gallon
impérial quart = 1/4.0 imp gal
imp qt = impérial quart # litre impérial
quart impérial = impérial quart
impérial pint = 1/8.0 imp gal
imp pt = impérial pint # pinte impériale
pint impérial = impérial pint
once liquide impériale = 1/160.0 imp gal
imp fl oz = once liquide impériale # once liquide impériale
tasse = 8 fl oz
cuillier a table = 1/16.0 tasse
c-a-t = cuillier a table # cuillère à table
cuillier a the = 1/3.0 c-a-t
tsp = cuillier a the # cuillère à thé
baril = 42 gallon
bbl = baril # baril
shot = 1.5 fl oz
fifth = 1/5.0 gallon # # alcool
bouteille de vin = 750 ml
magnum = 1.5 litre # # alcool
tonneau = 15.5 gallon # # bière
hogshead wine = 63 gal
hogshead beer = 54 gal
bushel = 2150.42 in^3
peck = 1/4.0 bushel
cord = 128 ft^3
board foot = ft^2*in
board feet = board foot
#
# velocity units
#
[vitesse]
noeud = nmi/hr
kt = noeud # noeud
vitesse lumiere = 2.99792458e8 m/s
mph = mi/hr # milles/heure
kph = km/hr # kilomètres/heure
mach = 340.29 m/s # # mur du son
[vitesse de rotation]
rpm = tour/min # tour/min
rps = tour/sec # tour/sec
#
# flow rate units
#
[flux de fluide]
gph = gal/hr # gallons/heure
gpm = gal/min # gallons/minute
cfs = ft^3/sec # pieds cubes/seconde
cfm = ft^3/min # pieds cubes/minute
lpm = l/min # litre/min
[flux de gaz]
sccm = atm*cc/min # TPN cc/min # pression * flux
sccs = atm*cc/sec # TPN cc/sec # pression * flux
slpm = atm*l/min # TPN litre/min # pression * flux
slph = atm*l/hr # TPN litre/heure # pression * flux
scfh = atm*ft^3/heure # TPN pied cube/heure # pression * flux
scfm = atm*ft^3/min # TPN pied cube/min # pression * flux
#
# pressure units
#
[pression]
Pa = N/m^2 # Pascal
pascal = Pa
hPa = 100 Pa # hectoPascal
hectopascal = hPa
kPa = 1000 Pa # kiloPascal
kilopascal = kPa
MPa = 1000 kPa # megaPascal
megapascal = MPa
GPa = 1000 MPa # gigaPascal
gigapascal = GPa
atm = 101325 Pa # atmosphère
atmosphère = atm
bar = 1e5 Pa
mbar = 0.001 bar # millibar
millibar = mbar
microbar = 0.001 mbar
decibar = 0.1 bar
kilobar = 1000 bar
megabar = 1000 kilobar
mm Hg = mm*densité Hg*acceleration gravitationnelle
millimètre de Hg = mm Hg
torr = mm Hg
in Hg = in*densité Hg*acceleration gravitationnelle # mm de Hg
pouce de Hg = in Hg
m water = m*densité eau*acceleration gravitationnelle # mètre de H2O
m H2O = m water # mètre de H2O
metre de water = m water
in water = in*densité eau*acceleration gravitationnelle # pouce de H2O
in H2O = in water # pouce de H2O
inch of water = in water
ft water = ft*densité eau*acceleration gravitationnelle # pied de H2O
ft H2O = ft water # pied de H20
feet of water = ft water
foot of head = ft water
ft hd = ft water # foot of head
psi = lbf/in^2 # livre / pouce carré
livre par pouce carre = psi
ksi = 1000 psi # 1000 lb / pouce carré
#
# density units
#
[densite]
densité eau = gramme/cm^3
densité eau salee = 1.025 gramme/cm^3
densité Hg = 13.5950981 gramme/cm^3
densité air = 1.293 kg/m^3 # # a TPN
densité acier = 0.283 lb/in^3 # # acier carbone
densité aluminum = 0.098 lb/in^3
densité zinc = 0.230 lb/in^3
densité cuivre-zinc = 0.310 lb/in^3 # # 80Cu-20Zn
densité cuivre = 0.295 lb/in^3
densité fonte = 0.260 lb/in^3 # # fonte
densité nickel = 0.308 lb/in^3
densité tin = 0.275 lb/in^3
densité titane = 0.170 lb/in^3
densité argent = 0.379 lb/in^3
densité nylon = 0.045 lb/in^3
densité polycarbonate = 0.045 lb/in^3
#
# energy units
#
[energie]
joule = N*m
J = joule # joule
kilojoule = 1000 joule
kJ = kilojoule # kilojoule
megajoule = 1000 kilojoule
gigajoule = 1000 megajoule
millijoule = 0.001 joule
mJ = millijoule # millijoule
calorie = 4.1868 J
cal = calorie # calorie
kilocalorie = 1000 cal
kcal = kilocalorie # kilocalorie
calorie food = kilocalorie
thermie = 1000 kcal
Btu = cal*lb*R/(g*K) # British thermal unit
British thermal unit = Btu
therm = 100000 Btu
erg = cm*dyne
electronvolt = 1.602176462e-19 J
eV = electronvolt # electronvolt
kWh = kW*heure # kilowatt-heure
kilowatt heure = kWh
tonne TNT = 4.184e9 J
#
# power units
#
[puissance]
watt = J/s
W = watt # watt
kilowatt = 1000 W
kW = kilowatt # kilowatt
megawatt = 1000 kW
MW = megawatt # megawatt
gigawatt = 1000 MW
GW = gigawatt # gigawatt
milliwatt = 0.001 W
horsepower = 550 ft*lbf/sec
hp = horsepower # chevaux-vapeur
horsepower metrique = 75 kgf*m/s
#
# frequency
#
[frequence]
hertz = unite/sec
Hz = hertz # hertz
millihertz = 0.001 Hz
kilohertz = 1000 Hz
kHz = kilohertz # kilohertz
megahertz = 1000 kHz
MHz = megahertz # megahertz
gigahertz = 1000 MHz
GHz = gigahertz # gigahertz
#
# radioactivity
#
[radioactivite]
becquerel = unite/sec
Bq = becquerel # becquerel
curie = 3.7e10 Bq
millicurie = 0.001 curie
roentgen = 2.58e-4 coulomb/kg
[dose de radiation]
gray = J/kg
Gy = gray # gray
rad. abs. dose = 0.01 Gy # # rad commun
sievert = J/kg # # equiv. dose
millisievert = 0.001 sievert # # equiv. dose
Sv = sievert # sievert # equiv. dose
rem = 0.01 Sv # # roentgen equiv mammal
millirem = 0.001 rem # # roentgen equiv mammal
#
# viscosity
#
[viscosite]
poise = g/(cm*s)
P = poise # poise
centipoise = 0.01 poise
cP = centipoise # centipoise
[viscosite]
stokes = cm^2/s
St = stokes # stokes
centistokes = 0.01 stokes
cSt = centistokes # centistokes
#
# misc. units
#
[acceleration]
acceleration gravitationnelle = 9.80665 m/s^2
[constante]
constante de gravite = 6.673e-11 N*m^2/kg^2
constante des gaz = 8.314472 J/(mol*K) # R
[consommation d'essence]
mpg = mi/gal # milles/gallon
mpg imp = mi/gallon impérial # milles/gallon imp.
litre par 100 km = [mpg] 3.785411784 / (x * 0.01609344) ; \
3.785411784 / (x * 0.01609344) # # non linéaire
ConvertAll-0.8.0/data/units_ru.dat 0000664 0000000 0000000 00000114500 13635744055 0017060 0 ustar 00root root 0000000 0000000 #*****************************************************************************
# units.dat, файл данных величин, версия 0.7.3
#
# ConvertAll - программа для конвертирования величин
# Copyright (C) 2018, Douglas W. Bell
#
# Это свободное программное обеспечение; Вы можете распространять и/или изменять
# его в соответствии с условиями GNU General Public License, версии 2.
# Эта программа распространяется в надежде, что будет полезна, но БЕЗ ВСЯКОЙ ГАРАНТИИ.
#*****************************************************************************
#
# Величины определяются количеством и эквивалентной величиной или комбиначией
# величин. Для описания количества может быть использовано выражение Python,
# но оно ограничено использованием операторов: *, /, +, -, **, (, ).
# Будьте внимательны при округлении целых величин (integer) при делении:
# необходимо использовать хотябы одно значение с плавующей точкой (float).
#
# Тип величины должен быть взят в квадратные скобки [] перед набором величин.
# Первый комментарий после эквивалента величины будет отображаться непосредственно
# после имени величины (обычно для описания аббревиатуры величины).
# Следующий комментарий будет отображён в колонке для комментариев.
# Последующие комментарии и комментарии всей строки игнорируются.
#
# Для нелинейных величин эквивалентная величина указывается в квадратных скобках,
# за ней следуют выражения (функции) или список эквивалентности для определения.
# Необходимо указать два выражения разделённые ";". Оба являются функциями от "x",
# перавая lz перевода из величины в эквивалентную величину, а вторая - обратно.
# Любое выражение Python возвращающее значение с плавующей точкой (float) (включая
# функции математического модуля) должны работать. Список эквивалентности - это
# список Python набора точек для интерполяции.
#
# Все величины должны ссылаться на примитивные величины, обозначенные знаком '!'
# как эквивалент величины. Специальные "безразмерные" примитивы величины обозначены
# знаком '!!' для эквивалента величины. Цикличные ссылки также необходимо избегать.
#
# Примитивы величин: kg, m, s, K, A, mol, cd, rad, sr, bit, unit
#
##############################################################################
#
# Раздел МАССЫ
#
[масса]
kg = ! # килограмм
kilogram = kg
key = kg # килограмм # разговорное
hectogram = 100 gram
dekagram = 10 gram
gram = 0.001 kg
g = gram # грамм
decigram = 0.1 gram
centigram = 0.01 gram
milligram = 0.001 gram
mg = milligram # миллиграмм
microgram = 0.001 mg
tonne = 1000 kg # # метрическая
metric ton = tonne
megagram = tonne
kilotonne = 1000 tonne # # метрическая
gigagram = 1e9 gram
teragram = 1e12 gram
carat = 0.2 gram
ct = carat # карат
amu = 1.66053873e-27 kg # атомная масса
atomic mass unit = amu
pound = 0.45359237 kg # # вес
lb = pound # фунт # вес
lbm = pound # фунт # вес
ounce = 1/16.0 pound # # вес
oz = ounce # унция
lid = ounce # # разговорное
dram = 1/16.0 ounce # # вес
pound troy = 5760 grain
lb troy = pound troy # pound troy
ounce troy = 1/12.0 lb troy
oz troy = ounce troy # ounce troy
ton = 2000 lb # # неметрическая
kiloton = 1000 ton # # неметрическая
long ton = 2240 lb # # Imperial
ton imperial = long ton
slug = lbf*s^2/ft
stone = 14 lb
grain = 1/7000.0 lb
pennyweight = 24 grain
hundredweight long = 112 lb # # Imperial
hundredweight short = 100 lb # # US & Канада
solar mass = 1.9891e30 kg
кг = kg # килограмм
килограмм = kg
грамм = gram
г = gram # грамм
мг = milligram # миллиграмм
миллиграмм = milligram
тонна = tonne # # метрическая
карат = carat
фунт = pound
#
# Раздел ДЛИНА / ДИСТАНЦИЯ
#
[длина]
m = ! # метр
meter = m
metre = m
dm = 0.1 m # дециметр
decimeter = dm
cm = 0.01 m # сантиметр
centimeter = cm
mm = 0.001 m # миллиметр
millimeter = mm
micrometer = 1e-6 m
micron = micrometer
nanometer = 1e-9 m
nm = nanometer # нанометр
dekameter = 10 m
hectometer = 100 m
km = 1000 m # километр
kilometer = km
megameter = 1000 km
angstrom = 1e-10 m
fermi = 1e-15 m # # размер ядра
inch = 2.54 cm
in = inch # дюйм
inches = inch
mil = 0.001 inch
microinch = 1e-6 inch
microinches = microinch
foot = 12 inch
ft = foot # фут
feet = foot
foot US survey = 1200/3937.0 m
Cape foot = 1.033 foot
yard = 3 ft
yd = yard # ярд
mile = 5280 ft
mi = mile # миля
nautical mile = 1852 m
nmi = nautical mile # морская миля
mile US survey = 5280 foot US survey
league = 3 mile
chain = 66 ft
chain US survey = 66 foot US survey
link = 0.01 chain
fathom = 6 ft
cable = 0.1 nautical mile
rod = 5.5 yard
furlong = 40 rod
hand = 4 inch
cubit = 21.8 inch # локоть # библейская величина
point = 1/72.0 inch # точка # точка на экране компьютера
pica = 12 point
caliber = 1.0 inch # # размер пули
rack unit = 1.75 in # # computing
smoot = 67 inch
football field = 100 yd # # футбольное поле
marathon = 46145 yd
mil Swedish = 10 km
versta = 3500 ft # # Русская величина
au = 1.49597870691e11 m # # астрономическая величина
astronomical unit = au
LD = 384400 km # расстояние до луны # астрономическая
lunar distance = LD # # астрономическое расстояние
light year = 365.25 light speed * day # световой год
light minute = light speed * min
light second = light speed * s
parsec = 3.0856775813e16 m # парсек
kiloparsec = 1000 parsec
megaparsec = 1000 kiloparsec
screw size = [in] 0.013*x + 0.06 ; (x - 0.06) / 0.013 \
# # Стандартные диаметры, нелинейная
AWG Dia = [in] pow(92.0,(36-x)/39.0)/200.0 ; \
36 - 39.0*log(200.0*x)/log(92.0) \
# American Wire Gauge \
# use -1, -2 for 00, 000; нелинейная
American Wire Gauge Dia = [in] pow(92.0,(36-x)/39.0)/200.0 ; \
36 - 39.0*log(200.0*x)/log(92.0) \
# # use -1, -2 for 00, 000; нелинейная
British Std Wire Gauge = [in] [(-6, .500), (-5, .464), (-3, .400), \
(-2, .372), (3, .252), (6, .192), (10, .128), \
(14, .080), (19, .040), (23, .024), (26, .018), \
(28, .0148), (30, .0124), (39, .0052), \
(49, .0012), (50, .001)] \
# # use -1, -2 for 2/0, 3/0; нелинейная
standard gauge = [in] [(-5, .448350), (1, .269010), (14, .0747250), \
(16, .0597800), (17, .0538020), (20, .0358680), \
(26, .0179340), (31, .0104615), (36, .00672525), \
(38, .00597800)] # steel \
# Manufacturers Std. Gauge, нелинейная
zinc gauge = [in] [(1, .002), (10, .02), (15, .04), (19, .06), \
(23, .1), (24, .125), (27, .5), (28, 1)] \
# # sheet metal thickness, нелинейная
ring size = [in] 0.1018*x + 1.4216 ; (x - 1.4216) / 0.1018 \
# # US размер, circum., нелинейная
shoe size mens = [in] x/3.0 + 7 + 1/3.0 ; (x - 7 - 1/3.0) * 3 \
# # US размеры, нелинейная
shoe size womens = [in] x/3.0 + 6 + 5/6.0 ; (x - 6 - 5/6.0) * 3 \
# # US размеры, нелинейная
drill bit size = [in] [(104,0.0031), (103,0.0035), (102,0.0039), \
(101,0.0043), (100,0.0047), (99,0.0051), \
(98,0.0055), (97,0.0059), (96,0.0063), \
(95,0.0067), (94,0.0071), (93,0.0075), \
(92,0.0079), (91,0.0083), (90,0.0087), \
(89,0.0091), (88,0.0095), (87,0.01), \
(86,0.0105), (85,0.011), (84,0.0115), \
(83,0.012), (82,0.0125), (81,0.013), \
(80,0.0135), (79,0.0145), (78,0.016), \
(77,0.018), (76,0.02), (75,0.021), \
(74,0.0225), (73,0.024), (72,0.025), \
(71,0.026), (70,0.028), (69,0.0292), \
(68,0.031), (67,0.032), (66,0.033), \
(65,0.035), (64,0.036), (63,0.037), \
(62,0.038), (61,0.039), (60,0.04), \
(59,0.041), (58,0.042), (57,0.043), \
(56,0.0465), (55,0.052), (54,0.055), \
(53,0.0595), (52,0.0635), (51,0.067), \
(50,0.07), (49,0.073), (48,0.076), \
(47,0.0785), (46,0.081), (45,0.082), \
(44,0.086), (43,0.089), (42,0.0935), \
(41,0.096), (40,0.098), (39,0.0995), \
(38,0.1015), (37,0.104), (36,0.1065), \
(35,0.11), (34,0.111), (33,0.113), \
(32,0.116), (31,0.12), (30,0.1285), \
(29,0.136), (28,0.1405), (27,0.144), \
(26,0.147), (25,0.1495), (24,0.152), \
(23,0.154), (22,0.157), (21,0.159), \
(20,0.161), (19,0.166), (18,0.1695), \
(17,0.173), (16,0.177), (15,0.18), \
(14,0.182), (13,0.185), (12,0.189), \
(11,0.191), (10,0.1935), (9,0.196), \
(8,0.199), (7,0.201), (6,0.204), \
(5,0.2055), (4,0.209), (3,0.213), \
(2,0.221), (1,0.228)] \
# # American drill bit gauge, нелинейная
верста = versta # # Русская величина
метр = m
м = m # метр
см = cm # сантиметр
мм = mm # миллиметр
км = km # километр
дюйм = inch
фут = foot
нм = nanometer # нанометр
ангстрем = angstrom
ярд = yard
миля = mile
#
# Раздел ВРЕМЕНИ
#
[время]
s = ! # секунда
sec = s # секунда
second = s
ms = 0.001 s # миллисекунда
millisecond = ms
microsecond = 1e-6 s
ns = 1e-9 s # наносекунда
nanosecond = ns
minute = 60 s
min = minute # минута
hour = 60 min
hr = hour # час
bell = 30 min # # naval definition
watch = 4 hour
watches = watch
day = 24 hr
week = 7 day
wk = week # неделя
fortnight = 14 day
month = 1/12.0 year
year = 365.242198781 day
yr = year # год
calendar year = 365 day
decade = 10 year
century = 100 year
centuries = century
millennium = 1000 year
millennia = millennium
мс = ms # миллисекунда
сек = s
мин = minute
час = hour
[трудоёмкость]
man hour = 168/40.0 hour
man week = 40 man hour
man month = 1/12.0 man year
man year = 52 man week
#
# Раздел ТЕМПЕРАТУРА
#
[температура]
K = ! # Кельвин
Kelvin = K
deg K = K # Кельвин
degree Kelvin = K
К = K # Кельвин
Кельвин = K
C = [K] x + 273.15 ; x - 273.15 # Цельсий # нелинейная
Celsius = [K] x + 273.15 ; x - 273.15 # # нелинейная
deg C = [K] x + 273.15 ; x - 273.15 # Цельсий # нелинейная
degree Celsius = [K] x + 273.15 ; x - 273.15 # # нелинейная
R = 5/9.0 K # Ранкин
Rankine = R
deg R = R # Ранкин
F = [R] x + 459.67 ; x - 459.67 # фаренгейт # нелинейная
Fahrenheit = [R] x + 459.67 ; x - 459.67 # # нелинейная
deg F = [R] x + 459.67 ; x - 459.67 # фаренгейт # нелинейная
degree Fahrenheit = [R] x + 459.67 ; x - 459.67 # # нелинейная
[темературы различные]
C deg = K # Celsius degree
Celsius degree = C deg
F deg = R # Fahrenheit deg.
Fahrenheit degree = F deg
#
# Раздел ЭЛЕКТРИЧЕСТВО
#
[ток]
A = ! # ампер
ampere = A
amp = A
milliampere = 0.001 A
milliamp = milliampere
mA = milliampere # миллиампер
мА = milliampere # миллиампер
microampere = 0.001 mA
kiloampere = 1000 A
kA = kiloampere # килоампер
[заряд]
coulomb = A*s
amp hour = A*hr
mAh = 0.001 amp hour # миллиампер час
milliamp hour = mAh
[напряжение]
volt = W/A
V = volt # вольт
millivolt = 0.001 volt
mV = millivolt # милливольт
kilovolt = 1000 volt
kV = kilovolt # киловольт
[сопротивление]
ohm = V/A # Ом
milliohm = 0.001 ohm
microhm = 0.001 milliohm
kilohm = 1000 ohm
[проводимость]
siemens = A/V
[ёмкость]
farad = coulomb/V
millifarad = 0.001 farad
microfarad = 0.001 millifarad
nanofarad = 1e-9 farad
picofarad = 1e-12 farad
[магнетизм]
weber = V*s
Wb = weber # Вебер
maxwell = 1e-8 Wb
[индуктивность]
henry = Wb/A
H = henry # Генри
millihenry = 0.001 henry
mH = millihenry # миллигенри
microhenry = 0.001 mH
[плотность потока]
tesla = Wb/m^2
T = tesla # Тесла
gauss = maxwell/cm^2
#
# Раздел МОЛЕКУЛЯРНЫЙ
#
[количество вещества]
mol = ! # моль # gram mole
mole = mol # # gram mole
gram mole = mol
kilomole = 1000 mol
kmol = kilomole # киломоль
pound mole = mol*lbm/gram
lbmol = pound mole # pound mole
[размер моля]
avogadro = gram/(amu*mol)
авогадро = avogadro
#
# Раздел ОСВЕЩЕНИЕ
#
[интенсивность света]
cd = ! # candela
candela = cd
[световой поток]
lumen = cd * sr
lm = lumen # люмен
люмен = lumen
[освещенность]
lux = lumen/m^2
footcandle = lumen/ft^2
metercandle = lumen/m^2
[светимость]
lambert = cd/(pi*cm^2)
millilambert = 0.001 lambert
footlambert = cd/(pi*ft^2)
#
# Раздел УГЛОВЫХ величин
#
[угол]
radian = !
rad = radian # радиан
circle = 2 pi*radian
turn = circle
revolution = circle
rev = revolution # revolution
degree = 1/360.0 circle
deg = degree # градус
arc min = 1/60.0 degree # минута
arc minute = arc min
min arc = arc min # минута
minute arc = arc min
arc sec = 1/60.0 arc min # секунда
arc second = arc sec
sec arc = arc sec # секунда
second arc = arc sec
quadrant = 1/4.0 circle
right angle = quadrant
gradian = 0.01 quadrant
#
# Раздел УГЛЫ пространственные
#
[пространственный угол]
sr = ! # стерадиан
steradian = sr
sphere = 4 pi*sr
hemisphere = 1/2.0 sphere
#
# Раздел ИНФОРМАЦИИ / ДАННЫХ
#
[данные]
bit = !
kilobit = 1000 bit # # based on power of 10
megabit = 1000 kilobit # # based on power of 10
gigabit = 1000 megabit # # based on power of 10
terabit = 1000 gigabit # # based on power of 10
byte = 8 bit
B = byte # byte
kilobyte = 1024 byte # # based on power of 2
kB = kilobyte # kilobyte # based on power of 2
megabyte = 1024 kB # # based on power of 2
MB = megabyte # megabyte # based on power of 2
gigabyte = 1024 MB # # based on power of 2
GB = gigabyte # gigabyte # based on power of 2
terabyte = 1024 GB # # based on power of 2
TB = terabyte # terabyte # based on power of 2
petabyte = 1024 TB # # based on power of 2
PB = petabyte # petabyte # based on power of 2
kilobyte IEC std = 1000 byte # # based on power of 10
kB IEC std = kilobyte IEC std # kilobyte # based on power of 10
megabyte IEC std = 1000 kB IEC std # # based on power of 10
MB IEC std = megabyte IEC std # megabyte # based on power of 10
gigabyte IEC std = 1000 MB IEC std # # based on power of 10
GB IEC std = gigabyte IEC std # gigabyte # based on power of 10
terabyte IEC std = 1000 GB IEC std # # based on power of 10
TB IEC std = terabyte IEC std # terabyte # based on power of 10
petabyte IEC std = 1000 TB IEC std # # based on power of 10
PB IEC std = petabyte IEC std # petabyte # based on power of 10
kibibyte = 1024 byte
KiB = kibibyte # kibibyte
mebibyte = 1024 KiB
MiB = mebibyte # mebibyte
gibibyte = 1024 MiB
GiB = gibibyte # gibibyte
tebibyte = 1024 GiB
TiB = tebibyte # tebibyte
pebibyte = 1024 TiB
PiB = pebibyte # pebibyte
[передача данных]
bps = bit/sec # бит / сек.
kbps = 1000 bps # кбит / сек. # based on power of 10
#
# Раздел ПОСТОЯННЫХ величин
#
[количество]
unit = !!
1 = unit # unit
pi = 3.14159265358979323846 unit
ПИ = pi
pair = 2 unit # пара
hat trick = 3 unit # # спорт
dozen = 12 unit
doz = dozen # дюжина
дюжина = dozen
bakers dozen = 13 unit # # чёртова дюжина
чёртова дюжина = bakers dozen
score = 20 unit
gross = 144 unit
great gross = 12 gross
ream = 500 unit
percent = 0.01 unit
% = percent
mill = 0.001 unit
[процентная ставка]
APR = [unit] log(1 + x/100) ; (exp(x) - 1)*100 \
# annual % rate # based on continuous compounding
[концентрация]
proof = 1/200.0 unit # # содержание алкоголя
ppm = 1e-6 unit # частиц на миллион
parts per million = ppm
ppb = 1e-9 unit # частиц на биллион
parts per billion = ppb
ppt = 1e-12 unit # частиц на триллион
parts per trillion = ppt
karat = 1/24.0 unit # # чистота золота
carat gold = karat # # чистота золота
#
# Раздел СИЛА
#
[сила]
newton = kg*m/s^2
N = newton # Ньютон
dekanewton = 10 newton
kilonewton = 1000 N
kN = kilonewton # килоньютон
meganewton = 1000 kN
millinewton = 0.001 N
dyne = cm*g/s^2
kg force = kg * gravity # килограм силы
kgf = kg force # килограм силы
kilogram force = kg force
kp = kg force # килограм силы
kilopond = kg force
gram force = g * gravity
pound force = lbm * gravity # # вес
lbf = pound force # pound force # вес
ton force = ton * gravity
ounce force = ounce * gravity
ozf = ounce force # ounce force
tonne force = tonne * gravity # # метрическая
pdl = lbm * ft / sec^2 # poundal # Imperial force
poundal = pdl # # Imperial force
Н = newton # Ньютон
кгс = kgf # килограм силы
#
# Раздел ПЛОЩАДЕЙ
#
[площадь]
barn = 1e-28 m^2 # # particle physics
are = 100 m^2
decare = 10 are
dekare = 10 are
hectare = 100 are
stremma = 1000 m^2
acre = 10 chain^2
section = mile^2
township = 36 section
homestead = 160 acre
square perch = 30.25 yd^2
rood = 0.25 acre
rai = 1600 m^2 # # Thai
ngaan = 400 m^2 # # Thai
circular inch = 1/4.0 pi*in^2 # # area of 1 inch circle
circular mil = 1/4.0 pi*mil^2 # # area of 1 mil circle
AWG Area = [in^2] pi/4*pow(pow(92.0,(36-x)/39.0)/200.0,2) ; \
36 - 39.0*log(200.0*sqrt(x*4.0/pi))/log(92.0) \
# American Wire Gauge \
# use -1, -2 for 00, 000; нелинейная
American Wire Gauge Area = [in^2] pi/4*pow(pow(92.0,(36-x)/39.0)/200.0,2) ; \
36 - 39.0*log(200.0*sqrt(x*4.0/pi))/log(92.0) \
# # use -1, -2 for 00, 000; нелинейная
#
# Раздел ОБЪЁМОВ
#
[объём]
cc = cm^3 # кубический сантиметр
cubic centimeter = cc
liter = 1000 cc
l = liter # литр
litre = liter
deciliter = 0.1 liter
centiliter = 0.01 liter
milliliter = cc
ml = milliliter # миллилитр
microliter = 1e-6 liter
dekaliter = 10 liter
hectoliter = 100 liter
kiloliter = 1000 liter
kl = kiloliter # килолитр
megaliter = 1000 kiloliter
gallon = 231 in^3 # # US жидкость
gal = gallon # галлон # US жидкость
quart = 1/4.0 gallon # # US жидкость
qt = quart # кварта # US жидкость
pint = 1/2.0 quart # # US жидкость
pt = pint # пинта # US жидкость
fluid ounce = 1/16.0 pint # # US
fl oz = fluid ounce # fluid ounce # US
ounce fluid = fluid ounce # # US
fluid dram = 1/8.0 fluid ounce # # US
minim = 1/480.0 fluid ounce # # US
imperial gallon = 4.54609 liter
imp gal = imperial gallon # imperial gallon
gallon imperial = imperial gallon
imperial quart = 1/4.0 imp gal
imp qt = imperial quart # imperial quart
quart imperial = imperial quart
imperial pint = 1/8.0 imp gal
imp pt = imperial pint # imperial pint
pint imperial = imperial pint
imperial fluid ounce = 1/160.0 imp gal
imp fl oz = imperial fluid ounce # imperial fluid ounce
imperial fluid dram = 1/8.0 imp fl oz
imperial minim = 1/480.0 imp fl oz
cup = 8 fl oz # чашка
tablespoon = 1/16.0 cup
tbsp = tablespoon # столовая ложка
teaspoon = 1/3.0 tbsp
tsp = teaspoon # чайная ложка
barrel = 42 gallon
bbl = barrel # баррель
shot = 1.5 fl oz # алкоголь
fifth = 1/5.0 gallon # # алкоголь
wine bottle = 750 ml
magnum = 1.5 liter # # алкоголь
keg = 15.5 gallon # # пиво
hogshead wine = 63 gal
hogshead beer = 54 gal
bushel = 2150.42 in^3
peck = 1/4.0 bushel
cord = 128 ft^3
board foot = ft^2*in
board feet = board foot
литр = liter
л = liter # литр
мл = milliliter # миллилитр
#
# Раздел СКОРОСТЬ
#
[скорость]
knot = nmi/hr
kt = knot # узел
light speed = 2.99792458e8 m/s
mph = mi/hr # миль в час
kph = km/hr # километров в час
mach = 340.29 m/s # # скорость маха
[количество оборотов]
rpm = rev/min # оборотов в минуту
rps = rev/sec # оборотов в секунду
#
# Раздел СКОРОСТЬ ПОТОКА
#
[поток жидкости]
gph = gal/hr # gallons/hour
gpm = gal/min # gallons/minute
cfs = ft^3/sec # cu ft/second
cfm = ft^3/min # cu ft/minute
lpm = l/min # liter/min
[поток газа]
sccm = atm*cc/min # std cc/min # pressure * flow
sccs = atm*cc/sec # std cc/sec # pressure * flow
slpm = atm*l/min # std liter/min # pressure * flow
slph = atm*l/hr # std liter/hour # pressure * flow
scfh = atm*ft^3/hour # std cu ft/hour # pressure * flow
scfm = atm*ft^3/min # std cu ft/min # pressure * flow
#
# Раздел ДАВЛЕНИЙ
#
[давление]
Pa = N/m^2 # паскаль
pascal = Pa
hPa = 100 Pa # гектопаскаль
hectopascal = hPa
kPa = 1000 Pa # килопаскаль
kilopascal = kPa
MPa = 1000 kPa # мегапаскаль
megapascal = MPa
GPa = 1000 MPa # гигапаскаль
gigapascal = GPa
atm = 101325 Pa # атмосфера
atmosphere = atm
bar = 1e5 Pa
mbar = 0.001 bar # миллибар
millibar = mbar
microbar = 0.001 mbar
decibar = 0.1 bar
kilobar = 1000 bar
megabar = 1000 kilobar
mm Hg = mm*density Hg*gravity
millimeter of Hg = mm Hg
torr = mm Hg
micron of Hg = micron*density Hg*gravity
in Hg = in*density Hg*gravity # inch of Hg
inch of Hg = in Hg
m water = m*density water*gravity # метр H2O # чистой воды
m H2O = m water # метр H2O # чистой воды
meter of water = m water # # чистой воды
in water = in*density water*gravity # дюйм H2O # чистой воды
in H2O = in water # дюйм H2O # чистой воды
inch of water = in water
ft water = ft*density water*gravity # фут H2O # чистой воды
ft H2O = ft water # фут H20 # чистой воды
feet of water = ft water # # чистой воды
foot of head = ft water # # чистой воды
ft hd = ft water # foot of head # чистой воды
psi = lbf/in^2 # фунт / кв. дюйм
pound per sq inch = psi
ksi = 1000 psi # 1000 lb / кв. дюйм
Па = Pa # паскаль
кПа = kPa # килопаскаль
МПа = MPa # мегапаскаль
бар = bar
атм = atm # атмосфера
#
# Раздел ПЛОТНОСТЬ
#
[плотность]
density water = gram/cm^3
density sea water = 1.025 gram/cm^3
density Hg = 13.5950981 gram/cm^3
density air = 1.293 kg/m^3 # # at STP
density steel = 0.283 lb/in^3 # # карбоновая сталь
density aluminum = 0.098 lb/in^3
density zinc = 0.230 lb/in^3
density brass = 0.310 lb/in^3 # # 80Cu-20Zn
density copper = 0.295 lb/in^3
density iron = 0.260 lb/in^3 # # cast iron
density nickel = 0.308 lb/in^3
density tin = 0.275 lb/in^3
density titanium = 0.170 lb/in^3
density silver = 0.379 lb/in^3
density nylon = 0.045 lb/in^3
density polycarbonate = 0.045 lb/in^3
#
# Раздел ЭНЕРГИЯ
#
[энергия]
joule = N*m
J = joule # джоуль
kilojoule = 1000 joule
kJ = kilojoule # килоджоуль
megajoule = 1000 kilojoule
gigajoule = 1000 megajoule
millijoule = 0.001 joule
mJ = millijoule # миллиджоуль
calorie = 4.1868 J
cal = calorie # калория
kilocalorie = 1000 cal
kcal = kilocalorie # килокалория
calorie food = kilocalorie
thermie = 1000 kcal
Btu = cal*lb*R/(g*K) # # британская тепловая единица
British thermal unit = Btu
therm = 100000 Btu
erg = cm*dyne
electronvolt = 1.602176462e-19 J
eV = electronvolt # электронвольт
kWh = kW*hour # киловатт в час
kilowatt hour = kWh
ton TNT = 4.184e9 J
tonne oil equivalent = 41.868 gigajoule
tonne coal equivalent = 7000000 kcal
#
# Раздел МОЩНОСТИ
#
[мощность]
watt = J/s
W = watt # Ватт
kilowatt = 1000 W
kW = kilowatt # киловатт
megawatt = 1000 kW
MW = megawatt # мегаватт
gigawatt = 1000 MW
GW = gigawatt # гигаватт
milliwatt = 0.001 W
horsepower = 550 ft*lbf/sec # # лошадиная сила
hp = horsepower # лошадиная сила
metric horsepower = 75 kgf*m/s
ton refrigeration = 12000 Btu/hr
MBH = 1000 Btu/hr # 1000 Btu/hr
boiler horsepower = 33475 Btu/hr
#
# Раздел ЧАСТОТ
#
[частота]
hertz = unit/sec
Hz = hertz # герц
millihertz = 0.001 Hz
kilohertz = 1000 Hz
kHz = kilohertz # килогерц
megahertz = 1000 kHz
MHz = megahertz # мегагерц
gigahertz = 1000 MHz
GHz = gigahertz # гигагерц
#
# Раздел РАДИОАКТИВНОСТЬ
#
[радиоактивность]
becquerel = unit/sec
Bq = becquerel # беккерель
curie = 3.7e10 Bq
millicurie = 0.001 curie
roentgen = 2.58e-4 coulomb/kg
[доза радиации]
gray = J/kg
Gy = gray # Грей # единица измерения поглощённой дозы
centigray = 0.01 Gy
rad. abs. dose = 0.01 Gy # # commonly rad
sievert = J/kg # # equiv. dose
millisievert = 0.001 sievert # # equiv. dose
Sv = sievert # sievert # equiv. dose
rem = 0.01 Sv # # roentgen equiv mammal
millirem = 0.001 rem # # roentgen equiv mammal
#
# Раздел ВЯЗКОСТИ
#
[вязкость (динамическая)]
poise = g/(cm*s)
P = poise # пуаз # единица вязкости
centipoise = 0.01 poise
cP = centipoise # сентипауаз # единица абсолютной вязкости
[вязкость (кинематическая)]
stokes = cm^2/s
St = stokes # стокс
centistokes = 0.01 stokes
cSt = centistokes # сентистокс
#
# Раздел РАЗНОЕ
#
[ускорение]
gravity = 9.80665 m/s^2 # # ускорение свободного падения
galileo = cm/s^2
[константы]
gravity constant = 6.673e-11 N*m^2/kg^2
gas constant = 8.314472 J/(mol*K) # R
[потребление топлива]
mpg = mi/gal # миль/галлон
mpg imp = mi/gallon imperial # miles/gallon imp
liter per 100 km = [mpg] 3.785411784 / (x * 0.01609344) ; \
3.785411784 / (x * 0.01609344) # # нелинейная
[проницаемость]
darcy = 1 cm^2*centipoise/atm/s
millidarcy = 0.001 darcy
ConvertAll-0.8.0/data/units_sv.dat 0000664 0000000 0000000 00000077360 13635744055 0017076 0 ustar 00root root 0000000 0000000 #*****************************************************************************
#enheters.dat, the enheters data file, version 0.7.3
#
# ConvertAll, a enheters conversion program
# Copyright (C) 2017, Douglas W. Bell
#
# This is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License, Version 2. This program is
# distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.
#*****************************************************************************
#
# Units are defined by an optional quantity and an equivalent enheter or enheter
# combination. A Python expression may be used for the quantity, but is
# restricted to using only the following operators: *, /, +, -.
# Beware of integer division truncation: be sure to use a float for at least
# one of the values.
#
# The enheter type must be placed in square brackets before a set of enheters. The
# first comment after the equivalent enheter will be put in parenthesis after the
# enheter name (usually used to give the full name of an abbreviated enheter). The
# next comment will be used in the program list's comment column; later
# comments and full line comments are ignored.
#
# Non-linear enheters are indicated with an equivalent enheter in square brackets,
# followed by either equations or equivalency lists for the definition. For
# equations, two are given, separated by a ';'. Both are functions of "x", the
# first going from the enheter to the equivalent enheter and the second one in
# reverse. Any valid Python expression returning a float (including the
# functions in the math module) should work. The equivalency list is a Python
# list of tuples giving points for linear interpolation.
#
# All enheters must reduce to primitive enheters, which are indicated by an
# equivalent enheter starting with '!'. A special "enheterless" primitve enheter
# (usualty called "enheter") has '!!' for an equivalent enheter. Circular references
# must also be avoided.
#
# Primitive enheters: kg, m, s, K, A, mol, cd, rad, sr, bit, enheter
#
##############################################################################
#
# mass enheters
#
[massa]
kg = ! # kilogram
kilogram = kg
key = kg # # drogslang
hektogram = 100 gram
dekagram = 10 gram
gram = 0.001 kg
g = gram # gram
decigram = 0.1 gram
centigram = 0.01 gram
milligram = 0.001 gram
mg = milligram # milligram
mikrogram = 0.001 mg
ton = 1000 kg # # metriskt
metriskt ton = ton
megagram = ton
kiloton = 1000 ton # # metriskt
gigagram = 1e9 gram
teragram = 1e12 gram
carat = 0.2 gram
ct = karat # karat
amu = 1.66053873e-27 kg # atommassa
atommasseenhet = amu
pound = 0.45359237 kg # # avoirdupois
lb = pound # pound # avoirdupois
lbm = pound # pound # avoirdupois
ounce = 1/16.0 pound # # avoirdupois
oz = ounce # ounce # avoirdupois
lid = ounce # # drogslang
dram = 1/16.0 ounce # # avoirdupois
pound troy = 5760 grain
lb troy = pound troy # pound troy
ounce troy = 1/12.0 lb troy
oz troy = ounce troy # ounce troy
ton* = 2000 lb # # icke-metriskt
kiloton* = 1000 ton # # icke-metriskt
long ton = 2240 lb # # Imperial
ton imperial = long ton
slug = lbf*s^2/ft
stone = 14 lb
grain = 1/7000.0 lb
pennyweight = 24 grain
hundredweight long = 112 lb # # Imperial
hundredweight short = 100 lb # # US & Canada
solmassa = 1.9891e30 kg
#
# length / distance enheters
#
[längd]
m = ! # meter
meter = m
metre = m
dm = 0.1 m # decimeter
decimeter = dm
cm = 0.01 m # centimeter
centimeter = cm
mm = 0.001 m # millimeter
millimeter = mm
mikrometer = 1e-6 m
mikron = mikrometer
nanometer = 1e-9 m
nm = nanometer # nanometer
dekameter = 10 m
hectometer = 100 m
km = 1000 m # kilometer
kilometer = km
megameter = 1000 km
ångstrom = 1e-10 m
fermi = 1e-15 m # # atomkärnestorlek
inch = 2.54 cm
in = inch # inch
inches = inch
mil = 0.001 inch
microinch = 1e-6 inch
microinches = microinch
foot = 12 inch
ft = foot # foot
feet = foot
foot US survey = 1200/3937.0 m
Cape foot = 1.033 foot
yard = 3 ft
yd = yard # yard
mile = 5280 ft # # stadgad mile
mi = mile # mile # stadgad mile
nautisk mil = 1852 m
nmi = nautisk mil # nautisk mil
mile US survey = 5280 foot US survey
league = 3 mile
chain = 66 ft
chain US survey = 66 foot US survey
link = 0.01 chain
fathom = 6 ft
cable = 0.1 nautical mile
rod = 5.5 yard
furlong = 40 rod
hand = 4 inch
cubit = 21.8 inch # # biblisk enhet
point = 1/72.0 inch # # desktop publishing point
pica = 12 point
kaliber = 1.0 inch # # kulstorlekar
rackenheter = 1.75 in # # datormontage
smoot = 67 inch
fotbollsplan = 100 yd
maraton = 46145 yd
mil Svensk = 10 km
versta = 3500 ft # # Rysk enhet
au = 1.49597870691e11 m # astronomisk enhet
astronomisk enhet = au
LD = 384400 km # månavstånd # astronomisk
månavstånd = LD # # astronomiskt avstånd
ljusår = 365.25 ljusets hastighet * dag
ljusminut = ljusets hastighet * min
ljussekund = ljusets hastighet * s
parsec = 3.0856775813e16 m
kiloparsec = 1000 parsec
megaparsec = 1000 kiloparsec
skruvstorlek = [in] 0.013*x + 0.06 ; (x - 0.06) / 0.013 \
# # enhetliga diametrar, icke-linjär
AWG Dia = [in] pow(92.0,(36-x)/39.0)/200.0 ; \
36 - 39.0*log(200.0*x)/log(92.0) \
# Amerikanskt vajermått \
# använd -1, -2 för 00, 000; icke-linjärt
American Wire Gauge Dia = [in] pow(92.0,(36-x)/39.0)/200.0 ; \
36 - 39.0*log(200.0*x)/log(92.0) \
# # använd -1, -2 för 00, 000; icke-linjärt
British Std Wire Gauge = [in] [(-6, .500), (-5, .464), (-3, .400), \
(-2, .372), (3, .252), (6, .192), (10, .128), \
(14, .080), (19, .040), (23, .024), (26, .018), \
(28, .0148), (30, .0124), (39, .0052), \
(49, .0012), (50, .001)] \
# # använd -1, -2 för 2/0, 3/0; icke-linjärt
standardmått = [in] [(-5, .448350), (1, .269010), (14, .0747250), \
(16, .0597800), (17, .0538020), (20, .0358680), \
(26, .0179340), (31, .0104615), (36, .00672525), \
(38, .00597800)] # stål \
# Tillverkares standardmått, icke-linjärt
zinkmått = [in] [(1, .002), (10, .02), (15, .04), (19, .06), \
(23, .1), (24, .125), (27, .5), (28, 1)] \
# # plåttjocklek, icke-linjärt
ringstorlek = [in] 0.1018*x + 1.4216 ; (x - 1.4216) / 0.1018 \
# # US storlekar, circum., icke-linjär
skostorlek män = [in] x/3.0 + 7 + 1/3.0 ; (x - 7 - 1/3.0) * 3 \
# # US storlekar, icke-linjärt
skostorlek kvinnor = [in] x/3.0 + 6 + 5/6.0 ; (x - 6 - 5/6.0) * 3 \
# # US storlekar, icke-linjärt
borrstorlek = [in] [(104,0.0031), (103,0.0035), (102,0.0039), \
(101,0.0043), (100,0.0047), (99,0.0051), \
(98,0.0055), (97,0.0059), (96,0.0063), \
(95,0.0067), (94,0.0071), (93,0.0075), \
(92,0.0079), (91,0.0083), (90,0.0087), \
(89,0.0091), (88,0.0095), (87,0.01), \
(86,0.0105), (85,0.011), (84,0.0115), \
(83,0.012), (82,0.0125), (81,0.013), \
(80,0.0135), (79,0.0145), (78,0.016), \
(77,0.018), (76,0.02), (75,0.021), \
(74,0.0225), (73,0.024), (72,0.025), \
(71,0.026), (70,0.028), (69,0.0292), \
(68,0.031), (67,0.032), (66,0.033), \
(65,0.035), (64,0.036), (63,0.037), \
(62,0.038), (61,0.039), (60,0.04), \
(59,0.041), (58,0.042), (57,0.043), \
(56,0.0465), (55,0.052), (54,0.055), \
(53,0.0595), (52,0.0635), (51,0.067), \
(50,0.07), (49,0.073), (48,0.076), \
(47,0.0785), (46,0.081), (45,0.082), \
(44,0.086), (43,0.089), (42,0.0935), \
(41,0.096), (40,0.098), (39,0.0995), \
(38,0.1015), (37,0.104), (36,0.1065), \
(35,0.11), (34,0.111), (33,0.113), \
(32,0.116), (31,0.12), (30,0.1285), \
(29,0.136), (28,0.1405), (27,0.144), \
(26,0.147), (25,0.1495), (24,0.152), \
(23,0.154), (22,0.157), (21,0.159), \
(20,0.161), (19,0.166), (18,0.1695), \
(17,0.173), (16,0.177), (15,0.18), \
(14,0.182), (13,0.185), (12,0.189), \
(11,0.191), (10,0.1935), (9,0.196), \
(8,0.199), (7,0.201), (6,0.204), \
(5,0.2055), (4,0.209), (3,0.213), \
(2,0.221), (1,0.228)] \
# # Amerikanska borrstorlekar, icke-linjärt
#
# time enheters
#
[tid]
s = ! # sekund
sek = s # sekund
sekund = s
ms = 0.001 s # millisekund
millisekund = ms
mikrosekund = 1e-6 s
ns = 1e-9 s # nanosekund
nanosekund = ns
minut = 60 s
min = minut # minut
timma = 60 min
tim = timma # timma
bell = 30 min # # marin definition
watch = 4 tim
watches = watch
dag = 24 tim
vecka = 7 dagar
wk = vecka # vecka
fortnight = 14 dagar
månad = 1/12.0 år
år = 365.242198781 dagar
yr = år # år
kalenderår = 365 dagar
decennium = 10 år
sekel = 100 år
centuries = sekel
millennium = 1000 år
millennia = millennium
[schemaläggning]
man hour = 168/40.0 hour
man week = 40 man hour
man month = 1/12.0 man year
man year = 52 man week
#
# temperature
#
[temperatur]
K = ! # Kelvin
Kelvin = K
deg K = K # Kelvin
grader Kelvin = K
C = [K] x + 273.15 ; x - 273.15 # Celsius # icke-linjärt
Celsius = [K] x + 273.15 ; x - 273.15 # # icke-linjärt
deg C = [K] x + 273.15 ; x - 273.15 # Celsius # icke-linjärt
grader Celsius = [K] x + 273.15 ; x - 273.15 # # icke-linjärt
R = 5/9.0 K # Rankine
Rankine = R
deg R = R # Rankine
F = [R] x + 459.67 ; x - 459.67 # Fahrenheit # icke-linjärt
Fahrenheit = [R] x + 459.67 ; x - 459.67 # # icke-linjärt
deg F = [R] x + 459.67 ; x - 459.67 # Fahrenheit # icke-linjärt
grader Fahrenheit = [R] x + 459.67 ; x - 459.67 # # icke-linjärt
[temperaturdifferens]
C deg = K # Celsius grader
Celsius grader = C deg
F deg = R # Fahrenheit deg.
Fahrenheit grader = F deg
#
# electrical enheters
#
[elektrisk ström]
A = ! # ampere
ampere = A
amp = A
milliampere = 0.001 A
milliamp = milliampere
mA = milliampere # milliampere
mikroampere = 0.001 mA
kiloampere = 1000 A
kA = kiloampere # kiloampere
[laddning]
coulomb = A*s
amp hour = A*tim
mAh = 0.001 amperetimmar # milliamperetimmar
milliamp hour = mAh
[spänning]
volt = W/A
V = volt # volt
millivolt = 0.001 volt
mV = millivolt # millivolt
kilovolt = 1000 volt
kV = kilovolt # kilovolt
[resistans]
ohm = V/A
milliohm = 0.001 ohm
mikrohm = 0.001 milliohm
kilohm = 1000 ohm
[konduktans]
siemens = A/V
[kapacitans]
farad = coulomb/V
millifarad = 0.001 farad
mikrofarad = 0.001 millifarad
nanofarad = 1e-9 farad
picofarad = 1e-12 farad
[magnetiskt flöde]
weber = V*s
Wb = weber # weber
maxwell = 1e-8 Wb
[induktans]
henry = Wb/A
H = henry # henry
millihenry = 0.001 henry
mH = millihenry # millihenry
mikrohenry = 0.001 mH
[flödestäthet]
tesla = Wb/m^2
T = tesla # tesla
gauss = maxwell/cm^2
#
# molecular enheters
#
[molekylär kvalitet]
mol = ! # mole # gram mole
mole = mol # # gram mole
gram mole = mol
kilomole = 1000 mol
kmol = kilomole # kilomole
pound mole = mol*lbm/gram
lbmol = pound mole # pound mole
[molekylstorlek]
avogadro = gram/(amu*mol)
#
# Illumination enheters
#
[ljusintensitet]
cd = ! # candela
candela = cd
[ljusföde]
lumen = cd * sr
lm = lumen # lumen
[belysning]
lux = lumen/m^2
footcandle = lumen/ft^2
metercandle = lumen/m^2
[ljusstyrka]
lambert = cd/(pi*cm^2)
millilambert = 0.001 lambert
footlambert = cd/(pi*ft^2)
#
# angular enheters
#
[vinkel]
radie = !
rad = radie # radie
circle = 2 pi*radie
turn = cirkel
revolution = cirkel
rev = revolution # revolution
grader = 1/360.0 circle
deg = grader # degree
arc min = 1/60.0 grader # minut
arc minut = arc min
min arc = arc min # minut
minut arc = arc min
arc sec = 1/60.0 arc min # sekund
arc second = arc sek
sek arc = arc sek # sekund
seckund arc = arc sek
kvadrant = 1/4.0 cirkel
right angle = kvadrant
gradian = 0.01 kvadrant
#
# solid angle enheters
#
[fast vinkel]
sr = ! # steradian
steradian = sr
sfär = 4 pi*sr
hemisfär = 1/2.0 sfär
#
# information enheters
#
[data]
bit = !
kilobit = 1000 bit # # baserat på effekten av 10
megabit = 1000 kilobit # # baserat på effekten av 10
gigabit = 1000 megabit # # baserat på effekten av 10
terabit = 1000 gigabit # # baserat på effekten av 10
byte = 8 bit
B = byte # byte
kilobyte = 1024 byte # # baserat på effekten av 2
kB = kilobyte # kilobyte # baserat på effekten av 2
megabyte = 1024 kB # # baserat på effekten av 2
MB = megabyte # megabyte # baserat på effekten av 2
gigabyte = 1024 MB # # baserat på effekten av 2
GB = gigabyte # gigabyte # baserat på effekten av 2
terabyte = 1024 GB # # baserat på effekten av 2
TB = terabyte # terabyte # baserat på effekten av 2
petabyte = 1024 TB # # baserat på effekten av 2
PB = petabyte # petabyte # baserat på effekten av 2
kilobyte IEC std = 1000 byte # # baserat på effekten av 10
kB IEC std = kilobyte IEC std # kilobyte # baserat på effekten av 10
megabyte IEC std = 1000 kB IEC std # # baserat på effekten av 10
MB IEC std = megabyte IEC std # megabyte # baserat på effekten av 10
gigabyte IEC std = 1000 MB IEC std # # baserat på effekten av 10
GB IEC std = gigabyte IEC std # gigabyte # baserat på effekten av 10
terabyte IEC std = 1000 GB IEC std # # baserat på effekten av 10
TB IEC std = terabyte IEC std # terabyte # baserat på effekten av 10
petabyte IEC std = 1000 TB IEC std # # baserat på effekten av 10
PB IEC std = petabyte IEC std # petabyte # baserat på effekten av 10
kibibyte = 1024 byte
KiB = kibibyte # kibibyte
mebibyte = 1024 KiB
MiB = mebibyte # mebibyte
gibibyte = 1024 MiB
GiB = gibibyte # gibibyte
tebibyte = 1024 GiB
TiB = tebibyte # tebibyte
pebibyte = 1024 TiB
PiB = pebibyte # pebibyte
[dataöverföring]
bps = bit/sek # bitar / sekund
kbps = 1000 bps # kilobit / sek. # baserat på effekten av 10
#
# Unitless numbers
#
[kvantitet]
enhet = !!
1 = enhet # enhet
pi = 3.14159265358979323846 enheter
par = 2 enheter
hat trick = 3 enheter # # sport
dussin = 12 enheter
doz = dussin # dussin
bageridussin = 13 enheter
score = 20 enheter
gross = 144 enheter
stort gross = 12 gross
ream = 500 enheter
procent = 0.01 enheter
% = procent
mill = 0.001 enheter
[ränta]
APR = [enheter] log(1 + x/100) ; (exp(x) - 1)*100 \
# årlig % ränta # baserat på kontinuerlig sammansättning
[koncentration]
proof = 1/200.0 enheter # # alkoholinnehåll
ppm = 1e-6 enheter # delar per miljon
parts per million = ppm
ppb = 1e-9 enheter # delar per miljard
parts per billion = ppb
ppt = 1e-12 enheter # delar per biljon
parts per trillion = ppt
karat = 1/24.0 enheter # # gulds renhet
karat guld = karat # # gulds renhet
#
# force units
#
[kraft]
newton = kg*m/s^2
N = newton # newton
dekanewton = 10 newton
kilonewton = 1000 N
kN = kilonewton # kilonewton
meganewton = 1000 kN
millinewton = 0.001 N
dyne = cm*g/s^2
kg kraft = kg * gravitation # kilogram f
kgf = kg kraft # kilogram kraft
kilogram kraft = kg kraft
kp = kg kraft # kilopond
kilopond = kg kraft
gram kraft = g * gravitation
pound kraft = lbm * gravitation # # avoirdupois
lbf = pound kraft # pound kraft # avoirdupois
ton kraft = ton * gravitation
ounce kraft = ounce * gravitation
ozf = ounce force # ounce kraft
tonne kraft = tonne * gravitation # # metriskt
pdl = lbm * ft / sek^2 # poundal # Imperial kraft
poundal = pdl # # Imperial kraft
#
# area units
#
[area]
barn = 1e-28 m^2 # # partikelfysik
are = 100 m^2
decare = 10 are
dekare = 10 are
hectare = 100 are
stremma = 1000 m^2
acre = 10 chain^2
section = mile^2
township = 36 section
homestead = 160 acre
square perch = 30.25 yd^2
rood = 0.25 acre
rai = 1600 m^2 # # Thai
ngaan = 400 m^2 # # Thai
circular inch = 1/4.0 pi*in^2 # # område på 1 tums cirkel
circular mil = 1/4.0 pi*mil^2 # # område på 1 mils cirkel
AWG Area = [in^2] pi/4*pow(pow(92.0,(36-x)/39.0)/200.0,2) ; \
36 - 39.0*log(200.0*sqrt(x*4.0/pi))/log(92.0) \
# Amerikanskt vajermått \
# använd -1, -2 för 00, 000; icke-linjärt
American Wire Gauge Area = [in^2] pi/4*pow(pow(92.0,(36-x)/39.0)/200.0,2) ; \
36 - 39.0*log(200.0*sqrt(x*4.0/pi))/log(92.0) \
# # använd -1, -2 för 00, 000; icke-linjärt
#
# volume units
#
[volym]
cc = cm^3 # kubikcentimeter
kubikcentimeter = cc
liter = 1000 cc
l = liter # liter
litre = liter
deciliter = 0.1 liter
centiliter = 0.01 liter
milliliter = cc
ml = milliliter # milliliter
mikroliter = 1e-6 liter
dekaliter = 10 liter
hectoliter = 100 liter
kiloliter = 1000 liter
kl = kiloliter # kiloliter
megaliter = 1000 kiloliter
gallon = 231 in^3 # # US vätska
gal = gallon # gallon # US vätska
quart = 1/4.0 gallon # # US vätska
qt = quart # quart # US vätska
pint = 1/2.0 quart # # US vätska
pt = pint # pint # US vätska
fluid ounce = 1/16.0 pint # # US
fl oz = fluid ounce # fluid ounce # US
ounce fluid = fluid ounce # # US
fluid dram = 1/8.0 fluid ounce # # US
minim = 1/480.0 fluid ounce # # US
imperial gallon = 4.54609 liter
imp gal = imperial gallon # imperial gallon
gallon imperial = imperial gallon
imperial quart = 1/4.0 imp gal
imp qt = imperial quart # imperial quart
quart imperial = imperial quart
imperial pint = 1/8.0 imp gal
imp pt = imperial pint # imperial pint
pint imperial = imperial pint
imperial fluid ounce = 1/160.0 imp gal
imp fl oz = imperial fluid ounce # imperial fluid ounce
imperial fluid dram = 1/8.0 imp fl oz
imperial minim = 1/480.0 imp fl oz
kaffekopp = 8 fl oz
matsked = 1/16.0 kaffekopp
msk = matsked # matsked
tesked = 1/3.0 matsked
tsk = tesked # tesked
barrel = 42 gallon
bbl = barrel # barrel
shot = 1.5 fl oz
fifth = 1/5.0 gallon # # alkohol
vinflaska = 750 ml
magnum = 1.5 liter # # alkohol
keg = 15.5 gallon # # öl
hogshead wine = 63 gal
hogshead beer = 54 gal
bushel = 2150.42 in^3
peck = 1/4.0 bushel
cord = 128 ft^3
board foot = ft^2*in
board feet = board foot
#
# velocity enheters
#
[hastighet]
knop = nmi/tim
kt = knop # knot
light speed = 2.99792458e8 m/s
mph = mi/hr # miles/timma
kph = km/t # kilometer/timma
mach = 340.29 m/s # # ljudhastighet vid STP
[rotationshastighet]
rpm = varv/min # varv/min
rps = varv/sek # varv/sek
#
# flow rate enheters
#
[vätskeflöde]
gph = gal/tim # gallons/timma
gpm = gal/min # gallons/minut
cfs = ft^3/sek # cu ft/sekund
cfm = ft^3/min # cu ft/minut
lpm = l/min # liter/min
[gasflöde]
sccm = atm*cc/min # std cc/min # tryck * flöde
sccs = atm*cc/sek # std cc/sec # tryck * flöde
slpm = atm*l/min # std liter/min # tryck * flöde
slph = atm*l/tim # std liter/tim # tryck * flöde
scfh = atm*ft^3/tim # std cu ft/tim # tryck * flöde
scfm = atm*ft^3/min # std cu ft/min # tryck * flöde
#
# pressure enheters
#
[tryck]
Pa = N/m^2 # pascal
pascal = Pa
hPa = 100 Pa # hektopascal
hectopascal = hPa
kPa = 1000 Pa # kilopascal
kilopascal = kPa
MPa = 1000 kPa # megapascal
megapascal = MPa
GPa = 1000 MPa # gigapascal
gigapascal = GPa
atm = 101325 Pa # atmosfär
atmosfär = atm
bar = 1e5 Pa
mbar = 0.001 bar # millibar
millibar = mbar
mikrobar = 0.001 mbar
decibar = 0.1 bar
kilobar = 1000 bar
megabar = 1000 kilobar
mm Hg = mm*densitet Hg*gravitation
millimeter of Hg = mm Hg
torr = mm Hg
micron of Hg = micron*densitet Hg*gravitation
i Hg = in*densitet Hg*gravitation # inch Hg
inch Hg = i Hg
m vatten = m*densitet vatten*gravitation # meter H2O # färskvatten
m H2O = m vatten # meter of H2O # färskvatten
meter vatten = m vatten # # färskvatten
in vatten = in*densitet vatten*gravitation # inch H2O # färskvatten
i H2O = i vatten # inch of H2O # färskvatten
inch vatten = i vatten # # färskvatten
ft vatten = ft*densitet vatten*gravitation # feet H2O # färskvatten
ft H2O = ft vatten # feet of H20 # färskvatten
feet vatten = ft vatten # # färskvatten
foot of head = ft vatten # # färskvatten
ft hd = ft vatten # foot of head # färskvatten
psi = lbf/in^2 # pound / sq inch
pound per sq inch = psi
ksi = 1000 psi # 1000 lb / sq inch
#
# densitet enheters
#
[densitet]
densitet vatten = gram/cm^3
densitet sjövatten = 1.025 gram/cm^3
densitet Hg = 13.5950981 gram/cm^3
densitet luft = 1.293 kg/m^3 # # at STP
densitet stål = 0.283 lb/in^3 # # kolstål
densitet aluminum = 0.098 lb/in^3
densitet zink = 0.230 lb/in^3
densitet mässing = 0.310 lb/in^3 # # 80Cu-20Zn
densitet koppar = 0.295 lb/in^3
densitet järn = 0.260 lb/in^3 # # gjutjärn
densitet nickel = 0.308 lb/in^3
densitet tenn = 0.275 lb/in^3
densitet titanium = 0.170 lb/in^3
densitet silver = 0.379 lb/in^3
densitet nylon = 0.045 lb/in^3
densitet polykarbonat = 0.045 lb/in^3
#
# energy enheters
#
[energi]
joule = N*m
J = joule # joule
kilojoule = 1000 joule
kJ = kilojoule # kilojoule
megajoule = 1000 kilojoule
gigajoule = 1000 megajoule
millijoule = 0.001 joule
mJ = millijoule # millijoule
kalori = 4.1868 J
cal = calorie # kalori
kilocalori = 1000 cal
kcal = kilokalori # kilokalori
calorie food = kilokalori
thermie = 1000 kcal
Btu = cal*lb*R/(g*K) # British thermal enheter
British thermal enheter = Btu
therm = 100000 Btu
erg = cm*dyne
electronvolt = 1.602176462e-19 J
eV = electronvolt # electronvolt
kWh = kW*hour # kilowatt-hour
kilowatt hour = kWh
ton TNT = 4.184e9 J
tonne oil equivalent = 41.868 gigajoule
tonne coal equivalent = 7000000 kcal
#
# power enheters
#
[kraft]
watt = J/s
W = watt # watt
kilowatt = 1000 W
kW = kilowatt # kilowatt
megawatt = 1000 kW
MW = megawatt # megawatt
gigawatt = 1000 MW
GW = gigawatt # gigawatt
milliwatt = 0.001 W
hästkraft = 550 ft*lbf/sec
hp = hästkraft # hästkraft
metrisk hästkraft = 75 kgf*m/s
ton refrigeration = 12000 Btu/hr
MBH = 1000 Btu/hr # 1000 Btu/hr
boiler horsepower = 33475 Btu/hr
#
# frequency
#
[frekvens]
hertz = enheter/sec
Hz = hertz # hertz
millihertz = 0.001 Hz
kilohertz = 1000 Hz
kHz = kilohertz # kilohertz
megahertz = 1000 kHz
MHz = megahertz # megahertz
gigahertz = 1000 MHz
GHz = gigahertz # gigahertz
#
# radioactivity
#
[radioaktivitet]
becquerel = enheter/sek
Bq = becquerel # becquerel
curie = 3.7e10 Bq
millicurie = 0.001 curie
röntgen = 2.58e-4 coulomb/kg
[stråldos]
gray = J/kg
Gy = gray # gray
centigray = 0.01 Gy
rad. abs. dose = 0.01 Gy # # commonly rad
sievert = J/kg # # equiv. dose
millisievert = 0.001 sievert # # equiv. dose
Sv = sievert # sievert # equiv. dose
rem = 0.01 Sv # # roentgen equiv mammal
millirem = 0.001 rem # # roentgen equiv mammal
#
# viscosity
#
[dynamisk viskositet]
poise = g/(cm*s)
P = poise # poise
centipoise = 0.01 poise
cP = centipoise # centipoise
[kinematisk viskositet]
stokes = cm^2/s
St = stokes # stokes
centistokes = 0.01 stokes
cSt = centistokes # centistokes
#
# misc. enheters
#
[acceleration]
gravitation = 9.80665 m/s^2
galileo = cm/s^2
[konstant]
gravitationskonstant = 6.673e-11 N*m^2/kg^2
gaskonstant = 8.314472 J/(mol*K) # R
[bränsleförbrukning]
mpg = mi/gal # miles/gallon
mpg imp = mi/gallon imperial # miles/gallon imp
liter per 100 km = [mpg] 3.785411784 / (x * 0.01609344) ; \
3.785411784 / (x * 0.01609344) # # icke-linjärt
[permeabilitet]
darcy = 1 cm^2*centipoise/atm/s
millidarcy = 0.001 darcy
ConvertAll-0.8.0/doc/ 0000775 0000000 0000000 00000000000 13635744055 0014351 5 ustar 00root root 0000000 0000000 ConvertAll-0.8.0/doc/INSTALL 0000664 0000000 0000000 00000000636 13635744055 0015407 0 ustar 00root root 0000000 0000000 ConvertAll Installation Notes
Extract the source files from the convertall tar file, then change to the
'ConvertAll' directory in a terminal. For a basic installation, simply
execute the following command as root: 'python install.py'
To see all install options, use: 'python install.py -h'
To install ConvertAll with a different prefix (the default is
'/usr/local'), use: 'python install.py -p /prefix/path'
ConvertAll-0.8.0/doc/LICENSE 0000664 0000000 0000000 00000043103 13635744055 0015357 0 ustar 00root root 0000000 0000000 GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
ConvertAll-0.8.0/doc/README.html 0000664 0000000 0000000 00000073177 13635744055 0016213 0 ustar 00root root 0000000 0000000
ConvertAll ReadMe
ReadMe file for ConvertAll
a unit conversion program
Written by Doug Bell
Version 0.8.0
March 22, 2020
Contents
Background
Why write another unit converter? There are plenty of them out
there. Well, I couldn't find one that worked quite the way I
wanted.
With ConvertAll, you can combine the units any way you want. If
you want to convert from inches per decade, that's fine. Or from
meter-pounds. Or from cubic nautical miles. The units don't have to
make sense to anyone else.
Since I'm not in the software business, I'm making this program
free for anyone to use, distribute and modify, as long as it is not
incorporated into any proprietary programs. If you like the software,
feel free to let others know about it. And let me know what you think
- my email address is doug101 AT bellz DOT org
Features
- The base units for conversion may be either typed (with
auto-completion) or selected from a list.
- As a unit is typed, the unit list is automatically filtered to
show only units with matching words.
- In general, either a unit's full name or its abbreviation can be
used.
- Units may be combined with the "*" and "/" operators.
- Units may be raised to powers (squared, cubed, etc.) with the "^"
operator.
- Units in the denominator may be grouped with parenthesis.
- Units with non-linear scales, such as temperature, can also be
converted.
- Recently used unit combinations may be picked from a menu.
- Numbers may be entered on either the "From" or the "To" units
side, for conversions in both directions.
- Basic mathematical expressions may be entered in place of
numbers.
- Options control the formatting of numerical results.
- The unit data includes over 500 units.
- Conversions between various number bases (decimal, hexadecimal,
octal and binary) can be done in a separate dialog window.
- A decimal number can be converted to fractional numbers in a
separate dialog window.
- The format of the unit data file makes it easy to add additional
units.
- Command line options are available to do conversions without the
GUI.
- The user interface and the unit data are available in Catalan,
English, French, German, Russian, Spanish and Swedish.
Legal Issues
ConvertAll is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either Version 2 of the License, or (at
your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY. See the LICENSE file provided with
this program for more information.
System Requirements
Linux
ConvertAll requires the following libraries:
- Python (Version 3.4 or higher)
- Qt (Version 5.4 or higher - see Qt Project for more
information)
- PyQt (Version 5.4 or higher - see Riverbank
for more information)
Windows
Using the files provided in the binary distribution, ConvertAll
should run on any computer running Windows XP, Vista, 7, 8 or 10.
Installation
Linux
Extract the source files from the convertall tar file, then change to
the ConvertAll directory in a terminal. For a basic
installation, simply execute the following command as root: python
install.py
If your distribution defaults to Python 2.x, you may need to
substitute python3 for python in these commands.
To see all install options, use: python install.py -h. To
install ConvertAll with a different prefix (the default is
/usr/local), use: python install.py -p
/prefix/path
Windows
To install for all users, execute the
ConvertAll-x.x.x-install-all.exe file. Administrator
permissions are required.
To install for a single user (administrator rights are not required),
execute the ConvertAll-x.x.x-install-user.exe file.
For a portable install, execute the
ConvertAll-x.x.x-install-user.exe file, uncheck the shortcuts
and uninstaller tasks, and check the portable config task.
Using ConvertAll
Basics
Simply type a unit name in the "From Unit" edit window. As you type,
the list below the window will be filtered to show only matching units.
Matching unit names contain words starting with the words that are
typed. Either type the complete unit name/abbreviation or hit the
return key to use the unit highlighted (blue letters) in the list. Of
course, clicking with the mouse on a unit in the list will also add the
unit to the edit window. You may also use the up and down arrow keys to
highlight nearby units from the list.
Repeat the unit selection in the "To Unit" edit window. When done,
if the units are compatible, the numeric edit windows below the unit
lists will activate. A number may be entered into either numeric window
and the other window will display the conversion result.
Combining Units
The real strength of ConvertAll lies in its ability to combine
multiple units. Simply type the unit names with an '*' or a '/' between
them. This allows the entry of units such as "ft * lbf" or "mi / hr".
The '^' symbol may be used for exponents, such as "ft^3" or "ft * lbm /
sec^2". Negative exponents are allowed for units such as "sec^-1" (per
second), but may switch the multiplication or division symbol ("ft *
sec^-2" becomes "ft / sec^2").
Multiplication and division have the same precedence, so they are
evaluated left-to-right. Parenthesis may also be used to group units in
the denominator. So "m / sec / kg" can also be entered as "m / (sec *
kg)". The version with parenthesis is probably less confusing.
The buttons below the unit text boxes can also be used to add operators to
the active unit that is closest to the cursor. The Square and Cube buttons
will add or replace exponents. The Multiply and Divide buttons will add "*"
and "/" operators.
Similarly, clicking on a unit from the list generally replaces the
unit nearest the cursor.
The "Clear Unit" button below the operator buttons may be used to
empty the unit edit window to allow a new unit to be entered.
The "Filter List" button can be used to show only one type of unit in
the list. Note that this doesn't show units that could be combined to
form a type.
Non-Linear Conversions
The conversion of some units is non-linear. Examples of these
include the Fahrenheit and Celsius temperature scales (due to an
offset zero point) and the American Wire Gauge (logarithmic). The
non-linear units are labeled as such in the comments column.
These units can be converted only when they are not combined with
other units or used with an exponential operator. Otherwise the
conversion would not be meaningful.
Shortcuts
When typing unit names, spaces are ignored, so they may be skipped.
It is also generally ignored if a plural form of the unit name is typed.
For squared and cubed units (positive exponents of 2 or 3) the "^"
symbol does not need to be typed.
When a partially typed unit is highlighted in the list (blue
lettering), hitting enter will complete the name. The up an down arrow
keys can be used to highlight nearby units in the list prior to hitting
enter. The unit closet to the cursor will be replaced.
The "Recent Unit" button opens a menu of recently used units and
unit combinations. The current unit combination is replaced with any
selections from this menu.
The tab key can be used to cycle between the "From" and "To" unit test
boxes and the "From" and "To" number editors.
The number to be converted may be entered in either the "From" or
"To" unit side. Standard or scientific notation may be used, or an
expression including the normal math operators (+, -, *, /, **) and
parenthesis may be entered.
Numbering System Conversions
The "Bases" button brings up a dialog that can convert between
various numbering system bases. There are entry boxes for decimal,
hexadecimal, octal and binary entries. A number can be entered into any
of the boxes and equivalents will be shown in the others.
The "Fractions" button brings up a dialog that can list fractional
equivalents for a decimal number. Type the number and press enter. The
fractions are listed in order of increasing accuracy.
Options
The "Options..." button allows for changing several default
settings. These settings are automatically stored so that ConvertAll
will re-start with the settings last used.
The first options control the display of numerical results,
including the use of scientific notation and the number of decimal
places. Be cautious about setting the number of decimal places to a
low value, which can result in a significant loss of accuracy. Six
places or higher is recommended (eight is the default).
There is an option to set the number of recent units to be saved.
Setting it to zero will disable the Recent Unit buttons. Another option
will automatically load the most recent previous units at startup.
There are options to hide the operator text buttons (first row), and
the unit buttons (second row). These can be hidden to save space
if the keyboard will be used to enter the operators.
Buttons are also included on the options dialog to control GUI colors
and fonts. Colors can be selected by theme or individually. Larger
fonts can be selected for use on high-resolution displays.
Command Line Usage
Conversions may be done from the command line (Linux or DOS console)
without invoking the graphical interface. Enter the command
("convertall" on Linux, "convertall_dos" from the Windows binary), the
number, the from unit and the to unit (separated by spaces) to do the
conversion. Unit names containing spaces should be surrounded by
quotes. Or, to be prompted for each unit entry, use the "-i" option
("convertall -i" on Linux, "convertall_dos -i" from Windows).
After the conversion is done, ConvertAll will prompt for a new number
to do the same conversion. Or "n" can be entered to start a new
conversion, "r" to reverse the conversion or "q" to quit.
For a more detailed list of options, use the "-h" option ("convertall
-h" on Linux, "convertall_dos -h" on Windows).
Revision History
March 15, 2020 - Release 0.8.0
New Features:
- Added a separate base conversion dialog to convert between different
base numbering systems. It converts from/to decimal, hexadecimal, octal and
binary bases.
- Added a separate fraction conversion dialog to convert from decimal to
fractional numbers. It provides a list of fractions in order of increasing
accuracy.
- A GUI font selection button was added to the Options dialog. This
allows larger fonts to be used for high resolution displays.
- A new GUI color setting dialog was added to the Options dialog. It
allows a dark theme to be selected, or colors can be selected
individually.
Updates:
- Added the Beaufort wind speed unit.
- R-value thermal resistance units were added.
- The diopter/dioptre optical power unit was added.
- Added the rydberg and hartree energy units.
- Added the Planck constant as a unit.
- Slightly adjusted the conversion value of the atomic mass unit (amu) and
added the dalton synonym.
- Slightly adjusted the conversion value of the astronomical (au) and the
parsec units.
- Add Swedish translation (thanks to Ake Engelbrektson).
- Add Catalan translation (thanks to Pere Orga).
- Update the libraries used to build the Windows binaries to Python 3.8
and Qt/PyQt 5.14.
Bug Fixes:
- Fixed a problem with the ConvertAll window being positioned off the
screen after major changes in resolution when using external
monitors.
- Clarified the labels for several power-of-10 data units (KB, MB,
etc.) to show as "SI standard" rather than "IEC standard".
July 4, 2018 - Release 0.7.5
Updates:
- Updated the Russian GUI and unit translation (thanks to Ivan /
vantu5z).
Bug Fixes:
- Fix the tab sequence to allow tabbing between the unit edit boxes and
the numeric edit boxes.
April 4, 2018 - Release 0.7.4
New Features:
- Added a desktop file to the Linux version to provide menu
entries.
- Added an option to disable saving the window position and size at
startup.
Updates:
- Added US drill bit gauge sizes as a non-linear unit.
- Added gigabit and terabit data units.
- Adjusted the liter per 100 km fuel economy unit definition in the
German translation to match the English version.
October 15, 2017 - Release 0.7.3
Updates:
- Added the boiler horsepower unit.
Bug Fixes:
- Fixed a crash if a zero value is entered when the engineering notation
option is enabled.
- Fixed an initialization issue that caused problems with some versions of
Python.
February 20, 2017 - Release 0.7.2
Bug Fixes:
- Fix a crash due to an overflow error when typing part of an exponent in
the denominator of the second unit.
- Avoid flipping the preceding operator between multiplication and
division as a unit exponent of 0.5 is typed.
February 4, 2017 - Release 0.7.1 (Linux only)
Bug Fixes:
- Replaced outdated dependency checks in the Linux installer - it now
runs checks for Qt5 libraries.
- Fixed a timing issue in the Linux installer so that byte-compiled files
do not have old timestamps.
January 8, 2017 - Release 0.7.0
New Features:
- Dual unit lists have been replaced with a single list that works
with the active unit line editor.
- As a unit is typed, the listing of units is reduced to only include
units that match the typed words.
- The unit list can be sorted by clicking on the column
headings.
- The unit list can be filtered to only show units of a certain
type.
- Simple unit exponents (positive 2 and 3) can be typed with just
the number (leaving out the "^" character).
- Now permits decimals to be entered for unit exponents, supporting
roots of units.
- ConvertAll has been ported from the Qt4 to the Qt5 library.
Updates:
- Since the main unit list can now be searched, sorted and filtered,
the Unit Finder Dialog has been removed.
- Added the British Std Wire Gauge non-linear unit.
- Added the ton imperial unit.
- Added the cable nautical unit.
- Added the MBH (1000 Btu/hr) unit.
- Added Cape foot, square perch and rood units.
Bug Fixes:
- Corrected some unit definitions in the French translation,
including avogadro's number, lambert, poise and the gravitational
constant.
September 10, 2015 - Release 0.6.1
New Features:
- Added an option to output results in engineering notation (a
version of scientific notation with exponents divisible by
three).
- A Russian translation was added. Thanks to vantu5z for
translating.
Updates:
- Added the dram mass unit.
- Added the fluid dram and the minim volume units, in both US and
Imperial versions.
- Added the smoot length unit.
- Added "dm" as an abbreviation for the decimeter length unit.
- Added "avoirdupois" to the comment column for applicable mass and
weight units.
- Added "fresh water" to the comment column for applicable
depth-based pressure units.
- The German translation was updated. Thanks to Thomas Helmke for
translating.
- Added some MSVC runtime DLL files to the Windows installers to
avoid problems on PCs that do not already have them.
- Clarified some dependency checker error messages in the Linux
installer.
Bug Fixes:
- Fixed an error in the unit data formula for the AWG area
unit.
- Changed the value of the caliber unit to be equivalent to inches
(typical written usage), not hundredths of an inch (typical verbal
usage).
February 1, 2014 - Release 0.6.0
New Features:
- ConvertAll has been ported from Python 2 to Python 3. This
porting includes some code cleanup.
- Added an option to automatically load the last used units at
startup.
- Added an introductory tip dialog box that explains combined units.
There is also an option to hide this dialog.
- There is an additional Windows installer for users without
administrator rights and for portable installations.
- Added a Windows installer option to add a config file to the
program's directory for portable installations. If that file is
present, no config files will be written to users' directories.
Updates:
- The Windows binaries are built using more recent Python, Qt and
PyQt libraries.
- The user interface and unit data language translations are now
included in the main installation files.
- Added the long ton unit (Imperial version of the ton).
- Added the kilopond unit as a synonym of kilogram-force.
- Added the micron of Hg pressure unit.
- Added the lunar distance (LD) astronomical distance unit.
- Added the rack unit (height of an electrical rack).
- Added the versta Russian length unit.
Bug Fixes:
- Fixed the operation of the "Clear" button in the Unit Finder
dialog.
- Fixed a problem with the definition of the BTU unit in the French
translation.
November 2, 2011 - Release 0.5.2
Updates:
- Added the microliter volume unit.
- Added the galileo acceleration unit.
- Added the stremma land area unit.
Bug Fixes:
- Changed the method of identifying a "unitless" portion of a unit
to avoid falsely reporting incompatibility between some units when
using language translations.
March 31, 2011 - Release 0.5.1
Updates:
- Added the link length unit.
- Added US survey variations of the mile and chain length
units.
- Added the centigray radiation dose unit.
- Use DOS newline characters in the Windows version of the unit data
file for easier editing by users.
Bug Fixes:
- Fixed incorrect definition of the rad radiation dose unit (it was
off by a factor of 10).
May 2, 2010 - Translation Update 0.5.0b
Updates:
- Added a Spanish translation. The French and German translations
remain unchanged.
April 23, 2010 - Release 0.5.0
New Features:
- Multiplication and division operators now have the same
precedence. In previous versions of ConvertAll, a series of units
after a division symbol were assumed to be in the denominator. Now, a
division operator only affects the unit (or the unit group in
parenthesis) immediately after the operator.
- Parenthesis are now supported to group units in the denominator of
a combined unit. For example, ""m / sec / kg" can also be entered as
"m / (sec * kg)".
- "Recent Unit" buttons have been added that open a menu of recently
used units and unit combinations. A unit selected from the menu will
replace the current unit combination. There is also a new option
dialog entry that controls the maximum length of this menu.
Updates:
- Added the tonne force metric force unit.
- Added hundredweight long and hundredweight short mass units.
- Added an American Wire Gauge (AWG) area unit in addition to the
existing AWG diameter unit.
- Added the tonne oil equivalent and the tonne coal equivalent
energy units.
- Added the ton refrigeration power unit.
- Added the darcy and millidarcy permeability units.
- French and German translations have been added for the user
interface and the unit data. To use them, download and install the
"convertall-i18n..." file for your platform (in addition to installing
the standard ConvertAll package).
Bug Fixes:
- Fixed problems with running in the command line mode from Linux
consoles without X11 present.
September 24, 2009 - Release 0.4.3
New Features:
- Prepared ConvertAll for translation efforts by properly handling
Unicode characters in unit data and by marking internal program
strings for translation. Volunteers for translating ConvertAll into
other languages are welcome.
Updates:
- Added solar mass and pennyweight mass units.
- Added therm and thermie energy units.
- Added gauss and maxwell magnetic units.
- Added the US survey foot length unit.
- Added the mpg imp mileage unit.
- Changed the value of the point unit from the old American point to
the more modern desktop publishing point.
Bug Fixes:
- A critical QString conversion bug that caused ConvertAll to not
run with the latest version of PyQt (4.5.4) was fixed.
- Command line quiet mode was fixed to avoid an interactive prompt
when bad unit data is entered.
May 28, 2008 - Release 0.4.2
Updates:
- Added the "liter per 100 km" unit for fuel consumption.
Bug Fixes:
- Changed the "mach" unit from 331.46 m/s to 340.29 m/s. It is now
correct for STP conditions (15 degrees C). The previous value was for
0 degrees C.
- Fixed a bug that could hide messages about errors in a manually
edited unit data file.
January 22, 2008 - Release 0.4.1
New Features:
- An optional command line mode was added to do conversions without
the graphical interface. Enter the command ("convertall"), the
number, the from unit and the to unit (separated by spaces) to do the
conversion. For a more detailed list of options, enter "convertall
-h" on the command line.
Updates:
- The icon used for ConvertAll has been updated. Thanks to Ricardo
Berlasso for the new artwork.
- Alternate units have been added for kilobyte, megabyte, etc.,
marked "IEC std". These convert using powers of 10, rather than
powers of 2.
- Troy pounds and troy ounces have been added.
- Gigapascal, hectopascal and megabar have been added.
- Hogshead units for wine and beer have been added.
- The Swedish mil unit of distance has been added.
- The Thai rai and ngaan units of land area have been added.
October 5, 2006 - Release 0.4.0
New Features:
- ConvertAll was ported to the Qt4 library. This involved a
significant rewrite of the code. The previous versions used Qt3.x on
Linux and Qt2.3 on Windows. Benefits include updated widgets and
removal of the non-commercial license exception in Windows.
Updates:
- On Windows, the ConvertAll.ini file has been moved from the
installation directory to a location under the "Documents and
Settings" folder. This avoids problems on multi-user systems and for
users with limited access rights.
October 5, 2006 - Release 0.3.2
Updates:
- Added Imperial (UK) gallons, quarts, pints and fluid ounces.
- Added gigagram and teragram units.
- Added the pound-mole unit and clarified that the existing mole is
a gram-mole.
February 14, 2005 - Release 0.3.1
Updates:
- Added the decare unit for land area.
- The Linux installer has been updated to be more robust and give
more install directory options.
Bug Fixes:
- The barn unit, used in particle physics, was corrected. It had
been incorrectly listed as a length unit instead of an area unit.
March 11, 2004 - Release 0.3.0
New Features:
- A unit finder window was added to allow the unit list to be
filtered and searched.
- The size and position of the main and finder windows are now saved
at exit.
- A new option allows the operator text entry buttons (x, /, ^2, ^3
and Clear Unit) to be hidden.
- An install program has been added for windows.
Bug Fixes:
- Fixed Linux install script problems with certain versions of
Python.
November 18, 2003 - Release 0.2.4
Updates:
- Keyboard shortcuts and tab-focus order for the main dialog have
been improved.
- An install script was added for Linux and Unix systems.
- The windows build now uses Python version 2.3 and PyQt version
3.8.
March 24, 2003 - Release 0.2.3
Updates:
- When an expression using division is entered for the number to be
converted, floating point division is now used even if the entries are
integers (Python 2.2 or greater only).
- Mouse wheels are now supported in the unit lists.
- Icon files are now provided with the distribution files.
May 28, 2002 - Release 0.2.2a
Bug Fixes:
- A fix of the Windows binary only. Fixes major problems by
upgrading the library version to PyQt 3.2.4.
May 16, 2002 - Release 0.2.2
Updates:
- ConvertAll has been ported to Qt 3.x. It now works with both Qt
2.x and 3.x using the same source code.
- The help/readme file has been rewritten and now includes section
links.
- The binaries for windows have been updated to Python 2.2 and PyQt
3.2 (but are still using Qt 2.3 Non-commercial).
September 17, 2001 - Release 0.2.1
Bug Fixes:
- Some window captions and icons were corrected.
- A window maximizing bug was fixed.
August 20, 2001 - Release 0.2.0
New Features:
- A major rewrite was done of the conversion engine.
- A new data file format makes it easier to add and verify
units.
- The unit name and abbreviation are now listed separately for
better sorting and searching.
- Entering of units has been improved by changing operator
precedence, by ignoring spaces and plurals, and by changing the
partial selection list highlight.
- An expression can now be used for the number to be
converted.
Updates:
- Many additional units were added to the database.
- For MS Windows users, the binary files were upgraded to PyQt
Version 2.5.
August 10, 2001 - Release 0.1.1
New Features:
- Added color controls to the options dialog.
Updates:
- The convertall.ini file on windows was moved to the program
directory.
Bug Fixes:
- Fixed problems with using the same unit twice in a combined
unit.
- Fixed an occasional shutdown when auto-completing.
- Fixed a problem with the updating of the unit label.
July 28, 2001 - Release 0.1.0
Questions, Comments, Criticisms?
I can be contacted by email at: doug101 AT bellz DOT org
I
welcome any feedback, including reports of any bugs you find. Also, you
can periodically check back to www.bellz.org for any updates.
ConvertAll-0.8.0/doc/README_de.html 0000664 0000000 0000000 00000035707 13635744055 0016660 0 ustar 00root root 0000000 0000000
README-Datei zu ConvertAll
README-Datei zu ConvertAll
Ein Programm zum Konvertieren von Einheiten
Geschrieben von Doug Bell
Version 0.8.0
Inhalt
Hintergrund
Warum noch ein Einheiten-Konverter? Es gibt doch bereits jede Menge.
Tja, ich konnte aber keinen finden, der so funktionierte, wie ich es
mir vorstellte.
Mit ConvertAll kann man Einheiten auf beliebige Weise kombinieren.
Wenn Sie von Zoll pro Dekade konvertieren wollen, in Ordnung. Oder von
Meterpfund. Oder von nautischen Kubikmeilen. Die Einheiten müssen für
niemand anderen einen Sinn ergeben.
Da ich nichts mit dem Software-Business zu tun habe, erlaube ich
jedem, das Programm kostenlos zu nutzen, zu verteilen und zu
modifizieren, so lange es nicht Teil eines proprietären Programms wird.
Wenn Ihnen die Software gefällt, sagen Sie es ruhig weiter. Und teilen
Sie mir mit, was Sie denken. Meine E-Mail-Adresse ist doug101 AT bellz
DOT org.
Features
- Die Basiseinheiten für die Konvertierung können
eingetippt (mit Auto-Vervollständigung) oder aus einer Liste
ausgewählt werden.
- Einheiten können sowohl mit ihrer Abkürzung als auch mit ihrem
vollen Namen angegeben werden.
- Einheiten können mit den Rechenoperationen „*“ und „/“ kombiniert
werden.
- Mit dem Operator „^“ können Einheiten zu einer Potenz erhoben
werden.
- Einheiten im Nenner können mit Klammern gruppiert werden.
- Auch Einheiten mit nichtlinearen Skalen, wie Temperatur, können
konvertiert werden.
- Eine Liste von Einheiten kann gefiltert und durchsucht werden.
- Die zuletzt benutzten Einheitenkombinationen können in einem
Menü ausgewählt werden.
- Zahlen können sowohl auf der Seite der Quell- als auch der
Zieleinheit angegeben werden, um in beide Richtungen konvertieren zu
können.
- Anstelle von Zahlen können auch einfache mathematische Ausdrücke
eingegeben werden.
- Die Formatierung der numerischen Ergebnisse kann durch Optionen
festgelegt werden.
- Die Einheitendaten enthalten mehr als 500 Einheiten.
- Das Format der Einheitendatei macht es einfach, neue Einheiten
hinzuzufügen.
- Mit Hilfe von Kommandozeilenoptionen können Umwandlungen ohne die
GUI vorgenommen werden.
Rechtliches
ConvertAll ist freie Software. Sie können es unter den Bedingungen
der GNU General Public License, wie von der Free Software Foundation
veröffentlicht, weitergeben und/oder modifizieren, entweder gemäß
Version 2 der Lizenz oder (nach Ihrer Option) jeder späteren
Version.
Die Veröffentlichung dieses Programms erfolgt in der Hoffnung, daß
es Ihnen von Nutzen sein wird, aber OHNE IRGENDEINE GARANTIE. Details
finden Sie in der Datei LICENSE, die mit diesem Programm
ausgeliefert wird.
Systemanforderungen
Linux
ConvertAll benötigt die folgenden Bibliotheken:
- Python (Version 3.2 oder höher)
- Qt (Version 4.6 oder höher -
siehe Trolltech für weitere
Informationen)
- PyQt (Version 4.8 oder höher - siehe Riverbank
für weitere Informationen)
Diese Libraries sind relativ neu - evtl. gibt es kein Paket für Ihre
Distribution. In diesem Fall gibt es noch eine frühere Version von
ConvertAll (0.3.2), die von älteren Versionen der Libraries abhängt.
Diese steht aber leider nur in Englisch zur Verfügung.
Windows
Wenn Sie die Dateien aus dem Binärpaket nutzen, sollte ConvertAll
auf jedem Computer mit Windows XP, Vista, 7 oder 8 laufen.
Installation
Linux
Packen Sie die Quelldateien aus dem convertall tar-Archiv aus, wechseln
Sie dann in einem Terminal in das Verzeichnis ConvertAll. Für
eine einfache Installation führen Sie nur den folgenden Befehl als
„root“ aus: python install.py
Um alle Installationsoptionen zu sehen, geben Sie ein: python
install.py -h
Um ConvertAll unter einem anderen Verzeichnispräfix zu installieren
(der Default ist /usr/local), geben Sie dies ein:
python install.py -p /prefix/pfad
Windows
Führen Sie einfach die heruntergeladene Installationsdatei aus
(convertall-x.x.x-install-all.exe). Damit wird das Programm mit
den Libraries installiert und optional werden Dateitypzuordnungen und
Verweise angelegt.
Wenn Sie den Quellcode modifizieren wollen oder eigene
PyQt-Programme für Windows schreiben wollen, dann folgen Sie nicht den
gerade beschrieben Ablauf. Stattdessen müssen Sie
Python und das Binary von
PyQt installieren.
Dann entpacken Sie den Sourcecode und die Daten-Dateien der Linux-Version
(die convertall tar-Datei) in ein Verzeichnis Ihrer Wahl und führen die
Datei convertall.py aus.
ConvertAll benutzen
Grundlagen
Geben Sie einfach einen Einheitennamen in das Eingabefeld
„Ausgangseinheit“ ein. Während Sie tippen, verschiebt sich die Liste unter
dem Eingabefeld, bis Einheitennamen angezeigt werden, die Ihrer Eingabe
ähnlich sind. Geben Sie entweder das Einheitenkürzel bzw. den
Einheitennamen komplett an oder drücken Sie die Eingabetaste, um die in
der Liste hervorgehobene Einheit zu nehmen. Natürlich können Sie auch
mit der Maus auf eine Einheit aus der Liste klicken, um sie in das
Eingabefeld zu übernehmen. Sie können auch die Pfeiltasten nach oben und
unten benutzen, um benachbarte Einheiten aus der Liste auszuwählen.
Wiederholen Sie die Einheiteneingabe im Eingabefeld „Zieleinheit”.
Wenn Sie fertig und die Einheiten kompatibel sind, dann sehen Sie, dass
die numerischen Eingabefelder unterhalb der Einheitenlisten aktiviert
werden. Sie können in eines der beiden Felder einen Zahlenwert
eingeben, und im anderen Feld wird das Ergebnis der Umwandlung stehen.
Einheiten kombinieren
Die wahre Stärke von ConvertAll liegt in seiner Fähigkeit, mehrere
Einheiten zu kombinieren. Geben Sie einfach die Einheitennamen mit
einem ‚*‘ oder ‚/‘ dazwischen ein. Damit können Sie Einheiten wie „N*m”
oder „km/hr“ ausdrücken. Das Symbol ‚^‘ kann für Exponenten genutzt
werden, wie „m^3“ oder „kg*m/s^2”. Negative Exponenten sind erlaubt, um
Einheiten wie „sec^-1“ (pro Sekunde) angeben zu können, aber es kann
sein, dass sich dadurch Multiplikations- oder Divisionszeichen
umkehren („m*s^-2“ wird zu „m/s^2”).
Multiplikation und Division haben die gleiche Präzedenz und werden
daher von links nach rechts ausgewertet. Es können auch Klammern benutzt werden,
um die Einheiten im Nenner zu gruppieren. Daher kann „m / sec / hr“ auch als „m
/ (sec * hr)“ eingegeben werden. Die Variante mit den Klammern ist
möglicherweise weniger verwirrend.
Die Schaltflächen unter den Einheitenlisten („X“, „/“, „^2“, „^3“)
fügen ebenfalls den jeweiligen Operator hinter der Einheit ein, die der
Schreibmarke am nächsten steht. Die Schaltflächen für die
Exponenten ersetzen den Exponenten der Einheit.
Auch wenn Sie auf eine Einheit aus der Liste klicken, wird im
Allgemeinen die der Schreibmarke am nächsten stehende Einheit
im Eingabefeld ersetzt.
Die Schaltfläche „Einheit löschen“ unter den
Operator-Schaltflächen kann benutzt werden, um das Eingabefeld zu
löschen und eine neue Einheit eingeben zu können.
Abkürzungen
Wenn Sie Einheitennamen eingeben, werden Leerzeichen ignoriert. Sie
können sie also weglassen. Wenn Sie einen Teil eines Einheitennamens
bereits eingetippt haben, wird der entsprechende Eintrag in der Liste
hervorgehoben. Durch Drücken der Eingabetaste wird der Name
im Eingabefeld vervollständigt. Auch durch Betätigen der Tabulatortaste
wird der Name vervollständigt und zum nächsten Eingabefeld
gesprungen.
Die Schaltfläche „Zuletzt benutzte Einheit“ öffnet ein Menü
der zuletzt verwendeten Einheiten und Einheitenkombinationen. Die aktuelle
Einheitenkombination wird durch eine Auswahl in diesem Menü ersetzt.
Der zu konvertierende Zahlenwert kann entweder auf der „Ausgangs”-
oder der „Ziel”-Seite eingegeben werden. Für die Eingabe kann Standard- oder
wissenschaftliche Schreibweise benutzt werden, oder ein Ausdruck mit
einfachen mathematischen Operatoren (+, -, *, /, **) und Klammern.
Einheitensuche
Die Einheitensuche kann benutzt werden, um Einheiten nach Typ zu
filtern und/oder mit einem Textstring nach Einheiten zu suchen. Sie
zeigt in einem neuen Fenster eine separate Einheitenliste. Die Liste
wird anhand des Filters und der Sucheingabe aktualisiert.
Mit Schaltflächen weiter unten im Suchfenster kann die ausgewählte
Einheit zu den Einheiten in einem Eingabefeld im Hauptfenster
hinzugefügt werden. Die „Ersetzen”-Schaltflächen ersetzen die gesamte
Eingabe durch die ausgewählte Einheit. Die „Einfügen”-Schaltflächen
ändern nur den Teil einer kombinierten Einheit, der aktiv ist (bei der
Schreibmarke im jeweiligen Eingabefeld des Hauptfensters).
Optionen
Die Schaltfläche „Optionen...“ öffnet ein Fenster, in dem sich
verschiedene Voreinstellungen ändern lassen. Diese werden automatisch
gespeichert, ConvertAll startet das nächste Mal automatisch mit den
zuletzt gewählten Einstellungen.
Die erste Option bestimmt die Anzeige numerischer Ergebnisse,
einschließlich der Verwendung einer wissenschaftlichen Zahlennotation
und der Anzahl der dargestellten Dezimalstellen. Setzen Sie die Zahl der
Dezimalstellen nicht zu niedrig, da hierdurch die Genauigkeit stark
leiden kann. Sechs oder mehr Stellen sind empfohlen (acht ist die
Voreinstellung).
Es gibt eine Option, um festzulegen, wie viele der zuletzt benutzten
Einheiten gespeichert werden sollen. Setzt man die Zahl auf Null, dann werden die
Schaltflächen für den Zugriff auf die zuletzt benutzten Einheiten
deaktiviert.
Ein Option dient dazu, die Schaltflächen mit den Operationen („X“, „/“,
„^2“, „^3“, „Einheit löschen“ und „Zuletzt verwendete Einheit“) zu verstecken.
Durch diese Option kann man Platz sparen, falls Sie die Operatoren nur mit der
Tastatur eingeben.
Weitere Schaltflächen im Optionsdialog dienen dazu, die Farben der
Textfelder zu ändern.
Nichtlineare Umwandlungen
Bei einigen Einheiten ist die Umwandlung nichtlinear. Dazu gehören
zum Beispiel die Temperaturenskalen für Fahrenheit und Celsius (da der
Nullpunkt einen Offset hat) und für American Wire Gauge (amer.
Kodierung für Drahtdurchmesser, logarithmische Skala). Die
nichtlinearen Einheiten sind in der Kommentarspalte (rechts von der
Typ-Spalte) als solche gekennzeichnet.
Diese Einheiten können nur umgewandelt werden, wenn sie nicht mit
anderen Einheiten kombiniert werden und keinen Exponenten tragen.
Andernfalls wäre die Umwandlung nicht sinnvoll.
Verwendung auf der Kommandozeile
Umwandlungen können auf der Kommandozeile (Linux-Konsole oder
Windows/DOS Befehlsaufforderung) ausgeführt werden, ohne die grafische
Benutzerschnittstelle aufzurufen. Geben Sie den Befehl („convertall“ unter Linux,
„convertall_dos“ aus dem Windows-Binäarpaket),
gefolgt von der Zahl, der Ausgangseinheit und der Quelleinheit an,
getrennt durch Leerzeichen. Wenn Einheitennamen Leerzeichen enthalten,
müssen sie in Anführungszeichen gesetzt werden. Alternativ können Sie
auch die Option „-i“ auf der Kommandozeile verwenden („convertall -i“ unter Linux,
„convertall_dos -i“ unter Windows), die Angaben werden
dann interaktiv eingegeben.
Wenn die Umwandlung erfolgt ist, fragt ConvertAll nach einer neuen
Zahl für die gleiche Umwandlung. Mit „n“ wird eine neue Umwandlung
gestartet, mit „r“ kann die Konversion umgekehrt werden, mit „q“ wird das
Programm beendet.
Mit der Option „-h“ auf der Kommandozeile („convertall -h“ unter Linux,
„convertall_dos -h“ unter Windows) bekommen Sie eine ausführlichere Liste
der Optionen.
Versionshistorie
Die vollständige Versionshistorie befindet sich in der englischen
Version der README-Datei.
Fragen, Kommentare, Kritik?
Man kann mich per E-Mail erreichen unter: doug101 AT bellz DOT
org
Ich freue mich über jedes Feedback, einschließlich Mitteilung
über Fehler, die Sie finden. Schauen Sie auch regelmäßig unter
www.bellz.org nach Updates.
ConvertAll-0.8.0/doc/README_es.html 0000664 0000000 0000000 00000032555 13635744055 0016675 0 ustar 00root root 0000000 0000000
Archivo "léame" para ConvertAll
Archivo "Léame" para ConvertAll
Un programa para convertir unidades
Escrito por Doug Bell
Versión 0.8.0
Contenidos
Introducción
¿Porqué otro convertidor de unidades? Existen muchos por allí.
Bien, no he podido encontrar uno que funcionara en la forma que
yo quería.
Con ConvertAll, usted puede combinar las unidades en la forma
que quiera. Si usted quiere convertir desde pulgadas por década,
está bien. O desde metro-libra. O desde millas náuticas al cubo.
Las unidades no tienen porqué tener sentido para los demás.
Dado que no estoy en el negocio del software, distribuyo este
programa libremente para que cualquiera lo utilice, lo distribuya
o lo modifique, siempre y cuando no sea incorporado en ningún
programa propietario. Si le gusta este programa siéntase en
libertad de darlo a conocer a otros. Y hágame saber qué es lo que
piensa - mi dirección de e-mail es doug101 AT bellz DOT org
Características
- Las unidades básicas para la conversión pueden ser escritas
(con completado automático) o seleccionadas desde una lista.
- Las unidades pueden ser elegidas ya sea por una abreviación
o por su nombre completo.
- Las unidades pueden combinarse con las operaciones "*" y "/".
- Las unidades pueden elevarse a una potencia con el operador "^".
- Las unidades en el denominador pueden agruparse con paréntesis.
- Las unidades con escalas no lineales, como la temperatura,
pueden también ser convertidas.
- Una lista de unidades puede ser filtrada y se pueden realizar
búsquedas en ella.
- Combinaciones de unidades ya utilizadas pueden ser seleccionadas
desde un menú.
- Los números pueden introducirse ya sea en las entradas "Desde"
o "Hacia" para conversiones en ambas direcciones.
- Expresiones matemáticas básicas pueden ser introducidas en
lugar de números.
- Existen opciones para controlar el formato de los resultados
numéricos.
- El archivo de datos cuenta con más de 500 unidades.
- El formato del archivo de datos permite agregar
unidades muy fácilmente.
- Opciones para la línea de comandos están disponibles
para realizar conversiones sin interfaz gráfica.
Cuestiones legales
ConvertAll es software libre; puede usted distribuirlo
y/o modificarlo bajo los términos de la licencia pública
general GNU como ha sido publicada por la Free Software
Foundation; ya sea la versión 2 de la licencia o (a su
opción) cualquier versión posterior.
Este programa es distribuido con la esperanza de que
resulte de utilidad, pero SIN NINGUNA GARANTÍA. Mire el
archivo de LICENCIA distribuido con este programa para
mayor información.
Requerimientos del sistema
Linux
ConvertAll requiere las siguientes librerías:
- Python (Versión 3.2 o superior)
- Qt (Versión 4.6 o superior - ver Trolltech para más
información)
- PyQt (Versión 4.8 o superior - ver Riverbank
para más información)
Windows
Utilizando los archivos provistos en la distribución binaria, ConvertAll
debería correr en cualquier computador utilizando Windows
XP, Vista, 7 o 8.
Instalación
Linux
Extraiga los archivos fuente del archivo tar de convertall, cambie al
directorio ConvertAll en la terminal. Para una instalación
básica, simplemente ejecute el siguiente comando como administrador:
python install.py
Para ver todas las opciones de instalación,
utilice: python install.py -h
Para instalar ConvertAll con un prefijo diferente (el valor por defecto
es /usr/local), utilice: python install.py -p
/prefix/path
Windows
Simplemente ejecute el archivo de instalación descargado
(convertall-x.x.x-install-all.exe). Esto instalará el programa
con sus librerías y opcionalmente creará las asociaciones de archivos y
los accesos directos.
Si usted desea modificar el código fuente o escribir sus propios
programas PyQt para Windows, no utilice el procedimiento anterior. En
cambio, usted necesita instalar Python
y los binarios para PyQt. Extraiga entonces
el código fuente y los archivos de datos desde la versión para Linux
(el archivo tar para convertall) a un directorio de su elección y ejecute
el archivo convertall.py.
Utilizando ConvertAll
Bases
Simplemente escriba el nombre de una unidad en la ventana de edición
"Desde unidad" (From Unit). Mientras escribe, la lista debajo se moverá para
mostrar el nombre de la unidad más cercano. Puede o bien escribir el
nombre completo de la unidad o su abreviación o presionar Enter para
utilizar la unidad seleccionada en la lista. Por supuesto, clickando
con el ratón en una unidad de la lista también agregará la unidad a la
ventana de edición. También es posible utilizar las teclas "arriba"
y "abajo" para seleccionar una unidad de la lista.
Repita el procedimiento para seleccionar unidades en la ventana de
edición "A unidad" (To Unit). Cuando esté listo, si las unidades son compatibles
verá que se activa la ventana de edición numérica debajo de la lista
de unidades. Un número puede ser escrito en cualquiera de las ventanas
numéricas y la otra mostrará el resultado de la conversión.
Combinando unidades
La verdadera fuerza de ConvertAll descansa en su habilidad para
combinar múltiples unidades. Simplemente escriba los nombres de las
unidades con '*' o '/' entre ellas. Esto permite entradas como
"m*kg" o "km/hr". El símbolo '^' puede utilizarse para exponentes,
como "cm^3" o "cm*gr/seg^2". Exponentes negativos pueden utilizarse
para unidades como "seg^-1" (por segundo), pero puede cambiar entre
los símbolos de multiplicación y división ("cm*seg^-2" se convierte
en "cm/seg^2").
Multiplicación y división tienen la misma precedencia, por lo que
son evaluadas de izquierda a derecha. Es posible utilizar paréntesis
para agrupar unidades en el denominador. De esta forma
"m / seg / kg" puede ser también escrito como "m / (seg * kg)".
La versión entre paréntesis es probablemente menos confusa.
Los botones debajo de las listas de unidades ('X', '/', '^2', '^3')
insertarán también los correspondientes operadores después de la unidad más
cercana al cursor. Los botones con exponentes reemplazarán los
exponentes de la unidad.
En modo semejante, haciendo click en una unidad de la lista generalmente
reemplaza la unidad más cercana al cursor.
El botón de "Limpiar unidades" (Clear Unit) debajo de los botones con los operadores
puede ser utilizado para vaciar la ventana de edición de unidades y así
permitir que nuevas unidades sean escritas.
Atajos de teclado
Cuando se escriben unidades, los espacios son ignorados por lo que
pueden evitarse. También será generalmente ignorado si la forma
plural del nombre de la unidad es introducida. Cuando una unidad
escrita parcialmente es seleccionada de la lista, presionar Enter
completará el nombre. Además, presionar la tecla tab completará el
nombre y moverá el cursor al siguiente campo de entrada.
El botón "Unidades recientes" (Recent Unit) abre un menú con las unidades y
combinaciones de unidades recientemente utilizadas. La combinación de
unidades actual será reemplazada con cualquier selección de ese menú.
El número a ser convertido puede ser ingresado ya sea en "Desde" o
en "a". Notación científica estándar puede utilizarse, o una expresión
incluyendo los operadores matemáticos normales (+, -, *, /, **) y paréntesis
puede ser escrita.
Buscador de unidades
El buscador de unidades (Unit Finder) puede utilizarse para filtrar unidades por
tipo y/o buscar unidades utilizando una cadena de texto. El buscador
mostrará una lista de unidades separada en una nueva ventana. La lista
será actualizada según el filtro y la cadena de búsqueda utilizados.
Los botones cerca de la parte baja de la ventana del buscador agregarán
la unidad elegida a las unidades de la ventana principal. El botón
"Reemplazar" (Replace) reemplazará toda la combinación de unidades con la selección.
El botón "Insertar" (Insert) cambia solo la parte de la unidad combinada que está
activa (a la posición del cursor en la ventana principal).
Opciones
El botón "Opciones..." (Options) permite cambiar varios valores por defecto
de la configuración. Estos valores son automáticamente almacenados y
por lo tanto ConvertAll iniciará con los valores utilizados por última vez.
La primer opción controla la forma en que se muestran los resultados numéricos,
incluyendo el uso de notación científica y el número de decimales a utilizar.
Tenga cuidado con seleccionar el número de decimales muy bajo ya que podría
significar una importante pérdida de precisión. Seis o más dígitos es
recomendable (ocho es el valor por defecto).
Sigue la opción para configurar el número de unidades recientemente utilizadas a
ser salvadas. Configurando este valor en cero deshabilita el botón "Unidades recientes".
A continuación se tiene la opción de ocultar los botones con los operadores (x, /,
^2, ^3, Clear Unit and Recent Unit). Esto puede utilizarse para salvar espacio
en el caso que el teclado sea utilizado para entrar los operadores.
La última opción controla los colores de los campos de texto.
Conversiones no-lineares
La conversión de algunas unidades es no linear. Ejemplos de esto
incluyen las escalas de temperatura Fahrenheit y Celsius (debido a los diferentes
puntos para el cero) y el "American Wire Gauge" que es logarítmica. Las
unidades no lineares están etiquetadas como tales en la columna comentarios (Comments)
situada a la derecha de la columna "Tipo" (Type).
Estas unidades pueden ser convertidas solo cuando no están combinadas con
otras unidades o utilizadas con un exponente. De otro modo la conversión no
tendrá significado.
Uso desde la línea de comandos
Conversiones pueden ser efectuadas desde la línea de comandos (consola Linux o DOS)
sin invocar la interfaz gráfica. Es suficiente entrar el comando
("convertall" en Linux, "convertall_dos" con el binario para Windows), el
número, la unidad desde la que se quiere convertir y la unidad a la que se
quiere llegar (separada por espacios) para realizar la conversión.
Los nombres de las unidades que contengan espacios deberán ser rodeados de comillas.
O, para que el programa pregunte por cada unidad, utilizar la opción "-i"
("convertall -i" en Linux, "convertall_dos -i" en Windows).
Después de la conversión, ConvertAll preguntará por un nuevo número
para realizar la misma conversión. Puede utilizarse "n" para iniciar una nueva
conversión, "r" para invertir la conversión o "q" para salir del programa.
Para una lista detallada de las opciones, utilice la opción "-h" ("convertall
-h" en Linux, "convertall_dos -h" en Windows).
Historia
La revisión histórica completa puede ser encontrada en la versión inglesa
de este archivo.
¿Preguntas, comentarios, críticas?
Puedo ser contactado por email a: doug101 AT bellz DOT org
Agradezco cualquier feedback, incluyendo reporte de cualquier error
que usted encuentre. Además, puede usted también consultar periódicamente
el sitio www.bellz.org por cualquier
actualización.
ConvertAll-0.8.0/doc/README_fr.html 0000664 0000000 0000000 00000032134 13635744055 0016666 0 ustar 00root root 0000000 0000000
ConvertAll ReadMe
Fichier ReadMe de ConvertAll
un logiciel de conversion d'unités
écrit par Doug Bell
Version 0.8.0
Contenus
Fondement
Pourquoi écrire un autre convertisseur d'unités? Eh bien, je n'en avais trouvé aucun qui était comme je le voulais.
Avec ConvertAll, vous pouvez combiner les unités comme vous le voulez. Si vous voulez convertir des pouces en kilomètre, ca fonctionne! Les unités n'ont pas à avoir de sens pour personne d'autres que vous.
Comme je ne suis pas dans l'industrie du logiciel, je fais ce programme librement, je le distribue librement et j'autorise n'importe qui à le copier ou le modifier tant qu'il ne se retrouve pas dans un logiciel propriétaire. Si vous aimez ce logiciel, sentez-vous libre d'en parler. Aussi, donnez-moi des commentaires par courriel - mon adresse est doug101 AT bellz.org
Capacités
- L'unité à convertir peut être écrite (avec auto complétion) ou choisie dans une liste.
- Vous pouvez utiliser les abréviations ou les unités au long.
- Les unités peuvent être combinées avec les opérateurs "*" et "/".
- Le symbole "^" peut être utilisé pour les exposants.
- Les unités non linaires (comme la température) peuvent être converties.
- Une liste d'unité peut être filtrée et cherchée
- Les nombres peuvent être écrits et convertis dans les deux directions.
- Des expressions mathématiques de bases peuvent être écrites à la place de nombres.
- Le menu Options contrôle le formatage des résultats numériques.
- Vous trouverez au-delà de 500 unités.
- Le format du fichier de données est facilement modifiable pour ajouter de nouvelles unités.
- La version en lignes de commandes peut être utilisée.
Dispositions légales
ConvertAll est un logiciel libre; vous pouvez le redistribuer et/ou le modifier sous les termes de la licence GNU GPL (GNU General Public License) comme publiée par la Free Software Foundation; la version 2 de cette license ou (comme vous le voulez) une version plus récente.
Ce programme est distribué dans l'espoir d'être utile, mais SANS AUCUNE GARANTIE. Voyez le fichier LICENSE fourni avec ce programme pour plus d'information.
Minimum système
Linux
ConvertAll requiert les librairies suivantes :
- Python (Version 3.2 or higher)
- Qt (Version 4.6 or higher - voyez Trolltech pour plus d'information)
- PyQt (Version 4.8 or higher - voyez Riverbank
pour plus d'information)
Ces librairies sont relativement nouvelles. Des paquets n'existent peut-être pas pour votre distribution. Dans ce cas, une version antérieure de ConvertAll (0.3.2) est toujours disponible.
Windows
En utilisant les binaires de ConvertAll, n'importe quel PC utilsant Windows XP, Vista, Windows 7 ou Windows 8 devrait fonctionner.
Installation
Linux
Extraire les sources du fichier tar de convertall. Ensuite, allez dans le dossier ConvertAll. Pour une utilisation de base, tapez la commande suivante en mode super utilisateur (root) : python install.py
Pour les options, utilisez: python install.py -h
Pour installer ConvertAll avec un prefix différent (par défaut c'est
/usr/local), utilisez: python install.py -p
/prefix/path
Windows
Simplement utiliser le fichier téléchargé (convertall-x.x.x-install-all.exe). Cela installera les fichiers nécessaires, fera les associations et créera les raccourcis.
Si vous souhaitez modifier le code source ou écrire vos propres programmes PyQt pour Windows, n'utilisez pas les procédures ci-haut. À la place, vous devez installer Python et les fichiers binaires pour PyQt. Ensuite, extraire le code source et les fichiers de données de la version Linux (fichier tar convertall) dans un dossier de votre choix et exécuter convertall.py
Utiliser ConvertAll
Bases
Simplement écrire le nom d'une unité dans le champ "de l'unité". Au fur que vous écrivez, une liste apparaîtra et vous pourrez sélectionner la bonne. Tapez l'abréviation complète, le nom complet ou sélectionné en un dans la liste et taper retour. Cliquer avec la souris fonctionne également tout comme les flèches haut et bas.
Refaire les mêmes étapes dans le champ "vers l'unité". Quand vous aurez terminé, si les unités sont compatibles, vous verrez un champ pour entrer des valeurs numériques sous les listes. Entrer un nombre dans un champ et vous verrez le résultat de la conversion dans l'autre champ.
Combiner les unités
La force de ConvertAll repose dans son habileté à combiner plusieurs unités. Écrivez simplement le nom de deux unités avec un "*" ou un "/" entre eux. Ainsi, cela permet les km/h ou les j/s. Le symbole "^" peut être utilisé pour des m?? "m^2". Même les exposants négatifs "sec^-1" sont possibles, mais le symbole de la division apparaîtra. ("m*sec^-2" deviendra "m/sec^2")
Dans ConvertAll, la multiplication passe avant la division. Donc "m/sec*h" veut dire "m/(sec*h)". Donc, "m/sec/h" revient au même que "m*h/sec". Faites donc attention aux priorités.
Les boutons sous les listes d'unités ('X', '/', '^2', '^3') placeront l'opérateur sur l'unité le plus près du curseur.
Aussi, cliquer sur une unité dans la liste remplace généralement l'unité la plus près du curseur.
Le bouton "Effacer l'unité" sous les opérateurs peu être utilisé pour nettoyer le champ et ainsi laissez de la place pour une nouvelle unité.
Raccouris
Quand vous tapez le nom d'une unité, les espaces seront ignorés. Ils peuvent donc être sautés. Le pluriel aussi est ignoré. Quand vous avez entré un nom partiel d'unité, si vous tapez retour, le nom s'écrira au complet. Si vous utilisez la touche TAB, le curseur ira au champ suivant en plus.
Le nombre devant être converti peut être entré dans le champ "De" ou "Vers" sans problème. La notation décimale et scientifique peuvent être utilisés tout comme les expressions usuelles en mathématique (+, -, *, /, **).
Trouver une unité
Le chercheur d'unité peut être utilisé pour filtrer les unités par type et/ou pour chercher des unités en utilisant une chaîne de caractères. Cela fera apparaître une liste séparée dans une nouvelle fenêtre. Cette liste sera ensuite mise à jour en fonction des filtres utilisés.
Les boutons près du bas de la fenêtre du chercheur ajoutent l'unité sélectionnée dans la fenêtre principale. Le bouton "Remplacer" remplace toutes les unités combinées par la sélection. Le bouton "Insertion" remplace seulement la partie active des unités.
Options
Le bouton "Options..." permet de changer les paramètres par défaut. Les nouveaux paramètres sont enregistrés automatiquement, donc à la prochaine utilisation de ConvertAll, vos paramètres modifiés seront encore présents.
Les premières options contrôlent l'affichage de résultats numériques, incluant l'utilisation de notation scientifique et le nombre de décimales. Faites attention si vous mettez un très petit nombre de décimal, car tout deviendrait moins précis. Six décimales ou plus sont recommandées (par défaut c'est huit).
Il y a une option pour cacher les boutons des opérateurs (x, /,
^2, ^3 and Clear Unit). Ils peuvent être cachés pour sauver de l'espace si le clavier est utilisé pour entrer ces opérateurs.
Des boutons sont aussi disponibles pour changer la couleur des champs de texte.
Conversion non linéaire
La conversion de quelques unités est non linéaire (non proportionnel). La conversion de la température des Fahrenheit et des Celsius est un exemple de conversion non linéaire. Les unités non linéaires sont identifiées dans les commentaires (à droite de la colonne "Type").
Ces unités ne peuvent être converties que lorsqu'ils sont utilisés seuls et sans exposants. Sinon la conversion ne sera pas juste.
Utilisation de la ligne de commande
Les conversions peuvent être faites à partir de la ligne de commande (dans un terminal Linux ou DOS). Entrer la commande ("convertall"), le nombre, l'unité à partir de et l'unité vers (le tout séparé par des espaces) pour faire une conversion. Les unités dont le nom comporte des espaces doit être entourées de guillemets. Encore, si vous voulez qu'on vous demande les entrées, utilisez "convertall -i" en ligne de commande.
Une fois la conversion terminée, ConvertAll vous demandera pour un nouveau nombre pour faire la même conversion. Vous pourrez soit utiliser "r" pour faire la conversion inverse ou "q" pour quitter.
Pour la liste complète des options, entrer "convertall -h" à l'invite.
Historique
23 mars 2010 - Version 0.4.90
Nouveautés :
- La multiplication et la division ont la même importance. Les priorités d'opérations mathématiques seront donc respectées.
- Les parenthèses sont supportés pour grouper des unités au dénominateur. Par exemple, " m / sec / kg " peut maintenant être écrit " m / (sec * kg) ".
- Un boutton "Unité récente" a été ajouté et ouvre un menu affichant les unités ou combinaisons d'unités récentes. Vous trouverez aussi un nouveau menu pour choisir la longueure de cette nouvelle option.
- Nous avons ajoutés des traductions allemande et française pour l'interface graphique et le fichier d'unités. Pour les utiliser, téléchargez et installez le fichier "convertall-il8n..." spécifique à votre système (en plus de l'installateur stantard de ConvertAll).
L'historique complet du logiciel peut être trouvé dans la version anglaise du fichier README.
Questions, Commentaires, Critiques?
Vous pouvez me contacter par email à l'adresse : doug101 AT bellz.org
Tous les commentaires sont les bienvenus incluant les rapports de bogues. Aussi, vérifié périodiquement au www.bellz.org pour les mises à jour.
ConvertAll-0.8.0/doc/README_ru.html 0000664 0000000 0000000 00000136254 13635744055 0016715 0 ustar 00root root 0000000 0000000
ConvertAll ReadMe
Руководство по ConvertAll
программа для
конвертирования величин
Автор Doug Bell
Версия 0.8.0
Содержание
Введение
Для чего писать ещё один
конвертер величин? Да, их множество. Но,
я не нашёл такого, который бы работал
так, как я хочу.
С помощью ConvertAll можно комбинировать
величины как вам захочется. Если Вы
хотите конвертировать дюймы за декаду,
запросто. Или перевести величину из
метр-фунтов. Или морских миль в кубе.
Величины не должны иметь смысл для
кого-то ещё.
Я не преследую коммерческой
цели и делаю эту программу бесплатной
для использования, распространения и
изменения, так как она не включает в
себя никаких проприетарных
программ. Если Вам понравилась программа,
поделитесь с другими своей находкой.
Можете также сообщить
своё мнение о программе - мой электронный
адрес: doug101 собака bellz точка org.
Возможности
Базовая величина
для конвертации может быть напечатана
(с автозавершением) или выбрана из
списка.
По мере ввода
названия величины, список величин
автоматически фильтруется и содержит
только величины с совпадающими словами.
Величину можно
выбирать как по аббревиатуре, так и по
полному имени.
Величины можно
комбинировать с операторами "*" и
"/".
Величину можно
возвести в степень (квадрат, куб и т.д.)
с помощью оператора "^".
Величины в знаменателе
можно группировать используя круглые
скобки.
Нелинейные величины,
такие как температура, тоже могут быть
конвертированы.
Недавно использованные
величины можно выбрать из меню.
Значение величин
можно вводить как со стороны «Из», так
и «В» для конвертации в обе стороны.
Базовые математические
выражения могут использоваться вместо
значений.
Настраиваемый
формат представления результата.
Базе включает более
500 величин.
Формат базы величин
позволяет с лёгкостью добавить
дополнительные величины.
С помощью командной
строки возможно выполнить конвертацию
без GUI.
Пользовательский
интерфейс и база величин доступны на
Английском, Французском, Немецком,
Русском и Испанском языках.
Лицензия и распространение
ConvertAll является свободным
программным обеспечением ; Вы можете
распространять и / или изменять его в
соответствии с условиями GNU General Public
License , опубликованной Фондом свободного
программного обеспечения, либо версии
2 Лицензии, либо (по вашему выбору ) любой
более поздней версии.
Эта программа распространяется
в надежде, что будет полезна, но БЕЗ
ВСЯКОЙ ГАРАНТИИ. Смотри файл LICENSE
для подробной информации.
Системные требования
Linux
ConvertAll зависит от следующих библиотек:
Python (Версии 3.4 или
выше)
Qt (Версии
5.4 или выше
- смотри Qt Project для
подробной информации)
PyQt ( Версии 5.4
или выше - смотри Riverbank
для подробной информации )
Windows
Используя файлы дистрибутива, ConvertAll
должен работать на любом компьютере
под Windows XP, Vista, 7, 8 или 10.
Установка
Linux
Распакуйте
исходные файлы convertall из tar архива, затем
перейдите в директорию ConvertAll
в терминале. Для стандартной установки
просто запустите команду с правами
root:
python install.py
Если в Вашем дистрибутиве
по умолчанию используется Python 2.x,
необходимо подставить python3
вместо python
в этих
командах.
Чтобы
посмотреть все возможные параметры
установки, используйте: python
install.py -h.
Чтобы установить ConvertAll с
отличным префиксом (по умолчанию
/usr/local),
используйте: python
install.py -p /путь/для/установки
Windows
Чтобы установить для всех
пользователей, запустите файл
ConvertAll-x.x.x-install-all.exe.
Потребуются права администратора.
Для пользовательской
установки (права администратора не
требуются), запустите файл
ConvertAll-x.x.x-install-user.exe.
Для установки портативной
версии, запустите файл
ConvertAll-x.x.x-install-user.exe,
снимите
отметки установки ярлыков и деинсталлятора,
а
также
выберите установку портативной версии.
Использование ConvertAll
Основы
Просто напечатайте имя величины в
поле «Из величины». Пока Вы набираете
название величины список будет
фильтроваться, чтобы показать только
подходящие величины. Фильтрация
производится по словам входящим в
величину (начиная с начала). Вы можете
напечатать полностью название/аббревиатуру
величины или нажать клавишу «Enter» для
выбора величины подсвеченной (синие
буквы) в списке. Конечно же, простое
нажатие мышкой на элементе списка
выберет величину в поле ввода. Также
можно использовать клавиши курсора для
выбора величин в списке расположенных
рядом.
Повторите выбор величины в поле «В
величину». Когда завершите выбор и если
величины совместимы, то поле для ввода
значений под списком станет активным.
Значение величины можно указать в любом
из полей, а в другом будет отображён
результат конвертации.
Комбинирование величин
Настоящая сила ConvertAll заключается в
возможности комбинирования нескольких
величин. Просто напечатайте имена
величин с операторами '*' или '/' между
ними. Это даёт возможность получить
величины типа "ft * lbf" или "mi / hr".
Символ '^' используется для возведения
в степень, например "m^3" или "ft *
lbm / sec^2". Его также можно использовать
для получения величин типа "sec^-1"
(в секунду), или переключения операции
умножения или деления ("ft * sec^-2"
равнозначно "ft / sec^2").
Умножение и деление имеют одинаковый
приоритет, поэтому обрабатываются слева
на право. Скобки могут быть использованы
для группировки знаменателя. Например
"м / сек / кг" можно записать как "м
/ (сек * кг)". Вариант со скобками
вероятно менее запутывающий.
Кнопки под полями ввода величин также
могут быть использованы для вставки
операторов после величины ближайшей к
курсору. Кнопки возведения в степень
заменяют экспоненту. Кнопки умножения
и деления добавят операторы "*"
и "/".
Также, выбор величины из списка заменит
величину на ближайшую к курсору.
Кнопка «Очистить величину» под кнопками
операторов используется для очистки
поля выбора величины.
Кнопка «Фильтр» используется для
отображение одного типа величин в
списке. Учтите, что не будут показаны
величины образующие другой тип в
комбинации.
Нелинейное конвертирование
Конвертирование некоторых величин
нелинейное. Примером такой величины
является Фаренгейт. Нелинейные величины
отмечены в колонке комментариев.
Такие величины могут быть конвертированы
только, если они не комбинированы с
другими величинами и не возведены в
степень. Иначе результат будет неточным.
Ускорение набора
Когда набираете имена величин пробелы
игнорируются, поэтому их можно пропускать.
Также игнорируются множественные формы
величин. Для квадрата или куба величин
(положительная степень 2 и 3) символ "^"
вводить не
обязательно.
Когда частично введённая величина
подсвечена в списке (синие буквы) нажатие
«Enter» завершит имя. Можно использовать
кнопки курсора (вверх и вниз) для выбора
другой величины из списка, при нажатии
«Enter» активная величина в поле ввода
будет заменена.
Кнопка «Недавняя величина» открывает
меню недавно использованных величин и
комбинаций величин. Текущая комбинация
величин полностью заменяется выбранной
из этого меню.
Клавиша «Tab» используется для
переключения между полями величин "Из"
или "В", а также полями значения
величин.
Значение для конвертации можно вводить
с любой стороны в "Из" или "В".
Можно использовать как стандартную,
так и научную запись значения, или
выражение включающее нормальные
математические операторы (+, -, *, /, **), а
также круглые скобки.
Настройки
Кнопка "Настройки..." позволяет
изменить некоторые параметры установленные
по умолчанию. Изменения автоматически
сохраняются и при следующем запуске
ConvertAll будет использовать последние
установленные параметры.
Первый раздел включает в себя настройки
представления результата, включая
научное представление и количество
знаков после запятой. Имейте в виду, что
установка маленького числа знаков после
запятой может повлиять на точность
результата. Рекомендуется шесть и более
знаков (восемь по умолчанию).
В следующем разделе можно установить
количество недавно использованных
величин, которые будут запоминаться.
При установке нулевого значения, кнопки
«Недавние величины» будут отключены.
Далее можно включить автоматическую
загрузку последней использованной
величины при запуска приложения.
Есть возможность скрыть кнопки
текстовых операторов (первая строка) и
кнопки величин (вторая строка). Ей можно
воспользоваться для экономии места,
если операторы вводятся с клавиатуры.
Также можно настроить цвет текстовых
полей с помощью кнопок расположенных
ниже.
Режим командной строки (без GUI)
Конвертирование можно выполнить из
командной строки (консоль Linux или DOS) без
использования графического интерфейса.
Введите команду ("convertall" для Linux,
"convertall_dos" для Windows), значение,
величина из которой и величина в которую
(разделённые пробелами) провести
конвертацию. Величины содержащие пробелы
необходимо взять в кавычки. Или их можно
ввести в интерактивном режиме, использую
"-i" параметр ("convertall -i" для
Linux, "convertall_dos -i" для Windows).
После выполнения конвертации, ConvertAll
запросит новое значение величины для
аналогичной конвертации. Также можно
ввести "n" для начала новой
конвертации, "r" чтобы поменять
местами величины или "q" для выхода.
Для более детального списка параметров,
используйте "-h" параметр ("convertall
-h" для Linux, "convertall_dos -h" для Windows).
История версий
Апрель 4, 2018 - Release 0.7.4
Новые
функции:
Добавлен
файл запуска для версии Linux для
использования в меню.
Добавлен параметр для
отмены сохранения позиции и размера
окна при запуске.
Обновления:
Добавлен US
drill bit gauge sizes как нелинейная величина.
Добавлены
величины gigabit и terabit.
Изменено определение
величины liter per 100 km в Немецкой локализации
в соответствии с Английской версией.
Октябрь 15, 2017 - Release
0.7.3
Исправления:
Fixed a crash if a
zero value is entered when the engineering notation option is
enabled.
Исправлена проблема
инициализации проявляющаяся на некоторых
версиях Python.
Февраль 20, 2017 - Release
0.7.2
Исправления:
Fix a crash due to
an overflow error when typing part of an exponent in the denominator
of the second unit.
Avoid flipping the preceding operator between
multiplication and division as a unit exponent of 0.5 is typed.
Февраль 4, 2017 - Release
0.7.1 (Linux only)
Исправления:
Изменена
устаревшая проверка зависимости в
установщике для Linux – теперь проверяется
наличие Qt5 библиотек.
Fixed a timing issue in the Linux installer so
that byte-compiled files do not have old timestamps.
Январь 8, 2017 - Release 0.7.0
Новые
функции:
Dual unit lists
have been replaced with a single list that works with the active
unit line editor.
As a unit is typed,
the listing of units is reduced to only include units that match the
typed words.
The unit list can
be sorted by clicking on the column headings.
The unit list can
be filtered to only show units of a certain type.
Simple unit
exponents (positive 2 and 3) can be typed with just the number
(leaving out the "^" character).
Now permits
decimals to be entered for unit exponents, supporting roots of
units.
ConvertAll переведён с библиотек
Qt4 на Qt5.
Обновления:
Since the main unit
list can now be searched, sorted and filtered, the Unit Finder
Dialog has been removed.
Added the British
Std Wire Gauge non-linear unit.
Added the ton
imperial unit.
Added the cable
nautical unit.
Added the MBH (1000
Btu/hr) unit.
Added Cape foot, square perch and rood units.
Исправления:
Corrected some unit definitions in the French
translation, including avogadro's number, lambert, poise and the
gravitational constant.
Сентябрь 10, 2015 - Release 0.6.1
Новые функции:
Added an option to output
results in engineering notation (a version of scientific notation
with exponents divisible by three).
Добавлен русский перевод. Спасибо
vantu5z за перевод.
Обновления:
Добавлена величина
dram mass.
Добавлены величины
fluid dram и minim volume, для US и Imperial версий.
Добавлена величина
smoot length.
Добавлена аббревиатура
"dm" для величины decimeter length.
Добавлен комментарий
"avoirdupois" для applicable mass и weight величин.
Добавлен комментарий
"fresh water" для applicable depth-based pressure
величин.
Обновлён немецкий
перевод. Спасибо Thomas Helmke за перевод.
Добавлены некоторые
MSVC библиотеки DLL для инсталлятора
Windows, чтобы предотвратить ошибки на
компьютерах, где они отсутствуют.
Уточнены некоторые сообщения об
ошибках в зависимостях для инсталлятора
Linux.
Исправлены ошибки:
Fixed an error in the unit data
formula for the AWG area unit.
Changed the value of the caliber unit to be equivalent to
inches (typical written usage), not hundredths of an inch (typical
verbal usage).
Февраль 1, 2014 - Release 0.6.0
Новые функции:
ConvertAll has been ported from
Python 2 to Python 3. This porting includes some code cleanup.
Added an option to automatically
load the last used units at startup.
Added an introductory tip dialog
box that explains combined units. There is also an option to hide
this dialog.
There is an additional Windows
installer for users without administrator rights and for portable
installations.
Added a Windows installer option to add a config file to
the program's directory for portable installations. If that file is
present, no config files will be written to users' directories.
Обновления:
The Windows binaries are built
using more recent Python, Qt and PyQt libraries.
The user interface and unit data
language translations are now included in the main installation
files.
Added the long ton unit
(Imperial version of the ton).
Added the kilopond unit as a
synonym of kilogram-force.
Added the micron of Hg pressure
unit.
Added the lunar distance (LD)
astronomical distance unit.
Added the rack unit (height of
an electrical rack).
Added the versta Russian length unit.
Исправлены ошибки:
Fixed the operation of the
"Clear" button in the Unit Finder dialog.
Fixed a problem with the definition of the BTU unit in the
French translation.
Ноябрь 2, 2011 - Release 0.5.2
Обновления:
Added the microliter volume
unit.
Added the galileo acceleration
unit.
Added the stremma land area unit.
Bug Fixes:
Changed the method of identifying a "unitless"
portion of a unit to avoid falsely reporting incompatibility between
some units when using language translations.
Март 31, 2011 - Release 0.5.1
Обновления:
Added the link length unit.
Added US survey variations of
the mile and chain length units.
Added the centigray radiation
dose unit.
Use DOS newline characters in the Windows version of the
unit data file for easier editing by users.
Май 2, 2010 - Обновление перевода
0.5.0b
Апрель 23, 2010 - Release 0.5.0
Новые функции:
Multiplication and division
operators now have the same precedence. In previous versions of
ConvertAll, a series of units after a division symbol were assumed
to be in the denominator. Now, a division operator only affects the
unit (or the unit group in parenthesis) immediately after the
operator.
Parenthesis are now supported to
group units in the denominator of a combined unit. For example, ""m
/ sec / kg" can also be entered as "m / (sec * kg)".
"Recent Unit" buttons have been added that open a
menu of recently used units and unit combinations. A unit selected
from the menu will replace the current unit combination. There is
also a new option dialog entry that controls the maximum length of
this menu.
Обновления:
Added the tonne force metric
force unit.
Added hundredweight long and
hundredweight short mass units.
Added an American Wire Gauge
(AWG) area unit in addition to the existing AWG diameter unit.
Added the tonne oil equivalent
and the tonne coal equivalent energy units.
Added the ton refrigeration
power unit.
Added the darcy and millidarcy
permeability units.
French and German translations have been added for the user
interface and the unit data. To use them, download and install the
"convertall-i18n..." file for your platform (in addition
to installing the standard ConvertAll package).
Сентябрь 24, 2009 - Release 0.4.3
Новые функции:
Prepared ConvertAll for translation efforts by properly
handling Unicode characters in unit data and by marking internal
program strings for translation. Volunteers for translating
ConvertAll into other languages are welcome.
Обновления:
Added solar mass and pennyweight
mass units.
Added therm and thermie energy
units.
Added gauss and maxwell magnetic
units.
Added the US survey foot length
unit.
Added the mpg imp mileage unit.
Changed the value of the point unit from the old American
point to the more modern desktop publishing point.
Исправлены ошибки:
A critical QString conversion
bug that caused ConvertAll to not run with the latest version of
PyQt (4.5.4) was fixed.
Command line quiet mode was fixed to avoid an interactive
prompt when bad unit data is entered.
Май 28, 2008 - Release 0.4.2
Исправлены ошибки:
Changed the "mach"
unit from 331.46 m/s to 340.29 m/s. It is now correct for STP
conditions (15 degrees C). The previous value was for 0 degrees C.
Fixed a bug that could hide messages about errors in a
manually edited unit data file.
Январь 22, 2008 - Release 0.4.1
Новые функции:
An optional command line mode was added to do conversions
without the graphical interface. Enter the command ("convertall"),
the number, the from unit and the to unit (separated by spaces) to
do the conversion. For a more detailed list of options, enter
"convertall -h" on the command line.
Обновления:
The icon used for ConvertAll has
been updated. Thanks to Ricardo Berlasso for the new artwork.
Alternate units have been added
for kilobyte, megabyte, etc., marked "IEC std". These
convert using powers of 10, rather than powers of 2.
Troy pounds and troy ounces have
been added.
Gigapascal, hectopascal and
megabar have been added.
Hogshead units for wine and beer
have been added.
The Swedish mil unit of distance
has been added.
The Thai rai and ngaan units of land area have been added.
Октябрь 5, 2006 - Release 0.4.0
Новые функции:
ConvertAll was ported to the Qt4 library. This involved a
significant rewrite of the code. The previous versions used Qt3.x on
Linux and Qt2.3 on Windows. Benefits include updated widgets and
removal of the non-commercial license exception in Windows.
Обновления:
On Windows, the ConvertAll.ini file has been moved from the
installation directory to a location under the "Documents and
Settings" folder. This avoids problems on multi-user systems
and for users with limited access rights.
Октябрь 5, 2006 - Release 0.3.2
Обновления:
Added Imperial (UK) gallons,
quarts, pints and fluid ounces.
Added gigagram and teragram
units.
Added the pound-mole unit and clarified that the existing
mole is a gram-mole.
Февраль 14, 2005 - Release 0.3.1
Обновления:
Added the decare unit for land
area.
The Linux installer has been updated to be more robust and
give more install directory options.
Исправлены ошибки:
The barn unit, used in particle physics, was corrected. It
had been incorrectly listed as a length unit instead of an area
unit.
Март 11, 2004 - Release 0.3.0
Новые функции:
A unit finder window was added
to allow the unit list to be filtered and searched.
The size and position of the
main and finder windows are now saved at exit.
A new option allows the operator
text entry buttons (x, /, ^2, ^3 and Clear Unit) to be hidden.
An install program has been added for windows.
Ноябрь 18, 2003 - Release 0.2.4
Обновления:
Keyboard shortcuts and tab-focus
order for the main dialog have been improved.
An install script was added for
Linux and Unix systems.
The windows build now uses Python version 2.3 and PyQt
version 3.8.
Март 24, 2003 - Release 0.2.3
Обновления:
When an expression using
division is entered for the number to be converted, floating point
division is now used even if the entries are integers (Python 2.2 or
greater only).
Mouse wheels are now supported
in the unit lists.
Icon files are now provided with the distribution files.
Май 28, 2002 - Release 0.2.2a
Исправлены ошибки:
A fix of the Windows binary only. Fixes major problems by
upgrading the library version to PyQt 3.2.4.
Май 16, 2002 - Release 0.2.2
Обновления:
ConvertAll has been ported to Qt
3.x. It now works with both Qt 2.x and 3.x using the same source
code.
The help/readme file has been
rewritten and now includes section links.
The binaries for windows have been updated to Python 2.2
and PyQt 3.2 (but are still using Qt 2.3 Non-commercial).
Сентябрь 17, 2001 - Release 0.2.1
Исправлены ошибки:
Some window captions and icons
were corrected.
A window maximizing bug was fixed.
Август 20, 2001 - Release 0.2.0
Новые функции:
A major rewrite was done of the
conversion engine.
A new data file format makes it
easier to add and verify units.
The unit name and abbreviation
are now listed separately for better sorting and searching.
Entering of units has been
improved by changing operator precedence, by ignoring spaces and
plurals, and by changing the partial selection list highlight.
An expression can now be used for the number to be
converted.
Обновления:
Many additional units were added
to the database.
For MS Windows users, the binary files were upgraded to
PyQt Version 2.5.
Август 10, 2001 - Release 0.1.1
Исправлены ошибки:
Fixed problems with using the
same unit twice in a combined unit.
Fixed an occasional shutdown
when auto-completing.
Fixed a problem with the updating of the unit label.
Июль 28, 2001 - Release 0.1.0
Вопросы, Комментарии, Критика?
Со мной можно связаться по
электронной почте: doug101 собака bellz точка
org
Приветствуются различные отзывы,
включая сообщения о найденных Вами
ошибках. Также Вы можете переодически
проверять наличие каких либо обновлений
на www.bellz.org.
ConvertAll-0.8.0/docs/ 0000775 0000000 0000000 00000000000 13635744055 0014534 5 ustar 00root root 0000000 0000000 ConvertAll-0.8.0/docs/CNAME 0000664 0000000 0000000 00000000024 13635744055 0015276 0 ustar 00root root 0000000 0000000 convertall.bellz.org ConvertAll-0.8.0/docs/README.html 0000664 0000000 0000000 00000073177 13635744055 0016376 0 ustar 00root root 0000000 0000000
ConvertAll ReadMe
ReadMe file for ConvertAll
a unit conversion program
Written by Doug Bell
Version 0.8.0
March 15, 2020
Contents
Background
Why write another unit converter? There are plenty of them out
there. Well, I couldn't find one that worked quite the way I
wanted.
With ConvertAll, you can combine the units any way you want. If
you want to convert from inches per decade, that's fine. Or from
meter-pounds. Or from cubic nautical miles. The units don't have to
make sense to anyone else.
Since I'm not in the software business, I'm making this program
free for anyone to use, distribute and modify, as long as it is not
incorporated into any proprietary programs. If you like the software,
feel free to let others know about it. And let me know what you think
- my email address is doug101 AT bellz DOT org
Features
- The base units for conversion may be either typed (with
auto-completion) or selected from a list.
- As a unit is typed, the unit list is automatically filtered to
show only units with matching words.
- In general, either a unit's full name or its abbreviation can be
used.
- Units may be combined with the "*" and "/" operators.
- Units may be raised to powers (squared, cubed, etc.) with the "^"
operator.
- Units in the denominator may be grouped with parenthesis.
- Units with non-linear scales, such as temperature, can also be
converted.
- Recently used unit combinations may be picked from a menu.
- Numbers may be entered on either the "From" or the "To" units
side, for conversions in both directions.
- Basic mathematical expressions may be entered in place of
numbers.
- Options control the formatting of numerical results.
- The unit data includes over 500 units.
- Conversions between various number bases (decimal, hexadecimal,
octal and binary) can be done in a separate dialog window.
- A decimal number can be converted to fractional numbers in a
separate dialog window.
- The format of the unit data file makes it easy to add additional
units.
- Command line options are available to do conversions without the
GUI.
- The user interface and the unit data are available in Catalan,
English, French, German, Russian, Spanish and Swedish.
Legal Issues
ConvertAll is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either Version 2 of the License, or (at
your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY. See the LICENSE file provided with
this program for more information.
System Requirements
Linux
ConvertAll requires the following libraries:
- Python (Version 3.4 or higher)
- Qt (Version 5.4 or higher - see Qt Project for more
information)
- PyQt (Version 5.4 or higher - see Riverbank
for more information)
Windows
Using the files provided in the binary distribution, ConvertAll
should run on any computer running Windows XP, Vista, 7, 8 or 10.
Installation
Linux
Extract the source files from the convertall tar file, then change to
the ConvertAll directory in a terminal. For a basic
installation, simply execute the following command as root: python
install.py
If your distribution defaults to Python 2.x, you may need to
substitute python3 for python in these commands.
To see all install options, use: python install.py -h. To
install ConvertAll with a different prefix (the default is
/usr/local), use: python install.py -p
/prefix/path
Windows
To install for all users, execute the
ConvertAll-x.x.x-install-all.exe file. Administrator
permissions are required.
To install for a single user (administrator rights are not required),
execute the ConvertAll-x.x.x-install-user.exe file.
For a portable install, execute the
ConvertAll-x.x.x-install-user.exe file, uncheck the shortcuts
and uninstaller tasks, and check the portable config task.
Using ConvertAll
Basics
Simply type a unit name in the "From Unit" edit window. As you type,
the list below the window will be filtered to show only matching units.
Matching unit names contain words starting with the words that are
typed. Either type the complete unit name/abbreviation or hit the
return key to use the unit highlighted (blue letters) in the list. Of
course, clicking with the mouse on a unit in the list will also add the
unit to the edit window. You may also use the up and down arrow keys to
highlight nearby units from the list.
Repeat the unit selection in the "To Unit" edit window. When done,
if the units are compatible, the numeric edit windows below the unit
lists will activate. A number may be entered into either numeric window
and the other window will display the conversion result.
Combining Units
The real strength of ConvertAll lies in its ability to combine
multiple units. Simply type the unit names with an '*' or a '/' between
them. This allows the entry of units such as "ft * lbf" or "mi / hr".
The '^' symbol may be used for exponents, such as "ft^3" or "ft * lbm /
sec^2". Negative exponents are allowed for units such as "sec^-1" (per
second), but may switch the multiplication or division symbol ("ft *
sec^-2" becomes "ft / sec^2").
Multiplication and division have the same precedence, so they are
evaluated left-to-right. Parenthesis may also be used to group units in
the denominator. So "m / sec / kg" can also be entered as "m / (sec *
kg)". The version with parenthesis is probably less confusing.
The buttons below the unit text boxes can also be used to add operators to
the active unit that is closest to the cursor. The Square and Cube buttons
will add or replace exponents. The Multiply and Divide buttons will add "*"
and "/" operators.
Similarly, clicking on a unit from the list generally replaces the
unit nearest the cursor.
The "Clear Unit" button below the operator buttons may be used to
empty the unit edit window to allow a new unit to be entered.
The "Filter List" button can be used to show only one type of unit in
the list. Note that this doesn't show units that could be combined to
form a type.
Non-Linear Conversions
The conversion of some units is non-linear. Examples of these
include the Fahrenheit and Celsius temperature scales (due to an
offset zero point) and the American Wire Gauge (logarithmic). The
non-linear units are labeled as such in the comments column.
These units can be converted only when they are not combined with
other units or used with an exponential operator. Otherwise the
conversion would not be meaningful.
Shortcuts
When typing unit names, spaces are ignored, so they may be skipped.
It is also generally ignored if a plural form of the unit name is typed.
For squared and cubed units (positive exponents of 2 or 3) the "^"
symbol does not need to be typed.
When a partially typed unit is highlighted in the list (blue
lettering), hitting enter will complete the name. The up an down arrow
keys can be used to highlight nearby units in the list prior to hitting
enter. The unit closet to the cursor will be replaced.
The "Recent Unit" button opens a menu of recently used units and
unit combinations. The current unit combination is replaced with any
selections from this menu.
The tab key can be used to cycle between the "From" and "To" unit test
boxes and the "From" and "To" number editors.
The number to be converted may be entered in either the "From" or
"To" unit side. Standard or scientific notation may be used, or an
expression including the normal math operators (+, -, *, /, **) and
parenthesis may be entered.
Numbering System Conversions
The "Bases" button brings up a dialog that can convert between
various numbering system bases. There are entry boxes for decimal,
hexadecimal, octal and binary entries. A number can be entered into any
of the boxes and equivalents will be shown in the others.
The "Fractions" button brings up a dialog that can list fractional
equivalents for a decimal number. Type the number and press enter. The
fractions are listed in order of increasing accuracy.
Options
The "Options..." button allows for changing several default
settings. These settings are automatically stored so that ConvertAll
will re-start with the settings last used.
The first options control the display of numerical results,
including the use of scientific notation and the number of decimal
places. Be cautious about setting the number of decimal places to a
low value, which can result in a significant loss of accuracy. Six
places or higher is recommended (eight is the default).
There is an option to set the number of recent units to be saved.
Setting it to zero will disable the Recent Unit buttons. Another option
will automatically load the most recent previous units at startup.
There are options to hide the operator text buttons (first row), and
the unit buttons (second row). These can be hidden to save space
if the keyboard will be used to enter the operators.
Buttons are also included on the options dialog to control GUI colors
and fonts. Colors can be selected by theme or individually. Larger
fonts can be selected for use on high-resolution displays.
Command Line Usage
Conversions may be done from the command line (Linux or DOS console)
without invoking the graphical interface. Enter the command
("convertall" on Linux, "convertall_dos" from the Windows binary), the
number, the from unit and the to unit (separated by spaces) to do the
conversion. Unit names containing spaces should be surrounded by
quotes. Or, to be prompted for each unit entry, use the "-i" option
("convertall -i" on Linux, "convertall_dos -i" from Windows).
After the conversion is done, ConvertAll will prompt for a new number
to do the same conversion. Or "n" can be entered to start a new
conversion, "r" to reverse the conversion or "q" to quit.
For a more detailed list of options, use the "-h" option ("convertall
-h" on Linux, "convertall_dos -h" on Windows).
Revision History
March 15, 2020 - Release 0.8.0
New Features:
- Added a separate base conversion dialog to convert between different
base numbering systems. It converts from/to decimal, hexadecimal, octal and
binary bases.
- Added a separate fraction conversion dialog to convert from decimal to
fractional numbers. It provides a list of fractions in order of increasing
accuracy.
- A GUI font selection button was added to the Options dialog. This
allows larger fonts to be used for high resolution displays.
- A new GUI color setting dialog was added to the Options dialog. It
allows a dark theme to be selected, or colors can be selected
individually.
Updates:
- Added the Beaufort wind speed unit.
- R-value thermal resistance units were added.
- The diopter/dioptre optical power unit was added.
- Added the rydberg and hartree energy units.
- Added the Planck constant as a unit.
- Slightly adjusted the conversion value of the atomic mass unit (amu) and
added the dalton synonym.
- Slightly adjusted the conversion value of the astronomical (au) and the
parsec units.
- Add Swedish translation (thanks to Ake Engelbrektson).
- Add Catalan translation (thanks to Pere Orga).
- Update the libraries used to build the Windows binaries to Python 3.8
and Qt/PyQt 5.14.
Bug Fixes:
- Fixed a problem with the ConvertAll window being positioned off the
screen after major changes in resolution when using external
monitors.
- Clarified the labels for several power-of-10 data units (KB, MB,
etc.) to show as "SI standard" rather than "IEC standard".
July 4, 2018 - Release 0.7.5
Updates:
- Updated the Russian GUI and unit translation (thanks to Ivan /
vantu5z).
Bug Fixes:
- Fix the tab sequence to allow tabbing between the unit edit boxes and
the numeric edit boxes.
April 4, 2018 - Release 0.7.4
New Features:
- Added a desktop file to the Linux version to provide menu
entries.
- Added an option to disable saving the window position and size at
startup.
Updates:
- Added US drill bit gauge sizes as a non-linear unit.
- Added gigabit and terabit data units.
- Adjusted the liter per 100 km fuel economy unit definition in the
German translation to match the English version.
October 15, 2017 - Release 0.7.3
Updates:
- Added the boiler horsepower unit.
Bug Fixes:
- Fixed a crash if a zero value is entered when the engineering notation
option is enabled.
- Fixed an initialization issue that caused problems with some versions of
Python.
February 20, 2017 - Release 0.7.2
Bug Fixes:
- Fix a crash due to an overflow error when typing part of an exponent in
the denominator of the second unit.
- Avoid flipping the preceding operator between multiplication and
division as a unit exponent of 0.5 is typed.
February 4, 2017 - Release 0.7.1 (Linux only)
Bug Fixes:
- Replaced outdated dependency checks in the Linux installer - it now
runs checks for Qt5 libraries.
- Fixed a timing issue in the Linux installer so that byte-compiled files
do not have old timestamps.
January 8, 2017 - Release 0.7.0
New Features:
- Dual unit lists have been replaced with a single list that works
with the active unit line editor.
- As a unit is typed, the listing of units is reduced to only include
units that match the typed words.
- The unit list can be sorted by clicking on the column
headings.
- The unit list can be filtered to only show units of a certain
type.
- Simple unit exponents (positive 2 and 3) can be typed with just
the number (leaving out the "^" character).
- Now permits decimals to be entered for unit exponents, supporting
roots of units.
- ConvertAll has been ported from the Qt4 to the Qt5 library.
Updates:
- Since the main unit list can now be searched, sorted and filtered,
the Unit Finder Dialog has been removed.
- Added the British Std Wire Gauge non-linear unit.
- Added the ton imperial unit.
- Added the cable nautical unit.
- Added the MBH (1000 Btu/hr) unit.
- Added Cape foot, square perch and rood units.
Bug Fixes:
- Corrected some unit definitions in the French translation,
including avogadro's number, lambert, poise and the gravitational
constant.
September 10, 2015 - Release 0.6.1
New Features:
- Added an option to output results in engineering notation (a
version of scientific notation with exponents divisible by
three).
- A Russian translation was added. Thanks to vantu5z for
translating.
Updates:
- Added the dram mass unit.
- Added the fluid dram and the minim volume units, in both US and
Imperial versions.
- Added the smoot length unit.
- Added "dm" as an abbreviation for the decimeter length unit.
- Added "avoirdupois" to the comment column for applicable mass and
weight units.
- Added "fresh water" to the comment column for applicable
depth-based pressure units.
- The German translation was updated. Thanks to Thomas Helmke for
translating.
- Added some MSVC runtime DLL files to the Windows installers to
avoid problems on PCs that do not already have them.
- Clarified some dependency checker error messages in the Linux
installer.
Bug Fixes:
- Fixed an error in the unit data formula for the AWG area
unit.
- Changed the value of the caliber unit to be equivalent to inches
(typical written usage), not hundredths of an inch (typical verbal
usage).
February 1, 2014 - Release 0.6.0
New Features:
- ConvertAll has been ported from Python 2 to Python 3. This
porting includes some code cleanup.
- Added an option to automatically load the last used units at
startup.
- Added an introductory tip dialog box that explains combined units.
There is also an option to hide this dialog.
- There is an additional Windows installer for users without
administrator rights and for portable installations.
- Added a Windows installer option to add a config file to the
program's directory for portable installations. If that file is
present, no config files will be written to users' directories.
Updates:
- The Windows binaries are built using more recent Python, Qt and
PyQt libraries.
- The user interface and unit data language translations are now
included in the main installation files.
- Added the long ton unit (Imperial version of the ton).
- Added the kilopond unit as a synonym of kilogram-force.
- Added the micron of Hg pressure unit.
- Added the lunar distance (LD) astronomical distance unit.
- Added the rack unit (height of an electrical rack).
- Added the versta Russian length unit.
Bug Fixes:
- Fixed the operation of the "Clear" button in the Unit Finder
dialog.
- Fixed a problem with the definition of the BTU unit in the French
translation.
November 2, 2011 - Release 0.5.2
Updates:
- Added the microliter volume unit.
- Added the galileo acceleration unit.
- Added the stremma land area unit.
Bug Fixes:
- Changed the method of identifying a "unitless" portion of a unit
to avoid falsely reporting incompatibility between some units when
using language translations.
March 31, 2011 - Release 0.5.1
Updates:
- Added the link length unit.
- Added US survey variations of the mile and chain length
units.
- Added the centigray radiation dose unit.
- Use DOS newline characters in the Windows version of the unit data
file for easier editing by users.
Bug Fixes:
- Fixed incorrect definition of the rad radiation dose unit (it was
off by a factor of 10).
May 2, 2010 - Translation Update 0.5.0b
Updates:
- Added a Spanish translation. The French and German translations
remain unchanged.
April 23, 2010 - Release 0.5.0
New Features:
- Multiplication and division operators now have the same
precedence. In previous versions of ConvertAll, a series of units
after a division symbol were assumed to be in the denominator. Now, a
division operator only affects the unit (or the unit group in
parenthesis) immediately after the operator.
- Parenthesis are now supported to group units in the denominator of
a combined unit. For example, ""m / sec / kg" can also be entered as
"m / (sec * kg)".
- "Recent Unit" buttons have been added that open a menu of recently
used units and unit combinations. A unit selected from the menu will
replace the current unit combination. There is also a new option
dialog entry that controls the maximum length of this menu.
Updates:
- Added the tonne force metric force unit.
- Added hundredweight long and hundredweight short mass units.
- Added an American Wire Gauge (AWG) area unit in addition to the
existing AWG diameter unit.
- Added the tonne oil equivalent and the tonne coal equivalent
energy units.
- Added the ton refrigeration power unit.
- Added the darcy and millidarcy permeability units.
- French and German translations have been added for the user
interface and the unit data. To use them, download and install the
"convertall-i18n..." file for your platform (in addition to installing
the standard ConvertAll package).
Bug Fixes:
- Fixed problems with running in the command line mode from Linux
consoles without X11 present.
September 24, 2009 - Release 0.4.3
New Features:
- Prepared ConvertAll for translation efforts by properly handling
Unicode characters in unit data and by marking internal program
strings for translation. Volunteers for translating ConvertAll into
other languages are welcome.
Updates:
- Added solar mass and pennyweight mass units.
- Added therm and thermie energy units.
- Added gauss and maxwell magnetic units.
- Added the US survey foot length unit.
- Added the mpg imp mileage unit.
- Changed the value of the point unit from the old American point to
the more modern desktop publishing point.
Bug Fixes:
- A critical QString conversion bug that caused ConvertAll to not
run with the latest version of PyQt (4.5.4) was fixed.
- Command line quiet mode was fixed to avoid an interactive prompt
when bad unit data is entered.
May 28, 2008 - Release 0.4.2
Updates:
- Added the "liter per 100 km" unit for fuel consumption.
Bug Fixes:
- Changed the "mach" unit from 331.46 m/s to 340.29 m/s. It is now
correct for STP conditions (15 degrees C). The previous value was for
0 degrees C.
- Fixed a bug that could hide messages about errors in a manually
edited unit data file.
January 22, 2008 - Release 0.4.1
New Features:
- An optional command line mode was added to do conversions without
the graphical interface. Enter the command ("convertall"), the
number, the from unit and the to unit (separated by spaces) to do the
conversion. For a more detailed list of options, enter "convertall
-h" on the command line.
Updates:
- The icon used for ConvertAll has been updated. Thanks to Ricardo
Berlasso for the new artwork.
- Alternate units have been added for kilobyte, megabyte, etc.,
marked "IEC std". These convert using powers of 10, rather than
powers of 2.
- Troy pounds and troy ounces have been added.
- Gigapascal, hectopascal and megabar have been added.
- Hogshead units for wine and beer have been added.
- The Swedish mil unit of distance has been added.
- The Thai rai and ngaan units of land area have been added.
October 5, 2006 - Release 0.4.0
New Features:
- ConvertAll was ported to the Qt4 library. This involved a
significant rewrite of the code. The previous versions used Qt3.x on
Linux and Qt2.3 on Windows. Benefits include updated widgets and
removal of the non-commercial license exception in Windows.
Updates:
- On Windows, the ConvertAll.ini file has been moved from the
installation directory to a location under the "Documents and
Settings" folder. This avoids problems on multi-user systems and for
users with limited access rights.
October 5, 2006 - Release 0.3.2
Updates:
- Added Imperial (UK) gallons, quarts, pints and fluid ounces.
- Added gigagram and teragram units.
- Added the pound-mole unit and clarified that the existing mole is
a gram-mole.
February 14, 2005 - Release 0.3.1
Updates:
- Added the decare unit for land area.
- The Linux installer has been updated to be more robust and give
more install directory options.
Bug Fixes:
- The barn unit, used in particle physics, was corrected. It had
been incorrectly listed as a length unit instead of an area unit.
March 11, 2004 - Release 0.3.0
New Features:
- A unit finder window was added to allow the unit list to be
filtered and searched.
- The size and position of the main and finder windows are now saved
at exit.
- A new option allows the operator text entry buttons (x, /, ^2, ^3
and Clear Unit) to be hidden.
- An install program has been added for windows.
Bug Fixes:
- Fixed Linux install script problems with certain versions of
Python.
November 18, 2003 - Release 0.2.4
Updates:
- Keyboard shortcuts and tab-focus order for the main dialog have
been improved.
- An install script was added for Linux and Unix systems.
- The windows build now uses Python version 2.3 and PyQt version
3.8.
March 24, 2003 - Release 0.2.3
Updates:
- When an expression using division is entered for the number to be
converted, floating point division is now used even if the entries are
integers (Python 2.2 or greater only).
- Mouse wheels are now supported in the unit lists.
- Icon files are now provided with the distribution files.
May 28, 2002 - Release 0.2.2a
Bug Fixes:
- A fix of the Windows binary only. Fixes major problems by
upgrading the library version to PyQt 3.2.4.
May 16, 2002 - Release 0.2.2
Updates:
- ConvertAll has been ported to Qt 3.x. It now works with both Qt
2.x and 3.x using the same source code.
- The help/readme file has been rewritten and now includes section
links.
- The binaries for windows have been updated to Python 2.2 and PyQt
3.2 (but are still using Qt 2.3 Non-commercial).
September 17, 2001 - Release 0.2.1
Bug Fixes:
- Some window captions and icons were corrected.
- A window maximizing bug was fixed.
August 20, 2001 - Release 0.2.0
New Features:
- A major rewrite was done of the conversion engine.
- A new data file format makes it easier to add and verify
units.
- The unit name and abbreviation are now listed separately for
better sorting and searching.
- Entering of units has been improved by changing operator
precedence, by ignoring spaces and plurals, and by changing the
partial selection list highlight.
- An expression can now be used for the number to be
converted.
Updates:
- Many additional units were added to the database.
- For MS Windows users, the binary files were upgraded to PyQt
Version 2.5.
August 10, 2001 - Release 0.1.1
New Features:
- Added color controls to the options dialog.
Updates:
- The convertall.ini file on windows was moved to the program
directory.
Bug Fixes:
- Fixed problems with using the same unit twice in a combined
unit.
- Fixed an occasional shutdown when auto-completing.
- Fixed a problem with the updating of the unit label.
July 28, 2001 - Release 0.1.0
Questions, Comments, Criticisms?
I can be contacted by email at: doug101 AT bellz DOT org
I
welcome any feedback, including reports of any bugs you find. Also, you
can periodically check back to www.bellz.org for any updates.
ConvertAll-0.8.0/docs/convertall.png 0000664 0000000 0000000 00000102727 13635744055 0017424 0 ustar 00root root 0000000 0000000 PNG
IHDR j bKGD pHYs + tIMETA iTXtComment Created with GIMPd.e IDATxy\TU3 (l{jfV+O[jnhkUkz|˵IMsEEa 30zss|p=.M=&P QD$%&mgP آ9)[4E=
$6jG|
sHIMHC/D)lYZ?b˸8wqW
2uhךCGߎGr8zC/:*V8o!A5{- Zc
-^iզU38#w
}qez.Fq@'F桷%#3(SfV672KGK :tGNWbТq$@NjcgfA餧׃+
Ķ JbWql [|M &+/ ޜ$$ (P@\
eEb'x
m~>.uDVz3MNv6quu-dd
z쉓 o #>öaA%WyyydefR{{{
&8#3}1m;욕@*Dl
DIFCי,@(VffVgAj>ΑFq8;;ώ_w4i5/_"@_E酋KC}{yeK:sGGG6}%`cc}:pY* ҈Cvvqj/z[-uY15iaQl&ׯЃ灃qSzs!)<ܩ#u>ٛ]s*m,6: ;;̬pf
5:AϿUBN7<((Vf \&6booO͛\CHp͛MH6Ɔ+/q#9 VJEpH 8u8rbAϬZa8wru^O$'%iqW iR,qZ]ᅠM떌5CHOO#C=aa}zϿ mب\msȂP+(_4@϶Þ#1.u**ʝǮm?g/-vFM:vh˓&0͞OVV _DpP ZGNPUURKS NFc32,朳;D}pUQwq:;ҿDmS/3'Xj
:3Np=Lxq
vdggN4n֒l CprtH>+hCܕK}n666|ٗn8.ggg= ~l+ 9W3ȥC#ȑoiw\*rx~Hx qd#ʕX~!b\Fr
sQ4i܈6_>YYhuz(P0富L[f:zMoܰo7