Skip to content

v0.1.0 - Initial release

Choose a tag to compare

@balswyan balswyan released this 02 Jun 04:11
· 17 commits to main since this release
4df55fd

First public release of arabic-rt — Arabic shaping, BiDi, and un-baking for
games, TTS, and real-time clients.

#Highlights

  • fix() — bake logical Arabic into visual-order presentation forms that render
    correctly even on clients that do no Arabic processing.
  • unfix() — reverse the bake back to clean logical Arabic, so TTS, search, and
    logging see real Arabic letters while the display stays baked.
  • shape() — contextual shaping only (isolated/initial/medial/final, lam-alef and
    optional الله ligature), order preserved.
  • GAME preset for word-by-word chat readers; contains_arabic() and
    is_shaped() helpers; tunable Options (word joiner, line wrapping, word order).

Quality

  • Forward output validated byte-for-byte against arabic_reshaper + python-bidi.
  • unfix(fix(x)) == x round-trip covered by tests (53 tests passing).

Install

pip install arabic-rt

Zero dependencies. MPL-2.0. Created by Bandar AlSwyan.