Skip to content

Add real-time Braille translation to TestingWidget.py with portable self-contained custom_table.tbl #18

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

AviraL0013
Copy link

Pull Request: Custom Braille Table & Real-Time Translation

Following Liblouis documentation, I built a self-contained custom_table.tbl (~1500 lines) by consolidating rules for character definitions, computer Braille, literary digits, patterns, and emphasis, removing include statements and absolute paths for portability. This resolved Cannot resolve table errors. I upgraded TestingWidget.py by fixing UTF-16 encoding bugs (using UTF-8 input_bytes), eliminating LOUIS_TABLEPATH, and enabling real-time text-to-Braille translation via textChanged signal (e.g., hi → ⠓⠊). The widget optimizes temp file handling, uses louis.checkTable to debug compilation errors, and removes tempCodeRunnerFile.py to fix mode 2 issues. Tested with CLI (lou_checktable, lou_translate) and app, ensuring portability and reliability.

Demo.of.what.I.have.implemented.mp4

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

Successfully merging this pull request may close these issues.

1 participant