GithubHelp home page GithubHelp logo

thenizo / morsecode Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 36 KB

A simple program that is able to read and write files in a binary morse-code format.

License: GNU General Public License v3.0

Java 100.00%

morsecode's Introduction

(abandoned until further notice)

What is it?

This is a program that can read and write files in a binary morse code format that's currently run via a terminal. It's also able to convert text to morse code and backwards.

But why?

The intention was to create an even smaller format to store simple text with a limited character set. No fancy characters, no emojis (imo who needs them anyway), you get the idea. The files should be able to give text in the smallest format possible.

The morse code format

What doesn't work great

It's a binary format. One idea to do it is to say 1 equals beep, 0 equals pause, so 1 is dot, 11 is dash, 0 is space between characters, 00 is space between words. I found out that this is actually longer than the solution I took.

What I did

We need to resemble dots, dashes and pauses. Pauses were split into spaces between characters and spaces between words. That gets us:

Characters Binary
Dot 00
Dash 01
Character space 10
Word space 11

Next steps

The next step would be to make a gui for it.

I'm pretty sure it can be ported to a script (it has only one class), but I can't write scripts as of now.

morsecode's People

Contributors

thenizo avatar

Stargazers

 avatar

Watchers

 avatar

morsecode's Issues

(German) umlauts are not converted

Umlauts are not handled, eg. ร„ should become AE, but those characters are left out instead

Morse code doesn't support umlauts, that's why they have to be converted like this. if someone wants to add other characters, please write which characters and how to resemble them, like I did with the example.

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.