Variable: morse-code
morse-code is a variable defined in morse.el.gz.
Value
Large value
(("a" . ".-")
("b" . "-...")
("c" . "-.-.")
("d" . "-..")
("e" . ".")
("f" . "..-.")
("g" . "--.")
("h" . "....")
("i" . "..")
("j" . ".---")
("k" . "-.-")
("l" . ".-..")
("m" . "--")
("n" . "-.")
("o" . "---")
("p" . ".--.")
("q" . "--.-")
("r" . ".-.")
("s" . "...")
("t" . "-")
("u" . "..-")
("v" . "...-")
("w" . ".--")
("x" . "-..-")
("y" . "-.--")
("z" . "--..")
("=" . "-...-")
("?" . "..--..")
("/" . "-..-.")
("," . "--..--")
("." . ".-.-.-")
(":" . "---...")
("'" . ".----.")
("-" . "-....-")
("(" . "-.--.-")
(")" . "-.--.-")
("0" . "-----")
("1" . ".----")
("2" . "..---")
("3" . "...--")
("4" . "....-")
("5" . ".....")
("6" . "-....")
("7" . "--...")
("8" . "---..")
("9" . "----.")
("ä" . ".-.-")
("æ" . ".-.-")
("á" . ".--.-")
("å" . ".--.-")
("ß" . ".../...")
("é" . "..-..")
("ñ" . "--.--")
("ö" . "---.")
("ø" . "---.")
("ü" . "..--")
("@" . ".--.-."))
Documentation
Morse code character set.
Source Code
;; Defined in /usr/src/emacs/lisp/play/morse.el.gz
;;; morse.el --- convert text to morse code and back -*- lexical-binding: t -*-
;; Copyright (C) 1995-2024 Free Software Foundation, Inc.
;; Author: Rick Farnbach <rick_farnbach@MENTORG.COM>
;; Keywords: games
;; This file is part of GNU Emacs.
;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;; Convert plain text to Morse code and back with `M-x morse-region' and
;; `M-x unmorse-region'.
;; Convert plain text to NATO spelling alphabet and back with
;; `M-x nato-region' and `M-x denato-region'.
;;; Code:
(defvar morse-code '(("a" . ".-")
("b" . "-...")
("c" . "-.-.")
("d" . "-..")
("e" . ".")
("f" . "..-.")
("g" . "--.")
("h" . "....")
("i" . "..")
("j" . ".---")
("k" . "-.-")
("l" . ".-..")
("m" . "--")
("n" . "-.")
("o" . "---")
("p" . ".--.")
("q" . "--.-")
("r" . ".-.")
("s" . "...")
("t" . "-")
("u" . "..-")
("v" . "...-")
("w" . ".--")
("x" . "-..-")
("y" . "-.--")
("z" . "--..")
;; Punctuation
("=" . "-...-")
("?" . "..--..")
("/" . "-..-.")
("," . "--..--")
("." . ".-.-.-")
(":" . "---...")
("'" . ".----.")
("-" . "-....-")
("(" . "-.--.-")
(")" . "-.--.-")
;; Numbers
("0" . "-----")
("1" . ".----")
("2" . "..---")
("3" . "...--")
("4" . "....-")
("5" . ".....")
("6" . "-....")
("7" . "--...")
("8" . "---..")
("9" . "----.")
;; Non-ASCII
("ä" . ".-.-")
("æ" . ".-.-")
("á" . ".--.-")
("å" . ".--.-")
("ß" . ".../...") ; also ...--..
("é" . "..-..")
("ñ" . "--.--")
("ö" . "---.")
("ø" . "---.")
("ü" . "..--")
;; Recently standardized
("@" . ".--.-."))
"Morse code character set.")