Last active
October 27, 2021 09:58
-
-
Save mingtsay/9a7a92a3c201b4c26f22 to your computer and use it in GitHub Desktop.
NATO phonetic alphabet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ch2nato(ch) { | |
switch (ch.toLowerCase()) { | |
case "a": return "ALPHA"; | |
case "b": return "BRAVO"; | |
case "c": return "CHARLIE"; | |
case "d": return "DELTA"; | |
case "e": return "ECHO"; | |
case "f": return "FOXTROT"; | |
case "g": return "GOLF"; | |
case "h": return "HOTEL"; | |
case "i": return "INDIA"; | |
case "j": return "JULIET"; | |
case "k": return "KILO"; | |
case "l": return "LIMA"; | |
case "m": return "MIKE"; | |
case "n": return "NOVEMBER"; | |
case "o": return "OSCAR"; | |
case "p": return "PAPA"; | |
case "q": return "QUEBEC"; | |
case "r": return "ROMEO"; | |
case "s": return "SIERRA"; | |
case "t": return "TANGO"; | |
case "u": return "UNIFORM"; | |
case "v": return "VICTOR"; | |
case "w": return "WHISKEY"; | |
case "x": return "RAY"; | |
case "y": return "YANKEE"; | |
case "z": return "ZULU"; | |
} | |
return null; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"a":"ALPHA","b":"BRAVO","c":"CHARLIE","d":"DELTA","e":"ECHO","f":"FOXTROT","g":"GOLF","h":"HOTEL","i":"INDIA","j":"JULIET","k":"KILO","l":"LIMA","m":"MIKE","n":"NOVEMBER","o":"OSCAR","p":"PAPA","q":"QUEBEC","r":"ROMEO","s":"SIERRA","t":"TANGO","u":"UNIFORM","v":"VICTOR","w":"WHISKEY","x":"X","y":"YANKEE","z":"ZULU"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<natos> | |
<nato><alphabet>a</alphabet><phonetic>ALPHA</phonetic></nato> | |
<nato><alphabet>b</alphabet><phonetic>BRAVO</phonetic></nato> | |
<nato><alphabet>c</alphabet><phonetic>CHARLIE</phonetic></nato> | |
<nato><alphabet>d</alphabet><phonetic>DELTA</phonetic></nato> | |
<nato><alphabet>e</alphabet><phonetic>ECHO</phonetic></nato> | |
<nato><alphabet>f</alphabet><phonetic>FOXTROT</phonetic></nato> | |
<nato><alphabet>g</alphabet><phonetic>GOLF</phonetic></nato> | |
<nato><alphabet>h</alphabet><phonetic>HOTEL</phonetic></nato> | |
<nato><alphabet>i</alphabet><phonetic>INDIA</phonetic></nato> | |
<nato><alphabet>j</alphabet><phonetic>JULIET</phonetic></nato> | |
<nato><alphabet>k</alphabet><phonetic>KILO</phonetic></nato> | |
<nato><alphabet>l</alphabet><phonetic>LIMA</phonetic></nato> | |
<nato><alphabet>m</alphabet><phonetic>MIKE</phonetic></nato> | |
<nato><alphabet>n</alphabet><phonetic>NOVEMBER</phonetic></nato> | |
<nato><alphabet>o</alphabet><phonetic>OSCAR</phonetic></nato> | |
<nato><alphabet>p</alphabet><phonetic>PAPA</phonetic></nato> | |
<nato><alphabet>q</alphabet><phonetic>QUEBEC</phonetic></nato> | |
<nato><alphabet>r</alphabet><phonetic>ROMEO</phonetic></nato> | |
<nato><alphabet>s</alphabet><phonetic>SIERRA</phonetic></nato> | |
<nato><alphabet>t</alphabet><phonetic>TANGO</phonetic></nato> | |
<nato><alphabet>u</alphabet><phonetic>UNIFORM</phonetic></nato> | |
<nato><alphabet>v</alphabet><phonetic>VICTOR</phonetic></nato> | |
<nato><alphabet>w</alphabet><phonetic>WHISKEY</phonetic></nato> | |
<nato><alphabet>x</alphabet><phonetic>X-RAY</phonetic></nato> | |
<nato><alphabet>y</alphabet><phonetic>YANKEE</phonetic></nato> | |
<nato><alphabet>z</alphabet><phonetic>ZULU</phonetic></nato> | |
</natos> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment