On Dec 17, 2010, at 19:28:12, Michael Schade wrote: > - [An Adium plug-in] would allow people to have their text automatically > accentuated when they press return, rather than having to select all of the > text, use the keyboard shortcut, and then send the message, which would be > tedious if you typed often
True. What if the plug-in simply invoked the Service? The Service would remain available for use in all applications, and the plug-in would enable automatic use of it in Adium. > - The Services menu cannot be dynamically populated, so we are unable to send > updated lists of languages and would have to hard code them all. Another good point, but this can be mitigated: Mac OS X includes two APIs for detecting languages. Documentation: 10.6+: <http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSSpellChecker_Class/Reference/Reference.html#//apple_ref/occ/instm/NSSpellChecker/checkString:range:types:options:inSpellDocumentWithTag:orthography:wordCount:> 10.5+: <http://developer.apple.com/mac/library/documentation/CoreFoundation/Reference/CFStringTokenizerRef/Reference/reference.html#//apple_ref/c/func/CFStringTokenizerCopyBestStringLanguage> So, you can try guessing the language the user wrote in, and if it fails (as can happen for text not long enough to nail down a single language), use the user's default language, or perhaps the same language as last time.