Showing posts with label newsletter. Show all posts
Showing posts with label newsletter. Show all posts

Monday, August 17, 2026

newsletters - How the Braille Rules are Applied #0002

  • Overview of the BrailleBase Algorithm (Current Version and Future Direction)

    1. First Generation — Basic Replace

    Model: direct character → braille substitution.

    Classic problem: numbers treated digit by digit.

    Example: 2026 → ⠼⠃⠼⠚⠼⠃⠼⠋ Correct: ⠼⠃⠚⠃⠋ (a single numeric prefix for the entire sequence).

    Conclusion: a library with no contextual awareness, relying solely on static mapping.

    2. Introduction of Contextual Rules

    Numeric Rule (Number Mode)

    Idea: enter “numeric mode” when digits are detected.

    Behavior:

    • Applies ⠼ once at the beginning of the numeric sequence.

    • Keeps numeric mode active while digits continue.

    • Exits numeric mode when encountering a non‑numeric character.

    Impact: BrailleBase stops being a simple replacer and becomes a numeric‑context interpreter.

    Uppercase Rule

    Idea: add uppercase prefixes without interfering with numbers.

    Behavior:

    • Applies the uppercase prefix to specific letters.

    • Avoids applying it inside numeric blocks.

    Impact: introduces a second local mode (uppercase) layered on top of the same string.

    Phonetic Rules (Phonetic Braille)

    Idea: handle languages and phonetic systems (CJK, pinyin, kana, etc.).

    Behavior:

    • Groups characters into phonetic units.

    • Converts these groups into phonetic braille, not just isolated characters.

    Impact: the algorithm begins working with linguistic tokens rather than simple characters.

    3. Rule Application Order (Current Pipeline)

    The sequence currently used:

    Numbers + Numeric Punctuation

    • Applies numeric prefixes and resolves punctuation that affects numeric mode.

    • Ensures numeric blocks are correct before any other transformation.

    Uppercase

    • Applies uppercase prefixes on a string already stabilized numerically.

    • Prevents conflicts between uppercase and numeric mode.

    Phonetic

    • Operates on a string where numbers and uppercase have already been resolved.

    • Simplifies phonetic tokenization by avoiding mixed prefixes.

    RTL (Right‑to‑Left)

    • Final step: determines the final direction and mixes LTR/RTL.

    • Receives the string with all modes applied (numeric, uppercase, phonetic).

    This order minimizes conflicts:

    • Numeric is global and fragile → comes first.

    • Uppercase is local → comes next.

    • Phonetic depends on a clean text without incorrect prefixes.

    • RTL requires the final version to determine direction.

    4. Parse Phase and Current Issues

    After applying all rules:

    Current phase: the final braille string is parsed. The system attempts to generate tokens (number, word, symbol, phonetic, etc.) from the already transformed string.

    Problem: sometimes a token is not generated because:

    • A rule was applied at the wrong moment.

    • Context was destroyed by a previous transformation.

    Consequence: it becomes difficult to add more complex tokens such as:

    • Bold

    • Italic

    • Other styles or metadata

    5. Future Direction — Separating Rules from Parsing

    You have already identified the correct path:

    Goal: minimize the impact of one rule on another.

    Technical approach:

    • Analysis: extract structure (number, uppercase, phonetic, RTL, style) as tokens.

    • Rules: apply logic to these tokens, not directly to the string.

    • Rendering: generate the braille string only at the end, based on the tokenized structure.

    This will allow:

    • More complex tokens (bold, italic, etc.).

    • Fewer side effects between rules.

    • A Braille engine closer to a linguistic interpreter with styling, rather than a simple mapper.


  • Get in touch through GitHub: https://github.com/DukaCrazy

    My name is Duka — and if a project isn’t crazy enough to change the world, it’s probably not mine.

    • 2026/08/17

Saturday, June 27, 2026

newsletters - What is BrailleBase #0001

BrailleBase

What is BrailleBase

  • BrailleBase is an algorithm that translates characters into Braille.
  • Today, each country uses different Braille rules, and there is no universal standard for developers. This makes it almost impossible to create tools that are compatible with each other.
  • BrailleBase creates a universal layer that standardizes the logic, allowing any tool — from screen readers to Braille embossers — to speak the same language.
  • As a result, learning languages, accessing culture, and integrating devices becomes more accessible for millions of people.

Beyond translation

  • BrailleBase provides the number of dots in each Braille symbol. Example: the character '⠼', which indicates that a number follows, contains 4 dots.

  • It also provides the numeric position of each dot and the corresponding binary pattern.  For '⠼', the positions are 3‑4‑5‑6 and the binary is 001111.

  • These data can be accessed directly through methods that return dot counts, positions, binary patterns, and other metadata.

  • For integration with other tools, the output methods generate a complete map of each symbol in formats such as JSON, XML, YAML, and more.

  • The library is still under development, so method signatures may change. We are working to release a stable version as soon as possible.

Purpose of BrailleBase

Standardized Technology

  • Many companies and developers who want to create tools and technologies for blind people face a major barrier: integrating their microsystems with other equipment.
  • BrailleBase is the first library that combines translation, complete metadata, and multiple output formats without external dependencies.

Challenges to Be Addressed

  • Many countries do not have a well‑structured Braille system or documented rules.
  • Understanding these rules, standardizing them, and converting them into a base algorithm usable by subclasses is one of the biggest challenges.
  • Presenting BrailleBase to companies in the accessibility sector is another area we need to improve, especially in communicating the value of the tool.
  • It is also essential to produce educational material and clear documentation, ensuring that both beginners and experienced developers can use BrailleBase without difficulty.

Final Statement

  • This is the first official text of the BrailleBase tool.
  • The system currently includes the Japanese, Portuguese, Arabic, and English alphabets.
  • All letters have been individually verified, but the second‑level rules are still under development.
  • There is still no support for full‑word translation, but this feature is already planned.
  • We are preparing a draft of the Pinyin class.
  • Once the English documentation is completed, the Pinyin class finalized, and the known bugs fixed, we will release the first usable version of the package.
  • From that release onward, the method signatures will become stable, ensuring that updates do not break dependent applications.
  • We do not use external dependencies beyond those provided by default in each programming language.
  • The classes braille, braillebase, braillebasejapanese, braillebaseportuguese, braillebasearabic, and braillebaseenglish have (or will have) CC0, MIT, or Apache 2.0 licenses.

Get in touch through GitHub: https://github.com/DukaCrazy

My name is Duka — and if a project isn’t crazy enough to change the world, it’s probably not mine.

  • 2026/06/24

braillebaseuniversalset

  class BrailleBaseBniversalSet : def braille_base_universal_set (): #LOWER return [[ "a" , [ "⠁...