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.
📌 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file braillebase-0.0.5.tar.gz.
File metadata
- Download URL: braillebase-0.0.5.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b2ec6098473c173f03aab456051dc06e228eb77472374955cd915f294528db4
|
|
| MD5 |
b3ace7414f5ef9945cda9ed00c526480
|
|
| BLAKE2b-256 |
6a479994380831a9a637c04d460177c2e6a7f3f081ed007b4480ea706a021a01
|
File details
Details for the file braillebase-0.0.5-py3-none-any.whl.
File metadata
- Download URL: braillebase-0.0.5-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9922b9047ad34baab2422860eb083be9d61a1d8a56f24f957d06242faf6c193
|
|
| MD5 |
60e17d4c68ce88b684fbece5c4f4d0f8
|
|
| BLAKE2b-256 |
cefffae3c1e215989ac96c35f603d6e3672b3deb1090da8bab42964177583756
|