https://github.com/mostafahima/morse-master
A simple Python script that converts text input into Morse code, validating characters and displaying the converted result.
https://github.com/mostafahima/morse-master
python
Last synced: 3 months ago
JSON representation
A simple Python script that converts text input into Morse code, validating characters and displaying the converted result.
- Host: GitHub
- URL: https://github.com/mostafahima/morse-master
- Owner: MostafaHima
- License: gpl-3.0
- Created: 2024-12-03T04:33:07.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-03T04:44:16.000Z (6 months ago)
- Last Synced: 2024-12-28T16:50:02.950Z (5 months ago)
- Topics: python
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Morse Code Converter
This is a simple Python script that converts any text input into Morse code. The script allows users to input text, checks for valid characters that can be converted into Morse code, and outputs the result.
## Features
- Converts English letters (A-Z) and numbers (0-9) into Morse code.
- Supports common punctuation marks such as `.` `,` `!` `@` `/` and others.
- Handles invalid characters by listing them separately.## How to Use
1. Run the script in your Python environment.
2. Enter any text when prompted.
3. The script will:
- Output the equivalent Morse code for valid characters.
- Notify you of any invalid characters that cannot be converted.## Example
### Input:
- Write your text here without spaces: Hello, World!
### Output:
- Morse Code Translation: •••• • •-•• •-•• --- --..-- .-- --- •-• •-•• -•• -.-.--## Supported Characters
- **Letters**: A-Z (case-insensitive)
- **Numbers**: 0-9
- **Punctuation**: `. , ! @ / & ( ) + = " : '`## Notes
- Characters not found in the Morse code dictionary are treated as invalid and listed in the output.
- The script is fully customizable and can be extended to include more symbols.