Macro-Python-Projects
Macro-Python-Projects copied to clipboard
added "Text to Morse Code Converter" project
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": .... . .-.. .-.. --- / .-- --- .-. .-.. -..