Skip to main content

A complete and extensible Unicode Braille processing library.

Project description

📘 BrailleBase — Internal Architecture Overview (EN) BrailleBase is organized into numbered functional groups, each responsible for a specific part of the internal logic. This modular structure improves readability, maintainability, scalability, and multilingual documentation. Below is the official description of each group.

Braille is a tactile writing system composed of raised dots arranged in a 6‑dot cell (2 columns × 3 rows). Each combination of dots represents letters, numbers, punctuation marks, or special symbols. It was created by Louis Braille in 1824, when he was only 15 years old. https://en.wikipedia.org/wiki/Braille

📚 Purpose According to the sources, Braille is a complete writing system, not merely a code for the visual alphabet. It enables: • reading on embossed paper • reading on electronic braille displays • writing with slate and stylus • writing with braille typewriters or computers connected to braille embossers https://en.wikipedia.org/wiki/Braille

🧠 Origin and History (summary)

📌 Observation Note We are continuously working to improve our application. Version 0.0.5 is already capable of handling text that contains numbers, as long as those characters are properly registered in the system. We are currently updating and expanding our documentation to make the usage of the library clearer. In version 0.1.0, known issues — such as map keys longer than two characters — will have been fully resolved. For questions, suggestions, or issue reports, please reach out through the GitHub Issues section. Your feedback is essential to help us improve this project.

0001 Registry → registers letters and braille mappings 0002 Translate → converts text into braille and indices 0003 Mapping → maps braille ↔ indices 0004 Tables → provides fixed internal tables 0005 Output → exports processed data

🧩 0001 — Registry group Manages the internal registry of characters and their associated braille mappings. Main functions

  • append_braille_letter Registers a letter and its braille list. Overwrites the mapping if the letter already exists.
  • get_brailles_with_letter Returns the braille list associated with a registered letter.
  • has_letter Checks whether a letter is registered.
  • remove_letter Removes a letter from the internal registry. Group responsibility This group acts as the class’s internal database. No translation happens without going through this registry.

🔤 0002 — Translate group Responsible for converting text into braille and then into numeric indices. Main functions

  • translate_text_to_braille Converts each character into one or more braille cells. Includes number preprocessing (⠼).
  • translate_text_to_index Converts a list of braille symbols into a list of indices (0–63). Group responsibility This is the core translation engine. All text passes through this group before being exported or processed further.

🔁 0003 — Mapping group Provides direct mappings between:

  • braille → index
  • list of braille symbols → list of indices Main functions
  • get_braille_to_index Returns the Unicode braille index (U+2800–U+283F).
  • get_braille_list_to_index_list Converts an entire list of braille symbols into indices. Group responsibility This is the mathematical core of the library. No numeric conversion happens outside this group.

📚 0004 — Tables group Contains fixed internal tables used as reference structures. Main functions

  • braille_list Returns the full list of 64 Unicode braille symbols.
  • get_binary_list Returns 64 arrays of 6 bits (binary representation of braille).
  • get_binary_string_list Returns 64 binary strings of 6 bits. Group responsibility Provides base structures for conversions, validation, and output formatting.

📤 0005 — Output group Responsible for formatting and exporting processed data. Main functions

  • output_all_json Exports text, braille, and indices in JSON format. Group responsibility This is the final layer of the library. Everything that leaves BrailleBase goes through this group.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

braillebase-0.0.7.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

braillebase-0.0.7-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file braillebase-0.0.7.tar.gz.

File metadata

  • Download URL: braillebase-0.0.7.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for braillebase-0.0.7.tar.gz
Algorithm Hash digest
SHA256 da9425bb3d02ac2719721797a9c9ba2866e04950d6bf5a865e6e0680a05db945
MD5 9afd311a2295ea05e9d20bfa227e0c6e
BLAKE2b-256 cf52ead5aa0b85be2de380b43cf4a5170a758982f0409b63ed7f721fcc27c29e

See more details on using hashes here.

File details

Details for the file braillebase-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: braillebase-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for braillebase-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d66829b27511f659d46b3e9c2bcfff3133b16f91f5de6d3f31aeca02589d005c
MD5 ad83662f4b78aa1b6ecff85096421bfe
BLAKE2b-256 f3bbfdc8f539ab15d375f1bd6744b2bd0839f5e0bf2fb398ba9b74e3faa2644d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page