diff --git a/calculators_list.md b/calculators_list.md index b20d79f..e530392 100644 --- a/calculators_list.md +++ b/calculators_list.md @@ -605,6 +605,42 @@ The registry currently contains 416 unique calculator slugs. | Gray to Sievert – A gamma exposure is 3 gray; how many sieverts is that for gamma/beta? | gray-to-sievert | 1 | | Fahrenheit to Newton – Convert Fahrenheit to Newtons on the scale where 0 °C equals 0 °N and 100 °C equals 33 °N. | fahrenheit-to-newton | Linear Offset (0.183333x - 5.867) | | Fahrenheit to Rankine – Convert Fahrenheit to the absolute Rankine scale. | fahrenheit-to-rankine | Linear Offset (1x + 459.67) | +| Celsius to Newton (temp Scale) – Convert Celsius into Newton's temperature scale (0 °C ≈ 0 °N, 100 °C ≈ 33 °N). | celsius-to-newton | Linear Offset (0.33x + 0) | +| Delisle to Fahrenheit – Turn antique Delisle readings into modern Fahrenheit. | delisle-to-fahrenheit | Linear Offset (-1.2x + 212) | +| Delisle to Kelvin – Translate Delisle degrees into the Kelvin scale for absolute comparisons. | delisle-to-kelvin | Linear Offset (-0.666666666667x + 373.15) | +| Delisle to Newton (temp Scale) – Map Delisle temperatures into Newton's scale for historical labs. | delisle-to-newton | Linear Offset (-0.22x + 33) | +| Delisle to Rankine – Express Delisle degrees as absolute Rankine values. | delisle-to-rankine | Linear Offset (-1.2x + 671.67) | +| Delisle to Réaumur – Convert Delisle readings into Réaumur for French-style references. | delisle-to-reaumur | Linear Offset (-0.533333333333x + 80) | +| Delisle to Rømer – Bridge Delisle and Rømer scales for historical temperature sets. | delisle-to-romer | Linear Offset (-0.35x + 60) | +| Fahrenheit to Delisle – Translate Fahrenheit into the Delisle interval for antique measurements. | fahrenheit-to-delisle | Linear Offset (-0.833333333333x + 176.666666666667) | +| Fahrenheit to Réaumur – Turn Fahrenheit readings into Réaumur for textile work. | fahrenheit-to-reaumur | Linear Offset (0.444444444444x - 14.222222222222) | +| Fahrenheit to Rømer – Convert Fahrenheit into Rømer for historical thermometer records. | fahrenheit-to-romer | Linear Offset (0.291666666667x - 1.833333333333) | +| Kelvin to Delisle – Express Kelvin values as Delisle for vintage engineering charts. | kelvin-to-delisle | Linear Offset (-1.5x + 559.725) | +| Kelvin to Newton (temp Scale) – Turn kelvins into Newton units for scientific correlation. | kelvin-to-newton | Linear Offset (0.33x - 90.1395) | +| Kelvin to Réaumur – Translate kelvins into Réaumur for recipe and historical data. | kelvin-to-reaumur | Linear Offset (0.8x - 218.52) | +| Kelvin to Rømer – Convert Kelvin readings into the Rømer scale for antique logs. | kelvin-to-romer | Linear Offset (0.525x - 135.90375) | +| Newton (temp Scale) to Celsius – Convert Newton degrees directly into Celsius. | newton-to-celsius | Linear Offset (3.030303030303x + 0) | +| Newton (temp Scale) to Delisle – Map Newton readings into Delisle for 18th-century labs. | newton-to-delisle | Linear Offset (-4.545454545455x + 150) | +| Newton (temp Scale) to Kelvin – Express Newton degrees on the Kelvin scale. | newton-to-kelvin | Linear Offset (3.030303030303x + 273.15) | +| Newton (temp Scale) to Rankine – Convert Newton temps to Rankine for absolute references. | newton-to-rankine | Linear Offset (5.454545454545x + 491.67) | +| Newton (temp Scale) to Réaumur – Turn Newton degrees into Réaumur measurements. | newton-to-reaumur | Linear Offset (2.424242424242x + 0) | +| Newton (temp Scale) to Rømer – Translate Newton values into the Rømer scale for medieval comparisons. | newton-to-romer | Linear Offset (1.590909090909x + 7.5) | +| Rankine to Delisle – Express Rankine readings back into Delisle degrees. | rankine-to-delisle | Linear Offset (-0.833333333333x + 559.725) | +| Rankine to Newton (temp Scale) – Convert Rankine into Newton's scale for referencing older charts. | rankine-to-newton | Linear Offset (0.183333333333x - 90.1395) | +| Rankine to Réaumur – Translate Rankine readings into Réaumur for historical cookbooks. | rankine-to-reaumur | Linear Offset (0.444444444444x - 218.52) | +| Rankine to Rømer – Turn Rankine into Rømer for antique thermometer conversions. | rankine-to-romer | Linear Offset (0.291666666667x - 135.90375) | +| Réaumur to Delisle – Convert Réaumur degrees into Delisle for legacy French schools. | reaumur-to-delisle | Linear Offset (-1.875x + 150) | +| Réaumur to Fahrenheit – Turn Réaumur readings into Fahrenheit for modern cooking. | reaumur-to-fahrenheit | Linear Offset (2.25x + 32) | +| Réaumur to Kelvin – Express Réaumur values in Kelvin for scientific clarity. | reaumur-to-kelvin | Linear Offset (1.25x + 273.15) | +| Réaumur to Newton (temp Scale) – Convert Réaumur readings into Newton for calibration. | reaumur-to-newton | Linear Offset (0.4125x + 0) | +| Réaumur to Rankine – Translate Réaumur degrees to Rankine for absolute conversion. | reaumur-to-rankine | Linear Offset (2.25x + 491.67) | +| Réaumur to Rømer – Turn Réaumur into Rømer for historical data comparisons. | reaumur-to-romer | Linear Offset (0.65625x + 7.5) | +| Rømer to Delisle – Convert Rømer degrees into Delisle for antique scales. | romer-to-delisle | Linear Offset (-2.857142857143x + 171.428571428571) | +| Rømer to Fahrenheit – Translate Rømer readings into modern Fahrenheit. | romer-to-fahrenheit | Linear Offset (3.428571428571x + 6.285714285714) | +| Rømer to Kelvin – Express Rømer degrees on the Kelvin scale. | romer-to-kelvin | Linear Offset (1.904761904762x + 258.864285714286) | +| Rømer to Newton (temp Scale) – Convert Rømer into Newton for vintage comparisons. | romer-to-newton | Linear Offset (0.628571428571x - 4.714285714286) | +| Rømer to Rankine – Translate Rømer values into Rankine for absolute references. | romer-to-rankine | Linear Offset (3.428571428571x + 465.955714285714) | +| Rømer to Réaumur – Turn Rømer values into Réaumur for historical records. | romer-to-reaumur | Linear Offset (1.52380952381x - 11.428571428571) | | Farads to Microfarads – Convert farads to microfarads for capacitor ratings. | farads-to-microfarads | 1000000 | | Feet of seawater to PSI – A pressure gauge shows depth in feet of seawater; convert that to PSI. | feet-of-seawater-to-psi | 0.444975 | | Kilometers to Yards – Convert a full kilometer into yards. | kilometers-to-yards | 1093.613298 | @@ -3061,7 +3097,7 @@ The registry currently contains 416 unique calculator slugs. - [ ] Carats to Troy Ounces - [ ] Carats to Yoctograms - [ ] Carats to Zeptograms -- [ ] Celsius to Newton (temp Scale) +- [x] Celsius to Newton (temp Scale) - [ ] Centigrams to Amu - [ ] Centigrams to Apothecary Ounces - [ ] Centigrams to Atomic Mass Units @@ -3614,12 +3650,12 @@ The registry currently contains 416 unique calculator slugs. - [ ] Decades to Weeks - [ ] Degrees to Quadrants - [ ] Degrees to Sextants -- [ ] Delisle to Fahrenheit -- [ ] Delisle to Kelvin -- [ ] Delisle to Newton (temp Scale) -- [ ] Delisle to Rankine -- [ ] Delisle to Réaumur -- [ ] Delisle to Rømer +- [x] Delisle to Fahrenheit +- [x] Delisle to Kelvin +- [x] Delisle to Newton (temp Scale) +- [x] Delisle to Rankine +- [x] Delisle to Réaumur +- [x] Delisle to Rømer - [ ] Denier to Gsm - [ ] Denier to Ounces Per Sq Yard - [ ] Disintegrations Per Second to Banana Equivalent Dose @@ -3836,9 +3872,9 @@ The registry currently contains 416 unique calculator slugs. - [ ] Exabytes to Terabytes - [ ] Exabytes to Words (16-bit) - [ ] Exabytes to Words (32-bit) -- [ ] Fahrenheit to Delisle -- [ ] Fahrenheit to Réaumur -- [ ] Fahrenheit to Rømer +- [x] Fahrenheit to Delisle +- [x] Fahrenheit to Réaumur +- [x] Fahrenheit to Rømer - [ ] Farads to Abamperes - [ ] Farads to Abvolts - [ ] Farads to Ampere-hours @@ -4796,10 +4832,10 @@ The registry currently contains 416 unique calculator slugs. - [ ] Julian Years to Years - [ ] Kbps to Gbps - [ ] Kbps to mb/s -- [ ] Kelvin to Delisle -- [ ] Kelvin to Newton (temp Scale) -- [ ] Kelvin to Réaumur -- [ ] Kelvin to Rømer +- [x] Kelvin to Delisle +- [x] Kelvin to Newton (temp Scale) +- [x] Kelvin to Réaumur +- [x] Kelvin to Rømer - [ ] Kibibytes to Bits - [ ] Kibibytes to Bytes - [ ] Kibibytes to Exabytes @@ -6146,12 +6182,12 @@ The registry currently contains 416 unique calculator slugs. - [ ] Nautical Miles to Thou - [ ] Nautical Miles to Thou (mil) - [ ] Nautical Miles to Yards -- [ ] Newton (temp Scale) to Celsius -- [ ] Newton (temp Scale) to Delisle -- [ ] Newton (temp Scale) to Kelvin -- [ ] Newton (temp Scale) to Rankine -- [ ] Newton (temp Scale) to Réaumur -- [ ] Newton (temp Scale) to Rømer +- [x] Newton (temp Scale) to Celsius +- [x] Newton (temp Scale) to Delisle +- [x] Newton (temp Scale) to Kelvin +- [x] Newton (temp Scale) to Rankine +- [x] Newton (temp Scale) to Réaumur +- [x] Newton (temp Scale) to Rømer - [ ] Nibbles to Bytes - [ ] Nibbles to Exabytes - [ ] Nibbles to Gibibytes @@ -6727,10 +6763,10 @@ The registry currently contains 416 unique calculator slugs. - [ ] Radians to Points (compass) - [ ] Radians to Quadrants - [ ] Radians to Sextants -- [ ] Rankine to Delisle -- [ ] Rankine to Newton (temp Scale) -- [ ] Rankine to Réaumur -- [ ] Rankine to Rømer +- [x] Rankine to Delisle +- [x] Rankine to Newton (temp Scale) +- [x] Rankine to Réaumur +- [x] Rankine to Rømer - [ ] Rem to Banana Equivalent Dose - [ ] Rem to Becquerel - [ ] Rem to Coulomb Per Kilogram @@ -6829,18 +6865,18 @@ The registry currently contains 416 unique calculator slugs. - [ ] Rydberg to Therms - [ ] Rydberg to Ton Of Tnt - [ ] Rydberg to Watt-hours -- [ ] Réaumur to Delisle -- [ ] Réaumur to Fahrenheit -- [ ] Réaumur to Kelvin -- [ ] Réaumur to Newton (temp Scale) -- [ ] Réaumur to Rankine -- [ ] Réaumur to Rømer -- [ ] Rømer to Delisle -- [ ] Rømer to Fahrenheit -- [ ] Rømer to Kelvin -- [ ] Rømer to Newton (temp Scale) -- [ ] Rømer to Rankine -- [ ] Rømer to Réaumur +- [x] Réaumur to Delisle +- [x] Réaumur to Fahrenheit +- [x] Réaumur to Kelvin +- [x] Réaumur to Newton (temp Scale) +- [x] Réaumur to Rankine +- [x] Réaumur to Rømer +- [x] Rømer to Delisle +- [x] Rømer to Fahrenheit +- [x] Rømer to Kelvin +- [x] Rømer to Newton (temp Scale) +- [x] Rømer to Rankine +- [x] Rømer to Réaumur - [ ] Saybolt Universal Seconds to Centipoise - [ ] Saybolt Universal Seconds to Pascal-seconds - [ ] Saybolt Universal Seconds to Poise diff --git a/hdyc-svelte/src/lib/data/calculators.ts b/hdyc-svelte/src/lib/data/calculators.ts index cac5a07..4c25c9c 100644 --- a/hdyc-svelte/src/lib/data/calculators.ts +++ b/hdyc-svelte/src/lib/data/calculators.ts @@ -637,6 +637,42 @@ export const calculators: CalculatorDef[] = [ {"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": "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": "celsius-to-newton", "name": "Celsius to Newton (temp Scale)", "category": "temperature", "type": "standard", "teaser": "Convert Celsius into Newton's temperature scale (0\u202f\u00b0C \u2248 0\u202f\u00b0N, 100\u202f\u00b0C \u2248 33\u202f\u00b0N).", "labels": {"in1": "Celsius", "in2": "Newton (temp Scale)"}, "factor": 0.33, "offset": 0.0}, + {"slug": "delisle-to-fahrenheit", "name": "Delisle to Fahrenheit", "category": "temperature", "type": "standard", "teaser": "Turn antique Delisle readings into modern Fahrenheit.", "labels": {"in1": "Delisle", "in2": "Fahrenheit"}}, + {"slug": "delisle-to-kelvin", "name": "Delisle to Kelvin", "category": "temperature", "type": "standard", "teaser": "Translate Delisle degrees into the Kelvin scale for absolute comparisons.", "labels": {"in1": "Delisle", "in2": "Kelvin"}}, + {"slug": "delisle-to-newton", "name": "Delisle to Newton (temp Scale)", "category": "temperature", "type": "standard", "teaser": "Map Delisle temperatures into Newton's scale for historical labs.", "labels": {"in1": "Delisle", "in2": "Newton (temp Scale)"}}, + {"slug": "delisle-to-rankine", "name": "Delisle to Rankine", "category": "temperature", "type": "standard", "teaser": "Express Delisle degrees as absolute Rankine values.", "labels": {"in1": "Delisle", "in2": "Rankine"}}, + {"slug": "delisle-to-reaumur", "name": "Delisle to R\u00e9aumur", "category": "temperature", "type": "standard", "teaser": "Convert Delisle readings into R\u00e9aumur for French-style references.", "labels": {"in1": "Delisle", "in2": "R\u00e9aumur"}}, + {"slug": "delisle-to-romer", "name": "Delisle to R\u00f8mer", "category": "temperature", "type": "standard", "teaser": "Bridge Delisle and R\u00f8mer scales for historical temperature sets.", "labels": {"in1": "Delisle", "in2": "R\u00f8mer"}}, + {"slug": "fahrenheit-to-delisle", "name": "Fahrenheit to Delisle", "category": "temperature", "type": "standard", "teaser": "Translate Fahrenheit into the Delisle interval for antique measurements.", "labels": {"in1": "Fahrenheit", "in2": "Delisle"}, "hidden": true}, + {"slug": "fahrenheit-to-reaumur", "name": "Fahrenheit to R\u00e9aumur", "category": "temperature", "type": "standard", "teaser": "Turn Fahrenheit readings into R\u00e9aumur for textile work.", "labels": {"in1": "Fahrenheit", "in2": "R\u00e9aumur"}, "factor": 0.444444444444, "offset": -14.222222222222}, + {"slug": "fahrenheit-to-romer", "name": "Fahrenheit to R\u00f8mer", "category": "temperature", "type": "standard", "teaser": "Convert Fahrenheit into R\u00f8mer for historical thermometer records.", "labels": {"in1": "Fahrenheit", "in2": "R\u00f8mer"}, "factor": 0.291666666667, "offset": -1.833333333333}, + {"slug": "kelvin-to-delisle", "name": "Kelvin to Delisle", "category": "temperature", "type": "standard", "teaser": "Express Kelvin values as Delisle for vintage engineering charts.", "labels": {"in1": "Kelvin", "in2": "Delisle"}, "hidden": true}, + {"slug": "kelvin-to-newton", "name": "Kelvin to Newton (temp Scale)", "category": "temperature", "type": "standard", "teaser": "Turn kelvins into Newton units for scientific correlation.", "labels": {"in1": "Kelvin", "in2": "Newton (temp Scale)"}, "factor": 0.33, "offset": -90.1395}, + {"slug": "kelvin-to-reaumur", "name": "Kelvin to R\u00e9aumur", "category": "temperature", "type": "standard", "teaser": "Translate kelvins into R\u00e9aumur for recipe and historical data.", "labels": {"in1": "Kelvin", "in2": "R\u00e9aumur"}, "factor": 0.8, "offset": -218.52}, + {"slug": "kelvin-to-romer", "name": "Kelvin to R\u00f8mer", "category": "temperature", "type": "standard", "teaser": "Convert Kelvin readings into the R\u00f8mer scale for antique logs.", "labels": {"in1": "Kelvin", "in2": "R\u00f8mer"}, "factor": 0.525, "offset": -135.90375}, + {"slug": "newton-to-celsius", "name": "Newton (temp Scale) to Celsius", "category": "temperature", "type": "standard", "teaser": "Convert Newton degrees directly into Celsius.", "labels": {"in1": "Newton (temp Scale)", "in2": "Celsius"}, "factor": 3.030303030303, "offset": 0.0}, + {"slug": "newton-to-delisle", "name": "Newton (temp Scale) to Delisle", "category": "temperature", "type": "standard", "teaser": "Map Newton readings into Delisle for 18th-century labs.", "labels": {"in1": "Newton (temp Scale)", "in2": "Delisle"}}, + {"slug": "newton-to-kelvin", "name": "Newton (temp Scale) to Kelvin", "category": "temperature", "type": "standard", "teaser": "Express Newton degrees on the Kelvin scale.", "labels": {"in1": "Newton (temp Scale)", "in2": "Kelvin"}, "factor": 3.030303030303, "offset": 273.15}, + {"slug": "newton-to-rankine", "name": "Newton (temp Scale) to Rankine", "category": "temperature", "type": "standard", "teaser": "Convert Newton temps to Rankine for absolute references.", "labels": {"in1": "Newton (temp Scale)", "in2": "Rankine"}, "factor": 5.454545454545, "offset": 491.67}, + {"slug": "newton-to-reaumur", "name": "Newton (temp Scale) to R\u00e9aumur", "category": "temperature", "type": "standard", "teaser": "Turn Newton degrees into R\u00e9aumur measurements.", "labels": {"in1": "Newton (temp Scale)", "in2": "R\u00e9aumur"}, "factor": 2.424242424242, "offset": 0.0}, + {"slug": "newton-to-romer", "name": "Newton (temp Scale) to R\u00f8mer", "category": "temperature", "type": "standard", "teaser": "Translate Newton values into the R\u00f8mer scale for medieval comparisons.", "labels": {"in1": "Newton (temp Scale)", "in2": "R\u00f8mer"}, "factor": 1.590909090909, "offset": 7.5}, + {"slug": "rankine-to-delisle", "name": "Rankine to Delisle", "category": "temperature", "type": "standard", "teaser": "Express Rankine readings back into Delisle degrees.", "labels": {"in1": "Rankine", "in2": "Delisle"}, "hidden": true}, + {"slug": "rankine-to-newton", "name": "Rankine to Newton (temp Scale)", "category": "temperature", "type": "standard", "teaser": "Convert Rankine into Newton's scale for referencing older charts.", "labels": {"in1": "Rankine", "in2": "Newton (temp Scale)"}, "factor": 0.183333333333, "offset": -90.1395}, + {"slug": "rankine-to-reaumur", "name": "Rankine to R\u00e9aumur", "category": "temperature", "type": "standard", "teaser": "Translate Rankine readings into R\u00e9aumur for historical cookbooks.", "labels": {"in1": "Rankine", "in2": "R\u00e9aumur"}, "factor": 0.444444444444, "offset": -218.52}, + {"slug": "rankine-to-romer", "name": "Rankine to R\u00f8mer", "category": "temperature", "type": "standard", "teaser": "Turn Rankine into R\u00f8mer for antique thermometer conversions.", "labels": {"in1": "Rankine", "in2": "R\u00f8mer"}, "factor": 0.291666666667, "offset": -135.90375}, + {"slug": "reaumur-to-delisle", "name": "R\u00e9aumur to Delisle", "category": "temperature", "type": "standard", "teaser": "Convert R\u00e9aumur degrees into Delisle for legacy French schools.", "labels": {"in1": "R\u00e9aumur", "in2": "Delisle"}}, + {"slug": "reaumur-to-fahrenheit", "name": "R\u00e9aumur to Fahrenheit", "category": "temperature", "type": "standard", "teaser": "Turn R\u00e9aumur readings into Fahrenheit for modern cooking.", "labels": {"in1": "R\u00e9aumur", "in2": "Fahrenheit"}, "factor": 2.25, "offset": 32.0}, + {"slug": "reaumur-to-kelvin", "name": "R\u00e9aumur to Kelvin", "category": "temperature", "type": "standard", "teaser": "Express R\u00e9aumur values in Kelvin for scientific clarity.", "labels": {"in1": "R\u00e9aumur", "in2": "Kelvin"}, "factor": 1.25, "offset": 273.15}, + {"slug": "reaumur-to-newton", "name": "R\u00e9aumur to Newton (temp Scale)", "category": "temperature", "type": "standard", "teaser": "Convert R\u00e9aumur readings into Newton for calibration.", "labels": {"in1": "R\u00e9aumur", "in2": "Newton (temp Scale)"}, "factor": 0.4125, "offset": 0.0}, + {"slug": "reaumur-to-rankine", "name": "R\u00e9aumur to Rankine", "category": "temperature", "type": "standard", "teaser": "Translate R\u00e9aumur degrees to Rankine for absolute conversion.", "labels": {"in1": "R\u00e9aumur", "in2": "Rankine"}, "factor": 2.25, "offset": 491.67}, + {"slug": "reaumur-to-romer", "name": "R\u00e9aumur to R\u00f8mer", "category": "temperature", "type": "standard", "teaser": "Turn R\u00e9aumur into R\u00f8mer for historical data comparisons.", "labels": {"in1": "R\u00e9aumur", "in2": "R\u00f8mer"}, "factor": 0.65625, "offset": 7.5}, + {"slug": "romer-to-delisle", "name": "R\u00f8mer to Delisle", "category": "temperature", "type": "standard", "teaser": "Convert R\u00f8mer degrees into Delisle for antique scales.", "labels": {"in1": "R\u00f8mer", "in2": "Delisle"}}, + {"slug": "romer-to-fahrenheit", "name": "R\u00f8mer to Fahrenheit", "category": "temperature", "type": "standard", "teaser": "Translate R\u00f8mer readings into modern Fahrenheit.", "labels": {"in1": "R\u00f8mer", "in2": "Fahrenheit"}, "factor": 3.428571428571, "offset": 6.285714285714}, + {"slug": "romer-to-kelvin", "name": "R\u00f8mer to Kelvin", "category": "temperature", "type": "standard", "teaser": "Express R\u00f8mer degrees on the Kelvin scale.", "labels": {"in1": "R\u00f8mer", "in2": "Kelvin"}, "factor": 1.904761904762, "offset": 258.864285714286}, + {"slug": "romer-to-newton", "name": "R\u00f8mer to Newton (temp Scale)", "category": "temperature", "type": "standard", "teaser": "Convert R\u00f8mer into Newton for vintage comparisons.", "labels": {"in1": "R\u00f8mer", "in2": "Newton (temp Scale)"}, "factor": 0.628571428571, "offset": -4.714285714286}, + {"slug": "romer-to-rankine", "name": "R\u00f8mer to Rankine", "category": "temperature", "type": "standard", "teaser": "Translate R\u00f8mer values into Rankine for absolute references.", "labels": {"in1": "R\u00f8mer", "in2": "Rankine"}, "factor": 3.428571428571, "offset": 465.955714285714}, + {"slug": "romer-to-reaumur", "name": "R\u00f8mer to R\u00e9aumur", "category": "temperature", "type": "standard", "teaser": "Turn R\u00f8mer values into R\u00e9aumur for historical records.", "labels": {"in1": "R\u00f8mer", "in2": "R\u00e9aumur"}, "factor": 1.52380952381, "offset": -11.428571428571}, {"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}, diff --git a/migrate.py b/migrate.py index 522df13..21725c3 100644 --- a/migrate.py +++ b/migrate.py @@ -55,10 +55,12 @@ def split_conversion_name(name): def guess_category(name): name_l = name.lower() + if 'temp scale' in name_l or 'newton (temp' in name_l: + return 'temperature' 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' + if any(x in name_l for x in ['celsius', 'fahrenheit', 'kelvin', 'rankine', 'delisle', 'reaumur', 'réaumur', 'romer', 'rømer']): return 'temperature' if any(x in name_l for x in ['liter', 'gallon', 'cup', 'pint', 'quart', 'fluid', 'milliliter', 'spoon', 'drop']): return 'volume' if any(x in name_l for x in ['acre', 'hectare', 'square']): return 'area' if ' per ' in name_l or 'knot' in name_l or 'mach' in name_l or 'rpm' in name_l: return 'speed' # RPM might be frequency, close enough