Tk Source Code

Check-in [bd243152]
Login

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

Overview
Comment:Fix [e7c85cd941]: right-to-left text is laid out in visual order: the bidi levels of each logical line are resolved (UAX #9, mojibake), the chunks are cut where the level changes and reordered on each display line (rule L2), and the characters of a right-to-left chunk are mirrored; bbox, @x,y, the cursor, the selection and the underline follow. Tests textDisp-46.1 to 46.15.
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | nab-text-rtl-layout
Files: files | file ages | folders
SHA3-256: bd243152d22c45c43a6948d4cf82292f28144a3012a7e95f9f3576d0fec61939
User & Date: nab 2026-10-14 15:12:51.323
Context
2026-10-14
15:12
Merge nab-text-rtl-layout: fix [e7c85cd941], right-to-left text in visual order (tests textDisp-46.1 to 46.15). check-in: 371cf58a user: nab tags: revised_text, tip-466
15:12
Fix [e7c85cd941]: right-to-left text is laid out in visual order: the bidi levels of each logical line are resolved (UAX #9, mojibake), the chunks are cut where the level changes and reordered on each display line (rule L2), and the characters of a right-to-left chunk are mirrored; bbox, @x,y, the cursor, the selection and the underline follow. Tests textDisp-46.1 to 46.15. closed check-in: bd243152 user: nab tags: nab-text-rtl-layout
15:12
Merge nab-tag-unset-options: fix [6bd3a32690], a tag without -underline cancelled the underline of a lower tag (tests textTag-21.1 and 21.2). check-in: 902c9bd6 user: nab tags: revised_text, tip-466
Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tkFont.c.
Changes to generic/tkInt.h.
Changes to generic/tkText.h.
Changes to generic/tkTextDisp.c.
Changes to generic/tkTextGrapheme.c.
Changes to generic/tkTextImage.c.
Changes to generic/tkTextWind.c.
Changes to macosx/tkMacOSXFont.c.
Changes to tests/textDisp.test.