Perhaps the main oddity is that there is no distinct translation for brackets, thus [ and ( generate the same morse code. Because of how regular expressions work, the longest matching morse character will be pulled off the front of any space-deliniated section that is not itself an entire morse character. But short of some complicated string alignment program exploring all possible boundaries to see which give translations that are in the dictionary, that's the best that can be done. If you lump a bunch of dots and dashes together you'll probably get nothing like what you expected. The forward slash / can be translated to Morse, so please don't use that as a word separater. Right click in the text box, and from Substitutions, un-check Text Replacement. If you are on a Mac, your browser might auto-translate three consecutive periods into an Elipsis character. Apologies for the unprompted lesson on dashes! If an em-dash - manages to find its way in, it will be treated as two consecutive dahs on the assumption that it was inserted by AutoCorrect. _, the hyphen -, and the en-dash – will be treated as dahs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |