/ Published in: ASP
URL: http://reusablecode.blogspot.com/2009/02/phonetic-alphabet.html
Converts individual characters to their corresponding pronunciation in the internationally-standardized phonetic alphabet.
Expand |
Embed | Plain Text
<% ' Copyright (c) 2009, reusablecode.blogspot.com; some rights reserved. ' ' This work is licensed under the Creative Commons Attribution License. To view ' a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or ' send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California ' 94305, USA. ' Convert letters and numbers to corresponding NATO phonetic alphabet code words. function phonetic(char) select case lcase(cstr(char)) case "a" phonetic = "alfa" case "b" phonetic = "bravo" case "c" phonetic = "charlie" case "d" phonetic = "delta" case "e" phonetic = "echo" case "f" phonetic = "foxtrot" case "g" phonetic = "golf" case "h" phonetic = "hotel" case "i" phonetic = "india" case "j" phonetic = "juliett" case "k" phonetic = "kilo" case "l" phonetic = "lima" case "m" phonetic = "mike" case "n" phonetic = "november" case "o" phonetic = "oscar" case "p" phonetic = "papa" case "q" phonetic = "quebec" case "r" phonetic = "romeo" case "s" phonetic = "sierra" case "t" phonetic = "tango" case "u" phonetic = "uniform" case "v" phonetic = "victor" case "w" phonetic = "whiskey" case "x" phonetic = "x-ray" case "y" phonetic = "yankee" case "z" phonetic = "zulu" case "0" phonetic = "zero" case "1" phonetic = "one" case "2" phonetic = "two" case "3" phonetic = "three" case "4" phonetic = "four" case "5" phonetic = "five" case "6" phonetic = "six" case "7" phonetic = "seven" case "8" phonetic = "eight" case "9" phonetic = "niner" end select end function %>
You need to login to post a comment.
