Tk Source Code

Check-in [e3ef73ae]
Login

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

Overview
Comment:Implements line breaks (UAX #14) and word/sentence breaks (UAX #29) for Unicode extended grapheme clusters utilizing the mojibake Unicode library, and implements a forward maximum-matching word segmenter using ICU-derived dictionaries for specific scripts without space (Khmer, Lao, Thai) - fix for [b7ded5749c]
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | trunk | main
Files: files | file ages | folders
SHA3-256: e3ef73ae0be2e3ed5b3fde84d546775ec594665dd14118f7a72d136324495305
User & Date: kevin_walzer 2026-10-01 14:47:34.256
References
2026-10-03
13:25
Fix [8bd39bede9]: word wrap regressions since [e3ef73ae0b]. check-in: 9bc623c8 user: nab tags: trunk, main
2026-10-01
20:30 • New ticket [8bd39bed] Word wrap regressions since [e3ef73ae0b] (mojibake line breaks). artifact: b7e6110e user: nab
19:36
Fix word wrap regressions of [e3ef73ae0b]: the end of a segment (a tag boundary inside a word) was taken as a break, and the breaks after white space before a tab were lost; restore textDisp-2.10, 2.23, 19.11.23, 26.14.2 and 27.1 as in 9.1.0. check-in: 3be9cd51 user: nab tags: nab-wrap-locale
Context
2026-10-01
14:53
Update changes.md check-in: bc894b82 user: kevin_walzer tags: trunk, main
14:47
Implements line breaks (UAX #14) and word/sentence breaks (UAX #29) for Unicode extended grapheme clusters utilizing the mojibake Unicode library, and implements a forward maximum-matching word segmenter using ICU-derived dictionaries for specific scripts without space (Khmer, Lao, Thai) - fix for [b7ded5749c] check-in: e3ef73ae user: kevin_walzer tags: trunk, main
14:39
Restore correct cache size closed check-in: c52216b2 user: kevin_walzer tags: tk_text_grapheme
14:33
Updated the file changes.md. check-in: ab3db1c0 user: csaba tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Added generic/dictionaries.c.
Added generic/dictionaries.h.
Added generic/khmer.c.
Added generic/lao.c.
Added generic/mojibake.c.
Added generic/mojibake.h.
Added generic/thai.c.
Changes to generic/tkText.c.
Changes to generic/tkText.h.
Changes to generic/tkTextDisp.c.
Added generic/tkTextGrapheme.c.
Changes to tests/textDisp.test.
Changes to unix/Makefile.in.
Changes to unix/tkUnixBidiFont.c.
Changes to win/Makefile.in.
Changes to win/makefile.vc.