TIP 621 glyph clustering for tcl
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?
Yes, it would be great to have the icu functions moved to TCL.
Harald
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.
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
See TIP 756
Available in 9.1 as tcl::unsupported::grapheme command. I'd love some feedback based on real world usage.
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
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.
We have to throw some Netherland style cookies on the way to attract Jan ;-)