home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!haydn.Stanford.EDU!cuong
- From: cuong@haydn.Stanford.EDU (Cuong T. Nguyen)
- Subject: Advice requested: keyboard programming
- Message-ID: <1992Aug26.194149.10299@leland.Stanford.EDU>
- Originator: cuong@haydn.Stanford.EDU
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: Center for Integrated Systems, Stanford University
- Date: Wed, 26 Aug 92 19:41:49 GMT
- Lines: 39
-
-
- I want to implement a Vietnamese keyboard for the Mac.
- Vietnamese has diacritical marks, like European languages,
- except more complex in that a letter may have up to two
- diacritics. The dead-key mechanism is not acceptable
- behavior. The required, non-negotiable (standardized) behavior
- is as follows. Let's say the user needs to type in the single
- Vietnamese letter <a^'>. She will first type "a", and the
- system echoes "a". Then she types "^", the system echoes BS
- to clear the "a", then echoes <a^>. Similarly, when she types "'",
- the system echoes Bs, then <a^'>. Don't worry about the logic
- states, character codes, or glyphs involved. I would just like
- to learn how this keyboard behavior can be implemented on a
- system-wide basis, that is, when this keyboard mechanism is turned
- on, all input windows will behave as described (something like
- a specialized keyboard driver or desk accessory, perhaps).
-
- I have scanned through Inside Mac vols at a bookstore and found
- KCHR to be in the right neighborhood, but it's still very fuzzy.
- I would greatly appreciate a knowledgeable pointer into the right
- direction, but not off to a wild goose chase as I am a Mac neophyte.
- You don't need to tell me exactly what to do step-by-step
- (although that wouldn't hurt :-), but the idea for me is
- to try and save re-discovery time. I am thinking that
- a Mac wizard would be able to name in 5 minutes what
- the system components are that I need to mess with.
-
- An estimate of task difficulty will also be appreciated.
- As a reference, it took me two days to implement this
- on Unix (I already knew X), and two weeks on MS-Windows
- (had to learn Windows, which fortunately provides for
- message hooks which allow you to filter keyboard messages
- as well as to generate fake keyboard events for those
- BS's I mentioned above). Does the Mac provide a similar
- mechanism?
-
- Thanks in advance,
-
- Cuong
-