Skip to content

Translating English text into International Morse Code and vice versa using JS methods.

Notifications You must be signed in to change notification settings

chhaymatt/morsetranslator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Morse Translator

Matthew Chhay's Morse Translator. Open Live Preview

Preview

Preview of Matthew Chhay's Morse Translator

Table of Contents

Introduction

Translating English text into International Morse Code and vice versa using JS methods.

Features

  • Automatically detects Morse or English text input and translates accordingly
  • Supports basic English punctuation
  • Ability to separate Morse words by | and *
  • Copy to clipboard and clear input buttons
  • English Text to Speech
  • Responsive design and created unit tests

Technologies Used

  • HTML
  • SCSS/CSS
  • JavaScript
  • Jest & Babel

Screenshots

Translating English Text to Morse Translating Morse to English Text Translating English Text to Morse with a different Morse separator

MVP

  • User interface allows user to input English text or Morse code
  • JS functions to translate English text to Morse code and vice versa
  • Morse code handles spaces appropriately
  • Morse code handles some other characters
  • JS is split between data, logic and DOM functions
  • Units tests are developed

Setup

For viewing locally

  1. Git clone this repo git clone git@github.com:chhaymatt/morsetranslator.git
  2. Get Live Server for VS Code
  3. Open index.html and Press Go Live in the bottom right corner in VS Code

For running unit tests

  1. Git clone this repo git clone git@github.com:chhaymatt/morsetranslator.git
  2. Run npm install
  3. Run npm test

For further development

  1. Git clone this repo git clone git@github.com:chhaymatt/morsetranslator.git
  2. Install sass in Terminal npm install -g sass
  3. Get Prettier and Live Server for VS Code (links below)
  4. Run npm install
  5. Run SASS watch command from the /styles folder in Terminal sass --watch --no-source-map style.scss style.css
  6. Open index.html and Press Go Live in the bottom right corner in VS Code

Tools Used

Project Status

Project is ongoing

Room for Improvement

  • Error handling for unsupported characters
  • Morse to Speech

About

Translating English text into International Morse Code and vice versa using JS methods.

Resources

Stars

Watchers

Forks