Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!mcvax!inria!ircam!cheveign From: cheveign@ircam.UUCP (Alain de Cheveigne) Newsgroups: comp.sys.mac Subject: Re: KMAPs and KCHRs Message-ID: <393@ircam.UUCP> Date: Wed, 21-Oct-87 08:29:10 EST Article-I.D.: ircam.393 Posted: Wed Oct 21 08:29:10 1987 Date-Received: Sun, 25-Oct-87 11:54:14 EST References: <3022@crcge1.UUCP> Organization: Inst. de Rech. et Coord. Acoustique-Musique, Paris Lines: 52 Keywords: Keyboards Summary: Key maps on the Mac (up to +) Some time ago I reconfigured the keyboard layout to use a character set (ECMA 8-bit standard) that combines latin and greek within the same 8-bit code set. Given this set, I wanted a normal greek typewriter layout, with latin accessible via the option key (or vice-versa). I found the keyboard maps in system ressource INIT0 (INIT1 for the number pad). If you open INIT0 with resedit and browse through the data, you come accross a series of codes starting with 61 73 64 66... (71 73 64 66... for a french keyboard) corresponding to keys a s d f... These codes are in the order of the key numbers in IM vol I-250 and IV-250. If your system was configured for the US, there should be 6 such series, one each for: normal (lower-case) SHIFT SHIFT-LOCK OPTION OPTION-SHIFT OPTION-SHIFT-LOCK If your system was configured for another country or reconfigured using "localizer", you will find a total of 12 series. The extra 6 are for the "international" keyboard (one extra key) that used to be available for the 128 and 512. The keyboard routine is actually more than just a lookup, because for a few characters (diacriticals) the routine waits for the next character and eventually substitutes a compound character. That is defined elsewhere in INIT0, and occurs as far as I could tell after the initial mapping. The Keyboard DA reflects, as it should, the final result of the mapping. For the greek layout, I just pasted new values into INIT0 using resedit. To make things nice and general, I even cannibalized Localizer (calling it "Greekalizer") to swap a greek keyboard into any system for any Mac for any country. Along came the SE with it's new KMAP and KCHR ressources and messed my efforts up... It seems that with systems 4.0 up the system can look in three places for the keyboard layout, so you have to modify all three for a "universal" fix. Occasionally, it slips at start-up and you get the wrong layout. This information is based on guesses and trial. Please correct me where I'm wrong. I'd appreciate the same info for SE and IIs (ie: where is that darn table). Also, does anyone have an opinion on a DA (?) called "MacKeymeleon" that reconfigures keyboards? please mail to: alain@inria!ircam!urubu.uunet