Skip to content

Instantly share code, notes, and snippets.

@moritztim
Last active June 3, 2022 06:22
Show Gist options
  • Save moritztim/d245083c41fd77cd47fe9b79bff219c2 to your computer and use it in GitHub Desktop.
Save moritztim/d245083c41fd77cd47fe9b79bff219c2 to your computer and use it in GitHub Desktop.
A File Format for storing Morse Code that took me way too long to write down,

Compliant Version (.mor for morse)

Rules:

  • sticks to the original standard:
    • one - is as long as 3 .'s.
    • there is a pause of 1 .'s between symbols of a letter.
    • there is a pause of 3 .'s between letters of a word.
    • there is a pause of 7 .'s between words.

Example:

Bytes		10001110101011100010111000111011100010111011101000101110101000100000001010111010001010001011101010001
0= , 1=.	.   ... . . ...   . ...   ... ...   . ... ... .   . ... . .   .       . . ... .   . .   . ... . .   .
..=⸺	  	.   ⸻ . . ⸻   . ⸻   ⸻ ⸻   . ⸻ ⸻ .   . ⸻ . .   .       . . ⸻ .   . .   . ⸻ . .   .
letters		e        x          a        m           p            l       e           f        i        l       e
uncentered	e   x   a   m   p   l   e       f   i   l   e

Compressed Version (.mrc for morse compressed)

Rules:

  • tightens the standards of duration:
    • one - is as long as 2 .'s.
    • there is a pause of 1 . between symbols of a letter.
    • there is a pause of 2 .'s between letters of a word.
    • there is a pause of 3 .'s between words.

Example:

Bytes		100110101011001011001101100101101101001011010100100010101101001010010110101001
0= , 1=.	.  .. . . ..  . ..  .. ..  . .. .. .  . .. . .  .   . . .. .  . .  . .. . .  .
..=⸺	  	.  ⸺ . . ⸺  . ⸺  ⸺ ⸺  . ⸺ ⸺ .  . ⸺ . .  .   . . ⸺ .  . .  . ⸺ . .  .
letters		e      x       a      m        p         l      e      f       i      l      e
uncentered	e x a m p l e  f i l e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment