Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Programatically Accessing Koteri's Functionality



Sorry if this is over posted, but I'm having some difficulty wrapping my head around the API here.
I want to take advantage of existing Kotoeri functionality on a text selection.
First, I need to be able to select the text programatically, as in all of the text in a file, or broken by white space characters.
Then, with that text selected I want to run Kotoeri's 'KotoeriMenuCommand_RetreiveFixedYomi" menu item with the key codes:
# KeyCode -------> Y
# Modifier ------> 10
# ModifierMask --> 27
on the text.
The goal is to generate what is sometimes called Ruby Text to aid in reading. (in Japanese it is referred to as Furigana)
I believe I can work out the layout and generation of a new file.
What I don't know how to do, is call this menu command programatically.
Should this be done by AppleScript via some Apple Event, or a Cocoa or Carbon method/function ?
Is there an API that I am missing ?
Is there some way to simply send this combination of key codes programatically so that Kotoeri is the responder? ... and then capture it's resulting output somewhere?
The docs I've looked at on TSM and Key Events and so on are really making me feel dumb at this point.
Again, sorry for the noise if this is an over-post, but if anybody has any insight on this, it would be greatly appreciated.


_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.