I’m trying to script a sentence in morse code. The output I want is a line segment in dash and dots following the rules of Morse code.
- The length of a dot is 1 time unit.
- A dash is 3 time units.
- The space between symbols (dots and dashes) of the same letter is 1 time unit.
- The space between letters is 3 time units.
- The space between words is 7 time units.
Basically, I want to apply this to a curve and obtain the curve segmented according to morse code.
‘the quick brown fox’ in morse code is " - … . --.- …- … -.-. -.- -… .-. — .-- -. …-. — -…-"
I want to apply this to a curve and get this in segments.
I hope I have explained the problem. I know it’s a bit geeky, But anyone with suggestions to resolve this would be great.