On Wed, Jan 05, 2000 at 09:13:57AM +0800, [EMAIL PROTECTED] wrote:
gen_inp, 30
[EMAIL PROTECTED] 30 just work
:-))
[EMAIL PROTECTED]@[EMAIL PROTECTED] patch30
w[0-9] t t1
C
^_^ 30 ^_^
(gen_inp.patch array30.patch)I [EMAIL PROTECTED] ^_^
[EMAIL PROTECTED]@BTW, apply gen_inp.patch
$ unexpand gen_inp.c gen_inp.c.new
$ mv gen_inp.c.new gen_inp.c
40 :-)) 40
40
[EMAIL PROTECTED] .cin
[EMAIL PROTECTED]@[EMAIL PROTECTED] array30.cin
[EMAIL PROTECTED] xcin
array30.tab xcin2.3
GNU/Linux
[EMAIL PROTECTED]@304040
porting
^_^
[EMAIL PROTECTED]
[EMAIL PROTECTED]@ Unihan.txt
[1-9]
.
gen_inp [EMAIL PROTECTED] gen_inp
[EMAIL PROTECTED] *.cin alt-ctrl-??
toggle ^_^
^_^
[EMAIL PROTECTED]@ Unihan.txt
^_^
xcin [EMAIL PROTECTED] .cin
.cin [EMAIL PROTECTED] tarball,
tarball table ( cj.cin) .cin
table?
[EMAIL PROTECTED]@ array30.cin grin
arbitrary threshold 1 MB
xcin tarball 1 MB .cin
3. bimsphoretabe pinyincantonese
[EMAIL PROTECTED] ^_^ ( FAQ ^_^
libtabe libbims
[EMAIL PROTECTED] mode
libbims, libtabe,
[EMAIL PROTECTED]@[EMAIL PROTECTED]
gen_inp tabe
gen_inp table
[EMAIL PROTECTED]@
gen_inp
table,
libbims
[EMAIL PROTECTED]@ ^_^
bimsphone [EMAIL PROTECTED] libbims (libtabe [EMAIL PROTECTED])
[EMAIL PROTECTED] libbims libtabe [EMAIL
PROTECTED] libtabe
Big5
[EMAIL PROTECTED] Big5
libbims
GB
table [EMAIL PROTECTED] key
stroke, [EMAIL PROTECTED] sky == gen_inp
[EMAIL PROTECTED]
:-))
[EMAIL
PROTECTED]@
GB [EMAIL PROTECTED]
Big5 GB xcin
[EMAIL PROTECTED] Big5 GB
[EMAIL PROTECTED]
Big5 == GB
module .tab [EMAIL PROTECTED] table
[EMAIL PROTECTED]@ Unicode
EACCCNS11643-1992
Big5+Big5eBig5 w/HKSCSGBK grin, duck, run
Sorry, [EMAIL PROTECTED]@ :-))
[EMAIL PROTECTED]@ ^_^ TurboLinux Chinese
chinput
.cit/.tit cxterm Emacs [EMAIL PROTECTED]
^_^
[EMAIL PROTECTED]@ TLC zh_CN.GBK
alpha
CLE zh_CN.GBK C X locale
.src.rpm .src.rpm
zh_CN.GBK If so, please let me know. ^_^ (I need to
organize them first. :-)
--
Anthony Fok Tung-LingCivil and Environmental Engineering
[EMAIL PROTECTED], [EMAIL PROTECTED]University of Alberta, Canada
[EMAIL PROTECTED] Keep smiling! *^_^*
Come visit Our Lady of Victory Camp -- http://come.to/olvc
--- gen_inp.c.original Wed Jan 5 04:06:12 2000
+++ gen_inp.c Wed Jan 5 04:24:06 2000
@@ -20,6 +20,7 @@
*/
+#include ctype.h
#include string.h
#include X11/Xlib.h
#include X11/keysym.h
@@ -141,6 +142,10 @@
if (get_resource(cmd, value, 50, 2))
set_data((cf-mode), RC_IFLAG, value, INP_MODE_BEEPDUP, 0);
+cmd[1] = ARRAY30;/* array30 mode
*/
+if (get_resource(cmd, value, 50, 2))
+ set_data((cf-mode), RC_IFLAG, value, INP_MODE_ARRAY30, 0);
+
cmd[1] = QPHRASE_MODE;
if (get_resource(cmd, value, 50, 2))
cf-modesc = (ubyte_t)(atoi(value) % 256);
@@ -533,6 +538,11 @@
commit_keystroke(gen_inp_conf_t *cf, inpinfo_t *inpinfo, gen_inp_iccf_t *iccf)
/* return: the IMKEY state */
{
+if (cf-mode INP_MODE_ARRAY30 !strcmp(iccf-keystroke, t)) {
+ /* Output de5 when keystroke is t, special for Array30 */
+ strcpy(iccf-keystroke, lplh);
+}
+
if (match_keystroke(cf, inpinfo, iccf)) {
if (inpinfo-n_mcch == 1) {
commit_char(inpinfo, iccf, inpinfo-mcch);
@@ -855,6 +865,12 @@
selkey_idx = ((s = strchr(cf-header.selkey, keystr[0]))) ?
(int)(s - cf-header.selkey) : -1;
+ if (cf-mode INP_MODE_ARRAY30
+strcmp(iccf-keystroke, w) isdigit(keystr[0])) {
+ /* Deals with w[0-9] symbol input in Array30 */
+ wch.wch = (wchar_t)0;
+ }
+
if (inpinfo-keystroke_len selkey_idx != -1 ! wch.wch) {
/* Don't enter the multi-cch selection, but selkey pressed. */
return (mcch_choosech(cf, inpinfo, iccf, selkey_idx)) ?
@@ -970,7 +986,7 @@
/*
- Definition of general input method module (templet).
+ Definition of general input method module (template).
*/
--- gen_inp.h.original Sun Nov 28 07:02:27 1999
+++ gen_inp.h Wed Jan 5 04:27:00 2000
@@ -37,6 +37,7 @@
#define INP_MODE_SINMDLINE1 0x0200 /* Enable sinmd in line1 mode. */
#define INP_MODE_SPACERESET 0x0400 /* Enable space reset error mode. */
#define INP_MODE_AUTORESET 0x0800 /* Enable auto reset error mode. */
+#define INP_MODE_ARRAY30 0x1000 /* Enable Array30 mode. */
#define INP_MODE_BEEPWRONG 0x0001 /* Beap when type a wrong char. */
#define INP_MODE_BEEPDUP 0x0002 /* Beap when exists duplet chars. */
--- array30.cin.origWed Jun