Coder Social home page Coder Social logo

pybrl's Introduction

pybrl ⠏⠽⠃⠗⠇

Braille (6-dot cell patterns) for Python

Grade 1

import pybrl

print pybrl.braille("braille for python is cool!") -> "⠃⠗⠁⠊⠇⠇⠑⠀⠋⠕⠗⠀⠏⠽⠞⠓⠕⠝⠀⠊⠎⠀⠉⠕⠕⠇⠮"

print pybrl.ascii("⠃⠗⠁⠊⠇⠇⠑⠀⠋⠕⠗⠀⠏⠽⠞⠓⠕⠝⠀⠊⠎⠀⠉⠕⠕⠇⠮") -> "braille for python is cool!"

Conversions

  • braille to ascii
  • braille to hex
  • braille to dot
  • braille to matrix
  • ascii to braille
  • hex to braille
  • dot to braille
  • matrix to braille

Contradictions (Grade 2)

TODO!

Symbols mappings

CSV file, that hold basic mapping between Braille symbols, ascii, hex, unicode, dot, matrix, words, meanings and decodings data.

https://github.com/markomanninen/pybrl/blob/master/braille_mappings.csv

IPython notebook demo

https://github.com/markomanninen/pybrl/blob/master/Braille%20for%20Python%20(pybrl).ipynb

Sources:

https://en.wikipedia.org/wiki/Braille https://en.wikipedia.org/wiki/Braille_ASCII https://en.wikipedia.org/wiki/Braille_Patterns

http://www.brailleauthority.org/literary/ebae2002.pdf http://www.brailleauthority.org/ueb/symbols_list.pdf http://www.htctu.fhda.edu/trainings/manuals/alt/grade_two_day_2.pdf

The MIT License (MIT)

Copyright (c) 2015 Marko Manninen

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.