Metrication di DeltaMikeCharlie
Helps users of the metric system by converting and replacing Imperial and US units of measure with metric (SI) units directly within a web page. A hotspot will popup with the original value, conversion workings and potential ambiguities.
Devi utilizzare Firefox per poter installare questa estensione
Metadati estensione
Screenshot
Informazioni sull’estensione
Metrication is an add-on for Firefox that identifies Imperial/US customary units and converts them to appropriate metric units.
When an Imperial/US unit is identified, Metrication hides it and inserts an appropriate metric value and unit so that the document reads as if it were originally written for a metric audience.
The replacement metric value and unit are embedded within a hotspot that will popup a small window containing: 1) the original text; 2) the working involved in the conversion to a higher number of decimal places; and 3) any other conversions that may have been possible due to cultural or other ambiguities.
If the user deems the default conversion to be inappropriate, a popup menu will also allow the selection of an alternate conversion or reversion to the original text.
The Metrication add-on attempts to provide "appropriate metric units" by varying the output unit on the scale of the output value and not be fixed to the input unit. For example, "40 miles" will be represented as "64.4 kilometres" whereas "⅛ miles" will be represented as "201 metres". This scaling can also be limited so that values like "30,000 feet" will be represented as "9,144 metres" in line with convention.
Scaling is also applied to decimal places as output values increase. As previously stated, "40 miles" will be represented as "64.4 kilometres" however, "200 miles" will be represented as "322 kilometres" and not as "321.868 kilometres".
The Metrication add-on will detect both full unit names like "feet" and abbreviated unit names like "ft". The add-on will use full names or abbreviated names in its output depending upon which is detected in the input. For example: "40 mi." will be converted to "64.4 km.". This can lead to some false positives: for example, the abbreviation for "font point size" is "pt" however, this could also be seen as an attempt to abbreviate "pint". The popup will explain the conversion used and hopefully the context will reveal that there is no such text size as "5.7 l" (litres).
The Metrication add-on recognises fractions in two distinct ways: 1) Unicode characters expressing fractions, for example "⅘" is Unicode character 8536 (decimal, 2158 in hexadecimal); and 2) textual representation of fractions using numerals, spaces and slashes, for example "4 1/2". There are also Unicode representations of superscript and subscript numerals, for example "⁶" (Unicode 8310 decimal) and "₆" (Unicode 8326 decimal) that are interpreted as numerators and denominators accordingly when separated by a slash.
Ambiguity may arise as the unit "Gallon" may actually refer the traditional gallon used within the United Kingdom (and formerly some commonwealth nations), sometimes referred to as the "Imperial Gallon" or the "U.S. Gallon" as used in the United States. The Metrication add-on attempts to resolve cultural ambiguity by detecting the language of the webpage in 3 ways: 1) the explicit language defined in the web page, for example "<html lang="en-GB">"; 2) the implied language derived from the domain name, for example "domain.co.uk"; and 3) the presence of English/US spelling variants such as "neighbour" and "neighbor" on the web page. As none of these methods are 100% reliable, the Metrication add-on will assume "U.S." variants where none of the above methods are definitive.
Ambiguity may also arise as the unit "ounce" may actually refer to the unit of mass or as shorthand for "fluid ounce" where context could be used to determine which one was meant. Consider the sentence "add 2 ounces of sugar to 20 ounces of lemon juice": from the context, a human reader would understand that as "lemon juice" is a liquid, "fluid ounces" is the most likely unit to apply. When encountering "ounces" the Metrication add-on will always convert based on mass, however, it will provide an alternate volume conversion in the popup. When encountering "fluid ounces", however, the Metrication add-on will always convert to volume only.
The Metrication add-on can also cater for what it refers to as "compound values". A "compound value" is a value such as "5 feet 11¾ inches" containing 2 sub-values of independent sub-units. Both feet and inches are valid individual units that could be converted to metres and centimetres independently, but would make little sense in a metric context. Instead, the above example is taken as a single value that is converted to "1.8 metres". The Metrication add-on will show its working as " (5 feet = 1.524 metres) + (11.75 inches = 0.29845 metres) = 1.82245 metres".
The Metrication add-on also caters for what it refers to as "compound units". A "compound unit" is a single value that references multiple sub-units, for example "21 miles per gallon". There is a single value "21" but the unit that it refers to is comprised of 2 sub-units, "miles" and "gallons". A simple conversion would yield a non-sensical phrase like "33.8 kilometres per gallon". The Metrication add on can recognise compound units and provide a more appropriate "11.2 litres/100 kilometres" as the output value.
When an Imperial/US unit is identified, Metrication hides it and inserts an appropriate metric value and unit so that the document reads as if it were originally written for a metric audience.
The replacement metric value and unit are embedded within a hotspot that will popup a small window containing: 1) the original text; 2) the working involved in the conversion to a higher number of decimal places; and 3) any other conversions that may have been possible due to cultural or other ambiguities.
If the user deems the default conversion to be inappropriate, a popup menu will also allow the selection of an alternate conversion or reversion to the original text.
The Metrication add-on attempts to provide "appropriate metric units" by varying the output unit on the scale of the output value and not be fixed to the input unit. For example, "40 miles" will be represented as "64.4 kilometres" whereas "⅛ miles" will be represented as "201 metres". This scaling can also be limited so that values like "30,000 feet" will be represented as "9,144 metres" in line with convention.
Scaling is also applied to decimal places as output values increase. As previously stated, "40 miles" will be represented as "64.4 kilometres" however, "200 miles" will be represented as "322 kilometres" and not as "321.868 kilometres".
The Metrication add-on will detect both full unit names like "feet" and abbreviated unit names like "ft". The add-on will use full names or abbreviated names in its output depending upon which is detected in the input. For example: "40 mi." will be converted to "64.4 km.". This can lead to some false positives: for example, the abbreviation for "font point size" is "pt" however, this could also be seen as an attempt to abbreviate "pint". The popup will explain the conversion used and hopefully the context will reveal that there is no such text size as "5.7 l" (litres).
The Metrication add-on recognises fractions in two distinct ways: 1) Unicode characters expressing fractions, for example "⅘" is Unicode character 8536 (decimal, 2158 in hexadecimal); and 2) textual representation of fractions using numerals, spaces and slashes, for example "4 1/2". There are also Unicode representations of superscript and subscript numerals, for example "⁶" (Unicode 8310 decimal) and "₆" (Unicode 8326 decimal) that are interpreted as numerators and denominators accordingly when separated by a slash.
Ambiguity may arise as the unit "Gallon" may actually refer the traditional gallon used within the United Kingdom (and formerly some commonwealth nations), sometimes referred to as the "Imperial Gallon" or the "U.S. Gallon" as used in the United States. The Metrication add-on attempts to resolve cultural ambiguity by detecting the language of the webpage in 3 ways: 1) the explicit language defined in the web page, for example "<html lang="en-GB">"; 2) the implied language derived from the domain name, for example "domain.co.uk"; and 3) the presence of English/US spelling variants such as "neighbour" and "neighbor" on the web page. As none of these methods are 100% reliable, the Metrication add-on will assume "U.S." variants where none of the above methods are definitive.
Ambiguity may also arise as the unit "ounce" may actually refer to the unit of mass or as shorthand for "fluid ounce" where context could be used to determine which one was meant. Consider the sentence "add 2 ounces of sugar to 20 ounces of lemon juice": from the context, a human reader would understand that as "lemon juice" is a liquid, "fluid ounces" is the most likely unit to apply. When encountering "ounces" the Metrication add-on will always convert based on mass, however, it will provide an alternate volume conversion in the popup. When encountering "fluid ounces", however, the Metrication add-on will always convert to volume only.
The Metrication add-on can also cater for what it refers to as "compound values". A "compound value" is a value such as "5 feet 11¾ inches" containing 2 sub-values of independent sub-units. Both feet and inches are valid individual units that could be converted to metres and centimetres independently, but would make little sense in a metric context. Instead, the above example is taken as a single value that is converted to "1.8 metres". The Metrication add-on will show its working as " (5 feet = 1.524 metres) + (11.75 inches = 0.29845 metres) = 1.82245 metres".
The Metrication add-on also caters for what it refers to as "compound units". A "compound unit" is a single value that references multiple sub-units, for example "21 miles per gallon". There is a single value "21" but the unit that it refers to is comprised of 2 sub-units, "miles" and "gallons". A simple conversion would yield a non-sensical phrase like "33.8 kilometres per gallon". The Metrication add on can recognise compound units and provide a more appropriate "11.2 litres/100 kilometres" as the output value.
Commenti dello sviluppatore
First version supports the following Imperial units: miles (per/to the) gallon; mpg/m.p.g; ton, us tons, short tons, uk tons, gb tons, imperial tons, long tons; pounds & ounces; pounds; stones and pounds; stones; lb; ounces; oz; fluid ounces, us fluid ounces, imperial fluid ounces, uk fluid ounces, gb fluid ounces; pint; pt; gallon, us gallon, uk gallon, gb gallon, imperial gallon; gal; quart, imperial quart, us quart; feet and inches; ft & in, ' & "; feet; ft, '; yards; yd; inches; in, "; miles, statute miles; mph / m.p.h; mi; nautical miles; nm, nmi; degrees Fahrenheit, degrees farenheit (sic); degrees f; ° fahrenheit, ° farenheit (sic); °f; calories; acres; square miles; square yards; square feet; ft², sq. ft., sqft; squares; pounds per square inch, pound-force per square inch; psi, p.s.i; cubic feet.
Valuta la tua esperienza utente
PermessiUlteriori informazioni
Questo componente aggiuntivo necessita di:
- Salvare dati negli appunti
- Accedere alle schede
- Accedere ai dati di tutti i siti web
Ulteriori informazioni
- Link componente aggiuntivo
- Versione
- 0.0.7
- Dimensione
- 140,13 kB
- Ultimo aggiornamento
- 6 anni fa (27 apr 2019)
- Categorie correlate
- Licenza
- Metrication Browser Extension - Plain English licencing statement
- Cronologia versioni
Aggiungi alla raccolta
Note di versione per la versione 0.0.7
* Add computer-generated translation for Slovak (sk-Slovenský).
* Add computer-generated translation for Polish (pl-Polskie).
* Internal change to disable console logging for releases but enable logging for development.
* Add the ability to process conversions within iframes. Disabled by default.
* Add ability to edit 'General Options' from the options page.
* Fix bug where clicking on the converted units would potentially display the wrong workings.
* Fix bug when setting rounding decimal places for languages that do not use "." as a decimal seperator.
* Fix bug in 'Conversion Selection' where invalid units were found after using 'Original Text' option.
* Replace inline 'onClick' with event listeners.
* Add various abbreviations for inches using alternate unicode double quote characters and multiple single quote characters.
* Add various abbreviations for feet using alternate unicode single quote characters.
* Add "sq ft" as well as "sqft".
* Add variations on 'fl oz', 'fl-oz' etc.
* Add 'qt' for abbreviated quarts.
* Add 'troy ounce'.
* Add abbreviation 'cp' for 'cup'.
* Add abbreviated yards with no space, eg: '2yd'.
* Add 'troy ounces'.
* Add option in splitter to add a space between the value and the unit. Eg: '1oz' and '1 oz' both convert to '28.3 g'.
* Add computer-generated translation for Polish (pl-Polskie).
* Internal change to disable console logging for releases but enable logging for development.
* Add the ability to process conversions within iframes. Disabled by default.
* Add ability to edit 'General Options' from the options page.
* Fix bug where clicking on the converted units would potentially display the wrong workings.
* Fix bug when setting rounding decimal places for languages that do not use "." as a decimal seperator.
* Fix bug in 'Conversion Selection' where invalid units were found after using 'Original Text' option.
* Replace inline 'onClick' with event listeners.
* Add various abbreviations for inches using alternate unicode double quote characters and multiple single quote characters.
* Add various abbreviations for feet using alternate unicode single quote characters.
* Add "sq ft" as well as "sqft".
* Add variations on 'fl oz', 'fl-oz' etc.
* Add 'qt' for abbreviated quarts.
* Add 'troy ounce'.
* Add abbreviation 'cp' for 'cup'.
* Add abbreviated yards with no space, eg: '2yd'.
* Add 'troy ounces'.
* Add option in splitter to add a space between the value and the unit. Eg: '1oz' and '1 oz' both convert to '28.3 g'.
Altre estensioni di DeltaMikeCharlie
- Non ci sono ancora valutazioni
- Non ci sono ancora valutazioni
- Non ci sono ancora valutazioni
- Non ci sono ancora valutazioni
- Non ci sono ancora valutazioni
- Non ci sono ancora valutazioni