Any information is welcome.
I know nothing about the APIs for input methods in OS X.
Look at the Input Method Kit Framework Reference and the sample code.