Add force conversions and category fixes

This commit is contained in:
Codex
2026-03-07 10:21:05 +00:00
parent 4e6b54ce24
commit a72ebc014c
3 changed files with 100 additions and 35 deletions

View File

@@ -71,6 +71,8 @@ The registry currently contains 416 unique calculator slugs.
| Ergs to Joules | ergs-to-joules | 1e-07 |
| Feet to Meters | feet-to-meters | 0.3048 |
| Foot-Pounds to Newton-Meters | foot-pounds-to-newton-meters | 1.35581795 |
| Foot-pounds to Kilogram-force Meters Show a foot-pound of torque as kilogram-force meters. | foot-pounds-to-kilogram-force-meters | 0.13825495437599996 |
| Inch-pounds to Kilogram-force Meters Convert inch-pounds into kilogram-force meters for fine torque tools. | inch-pounds-to-kilogram-force-meters | 0.011521246197999996 |
| Gallons to Liters | gallons-to-liters | 3.78541178 |
| Gigabytes to Megabytes | gigabytes-to-megabytes | 1000.0 |
| Fahrenheit to Celsius | fahrenheit-to-celsius | Linear Offset (5/9x - 17.778) |
@@ -131,7 +133,27 @@ The registry currently contains 416 unique calculator slugs.
| Minutes to Seconds | minutes-to-seconds | 60.0 |
| Nautical miles to Kilometers | nautical-miles-to-kilometers | 1.852 |
| Newtons to Dynes | newtons-to-dynes | 100000.0 |
| Newton-meters to Kilogram-force Meters Convert a torque in newton-meters into kilogram-force meters for mechanical specs. | newton-meters-to-kilogram-force-meters | 0.10197162129779283 |
| Newtons to Kilogram-force A force of one newton expressed as kilogram-force. | newtons-to-kilogram-force | 0.10197162129779283 |
| Newtons to Pound-force Translate a newton reading into pounds of force. | newtons-to-pound-force | 0.2248089431128759 |
| Newtons to Kilonewtons Convert a newton force into kilonewtons for handy SI notation. | newtons-to-kilonewtons | 0.001 |
| Dyne-centimeters to Kilogram-force Meters Tiny dyne-centimeter torques mapped into kilogram-force meters. | dyne-centimeters-to-kilogram-force-meters | 1.0197162129779446e-08 |
| Dynes to Kilogram-force Express a dyne-scale pull as kilograms of force. | dynes-to-kilogram-force | 0.0000010197162129779283 |
| Dynes to Pound-force Turn dynes into the more intuitive pound-force units. | dynes-to-pound-force | 0.0000022480894311287591 |
| Dynes to Kilonewtons Scale dynes all the way into kilonewtons for SI reporting. | dynes-to-kilonewtons | 1e-08 |
| Ounces to Grams | ounces-to-grams | 28.3495 |
| Kilogram-force Meters to Dyne-centimeters Flip kilogram-force meters back into dyne-centimeters. | kilogram-force-meters-to-dyne-centimeters | 98066500.0 |
| Kilogram-force Meters to Foot-pounds Express a kilogram-force meter as foot-pounds of torque. | kilogram-force-meters-to-foot-pounds | 7.233013851209897 |
| Kilogram-force Meters to Inch-pounds Turn a kilogram-force meter into inch-pounds. | kilogram-force-meters-to-inch-pounds | 86.79616621451876 |
| Kilogram-force to Dynes A kilogram-force equals how many dynes in precision systems? | kilogram-force-to-dynes | 980665.0 |
| Kilogram-force to Kilonewtons Express kilogram-force as kilonewtons for structural work. | kilogram-force-to-kilonewtons | 0.00980665 |
| Kilonewtons to Dynes Scale kilonewtons into dynes for fine-grained instrumentation. | kilonewtons-to-dynes | 100000000.0 |
| Kilonewtons to Kilogram-force Translate kilonewtons into kilogram-force units. | kilonewtons-to-kilogram-force | 101.97162129779283 |
| Kilonewtons to Pound-force Convert kilonewtons into pound-force values. | kilonewtons-to-pound-force | 224.8089431128759 |
| Pound-force to Dynes Reverse a pound-force back into dynes for lab work. | pound-force-to-dynes | 444822.1615 |
| Pound-force to Kilonewtons Express pound-force in kilonewtons for SI compatibility. | pound-force-to-kilonewtons | 0.004448221615 |
| Pound-force to Newtons Pounds-force turned into newtons for engineering formulas. | pound-force-to-newtons | 4.448221615 |
| Pound-force to Kilogram-force Compare pound-force directly to kilogram-force. | pound-force-to-kilogram-force | 0.4535923699734364 |
| Micrometers to Nanometers | micrometers-to-nanometers | 1000 |
| Microns to Angstroms | microns-to-angstroms | 10000 |
| Miles per gallon to Kilometers per liter | miles-per-gallon-to-kilometers-per-liter | 0.425143707 |
@@ -524,6 +546,27 @@ The registry currently contains 416 unique calculator slugs.
- [x] Arcseconds to Arcminutes (`arcseconds-to-arcminutes`)
- [x] Arcseconds to Degrees (`arcseconds-to-degrees`)
- [x] Dynes to Newtons (`dynes-to-newtons`)
- [x] Newton-meters to Kilogram-force Meters (`newton-meters-to-kilogram-force-meters`)
- [x] Newtons to Kilogram-force (`newtons-to-kilogram-force`)
- [x] Newtons to Pound-force (`newtons-to-pound-force`)
- [x] Dyne-centimeters to Kilogram-force Meters (`dyne-centimeters-to-kilogram-force-meters`)
- [x] Dynes to Kilogram-force (`dynes-to-kilogram-force`)
- [x] Dynes to Kilonewtons (`dynes-to-kilonewtons`)
- [x] Dynes to Pound-force (`dynes-to-pound-force`)
- [x] Foot-pounds to Kilogram-force Meters (`foot-pounds-to-kilogram-force-meters`)
- [x] Inch-pounds to Kilogram-force Meters (`inch-pounds-to-kilogram-force-meters`)
- [x] Kilogram-force Meters to Dyne-centimeters (`kilogram-force-meters-to-dyne-centimeters`)
- [x] Kilogram-force Meters to Foot-pounds (`kilogram-force-meters-to-foot-pounds`)
- [x] Kilogram-force Meters to Inch-pounds (`kilogram-force-meters-to-inch-pounds`)
- [x] Kilogram-force to Dynes (`kilogram-force-to-dynes`)
- [x] Kilogram-force to Kilonewtons (`kilogram-force-to-kilonewtons`)
- [x] Kilonewtons to Dynes (`kilonewtons-to-dynes`)
- [x] Kilonewtons to Kilogram-force (`kilonewtons-to-kilogram-force`)
- [x] Kilonewtons to Pound-force (`kilonewtons-to-pound-force`)
- [x] Pound-force to Dynes (`pound-force-to-dynes`)
- [x] Pound-force to Kilonewtons (`pound-force-to-kilonewtons`)
- [x] Pound-force to Newtons (`pound-force-to-newtons`)
- [x] Pound-force to Kilogram-force (`pound-force-to-kilogram-force`)
- [x] Ergs to Joules (`ergs-to-joules`)
- [x] Feet to Meters (`feet-to-meters`)
- [x] Foot-Pounds to Newton-Meters (`foot-pounds-to-newton-meters`)
@@ -1386,10 +1429,10 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Newton (temp scale) to Fahrenheit
- [ ] Newton-Meters to Dyne-Centimeters
- [ ] Newton-Meters to Inch-Pounds
- [ ] Newton-Meters to Kilogram-force Meters
- [ ] Newtons to Kilogram-force
- [ ] Newtons to Kilonewtons
- [ ] Newtons to Pound-force
- [x] Newton-Meters to Kilogram-force Meters (`newton-meters-to-kilogram-force-meters`)
- [x] Newtons to Kilogram-force (`newtons-to-kilogram-force`)
- [x] Newtons to Kilonewtons (`newtons-to-kilonewtons`)
- [x] Newtons to Pound-force (`newtons-to-pound-force`)
- [ ] Nibbles to Bits
- [ ] Octal to Binary
- [ ] Octal to Decimal
@@ -1435,8 +1478,8 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Points to Inches
- [ ] Points to Pixels
- [ ] Poise to Pascal-seconds
- [ ] Pound-force to Kilogram-force
- [ ] Pound-force to Newtons
- [x] Pound-force to Kilogram-force (`pound-force-to-kilogram-force`)
- [x] Pound-force to Newtons (`pound-force-to-newtons`)
- [ ] Pounds per cubic foot to Kilograms per cubic meter
- [ ] Pounds to Grams
- [ ] PPB to PPM
@@ -2925,7 +2968,7 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Dunams to Townships
- [ ] Dyne-centimeters to Foot-pounds
- [ ] Dyne-centimeters to Inch-pounds
- [ ] Dyne-centimeters to Kilogram-force Meters
- [x] Dyne-centimeters to Kilogram-force Meters (`dyne-centimeters-to-kilogram-force-meters`)
- [ ] Dynes Per Sq Cm to Atmosphere
- [ ] Dynes Per Sq Cm to Bar
- [ ] Dynes Per Sq Cm to Barye
@@ -2947,9 +2990,9 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Dynes Per Sq Cm to Technical Atmosphere
- [ ] Dynes Per Sq Cm to Technical Atmosphere (at)
- [ ] Dynes Per Sq Cm to Torr
- [ ] Dynes to Kilogram-force
- [ ] Dynes to Kilonewtons
- [ ] Dynes to Pound-force
- [x] Dynes to Kilogram-force (`dynes-to-kilogram-force`)
- [x] Dynes to Kilonewtons (`dynes-to-kilonewtons`)
- [x] Dynes to Pound-force (`dynes-to-pound-force`)
- [ ] Earth Masses to Amu
- [ ] Earth Masses to Apothecary Ounces
- [ ] Earth Masses to Atomic Mass Units
@@ -3263,7 +3306,7 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Foot-pounds (energy) to Ton Of Tnt
- [ ] Foot-pounds (energy) to Watt-hours
- [ ] Foot-pounds to Dyne-centimeters
- [ ] Foot-pounds to Kilogram-force Meters
- [x] Foot-pounds to Kilogram-force Meters (`foot-pounds-to-kilogram-force-meters`)
- [ ] Fortnights to Atomic Time Units
- [ ] Fortnights to Centuries
- [ ] Fortnights to Decades
@@ -3854,7 +3897,7 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Imperial Pints to Teaspoons
- [ ] Imperial Pints to Us Gallons
- [ ] Inch-pounds to Dyne-centimeters
- [ ] Inch-pounds to Kilogram-force Meters
- [x] Inch-pounds to Kilogram-force Meters (`inch-pounds-to-kilogram-force-meters`)
- [ ] Inches Of Mercury to Atmosphere
- [ ] Inches Of Mercury to Bar
- [ ] Inches Of Mercury to Barye
@@ -4059,11 +4102,11 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Kilocalories to Therms
- [ ] Kilocalories to Ton Of Tnt
- [ ] Kilocalories to Watt-hours
- [ ] Kilogram-force Meters to Dyne-centimeters
- [ ] Kilogram-force Meters to Foot-pounds
- [ ] Kilogram-force Meters to Inch-pounds
- [ ] Kilogram-force to Dynes
- [ ] Kilogram-force to Kilonewtons
- [x] Kilogram-force Meters to Dyne-centimeters (`kilogram-force-meters-to-dyne-centimeters`)
- [x] Kilogram-force Meters to Foot-pounds (`kilogram-force-meters-to-foot-pounds`)
- [x] Kilogram-force Meters to Inch-pounds (`kilogram-force-meters-to-inch-pounds`)
- [x] Kilogram-force to Dynes (`kilogram-force-to-dynes`)
- [x] Kilogram-force to Kilonewtons (`kilogram-force-to-kilonewtons`)
- [ ] Kilograms Per Cubic Meter to Grams Per Cubic Centimeter
- [ ] Kilograms Per Cubic Meter to Grams Per Milliliter
- [ ] Kilograms Per Cubic Meter to Kilograms Per Liter
@@ -4147,9 +4190,9 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Kilometers to Smoots
- [ ] Kilometers to Thou
- [ ] Kilometers to Thou (mil)
- [ ] Kilonewtons to Dynes
- [ ] Kilonewtons to Kilogram-force
- [ ] Kilonewtons to Pound-force
- [x] Kilonewtons to Dynes (`kilonewtons-to-dynes`)
- [x] Kilonewtons to Kilogram-force (`kilonewtons-to-kilogram-force`)
- [x] Kilonewtons to Pound-force (`kilonewtons-to-pound-force`)
- [ ] Kilopascals to Atmosphere
- [ ] Kilopascals to Bar
- [ ] Kilopascals to Barye
@@ -5776,8 +5819,8 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Poise to Saybolt Universal Seconds
- [ ] Poise to Square Meters Per Second
- [ ] Poise to Stokes
- [ ] Pound-force to Dynes
- [ ] Pound-force to Kilonewtons
- [x] Pound-force to Dynes (`pound-force-to-dynes`)
- [x] Pound-force to Kilonewtons (`pound-force-to-kilonewtons`)
- [ ] Pounds Per Cubic Foot to Grams Per Cubic Centimeter
- [ ] Pounds Per Cubic Foot to Grams Per Milliliter
- [ ] Pounds Per Cubic Foot to Kilograms Per Liter

View File

@@ -99,10 +99,12 @@ export const calculators: CalculatorDef[] = [
{"slug": "arcminutes-to-degrees", "name": "Arcminutes to Degrees", "category": "time", "type": "standard", "teaser": "Convert minutes of arc into degrees.", "labels": {"in1": "Arcminutes", "in2": "Degrees"}, "factor": 0.0166666667},
{"slug": "arcseconds-to-arcminutes", "name": "Arcseconds to Arcminutes", "category": "time", "type": "standard", "teaser": "Turn arcseconds back into minutes for fine-grained angles.", "labels": {"in1": "Arcseconds", "in2": "Arcminutes"}, "factor": 0.0166666667, "hidden": true},
{"slug": "arcseconds-to-degrees", "name": "Arcseconds to Degrees", "category": "time", "type": "standard", "teaser": "Express tiny angle pieces as degrees.", "labels": {"in1": "Arcseconds", "in2": "Degrees"}, "factor": 0.00027777778},
{"slug": "dynes-to-newtons", "name": "Dynes to Newtons", "category": "weight", "type": "standard", "labels": {"in1": "Dynes", "in2": "Newtons"}, "factor": 1e-05, "hidden": true},
{"slug": "dynes-to-newtons", "name": "Dynes to Newtons", "category": "force", "type": "standard", "labels": {"in1": "Dynes", "in2": "Newtons"}, "factor": 1e-05, "hidden": true},
{"slug": "ergs-to-joules", "name": "Ergs to Joules", "category": "energy", "type": "standard", "labels": {"in1": "Ergs", "in2": "Joules"}, "factor": 1e-07, "hidden": true},
{"slug": "feet-to-meters", "name": "Feet to Meters", "category": "length", "type": "standard", "labels": {"in1": "Feet", "in2": "Meters"}, "factor": 0.3048, "hidden": true},
{"slug": "foot-pounds-to-newton-meters", "name": "Foot-Pounds to Newton-Meters", "category": "length", "type": "standard", "labels": {"in1": "Foot-Pounds", "in2": "Newton-Meters"}, "factor": 1.35581795},
{"slug": "foot-pounds-to-newton-meters", "name": "Foot-Pounds to Newton-Meters", "category": "force", "type": "standard", "labels": {"in1": "Foot-Pounds", "in2": "Newton-Meters"}, "factor": 1.35581795},
{"slug": "foot-pounds-to-kilogram-force-meters", "name": "Foot-pounds to Kilogram-force Meters", "category": "force", "type": "standard", "teaser": "Show a foot-pound of torque as kilogram-force meters.", "labels": {"in1": "Foot-pounds", "in2": "Kilogram-force Meters"}, "factor": 0.13825495437599997, "hidden": true},
{"slug": "inch-pounds-to-kilogram-force-meters", "name": "Inch-pounds to Kilogram-force Meters", "category": "force", "type": "standard", "teaser": "Convert inch-pounds into kilogram-force meters for fine torque tools.", "labels": {"in1": "Inch-pounds", "in2": "Kilogram-force Meters"}, "factor": 0.011521246197999995, "hidden": true},
{"slug": "gallons-to-liters", "name": "Gallons to Liters", "category": "volume", "type": "standard", "labels": {"in1": "Gallons", "in2": "Liters"}, "factor": 3.78541178},
{"slug": "gigabytes-to-megabytes", "name": "Gigabytes to Megabytes", "category": "data", "type": "standard", "labels": {"in1": "Gigabytes", "in2": "Megabytes"}, "factor": 1000.0},
{"slug": "fahrenheit-to-celsius", "name": "Fahrenheit to Celsius", "category": "temperature", "type": "standard", "labels": {"in1": "Fahrenheit", "in2": "Celsius"}, "factor": 0.5555555555555556, "offset": -17.778, "hidden": true},
@@ -162,8 +164,28 @@ export const calculators: CalculatorDef[] = [
{"slug": "minutes-to-hours", "name": "Minutes to Hours", "category": "time", "type": "standard", "labels": {"in1": "Minutes", "in2": "Hours"}, "factor": 0.0166667, "hidden": true},
{"slug": "minutes-to-seconds", "name": "Minutes to Seconds", "category": "time", "type": "standard", "labels": {"in1": "Minutes", "in2": "Seconds"}, "factor": 60.0},
{"slug": "nautical-miles-to-kilometers", "name": "Nautical miles to Kilometers", "category": "length", "type": "standard", "labels": {"in1": "Nautical miles", "in2": "Kilometers"}, "factor": 1.852},
{"slug": "newtons-to-dynes", "name": "Newtons to Dynes", "category": "weight", "type": "standard", "labels": {"in1": "Newtons", "in2": "Dynes"}, "factor": 100000.0},
{"slug": "newtons-to-dynes", "name": "Newtons to Dynes", "category": "force", "type": "standard", "labels": {"in1": "Newtons", "in2": "Dynes"}, "factor": 100000.0},
{"slug": "newton-meters-to-kilogram-force-meters", "name": "Newton-meters to Kilogram-force Meters", "category": "force", "type": "standard", "teaser": "Convert a torque in newton-meters into kilogram-force meters for mechanical specs.", "labels": {"in1": "Newton-meters", "in2": "Kilogram-force Meters"}, "factor": 0.10197162129779283},
{"slug": "newtons-to-kilogram-force", "name": "Newtons to Kilogram-force", "category": "force", "type": "standard", "teaser": "A force of one newton expressed as kilogram-force.", "labels": {"in1": "Newtons", "in2": "Kilogram-force"}, "factor": 0.10197162129779283},
{"slug": "newtons-to-pound-force", "name": "Newtons to Pound-force", "category": "force", "type": "standard", "teaser": "Translate a newton reading into pounds of force.", "labels": {"in1": "Newtons", "in2": "Pound-force"}, "factor": 0.2248089431128759, "hidden": true},
{"slug": "newtons-to-kilonewtons", "name": "Newtons to Kilonewtons", "category": "force", "type": "standard", "teaser": "Convert a newton force into kilonewtons for handy SI notation.", "labels": {"in1": "Newtons", "in2": "Kilonewtons"}, "factor": 0.001, "hidden": true},
{"slug": "dyne-centimeters-to-kilogram-force-meters", "name": "Dyne-centimeters to Kilogram-force Meters", "category": "force", "type": "standard", "teaser": "Tiny dyne-centimeter torques mapped into kilogram-force meters.", "labels": {"in1": "Dyne-centimeters", "in2": "Kilogram-force Meters"}, "factor": 1.0197162129779446e-08, "hidden": true},
{"slug": "dynes-to-kilogram-force", "name": "Dynes to Kilogram-force", "category": "force", "type": "standard", "teaser": "Express a dyne-scale pull as kilograms of force.", "labels": {"in1": "Dynes", "in2": "Kilogram-force"}, "factor": 1.0197162129779282e-06, "hidden": true},
{"slug": "dynes-to-pound-force", "name": "Dynes to Pound-force", "category": "force", "type": "standard", "teaser": "Turn dynes into the more intuitive pound-force units.", "labels": {"in1": "Dynes", "in2": "Pound-force"}, "factor": 2.248089431128759e-06, "hidden": true},
{"slug": "dynes-to-kilonewtons", "name": "Dynes to Kilonewtons", "category": "force", "type": "standard", "teaser": "Scale dynes all the way into kilonewtons for SI reporting.", "labels": {"in1": "Dynes", "in2": "Kilonewtons"}, "factor": 1e-08, "hidden": true},
{"slug": "ounces-to-grams", "name": "Ounces to Grams", "category": "weight", "type": "standard", "labels": {"in1": "Ounces", "in2": "Grams"}, "factor": 28.3495},
{"slug": "kilogram-force-meters-to-dyne-centimeters", "name": "Kilogram-force Meters to Dyne-centimeters", "category": "force", "type": "standard", "teaser": "Flip kilogram-force meters back into dyne-centimeters.", "labels": {"in1": "Kilogram-force Meters", "in2": "Dyne-centimeters"}, "factor": 98066500.0},
{"slug": "kilogram-force-meters-to-foot-pounds", "name": "Kilogram-force Meters to Foot-pounds", "category": "force", "type": "standard", "teaser": "Express a kilogram-force meter as foot-pounds of torque.", "labels": {"in1": "Kilogram-force Meters", "in2": "Foot-pounds"}, "factor": 7.233013851209897},
{"slug": "kilogram-force-meters-to-inch-pounds", "name": "Kilogram-force Meters to Inch-pounds", "category": "force", "type": "standard", "teaser": "Turn a kilogram-force meter into inch-pounds.", "labels": {"in1": "Kilogram-force Meters", "in2": "Inch-pounds"}, "factor": 86.79616621451876},
{"slug": "kilogram-force-to-dynes", "name": "Kilogram-force to Dynes", "category": "force", "type": "standard", "teaser": "A kilogram-force equals how many dynes in precision systems?", "labels": {"in1": "Kilogram-force", "in2": "Dynes"}, "factor": 980665.0},
{"slug": "kilogram-force-to-kilonewtons", "name": "Kilogram-force to Kilonewtons", "category": "force", "type": "standard", "teaser": "Express kilogram-force as kilonewtons for structural work.", "labels": {"in1": "Kilogram-force", "in2": "Kilonewtons"}, "factor": 0.00980665, "hidden": true},
{"slug": "kilonewtons-to-dynes", "name": "Kilonewtons to Dynes", "category": "force", "type": "standard", "teaser": "Scale kilonewtons into dynes for fine-grained instrumentation.", "labels": {"in1": "Kilonewtons", "in2": "Dynes"}, "factor": 100000000.0},
{"slug": "kilonewtons-to-kilogram-force", "name": "Kilonewtons to Kilogram-force", "category": "force", "type": "standard", "teaser": "Translate kilonewtons into kilogram-force units.", "labels": {"in1": "Kilonewtons", "in2": "Kilogram-force"}, "factor": 101.97162129779284},
{"slug": "kilonewtons-to-pound-force", "name": "Kilonewtons to Pound-force", "category": "force", "type": "standard", "teaser": "Convert kilonewtons into pound-force values.", "labels": {"in1": "Kilonewtons", "in2": "Pound-force"}, "factor": 224.8089431128759},
{"slug": "pound-force-to-dynes", "name": "Pound-force to Dynes", "category": "force", "type": "standard", "teaser": "Reverse a pound-force back into dynes for lab work.", "labels": {"in1": "Pound-force", "in2": "Dynes"}, "factor": 444822.1615},
{"slug": "pound-force-to-kilonewtons", "name": "Pound-force to Kilonewtons", "category": "force", "type": "standard", "teaser": "Express pound-force in kilonewtons for SI compatibility.", "labels": {"in1": "Pound-force", "in2": "Kilonewtons"}, "factor": 0.004448221615, "hidden": true},
{"slug": "pound-force-to-newtons", "name": "Pound-force to Newtons", "category": "force", "type": "standard", "teaser": "Pounds-force turned into newtons for engineering formulas.", "labels": {"in1": "Pound-force", "in2": "Newtons"}, "factor": 4.448221615},
{"slug": "pound-force-to-kilogram-force", "name": "Pound-force to Kilogram-force", "category": "force", "type": "standard", "teaser": "Compare pound-force directly to kilogram-force.", "labels": {"in1": "Pound-force", "in2": "Kilogram-force"}, "factor": 0.4535923699734364},
{"slug": "micrometers-to-nanometers", "name": "Micrometers to Nanometers", "category": "length", "type": "standard", "labels": {"in1": "Micrometers", "in2": "Nanometers"}, "factor": 1000.0},
{"slug": "microns-to-angstroms", "name": "Microns to Angstroms", "category": "other", "type": "standard", "labels": {"in1": "Microns", "in2": "Angstroms"}, "factor": 10000.0},
{"slug": "miles-per-gallon-to-kilometers-per-liter", "name": "Miles per gallon to Kilometers per liter", "category": "length", "type": "standard", "labels": {"in1": "Miles per gallon", "in2": "Kilometers per liter"}, "factor": 0.425143707},
@@ -269,7 +291,7 @@ export const calculators: CalculatorDef[] = [
{"slug": "pascals-to-inches-of-mercury", "name": "Pascals to inches of mercury", "category": "length", "type": "standard", "labels": {"in1": "Pascals", "in2": "inches of mercury"}, "factor": 0.000295, "hidden": true},
{"slug": "pascal-to-atmosphere", "name": "Pascal to atmosphere", "category": "pressure", "type": "standard", "labels": {"in1": "Pascal", "in2": "atmosphere"}, "factor": 9.869e-06},
{"slug": "ounces-to-pounds", "name": "Ounces to pounds", "category": "weight", "type": "standard", "labels": {"in1": "Ounces", "in2": "pounds"}, "factor": 0.0625, "hidden": true},
{"slug": "newton-meters-to-foot-pounds", "name": "Newton-meters to foot-pounds", "category": "length", "type": "standard", "labels": {"in1": "Newton-meters", "in2": "foot-pounds"}, "factor": 0.73756, "hidden": true},
{"slug": "newton-meters-to-foot-pounds", "name": "Newton-meters to foot-pounds", "category": "force", "type": "standard", "labels": {"in1": "Newton-meters", "in2": "foot-pounds"}, "factor": 0.73756, "hidden": true},
{"slug": "nanometers-to-micrometers", "name": "Nanometers to micrometers", "category": "length", "type": "standard", "labels": {"in1": "Nanometers", "in2": "micrometers"}, "factor": 0.001, "hidden": true},
{"slug": "nanograms-to-picograms", "name": "Nanograms to picograms", "category": "weight", "type": "standard", "labels": {"in1": "Nanograms", "in2": "picograms"}, "factor": 1000.0},
{"slug": "metric-tons-to-long-tons", "name": "Metric tons to long tons", "category": "weight", "type": "standard", "labels": {"in1": "Metric tons", "in2": "long tons"}, "factor": 0.9842},
@@ -300,8 +322,8 @@ export const calculators: CalculatorDef[] = [
{"slug": "imperial-gallons-to-liters", "name": "Imperial gallons to Liters", "category": "volume", "type": "standard", "teaser": "Convert Imperial gallons to Liters instantly.", "labels": {"in1": "Imperial gallons", "in2": "Liters"}, "factor": 4.54609},
{"slug": "imperial-gallons-to-us-gallons", "name": "Imperial gallons to US gallons", "category": "volume", "type": "standard", "teaser": "Convert Imperial gallons to US gallons instantly.", "labels": {"in1": "Imperial gallons", "in2": "US gallons"}, "factor": 1.20095},
{"slug": "imperial-pints-to-us-pints", "name": "Imperial pints to US pints", "category": "volume", "type": "standard", "teaser": "Convert Imperial pints to US pints instantly.", "labels": {"in1": "Imperial pints", "in2": "US pints"}, "factor": 1.20095},
{"slug": "inch-pounds-to-foot-pounds", "name": "Inch-Pounds to Foot-Pounds", "category": "length", "type": "standard", "teaser": "Convert Inch-Pounds to Foot-Pounds instantly.", "labels": {"in1": "Inch-Pounds", "in2": "Foot-Pounds"}, "factor": 0.0833333, "hidden": true},
{"slug": "inch-pounds-to-newton-meters", "name": "Inch-Pounds to Newton-Meters", "category": "length", "type": "standard", "teaser": "Convert Inch-Pounds to Newton-Meters instantly.", "labels": {"in1": "Inch-Pounds", "in2": "Newton-Meters"}, "factor": 0.112985},
{"slug": "inch-pounds-to-foot-pounds", "name": "Inch-Pounds to Foot-Pounds", "category": "force", "type": "standard", "teaser": "Convert Inch-Pounds to Foot-Pounds instantly.", "labels": {"in1": "Inch-Pounds", "in2": "Foot-Pounds"}, "factor": 0.0833333, "hidden": true},
{"slug": "inch-pounds-to-newton-meters", "name": "Inch-Pounds to Newton-Meters", "category": "force", "type": "standard", "teaser": "Convert Inch-Pounds to Newton-Meters instantly.", "labels": {"in1": "Inch-Pounds", "in2": "Newton-Meters"}, "factor": 0.112985},
{"slug": "inches-of-water-to-psi", "name": "Inches of Water to PSI", "category": "length", "type": "standard", "teaser": "Convert Inches of Water to PSI instantly.", "labels": {"in1": "Inches of Water", "in2": "PSI"}, "factor": 0.0360912},
{"slug": "inches-per-second-to-cm-per-second", "name": "Inches per second to cm per second", "category": "length", "type": "standard", "teaser": "Convert Inches per second to Centimeters per second instantly.", "labels": {"in1": "Inches per second", "in2": "cm per second"}, "factor": 2.54},
{"slug": "inches-to-meters", "name": "Inches to Meters", "category": "length", "type": "standard", "teaser": "Convert Inches to Meters instantly.", "labels": {"in1": "Inches", "in2": "Meters"}, "factor": 0.0254, "hidden": true},
@@ -312,13 +334,13 @@ export const calculators: CalculatorDef[] = [
{"slug": "jiggers-to-milliliters", "name": "Jiggers to Milliliters", "category": "volume", "type": "standard", "teaser": "Convert Jiggers to Milliliters instantly.", "labels": {"in1": "Jiggers", "in2": "Milliliters"}, "factor": 44.3603},
{"slug": "joules-to-btu", "name": "Joules to BTU", "category": "energy", "type": "standard", "teaser": "Convert Joules to BTU instantly.", "labels": {"in1": "Joules", "in2": "BTU"}, "factor": 0.000947817},
{"slug": "joules-to-electron-volts", "name": "Joules to Electron-volts", "category": "energy", "type": "standard", "teaser": "Convert Joules to Electron-volts instantly.", "labels": {"in1": "Joules", "in2": "Electron-volts"}, "factor": 6.24151e+18},
{"slug": "joules-to-foot-pounds", "name": "Joules to Foot-pounds", "category": "weight", "type": "standard", "teaser": "Convert Joules to Foot-pounds instantly.", "labels": {"in1": "Joules", "in2": "Foot-pounds"}, "factor": 0.737562},
{"slug": "joules-to-foot-pounds", "name": "Joules to Foot-pounds", "category": "force", "type": "standard", "teaser": "Convert Joules to Foot-pounds instantly.", "labels": {"in1": "Joules", "in2": "Foot-pounds"}, "factor": 0.737562},
{"slug": "joules-to-kilowatt-hours", "name": "Joules to Kilowatt-hours", "category": "energy", "type": "standard", "teaser": "Convert Joules to Kilowatt-hours instantly.", "labels": {"in1": "Joules", "in2": "Kilowatt-hours"}, "factor": 2.77778e-07, "hidden": true},
{"slug": "cubic-feet-to-gallons", "name": "Cubic Feet to Gallons", "category": "length", "type": "standard", "teaser": "If a cistern volume reads three cubic feet, how many US gallons does that store?", "labels": {"in1": "Cubic Feet", "in2": "Gallons"}, "factor": 7.48052},
{"slug": "cubic-meters-to-cubic-feet", "name": "Cubic Meters to Cubic Feet", "category": "length", "type": "standard", "teaser": "A freight crate is two cubic meters; how many cubic feet of cargo space is that?", "labels": {"in1": "Cubic Meters", "in2": "Cubic Feet"}, "factor": 35.3147},
{"slug": "foot-candles-to-lux", "name": "Foot-candles to Lux", "category": "light", "type": "standard", "teaser": "Gallery staff want to match 150 foot-candles; what does that translate to in lux?", "labels": {"in1": "Foot-candles", "in2": "Lux"}, "factor": 10.7639},
{"slug": "foot-pounds-energy-to-joules", "name": "Foot-pounds (energy) to Joules", "category": "weight", "type": "standard", "teaser": "The engine produces five foot-pounds of work; how many joules is that?", "labels": {"in1": "Foot-pounds (energy)", "in2": "Joules"}, "factor": 1.35581795},
{"slug": "foot-pounds-to-inch-pounds", "name": "Foot-Pounds to Inch-Pounds", "category": "length", "type": "standard", "teaser": "A torque spec calls for two foot-pounds; how many inch-pounds is that?", "labels": {"in1": "Foot-Pounds", "in2": "Inch-Pounds"}, "factor": 12.0},
{"slug": "foot-pounds-energy-to-joules", "name": "Foot-pounds (energy) to Joules", "category": "force", "type": "standard", "teaser": "The engine produces five foot-pounds of work; how many joules is that?", "labels": {"in1": "Foot-pounds (energy)", "in2": "Joules"}, "factor": 1.35581795},
{"slug": "foot-pounds-to-inch-pounds", "name": "Foot-Pounds to Inch-Pounds", "category": "force", "type": "standard", "teaser": "A torque spec calls for two foot-pounds; how many inch-pounds is that?", "labels": {"in1": "Foot-Pounds", "in2": "Inch-Pounds"}, "factor": 12.0},
{"slug": "fortnights-to-days", "name": "Fortnights to Days", "category": "time", "type": "standard", "teaser": "The rental period lasts three fortnights; how many days will be billed?", "labels": {"in1": "Fortnights", "in2": "Days"}, "factor": 14.0},
{"slug": "furlongs-per-fortnight-to-meters-per-second", "name": "Furlongs per fortnight to m/s", "category": "speed", "type": "standard", "teaser": "Traveling at one furlong per fortnight, what speed in meters per second is that?", "labels": {"in1": "Furlongs per fortnight", "in2": "m/s"}, "factor": 1.336e-05},
{"slug": "furlongs-to-meters", "name": "Furlongs to Meters", "category": "length", "type": "standard", "teaser": "A race distance of two furlongs equals how many meters?", "labels": {"in1": "Furlongs", "in2": "Meters"}, "factor": 201.168},
@@ -354,12 +376,12 @@ export const calculators: CalculatorDef[] = [
{"slug": "grams-to-scruples", "name": "Grams to Scruples", "category": "weight", "type": "standard", "teaser": "A pharmacy formula needs 10 grams; what is that in scruples?", "labels": {"in1": "Grams", "in2": "Scruples"}, "factor": 0.771605},
{"slug": "grams-to-tolas", "name": "Grams to Tolas", "category": "weight", "type": "standard", "teaser": "A gold bar weighs 5 grams; how many tolas is that mass?", "labels": {"in1": "Grams", "in2": "Tolas"}, "factor": 0.085735},
{"slug": "gray-to-sievert", "name": "Gray to Sievert", "category": "radiation", "type": "standard", "teaser": "A gamma exposure is 3 gray; how many sieverts is that for gamma/beta?", "labels": {"in1": "Gray", "in2": "Sievert"}},
{"slug": "fahrenheit-to-newton", "name": "Fahrenheit to Newton", "category": "weight", "type": "standard", "teaser": "Convert Fahrenheit to Newtons on the scale where 0\u202f\u00b0C equals 0\u202f\u00b0N and 100\u202f\u00b0C equals 33\u202f\u00b0N.", "labels": {"in1": "Fahrenheit", "in2": "Newton"}, "factor": 0.183333, "offset": -5.867},
{"slug": "fahrenheit-to-newton", "name": "Fahrenheit to Newton", "category": "force", "type": "standard", "teaser": "Convert Fahrenheit to Newtons on the scale where 0\u202f\u00b0C equals 0\u202f\u00b0N and 100\u202f\u00b0C equals 33\u202f\u00b0N.", "labels": {"in1": "Fahrenheit", "in2": "Newton"}, "factor": 0.183333, "offset": -5.867},
{"slug": "fahrenheit-to-rankine", "name": "Fahrenheit to Rankine", "category": "temperature", "type": "standard", "teaser": "Convert Fahrenheit to the absolute Rankine scale.", "labels": {"in1": "Fahrenheit", "in2": "Rankine"}, "offset": 459.67},
{"slug": "farads-to-microfarads", "name": "Farads to Microfarads", "category": "radiation", "type": "standard", "teaser": "Convert farads to microfarads for capacitor ratings.", "labels": {"in1": "Farads", "in2": "Microfarads"}, "factor": 1000000.0},
{"slug": "feet-of-seawater-to-psi", "name": "Feet of seawater to PSI", "category": "length", "type": "standard", "teaser": "A pressure gauge shows depth in feet of seawater; convert that to PSI.", "labels": {"in1": "Feet of seawater", "in2": "PSI"}, "factor": 0.444975},
{"slug": "kilometers-to-yards", "name": "Kilometers to Yards", "category": "length", "type": "standard", "teaser": "Convert a full kilometer into yards.", "labels": {"in1": "Kilometers", "in2": "Yards"}, "factor": 1093.613298},
{"slug": "kilonewtons-to-newtons", "name": "Kilonewtons to Newtons", "category": "weight", "type": "standard", "teaser": "Convert kilonewtons into newtons.", "labels": {"in1": "Kilonewtons", "in2": "Newtons"}, "factor": 1000.0},
{"slug": "kilonewtons-to-newtons", "name": "Kilonewtons to Newtons", "category": "force", "type": "standard", "teaser": "Convert kilonewtons into newtons.", "labels": {"in1": "Kilonewtons", "in2": "Newtons"}, "factor": 1000.0},
{"slug": "kilopascals-to-inches-of-mercury", "name": "Kilopascals to Inches of Mercury", "category": "length", "type": "standard", "teaser": "Convert pressure from kPa to inHg (standard gravity).", "labels": {"in1": "Kilopascals", "in2": "Inches of Mercury"}, "factor": 0.2952998},
{"slug": "kilowatt-hours-to-btu", "name": "Kilowatt-hours to BTU", "category": "energy", "type": "standard", "teaser": "Convert electrical energy in kWh to BTU.", "labels": {"in1": "Kilowatt-hours", "in2": "BTU"}, "factor": 3412.142},
{"slug": "kilowatt-hours-to-joules", "name": "Kilowatt-hours to Joules", "category": "energy", "type": "standard", "teaser": "Convert kWh to joules.", "labels": {"in1": "Kilowatt-hours", "in2": "Joules"}, "factor": 3600000.0},
@@ -435,7 +457,7 @@ export const calculators: CalculatorDef[] = [
{"slug": "mb-per-second-to-mbps", "name": "MB/s to Mbps", "category": "other", "type": "standard", "teaser": "Convert megabytes per second into megabits per second (1 byte = 8 bits).", "labels": {"in1": "MB/s", "in2": "Mbps"}, "factor": 8.0},
{"slug": "megajoules-to-btu", "name": "Megajoules to BTU", "category": "energy", "type": "standard", "teaser": "Convert megajoules into BTU.", "labels": {"in1": "Megajoules", "in2": "BTU"}, "factor": 947.81712},
{"slug": "kilograms-to-quarters", "name": "Kilograms to Quarters", "category": "weight", "type": "standard", "teaser": "Convert kilograms into US quarters (1 quarter = 25 pounds).", "labels": {"in1": "Kilograms", "in2": "Quarters"}, "factor": 0.078732},
{"slug": "kilonewtons-to-newtons", "name": "Kilonewtons to Newtons", "category": "weight", "type": "standard", "teaser": "Convert kilonewtons into newtons.", "labels": {"in1": "Kilonewtons", "in2": "Newtons"}, "factor": 1000.0},
{"slug": "kilonewtons-to-newtons", "name": "Kilonewtons to Newtons", "category": "force", "type": "standard", "teaser": "Convert kilonewtons into newtons.", "labels": {"in1": "Kilonewtons", "in2": "Newtons"}, "factor": 1000.0},
{"slug": "kilopascals-to-inches-of-mercury", "name": "Kilopascals to Inches of Mercury", "category": "length", "type": "standard", "teaser": "Convert pressure from kilopascals to inches of mercury (Hg).", "labels": {"in1": "Kilopascals", "in2": "Inches of Mercury"}, "factor": 0.2952998},
{"slug": "kilowatt-hours-to-btu", "name": "Kilowatt-hours to BTU", "category": "energy", "type": "standard", "teaser": "Convert electrical energy from kilowatt-hours to BTU.", "labels": {"in1": "Kilowatt-hours", "in2": "BTU"}, "factor": 3412.142},
{"slug": "kilowatt-hours-to-joules", "name": "Kilowatt-hours to Joules", "category": "energy", "type": "standard", "teaser": "Convert kilowatt-hours to joules.", "labels": {"in1": "Kilowatt-hours", "in2": "Joules"}, "factor": 3600000.0},

View File

@@ -55,6 +55,7 @@ def split_conversion_name(name):
def guess_category(name):
name_l = name.lower()
if any(x in name_l for x in ['force', 'torque', 'newton', 'dyne', 'foot-pound']): return 'force'
if any(x in name_l for x in ['meter', 'inch', 'feet', 'yard', 'mile', 'cable', 'fathom', 'rod', 'chain', 'nautical', 'league']): return 'length'
if any(x in name_l for x in ['gram', 'pound', 'ounce', 'carat', 'stone', 'slug', 'ton', 'pennyweight', 'grain', 'momme']): return 'weight'
if any(x in name_l for x in ['celsius', 'fahrenheit', 'kelvin', 'rankine']): return 'temperature'
@@ -70,7 +71,6 @@ def guess_category(name):
if any(x in name_l for x in ['binary', 'hex', 'octal', 'decimal', 'ascii', 'fraction']): return 'number-systems'
if any(x in name_l for x in ['becquerel', 'curie', 'gray', 'rad', 'sievert', 'rem', 'roentgen', 'rutherford']): return 'radiation'
if any(x in name_l for x in ['volt', 'amp', 'ohm', 'siemens', 'farad', 'henry', 'coulomb']): return 'electrical'
if any(x in name_l for x in ['newton', 'dyne', 'foot-pound']): return 'force'
if any(x in name_l for x in ['lumen', 'lux', 'candela']): return 'light'
return 'other'