kkim@uiucdcs.UUCP (02/01/87)
I would like to know how to solve the following problem: basically to implement something like pipeline ( | ) in unix terminology; I want to transform every input character typed from the keyboard into another predefined character which will become an input character to, for example, MacWrite (for example, if you type ABC, it might be transformed into 1GK which will then be fed to MacWrite). When I use MacWrite, all the characters typed from the keyboard will be input to MacWrite DIRECTLY. What I saw was that, after activating MacWrite, I activate some special Desk Accessory program (THIS IS WHAT I WANT TO IMPLEMENT) which TRANSFORMS every input character into another predefined character which is then fed to MacWrite. The D/A seemd to have capability to check whether Capital-Lock key was locked, Command key was pressed, and Option key was pressed. You may safely assume that I know how to implement transforming procedure; what I am eager to know is : 0) which programming language can be used (basic, pascal, etc.) and if some specific language MUST be used to write a D/A, 1) how to write a code to read the input character from the keyboard within a D/A, 2) how to check whether Capital-Lock key/Command key/Option key was pressed, 3) how to make the transformed character fed to MacWrite, 4) what Mac manuals/documents will give useful information, and 5) (hopefully) some sample code. I will appreciate any comments concerning this problem. Thanks in advance. Please reply by e-mail. Kyongsok KIM Department of Computer Science University of Illinois at Urbana-Champaign my addresses are as follows: network address ------- ------- arpanet kkim@a.cs.uiuc.edu (domain format) OR kkim@uiuc.arpa (alias) csnet kkim@uiuc.csnet, kkim%uiuc@csnet-relay.arpa (obsolete), OR kkim%uiuc.csnet@csnet-relay.arpa (obsolete) usenet/uucp {seismo, pur-ee, ihnp4, convex}!uiucdcs!kkim
kkim@uiucdcs.UUCP (02/03/87)
I would like to clarify the base note a little bit. The key mapping is dependent on whether cap shift is locked, option key is pressed, and sometimes the last character typed. And sometimes I must backspace (i.e., delete the last character) and output another character which results in two characters being transformed into one char. It seems that the Desk Accessory must remember the last character typed, and that DA must have the ability to check whether cap shift is locked and option key is pressed. for example, suppose that ABB is typed. I will show how it is transformed when we have a rule that: 0) A is transformed into X unconditionally. 1) if B is typed following A, AB will be transformed into T. 2) if B does not follow A, it will be transformed into Y. typed displayed when A is typed, it is transformed into X and displayed. A X when B is typed, according to the above rule, X is AB T deleted (i.e., backspace is output) and T is displayed. when B is typed, it is transformed Y. ABC TY The actual rule will become more complex since cap shift/option key affects the transformation rule. Somebody suggested changing KDEF and is there anybody out there who will explain it in a little detail for the POOR guy (me) who is a novice to Macintosh? At this point, it would be great if KDEF works. Thanks in advance. Kyongsok KIM my addresses are as follows: network address ------- ------- arpanet kkim@a.cs.uiuc.edu (domain format) OR kkim@uiuc.arpa (alias) csnet kkim@uiuc.csnet, kkim%uiuc@csnet-relay.arpa (obsolete), OR kkim%uiuc.csnet@csnet-relay.arpa (obsolete) usenet/uucp {seismo, pur-ee, ihnp4, convex}!uiucdcs!kkim
follmer@cdp.UUCP (02/03/87)
To: kkim@uiucdcs.cs.uiuc.edu Subject: Re: help wanted (writing Desk Accessory I would use lightspeed C which lets you write DA's without assembly. Maybe lightspeed pascal does too, I don't know. I'd also read Inside Mac volume I chapter 14 (Desk Manager) and volume II chapter 6 (Device Manager). I'd think a more standard way to do the whole project would be to pipe to and from the DA using Standard Edit Menu Cut and Paste. MacTutor has lots of sample DA code in back issues. Good luck!
yang2@husc4.HARVARD.EDU (Ying Yang) (03/16/90)
Dear Netters: In order to display and print Chinese characters in a project we are working on, we urgently need a Chinese word processor which can be used with MacLang and MacWrite. I was told that Mishu can't be used within another application, and I don't think TianMa can work with MacLang either. Does anyone know a Chinese package that can work with MacLang? (Apple's own Chinese system?) Any information leading to this issure will be greatly appreciated. Thanks!