microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
110.95k stars 6.53k forks source link

[PT Run Unit Conversion] Add support for 'nmi' #24978

Open labtec901 opened 1 year ago

labtec901 commented 1 year ago

Description of the new feature / enhancement

Add support to nautical miles using the "nmi" symbol to the unit convertor plugin within PT Run.

There is no single internationally agreed symbol, with several symbols in use.[1]

M is used as the abbreviation for the nautical mile by the International Hydrographic Organization.[4] NM is used by the International Civil Aviation Organization.[5][6] nmi is used by the Institute of Electrical and Electronics Engineers[7] and the United States Government Publishing Office.[8] nm is a non-standard abbreviation used in many maritime applications and texts, including U.S. Government Coast Pilots and Sailing Directions.[9] It conflicts with the SI symbol for nanometre.

while nm conflicts with the SI system and should be reserved for nanometer, nmi is not otherwise used and not easily confused with another unit.

Scenario when this would be used?

Conversion between nautical miles and other units of length.

Supporting information

No response

stefansjfw commented 1 year ago

PowerToys run already supports nautical miles:

image

So I guess this is only about supporting the nmi abbreviation? /needinfo

labtec901 commented 1 year ago

That is correct. Just adding the nmi abbreviation.

There are 4 main ways of specifying nautical miles as listed above:

My proposal is to add nmi as it is a very common symbol for nautical mile which does not reasonably conflict with any other unit.

PapisKang commented 1 year ago

Hi I m new over here and i am really interested in adding this feature

degant commented 1 year ago

@labtec901 I think you need to raise the issue here instead: https://github.com/angularsen/UnitsNet/blob/master/Common/UnitDefinitions/Length.json#L169