Tk Source Code

View Ticket
Login
Ticket UUID: 1539962
Title: can't correctly mark Hebrew text in tk entry/text widget
Type: Bug Version: obsolete: 8.5a5
Submitter: dingjun Created on: 2006-08-14 12:32:01
Subsystem: 18. [text] Assigned To: vincentdarley
Priority: 5 Medium Severity:
Status: Open Last Modified: 2026-09-19 10:00:32
Resolution: None Closed By:
    Closed on:
Description:
I use tcl/tk 8.4.6 to develope a programm with GUI.
When our programm  runs under windows XP Professional
with SP2, und user tries to mark some Hebrew text in
the entry/text widget, the marked texts shift
themselves always. Under Linux (kernel 2.4.21) man can
mark some Hebrew text, but the Hebrew text is not
correctly displayed and the writing direction is wrong. 

I think this has something to do with the writing
direction from right to left of Hebrew. I have tested
my program with Arabic, an it has the same problem. So
it may be a bug in the implementation of entry/text
widget. 
It's would be great, if this Phenomenon can be located
and fixed in a patch.
User Comments: serhiy.storchaka added on 2026-09-19 10:00:32:

In Tk 9.1 the text widget lays out Hebrew and Arabic right to left (bidi support), so selection follows the visual order there. The entry widget still has no bidi support, and 8.6 and 9.0 have none at all.


dkf added on 2006-08-14 20:01:56:
Logged In: YES 
user_id=79902

Certainly won't be done in 8.4; 8.5 has a near total rewrite
of the internals of the [text] widget so effort from one is
not reusable with the other.

I've no idea how much effort it would take to get into 8.5;
we've never grasped the nettle of writing direction before
as far as I can tell.