Skip to main content

Overview

This reference table contains all character-to-Morse code mappings used by MorseIt. The mappings are extracted directly from the translateToMorse() method in MainActivity.java.

Alphabet Characters

Letters A-Z

MorseIt supports both uppercase and lowercase letters, which map to identical Morse code sequences.
CharacterMorse CodeCharacterMorse Code
A / a.-N / n-.
B / b-...O / o---
C / c-.-.P / p.--.
D / d-..Q / q--.-
E / e.R / r.-.
F / f..-.S / s...
G / g--.T / t-
H / h....U / u..-
I / i..V / v...-
J / j.---W / w.--
K / k-.-X / x-..-
L / l.-..Y / y-.--
M / m--Z / z--..
Case-insensitive: Both ‘A’ and ‘a’ translate to the same Morse code pattern.

Numeric Characters

Digits 0-9

All ten digits are supported with standard International Morse Code patterns.
DigitMorse CodePattern Description
0-----Five dashes
1.----One dot, four dashes
2..---Two dots, three dashes
3...--Three dots, two dashes
4....-Four dots, one dash
5.....Five dots
6-....One dash, four dots
7--...Two dashes, three dots
8---..Three dashes, two dots
9----.Four dashes, one dot

Punctuation Marks

MorseIt supports four punctuation characters:
CharacterNameMorse Code
.Period/Full stop.-.-.-
,Comma--..--
?Question mark..--..
=Equals sign-...-

Source Code Mapping

The character mappings are defined in MainActivity.java:66-131:

Unsupported Characters

Any character not in the mapping table will be passed through unchanged in the output.
Unsupported characters include:
  • Most special symbols (!, @, #, $, %, etc.)
  • Spaces (passed through as spaces)
  • Accented letters (é, ñ, ü, etc.)
  • Non-Latin scripts

Fallback Behavior

When an unsupported character is encountered:
String fetchedChar = map.get(upperChar);
if (fetchedChar != null) {
    morse_code.append(map.get(upperChar));  // Supported: add Morse code
} else {
    morse_code.append(input_field_text.charAt(i));  // Unsupported: keep original
}

Character Statistics

CategoryCountCharacters
Uppercase Letters26A-Z
Lowercase Letters26a-z
Digits100-9
Punctuation4. , ? =
Total Mappings66-
The HashMap contains 88 total entries due to duplicate mappings for uppercase and lowercase letters.

International Morse Code Compliance

All character mappings in MorseIt follow the International Morse Code (ITU-R M.1677-1) standard for letters and digits. The punctuation marks also follow standard conventions.

Quick Reference by Pattern Length

Build docs developers (and LLMs) love