Macro-Python-Projects icon indicating copy to clipboard operation
Macro-Python-Projects copied to clipboard

added "Text to Morse Code Converter" project

Open jenyyy4 opened this issue 2 months ago • 0 comments

Description

This PR introduces a command-line Text-to-Morse Code Converter built in Python. It allows users to convert plain text into standardized Morse code directly from the terminal.

Features

  • Converts any text input into Morse code (A–Z, 0–9, and common punctuation)
  • Supports input from text strings or files
  • Handles unknown characters gracefully with a configurable placeholder
  • Option to remove or include / separators between words
  • Simple, dependency-free implementation (no external libraries required)
  • Clean CLI interface using Python’s argparse

To Run:

python3 morse_converter.py --text "Hello World"

Output for "Hello World": .... . .-.. .-.. --- / .-- --- .-. .-.. -..

jenyyy4 avatar Oct 07 '25 21:10 jenyyy4