Overview
Artifact ID: | e95a7d5a49d8bf292fb698f3da39740096e384f234afcc542eb5b706cfc28a9d |
---|---|
Ticket: | a1795648260f658aae9c1209c4f35a5bcb5b684d
Tk 8.6: prevent issues when encountering non-BMP Unicode characters |
User & Date: | marc_culler 2020-05-23 19:09:56 |
Changes
- icomment:
I have written a prototype implementation of glyph-based indexing. It is in a branch off of 8.7 called [https://core.tcl-lang.org/tk/timeline?r=glyph_indexing&c=2020-05-23+16%3A51%3A27|glyph_indexing]. It adds only a small amount of code to tkEntry.c and 400 lines of reusable code in tkMacOSXFont.c (half of which are comments) that implement a TextManager object. (Well, this is C, so it is similar to an object.) The TextManager leverages the NSMutableString class to handle the work of finding grapheme clusters in a unicode string. The interface to the TextManager is specified by C declarations in tkInt.h. There is a conditional compilation switch USE_GLYPH_INDEXING which a platform can use to say whether it provides an implementation of TextManager.
- login: "marc_culler"
- mimetype: "text/x-fossil-wiki"
- username: "Marc Culler"