I am looking for a Mac OS utility that will allow me to use the Compose key sequences known from Linux. Using the Option key is not an alternative as I need it to be consistent with my existing Linux installation.

link|improve this question
I'd like to know that too. Windows users need one of these as well. – digitxp Oct 23 '10 at 23:20
feedback

4 Answers

up vote 4 down vote accepted

Based on information from the site LaC linked to I wrote a script that converts an X.org compose table to a cocoa keybindings file. Check my writeup for more information and download links.

link|improve this answer
Thanks! (Useless padding because just ’Thanks’ is too short.) – Florian Mayer Jun 26 '11 at 16:47
feedback

You don't need a special utility. The Cocoa text system is very configurable, and you can set up key combinations and/or key sequences to perform various actions, including inserting special characters as in compose. See this excellent document.

Of course, you're going to have to spend a bit of time converting the sequences from your Linux compose file to Cocoa dictionary format. A script could probably help here.

link|improve this answer
feedback

Maybe try DoubleCommand?

DoubleCommand is software for Mac OS X (a kernel extension) that lets you remap keys, in other words change the way your keyboard works. Often used to make a PC keyboard more comfortable with a Mac, swapping the Alt (Option) and Windows (Command or Apple) keys, since they are in swapped positions on Mac and PC keyboards. DoubleCommand is a quick and easy way to fix this if you use a PC keyboard with your Mac.

Cheers!

link|improve this answer
The link above is broken; it should be: doublecommand.sourceforge.net – Scytale Dec 9 '10 at 9:03
Fixed – thanks! – MattLeff Dec 9 '10 at 15:33
feedback

I converted a list of compose keys from hermit.org/Linux/ComposeKeys.html to a simple tab-delimited format: gist.github.com/1004721.

They could be imported to a snippet application using some special delimiter or affix to avoid conflicts. Or AppleScript:

try
    set old to the clipboard
    tell application (path to frontmost application as text)
        set ans to text returned of (display dialog "" default answer "")
    end tell
    set sed to quoted form of ("s/^" & ans & "  \\(.*\\)/\\1/p")
    set sh to do shell script "sed -n " & sed & " /1/composekeys.txt"
    set the clipboard to sh
    tell application "System Events" to keystroke "v" using {command down}
    delay 0.03
    set the clipboard to old
end try
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.