Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Arabic support (BiDi)

Closed / Fixed2086907fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 20 days ago
Descriptionplain2008-09-01 13:59:58
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.
dkfplain2008-09-02 21:49:32
data_type - 360894
dkfplain2008-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.
dkfplain2008-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...
uaaplain2008-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.storchakawiki2026-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.

Log in (anonymous is fine) to add a comment.