Right-to-left text

Hebrew, Arabic, and Persian samples with styled runs and browser reference text. Compare bidirectional ordering and the known cursive-shaping limitation.

Source on GitHub →

Run it natively from a checkout of go-booba:

go run ./tests/rtl-text

The colored Hebrew row should put שלום on the right and עולם on the left. The labels and codepoints remain left-to-right.

Arabic and Persian should use contextual letter forms that join into cursive words. Compare the terminal with the browser reference below to check both ordering and shaping.

Browser reference text (same font)
Browser ordering

שלום עולם

Forced logical order

שלום עולם

Browser cursive shaping

مرحبا بالعالم

سلام دنیا

Scroll down to inspect the static terminal screen. Use the renderer badge to compare backends. See the harness notes for the samples and known limitations.