Re: Should editing and selection operate on grapheme clusters?
Samphan Raruenrom <[email protected]> Wed, 05 Apr 2006 10:28:42 +0700
| Newsgroups | gmane.comp.mozilla.internationalization |
|---|---|
| Organization | Open Source Development Co., Ltd. |
| Message-ID | <[email protected]> |
Agree. That's what CTL users want to see. However, for Thai, Delete should delete a cluster, but Backspace should delete a code point. Moreover, mouse hit test (for click/select) and Find should operate on cluster boundary too. All is specified in Unicode (except Backspace which whether it should delete a code point or a cluster may depend on locale). L. David Baron wrote: > Should editing operations (caret movement, backspace, delete, and > selection) operate on characters or grapheme clusters? In our code they > currently operate on characters, but I'd think that we'd probably want > them to operate on grapheme clusters instead. > > Part of the reason I think this is that I think we should expose the > difference between composed and decomposed Unicode normalizations to the > user as little as possible. But even in cases where Unicode doesn't > have composed characters, I'd think that it would make more sense for > editing operations to operate on grapheme clusters. > > I was thinking of filing bugs on this, but wanted to ask here first to > see if others agree. > > -David > -- _/|\_ Samphan Raruenrom. http://www.osdev.co.th/