Tk Source Code

Check-in [4cb0789f]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Text widget: the highlight of a part of a joined right-to-left word (e.g. one Arabic letter selected) did not match its bbox (see [59d6d5f6c0]): the chunks of a stretch were measured while the line was laid out, with the string cut at the end of each chunk, so the last letter of a chunk took its final form. Place the chunks of a right-to-left string by the advances in the whole string, as CharBboxProc() measures them. Test textDisp-37.4: moving the insertion cursor does not change the bboxes (it also covers a space between Hebrew words on Windows).
Downloads: See separate download page
Timelines: family | ancestors | text-rtl-highlight
Files: files | file ages | folders
SHA3-256: 4cb0789f36facd0da26fe399b86a296d65d3ae481743f44c98ab5f3fe891f4db
User & Date: serhiy.storchaka 2026-11-02 13:05:05.544
References
2026-11-02
18:25 • Ticket [517e4ef6] DlineXOfIndex reads an embedded image or window as a CharInfo status still Open with 3 other changes artifact: 794ef10c user: nab
15:30 • Ticket [59d6d5f6] Proposed fix for dancing selection in mixed RTL display status still Closed with 3 other changes artifact: 8e110ebd user: nab
13:06 • Ticket [59d6d5f6]: 3 changes artifact: bdbe19ac user: serhiy.storchaka
Context
2026-11-02
13:05
Text widget: the highlight of a part of a joined right-to-left word (e.g. one Arabic letter selected) did not match its bbox (see [59d6d5f6c0]): the chunks of a stretch were measured while the line was laid out, with the string cut at the end of each chunk, so the last letter of a chunk took its final form. Place the chunks of a right-to-left string by the advances in the whole string, as CharBboxProc() measures them. Test textDisp-37.4: moving the insertion cursor does not change the bboxes (it also covers a space between Hebrew words on Windows). leaf check-in: 4cb0789f user: serhiy.storchaka tags: text-rtl-highlight
2026-11-01
20:03
Minor adjustments in the Widget Demo check-in: c7e77d67 user: csaba tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tkTextDisp.c.
Changes to tests/textDisp.test.