head	1.4;
access;
symbols
	RELEASE_4_2_0:1.3
	RELEASE_4_1_1:1.3
	RELEASE_4_1_0:1.3
	RELEASE_3_5_0:1.3
	RELEASE_4_0_0:1.3
	RELEASE_3_4_0:1.3
	RELEASE_3_3_0:1.3
	RELEASE_3_2_0:1.2
	v0_3_4:1.1.1.1
	DAVIDYU:1.1.1;
locks; strict;
comment	@# @;


1.4
date	2001.03.01.18.21.59;	author clive;	state dead;
branches;
next	1.3;

1.3
date	99.05.17.11.26.37;	author foxfair;	state Exp;
branches;
next	1.2;

1.2
date	99.05.10.16.20.23;	author flathill;	state Exp;
branches;
next	1.1;

1.1
date	99.05.01.13.47.14;	author steve;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	99.05.01.13.47.14;	author steve;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Say bye-bye to chinese/aterm, chinese/xa+cv, chinese/xcin.

Thanks for serving Chinese people for such a long time, it's time
to retire.

Reason for aterm retiring: chinese/rxvt-* and chinese/crxvt

Reason for xcin and xa+cv retiring: Now most favored X applications,
                                    like gtk12 based or QT based even
				    motif based, could just work happily
				    with xcin25, chinput and chinput2.

For people who wants to know what's aterm, xa+cv, and xcin, here's
brief introduction for remembrance:

Aterm and xcin use their own protocol to input Chinese (big5 actually)
words. Xa+cv is a hacky wrapper for X applications to hook "xcin protocol."
@
text
@--- src/command.c.orig	Fri May 14 05:31:24 1999
+++ src/command.c	Fri May 14 05:34:35 1999
@@@@ -2128,11 +2128,17 @@@@
     static int      bypass_keystate = 0;
     int             reportmode;
     static int      csrO = 0;	/* Hops - csr offset in thumb/slider      */
+    int             k_status;
+    char            kbuf[256];
 
 /*        to give proper Scroll behaviour */
     switch (ev->type) {
     case KeyPress:
-	lookup_key(ev);
+	k_status = send_key(Xdisplay, TermWin.parent, &ev->xkey, kbuf);
+	if(!k_status)
+	    lookup_key(ev);
+	else if(kbuf[0])
+	    tt_write(kbuf, strlen(kbuf));
 	break;
 
     case ClientMessage:
@@@@ -2197,6 +2203,7 @@@@
 
     case FocusIn:
 	if (!TermWin.focus) {
+	    send_FocusIn(Xdisplay, TermWin.parent);
 	    TermWin.focus = 1;
 #ifdef OFF_FOCUS_FADING
 	    if( rs_fade != NULL )
@


1.3
log
@PR:		11698
Submitted by:	Chia-Hsing Yu <davidyu@@ken.csie.ntu.edu.tw>
Update to v0.3.6.
@
text
@@


1.2
log
@Update to 0.3.5
PR: ports/11625
Submitted by: davidyu@@ken.csie.ntu.edu.tw
@
text
@d1 3
a3 3
--- src/command.c.orig	Mon May 10 13:06:58 1999
+++ src/command.c	Mon May 10 13:09:27 1999
@@@@ -2069,11 +2069,17 @@@@
d7 2
a8 2
+    int k_status;
+    char kbuf[256];
d22 1
a22 1
@@@@ -2138,6 +2144,7 @@@@
@


1.1
log
@Initial revision
@
text
@d1 29
a29 26
--- src/state.h.orig	Mon Apr 26 01:49:05 1999
+++ src/state.h	Mon Apr 26 01:49:05 1999
@@@@ -0,0 +1,23 @@@@
+/*
+	Copyright (C) 1994	Edward Der-Hua Liu, Hsin-Chu, Taiwan
+*/
+
+typedef struct {
+	char  kb_state;
+        char _CurInMethod;
+} InmdState;
+
+#define EngChiMask (1)
+#define HalfFullMask (2)
+
+typedef struct {
+	int len;
+	int status;
+	InmdState inmdstate;
+	char tkey[512];
+} XCIN_RES;
+
+#define EngChi ((inmdstate.kb_state & EngChiMask) ? 1:0)
+#define HalfFull ((inmdstate.kb_state & HalfFullMask) ? 1:0)
+#define CurInMethod (inmdstate._CurInMethod)
+/* extern InmdState inmdstate; */
@


1.1.1.1
log
@Import of Chinese version of aterm 0.3.4.

Submitted by:	David Yu <davidyu@@ken.csie.ntu.edu.tw>
Requested by:	foxfair
@
text
@@
