Tcl Source Code

View Ticket
Login
Ticket UUID: 2086907
Title: Arabic support (BiDi)
Type: RFE Created on: 2008-09-01 13:59:58
Submitter: uaa Assigned to: hobbs
Subsystem: None Severity:
Priority: 8 Last modified: 2026-11-13 11:18:43
Status: Closed Closed by: serhiy.storchaka
Resolution: Fixed Closed on: 2026-11-13 11:18:43
Version: None
Description:
Dear developers,
I have been searching about a program problem and they pointed my directly to TCL.

The problem regarding aMSN 

http://sourceforge.net/tracker/index.php?func=detail&aid=929683&group_id=54091&atid=472658

they say it's from tk

The program fails to display bi-directional text correctly. For example,
the Arabic  word West (غرب) should be spelled ghain (غ) raa (ر) baa (ب)
from right to left. The program displays the Arabic text in the opposite direction.
User Comments:
dkf added on 2008-09-02 21:49:32:

data_type - 360894

dkf added on 2008-09-02 21:49:33:
Logged In: YES 
user_id=79902
Originator: NO

It would be lovely to do BIDI (and hence both Arabic and Hebrew) support right. But this is complex, so it's a Feature Request and not a Bug.

There are two issues.
1) Rendering of this only works on some platforms (OSX with Aqua is the only one I think, but I could be wrong).
2) Input handling is definitely wrong, even on OSX.

dkf added on 2008-09-02 21:56:43:
Logged In: YES 
user_id=79902
Originator: NO

BTW, this is really a Tk issue, not a Tcl one. Keeping here for now, but it needs to move...

uaa added on 2008-09-04 19:24:04:
Logged In: YES 
user_id=2188446
Originator: YES

Thanks for responding. This problem is very old. I hope you have the time to fix it. and if you can refer me to tk bugs page because I couldn't find it.

serhiy.storchaka added on 2026-11-13 11:18:43:

Tk 9.1.0 does text shaping and bidirectional rendering of Arabic and Hebrew on X11 (HarfBuzz and SheenBidi) and Windows (Uniscribe), as Aqua already did, including cursor movement and selection in the text widget.