[hackers] [st][PATCH] Add RTL/BiDi support for Arabic, Hebrew and Farsi

From: mohamed.apdelrazeq <mohamed.apdelrazeq_AT_proton.me>
Date: Thu, 07 May 2026 23:38:26 +0000

This patch adds bidirectional text (BiDi) support to stusing the GNU FriBidi library.

RTL languages such as Arabic, Hebrew, and Farsi are now
displayed correctly. Mixed LTR/RTL text is also handled.

The reordering is done in xdrawline() via fribidi_log2vis()
before glyphs are rendered.

Dependency: libfribidi

Changes:
- config.mk: link against libfribidi via pkg-config
- st.h: include <fribidi.h>
- x.c: add BiDi reordering in xdrawline()

Tested on: Void Linux x86_64, st 0.9.3

Author: Mohamed <mohamed.apdelrazeq_AT_proton.me> 








st-without-bidi.png
(image/png attachment: st-without-bidi.png)

st-with-bidi.png
(image/png attachment: st-with-bidi.png)

Received on Fri May 08 2026 - 01:38:26 CEST

This archive was generated by hypermail 2.3.0 : Fri May 08 2026 - 01:48:40 CEST