Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement translator.py - Braille Translator (Convert braille to engl… #3020

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

harneetkn
Copy link

@harneetkn harneetkn commented Oct 4, 2024

Implemented braille to english & english to braille translator in python. This program uses dictionaries to map braille characters with english characters. It then checks whether the argument string is in braille or english (to know what to convert it onto). If the input is braille, the program breaks the string into 6 character chunks (since every braille is a string of 6 characters to represent a matrix), and then looks at each chunk of 6 characters as one braille characters. Based on the braille character it reads, it convert the current character to english, also is capable of detecting capital letters and numbers, spaces, and other punctuation. English to Braille logic is similarly implemented in reverse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants