Re: NSTextView's MarkedText
Re: NSTextView's MarkedText
- Subject: Re: NSTextView's MarkedText
- From: email@hidden
- Date: Thu, 25 Jul 2013 09:02:24 +0900
On 2013/07/25, at 2:22, Fritz Anderson <email@hidden> wrote:
> On 24 Jul 2013, at 11:46 AM, Uli Kusterer <email@hidden> wrote:
>
>>>> Marked text in Cocoa is mainly used by input methods. Primarily with languages
>>>> that have more glyphs than you would have on a keyboard and input is done in a
>>>> form that is analyzed and is provided a set of conversion options. a range of
>>>> input text that is not yet committed is highlighted and commonly sub ranges
>>>> can be selected and converted. When conversions are selected and finalized
>>>> text is unmarked and ready for committing.
>>
>>
>> Is this the yellow background that one gets for accents? E.g. on a US keyboard, when I type Option-`, I get the tick mark with a yellow background, indicating I can now type an 'a' for instance to get 'à' ? Is that a good example, or is that different again? (Just hoping I can provide an example for US and other people and learn something on the way)
>
> That's the intended use, yes.
>
> — F
>
It's not really anything keyboard specific, rather depends on your input method.
Do note that since Lion key repeats sometimes do the iOS long press style behavior and display accented character options. Not sure what all input methods do or do not allow these two behaviors with accented European characters. I don't think it's very consistent.
The accented character behavior illustrates the marked text concept.
More complete example is to have somebody turn Japanese or Chinese or Korean input.
Fortunately the Help content for these is also available in English these days.
(Probably in any OS language )
So it's easy to get a guide to how they work.
At a conceptual level you can think of this as a kind of formatter that looks for human decision making. But you can only have one active at a time, so using marked text for your own purposes would likely conflict with the input methods.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden