]> git.donarmstrong.com Git - infobot.git/blobdiff - files/unittab
If topicAuthor is on then show it in topic, otherwise just topic -- contribution...
[infobot.git] / files / unittab
index 56e82c9ecdbf70f4141d100e616d72f4f844749c..d4f7a0eac12a003ab37d7be7fa1f4ba30a59a538 100644 (file)
@@ -1,21 +1,25 @@
 #
 # Unit defintions
-# 10 March 1998  M-J. Dominus (mjd-perl-units-id-iut+buobvyy+@plover.com). 
+# 18 May 2001  M-J. Dominus <mjd-perl-units+@plover.com>.
 # This file is in the PUBLIC DOMAIN.
 # All rights abandoned.
 #
 # If you discover definitions of units that do not appear in this
-# file, you are invited to mail them to mjd@pobox.com, so that I can
-# include them in a future version.  Please include the date of this
-# file, 3 March 1996, with all such submissions.
+# file, you are invited to mail them to mjd-perl-units+@plover.com, so
+# that I can include them in a future version.  Please include the
+# date of this file, 18 May 2001, with all such submissions.
 
 # If a unit is defined as `***', that means
 # it has no definition because it is a fundamental unit.
 
+# http://perl.plover.com/units/unittab
+
 # Fundamental units:
 # Seven instrinsic SI units:
 gram       ***
-metre     ***
+meter     ***
+# Tim Riker <Tim@Rikers.org> adds metre alias
+metre     meter
 second     ***
 ampere     ***
 candela    ***
@@ -43,13 +47,15 @@ B          bel
 dB         decibel
 
 # LENGTH
-m       metre
-km      kilometre
-cm      centimetre
-mm      millimetre
-micron  micrometre
+m       meter
+km      kilometer
+cm      centimeter
+mm      millimeter
+micron  micrometer
 inch    2.54 cm        # This is the official definition and is exact
+mil    milliinch
 in      inch
+barleycorn     1/3 inch        # Tim Riker <Tim@Rikers.org
 inches  inch           # plural
 foot    12 inch
 ft      foot
@@ -58,8 +64,14 @@ yard    3 feet
 yd      yard
 mile    5280 feet
 mi      mile
-nautical 1.151         # For `nautical mile'
+#nautical 1.151         # For `nautical mile'
+nautical       1.150779447892
+statute 1
+# pilots need this :)
+nm      1 nautical mile
+sm      1 statute mile
 parsec  1.91615e13 mi
+#parsec 3.08568025e16 m        # better?
 # light year will be implied by `year' and `light' below
 fathom  6 ft
 cable   120 fathoms
@@ -91,7 +103,7 @@ bigpoint 1|72 in
 pica     12 pt
 didot    1238|1157 pt
 dd       didot
-cicero   12dd  # TeX likes to abbreviate this to cc, but cc is cubic centimetre
+cicero   12dd  # TeX likes to abbreviate this to cc, but cc is cubic centimeter
 scaledpoint 1|65536 pt # Internal to TeX
 sp       scaledpoint
 
@@ -102,13 +114,13 @@ are     (10 m)2        # Implies `hectare'
 acre    chain furlong  # Now you know why an acre is the size it is
 rood    1|4 acre
 township 36 mi2        # Who uses these?
-barn    (1.0E-12 centimetre)2 # Particle physics
+barn    (1.0E-12 centimeter)2 # Particle physics
 board   144 in3/ft     # Implies `board feet'
 
 # VOLUME
 cc      cm3
-litre   (decimetre)3
-ml      millilitre
+liter   (decimeter)3
+ml      milliliter
 stere   m3
 floz    29.573 ml      # `floz' means `fluid ounce', which is different
                        # from `ounce', which is a measurement of mass.
@@ -117,7 +129,7 @@ fldram  1|8 floz
 minim   1|60 fldram
 cup     8 floz
 cu      cup
-gill    1|2 cup 
+gill    1|2 cup
 pint    two cups
 quart   two pints
 pottle  two quarts     # Yup!
@@ -140,6 +152,15 @@ tun        two butts
 firkin     9 gal        # American firkin, not British firkin
 perch      24.75 ft3    # Masonry
 puncheon   84 gal
+# Following units contributed 20011217 Thomas R Wyant III
+fifth 1|5 gallon
+magnum 2.5 fifth
+jeroboam 4 fifth
+rehoboam 7.5 fifth
+methuselah 10 fifth
+shalmanazar 14 fifth
+balthazar 20 fifth
+nebuchadnezzar 25 fifth
 
 # Delightful British liquid volumes; they all begin with `brit'.
 britfloz   28.41225 ml
@@ -154,14 +175,14 @@ britpt     britpint
 britquart  2 britpint
 britqt     britquart
 britgallon 4 britquart
-britgal    britgallon    
+britgal    britgallon
 britpeck   2 britgal
-britfirkin 9 britgal  
+britfirkin 9 britgal
 britkilderkin  two britfirkins
 kilderkin britkilderkin  # kilderkin is British only
 britbucket 4 britgal     # That's `britbucket,' not `bit bucket'.
 bucket     britbucket    # Buckets are brit only.
-britlast   2909.414 litres
+britlast   2909.414 liters
 last       britlast
 
 # Dry volume
@@ -170,17 +191,15 @@ peck    8 dry quarts
 bushel  4 pecks
 bu      bushel
 seam    8bu
-bag     3bu 
-
-
-imperial 1.201          # For `imperial pint,' etc.  
+bag     3bu
 
+imperial 1.201          # For `imperial pint,' etc.
 
 # MASS (also WEIGHT)
 #
 # To avoid confusing the end user, we will pretend that `pound' is
-# a unit of mass, interconvertible with `grams'.  If you want 
-# pounds of force, see `lbf,' below.  In this section, `pound' 
+# a unit of mass, interconvertible with `grams'.  If you want
+# pounds of force, see `lbf,' below.  In this section, `pound'
 # really means `mass of an object that weighs one-pound at the surface
 # of the Earth.'  That is, in this program, `slug' has its usual
 # meaning, and `pound' is synonymous aith `slug'.
@@ -194,16 +213,17 @@ ounce         437.5 grains
 oz            ounce
 pound         16 oz
 lb            pound
-slug          lb         
+slug          lb
 hundredweight 112 lb  # This is the `long' hundredweight, analagous to
                       # the long ton.  There is also a `short' hundredwight,
                       # but it's just a hectlb, so I put this one in instead.
-cwt           hundredweight    
+cwt           hundredweight
 quarter       5 cwts
 longton       20 cwt
-ton           longton
+#ton           longton # use shortton my default Tim Riker <Tim@Rikers.org>
 short         100|112   # Convert long tons, cwts, and quarters to short.
-shortton      short ton
+shortton      short longton
+ton           short longton # the american ton, see metriton and longton
 stone         14 lb
 cental        100 lb
 wey           252 lb
@@ -213,7 +233,7 @@ dram          3 scruples
 apothounce    480 grains
 apothoz       apothounce
 apothpound    12 apothoz
-apothlb       apothpound  
+apothlb       apothpound
 # Troy measures (for gold and precious stones)
 pennyweight   24 grains
 troyoz        480 grains # We can't define `troy' as a constant,
@@ -236,7 +256,7 @@ hour                60 min
 hr             hour
 day            24 hrs
 dy             day                  # This will denote mean solar days
-siderealday     0.99726957 dys    
+siderealday     0.99726957 dys
 week           7 days
 wk             week
 month          30 days
@@ -275,12 +295,6 @@ kelvin        Kelvin
 K             Kelvin
 Rankine       5|9 K     # This is a very funny unit
 Ra            Rankine
-### TODO: allow addition aswell.
-#celsius       Celsius
-#C             Celsius
-#Celsius       K+273.1
-#farenheit     Farenheit
-#F             Farenheit
 
 # Amount of substance
 mol           mole
@@ -293,7 +307,7 @@ molecule      1 mole per Avogadro # 1 mole is an Avogagro-number of molecules
 # which, if maintained in two straight parallel conductors of infinite
 # length, of negligible circular cross-section, and placed 1m apart in
 # vacuum, would produce between these conductors a force equal to 2e-7
-# newtons per metre of length.
+# newtons per meter of length.
 Ampere        ampere
 amp           ampere
 abampere      10 amps
@@ -310,7 +324,7 @@ coulomb       Coulomb
 coul          Coulomb
 C             Coulomb
 electron      1.60217733e-19 C  # Charge on the electron; implies electron-volts
-e             electron 
+e             electron
 abcoulomb     10C
 statcoulomb   3.335635e-11 abcoulomb
 
@@ -319,11 +333,10 @@ statcoulomb   3.335635e-11 abcoulomb
 Newton        kg m/s2
 newton        Newton
 N             newton
-Nm            newton-metre
 dyne          g cm/s2
 grav          9.8 m/s2  # Acceleration due to gravity
 gee           grav
-# Actually the accleration varies with altitude and latitude, 
+# Actually the accleration varies with altitude and latitude,
 # from 9.78039 m/s2 at the equator to 9.83217 m/s2 at the poles.
 # This mean value corresponds to a latitude of about 38 degrees.
 lbf           lb grav
@@ -332,11 +345,9 @@ lbf           lb grav
 Pascal        N/m2
 pascal        Pascal
 Pa            pascal
-hPa           hectopascal
-atmosphere    1.01325 N/m2  # NIST 1990301 EXACT
+atmosphere    101325 N/m2  # NIST 20010518 EXACT
 atm           atmosphere
 bar           megadyne/cm2  # Implies `millibars'
-psi           pound/inch/sec2
 mercury       1|760 atm/mm # Implies `mm mercury' and `inches mercury'
 hg            mercury
 torricelli    mm hg
@@ -346,10 +357,9 @@ barye         dyne/cm2
 air           6.6083e-5 atm/foot  # At 60 deg.F; Implies `feet air'
 
 # Work and energy
-Joule         newton-metre
+Joule         newton-meter
 joule         Joule
 J             joule
-kJ            kilojoule
 footpound     ft-lbf   # foot-pound won't work, because `pound' is a mass
 calorie       4.186 J
 cal           calorie
@@ -364,8 +374,6 @@ erg           dyne-cm
 Watt          J/sec
 watt          Watt
 W             Watt
-kW            kiloWatt
-MW            megaWatt
 horsepower    550 ft-lbf/s
 
 # Electric potential
@@ -406,7 +414,7 @@ maxwell       Maxwell
 Mx            Maxwell
 Gauss         1.0e-4 T
 gauss         Gauss
-# We won't use G for Gauss because it is more important to 
+# We won't use G for Gauss because it is more important to
 # use it for the universal gravitational constant
 
 # Capacitance
@@ -440,7 +448,7 @@ Mev           megaeV
 Gev           gigaeV
 Tev           teraeV
 energy        c2 # You can ask for `1 gram energy' and get
-                 # the amount of energy equivalent to 
+                 # the amount of energy equivalent to
                  # 1 gram according to e=mc2.
                  # Check: 1amu energy == 931.16 Mev?
 Franklin      (10/c) C cm/sec
@@ -493,11 +501,11 @@ planckmass    2.17671e-8 kg
 plancktime    5.39056e-44 sec
 # Let's reserve `Planck' for a while longer until I can decide if
 # they'd be useful in `planck time' etc.
-permeability  4*pi*1.0e-7 H/m     # Magnetic permeability of vacuum constant 
-permittivity  8.854187817e-12 F/m # Electric permittivity of vacuum constant 
+permeability  4*pi*1.0e-7 H/m     # Magnetic permeability of vacuum constant
+permittivity  8.854187817e-12 F/m # Electric permittivity of vacuum constant
 protonmass    1.6726231e-27 kg
 neutronmass   1.6749286e-27 kg
-electronmass  9.1093897e-31 kg 
+electronmass  9.1093897e-31 kg
 finestructure 7.29735308e-3 # Rl
 # Electron charge is up above under `electrostatic'.
 # There's no reason to get too obscure here because if someone wants
@@ -509,7 +517,7 @@ finestructure 7.29735308e-3 # Rl
 rad            radian
 circle         2 pi radians
 revolution      circle       # For revolutions / sec
-rev             revolution 
+rev             revolution
 rpm            revolutions per minute
 quadrant        1|4 circle
 degree         1|360 circle
@@ -527,6 +535,7 @@ ream            10 quires
 
 # INFORMATION
 byte           8 bits
+nybble          half byte
 kbyte           1024 bytes   # `kilobyte' means 1000    bytes
 # Don't use `K'; that's for Kelvins.
 kb              kbyte
@@ -623,11 +632,28 @@ farthing             1|4 penny
 hapenny              half penny
 twopence             two pence
 tuppence             two pence
+thruppence           3 pence
+threepence           3 pence
+sixpence             6 pence
 crown                5 shillings  # Implies `half crown'
 guinea               21 shillings
 florin               2 shillings
 
 
+# 18th century French coinage. References:
+# http://home.nordnet.fr/~jlmorel/mesures.html and reverse-engineered
+# from The Three Musketeers
+# 20011227 Thomas R Wyant III
+livre franc ### 3 Musketeers has francs!
+            ### Now, you too can convert Louis d'Or to U.S. Dollars!
+sou 1|20 livre
+crown 3 livres # It's ecu in French, not to be confused with ECU.
+pistole 10 livres
+double 2    # 3 Musketeers refers to double pistoles, so ...
+louis 24 livres
+### Now if only I had good definitions for reals and doubloons ...
+
+
 # For `register tons'
 register        100 ft3/ton
 registerton     register ton