Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Easily remap and create customized keyboard layouts' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Easily remap and create customized keyboard layouts
Authored by: jagboy on Jun 30, '05 01:11:17PM

Well, go figure... I'm no native speaker, anywayz...

I figured out how to create a bundle.

Here's how to do it:

Create an empty bundle and give it a name, e.g.: Weird Layout
Create a Folder inside it named "Contents"
Inside it create an Info.plist with the following values:
CFBundleDevelopmentRegion String English
CFBundleIdentifier String com.apple.keyboardlayout.roman
CFBundleInfoDictionaryVersion String 6.0
CFBundleName String LCCKCHR
CFBundleVersion String 1.0
CSResourcesFileMapped Boolean Yes

save the Info.plist
Now create a folder named "Resources" where you will put the "weird.keylayout" (and optional an icon file "weird.icns")

Inside the Resources folder create a folder named "English.lproj"
Create a file named "InfoPlist.strings"
inside it put a text like:
/* Keyboard layout names */
"weird" = "Weird Layout";

Now duplicate the whole "English.lproj" and rename it to the language you are using OSX in, in my case "German.lproj" and there you'll modify the plist to read something like:
/* Keyboard layout names */
"weird" = "Komisches Layout";

If anyone got a 100KB of webspace to host a sample bundle contact me.

Oh, and if you think the tutorial here was too long and too hard then read this:
http://developer.apple.com/technotes/tn2002/tn2056.html

Ciao and good luck!



[ Reply to This | # ]