home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14559 < prev    next >
Encoding:
Text File  |  1992-08-26  |  2.3 KB  |  51 lines

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