FROM : John Joyce
DATE : Mon Apr 28 14:35:26 2008
> Graham,
>
> Thanks for your reply! But how can I "find the range of the word"
> given
> the glyph index? I just can not find an API doing so.
>
> So I don't think this is the underlying implementation. Any comments
> from others?
The range of the word is up to you to find and depends on the
language. If it is any common language from Europe, your job is a lot
easier. You mainly need to work with whitespace and punctuation. If
you're working with Japanese, you'll need to learn of lot of complex
tricks to identify the range of words...
As for the implementation of the keyboard shortcut, you'll find it
appears in Sys Prefs > Keyboard & Mouse > Keyboard Shortcuts ,
Dictionary.
That being the case, it is possible to turn off the existing
shortcut. It may not be feasible or reliable to do so
programmatically. Apple is free to set these shortcuts to anything at
any time and at any level. You may need to instruct your users on how
to change the keyboard shortcut(s).
The hard part is finding something available. Some things are taken
up system wide, some are taken up on within apps.
The only way to wrest control of these is with an input manager, but
that may not be worth the trouble.
DATE : Mon Apr 28 14:35:26 2008
> Graham,
>
> Thanks for your reply! But how can I "find the range of the word"
> given
> the glyph index? I just can not find an API doing so.
>
> So I don't think this is the underlying implementation. Any comments
> from others?
The range of the word is up to you to find and depends on the
language. If it is any common language from Europe, your job is a lot
easier. You mainly need to work with whitespace and punctuation. If
you're working with Japanese, you'll need to learn of lot of complex
tricks to identify the range of words...
As for the implementation of the keyboard shortcut, you'll find it
appears in Sys Prefs > Keyboard & Mouse > Keyboard Shortcuts ,
Dictionary.
That being the case, it is possible to turn off the existing
shortcut. It may not be feasible or reliable to do so
programmatically. Apple is free to set these shortcuts to anything at
any time and at any level. You may need to instruct your users on how
to change the keyboard shortcut(s).
The hard part is finding something available. Some things are taken
up system wide, some are taken up on within apps.
The only way to wrest control of these is with an input manager, but
that may not be worth the trouble.






Cocoa mail archive

