Code Monkey home page Code Monkey logo

morsejs's People

Contributors

zero298 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

morsejs's Issues

Morse code render can go off screen

There is no limit to where dots and dashes can be rendered within the <svg>. They should wrap to a new line whenever they are about to render off screen. This is from commit e391315018c26c245acced9c64b7a2c82996e23e

Update README to show how to use encoding

Commit 9dfb3cf added the ability to use different encoding types while translating.

For now the expected encoding options are:

  • Padding - The old default style where everything is verbose and enumerated
    • Implementation
    • Documentation
  • DotDash - A more graphical representation that returns a string showing on/off signal
    • Implementation
    • Documentation
  • RLE - Run-length encoded style where on/off signals are compressed
    • Implementation
    • Documentation

Should the SVG and WebAudio be a separate module?

I'm not sure if this is the correct pattern to approach this, but since the main morsejs plugin can run by itself, should the SVG and WebAudio pieces be separated into a different module that can be included and used?

I'm drawing inspiration for this from how less.js moved the cleaning functionality out from the main module and instead has the user include it separately as a plugin with less-plugin-clean-css.

This is an incredible amount of overkill effort considering how small this project is, but the main goal is to play with the different API available for node modules and tools.

Translation text input does not accept spaces

The translation text input does not allow for spaces which the library has support for. This is easy to fix by modifying the pattern attribute on the translationText <input> in the index.html file to allow for spaces in addition to alphanumeric. This is from commit e391315018c26c245acced9c64b7a2c82996e23e

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.