Skip to content
Tcl Source Code View Ticket
Login

View Ticket

TIP 621 glyph clustering for tcl

Opena4c7eeaf638b5e9e6a9b8b9808b535c9c99c32bbCreated 2 years agoUpdated 24 days ago
Descriptionplain2024-12-02 16:00:27
I'd love to have the grapheme clustering functionality of tk::startOfcluster etc for use on the console or in text processing with Tclsh distributions/zipkits that don't have Tk.

Can this somehow be brought across without duplication of code?
oehharwiki2024-12-03 06:18:52

Yes, it would be great to have the icu functions moved to TCL.

Harald

juliannoble2plain2025-08-17 14:29:33
I see Tip 726 uses the utf8proc library which has a function utf8proc_decompose
This looks to me like it may provide a usable way to determine grapheme cluster boundaries.

Perhaps this would be a candidate for inclusion in the 726 unicode ensemble - but I guess it would require a separate tip.
apnadkarni Ticket [a4c7eeaf63]: 3 changes [History diff]2026-06-09 10:41:41
oehharwiki2026-06-09 13:51:20

Dear Julian, as you see, it is a question of doing, as nobody took the initiative.

So, a proposal implementation and TIP is required.

Basically, the implementation is to be copied/removed from Tk and moved to Tcl...

ICU is also used for testing in TCL.

Thanks for all, Harald

apnadkarnimarkdown2026-10-28 15:47:52

See TIP 756

Available in 9.1 as tcl::unsupported::grapheme command. I'd love some feedback based on real world usage.

oehharwiki2026-10-28 15:56:28

Is there any possible use in Tk? I often read bugs, that only half of a glyph a cursor is positioned or similar. We probably need a C interface there...

Thanks, Harald

apnadkarnimarkdown2026-10-29 11:48:21

Yes, but I can't make up my mind on what the C interface should look like.

With respect to Tk, it may be that a lot of the cursor movement et al happens at the script level, not in C. Could be wrong but if I'm right, experimentation with tcl::unsupported::grapheme should be feasible.

oehharwiki2026-10-29 15:30:18

We have to throw some Netherland style cookies on the way to attract Jan ;-)

dkf Ticket [a4c7eeaf63]: 3 changes [History diff]2026-11-08 20:39:28
Log in (anonymous is fine) to add a comment.