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. , and asterisk * will be interpreted as dits an ellipsis … will be treated as three dits. ![]() įor English to Morse: A space will be inserted between characters unless there is already something between them if there is only a space, two spaces will be inserted to preserve word separations. One space will be eliminated between each morse character, so this will yield natural looking english.įor example, SOS SINKING should be entered as: ![]() Note: When translating Morse to Text: For best results, each grouping of morse symbols that translates to a letter should be separated with a space, and each word with two spaces. Morse Code Translater Enter text (or morse code) that you would like to translate, and click 'translate' below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |