summaryrefslogtreecommitdiff
path: root/inputmethod/xcin/files/xcinrc.DRAGONFLY
blob: 4d263cf850b55b9d101ecd4addf759882d624a1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
;
;  Xcin resource file for DragonFlyBSD system.
;
;  By T.H.Hsieh.

;
;  Directories.
;
(define XCIN_DEFAULT_DIR      "%xcin_dir%")
(define XCIN_USER_DIR         ".xcin")

;
;  This defines GUI attribute.
;
(define INDEX_FONT  		"-sony-*-16-*-iso8859-1")
(define FG_COLOR    		"white")
(define BG_COLOR    		"blue")
(define M_FG_COLOR  		"yellow")
(define M_BG_COLOR  		"darkred")
(define ULINE_COLOR		"cyan")
(define GRID_COLOR		"white")
(define X_GEOMETRY  		"45x2+200-1")
(define START_MAINWIN2		"NO")
(define MAINWIN2_GEOMETRY	"27x1+200-1")
(define XCIN_HIDE   		"NO")
(define XKILL_DISABLE		"NO")
(define SINGLE_IM_CONTEXT	"NO")
(define IM_FOCUS_ON		"NO")
(define KEEP_POSITION_ON	"NO")
(define DISABLE_WM_CTRL		"NO")
(define DIFF_BEEP		"YES")
(define KEYBOARD_TRANSLATE	"NO")

;
;  XIM Input Style Adjustments.
;
(define INPUT_STYLE		'(Root OverTheSpot))
(define OVERSPOT_USE_USRCOLOR	"YES")
(define OVERSPOT_USE_USRFONTSET "YES")
(define OVERSPOT_WINDOW_ONLY	"NO")

(define LOCALE  '(zh_TW.Big5 zh_CN.eucCN))

;
;  Special Trigger Keys.
;
;(define FKEY_ZHEN		"ctrl space")
;(define FKEY_2BSB		"shift space")
;(define FKEY_CIRIM		"ctrl shift")
;(define FKEY_CIRRIM		"shift ctrl")
;(define FKEY_CHREP		"ctrl alt r")
;(define FKEY_SIMD		"ctrl alt i")
;(define FKEY_IMFOCUS		"ctrl alt f")
;(define FKEY_IMN		"ctrl alt")
;(define FKEY_QPHRASE		"shift alt")

;
;  IM module default resources.
;
(define gen_inp_default
        '((AUTO_COMPOSE         YES)
          (AUTO_UPCHAR          YES)
          (AUTO_FULLUP          NO)
          (SPACE_AUTOUP         NO)
          (SELKEY_SHIFT         NO)
          (SPACE_IGNORE         NO)
          (SPACE_RESET          YES)
          (AUTO_RESET           NO)
          (WILD_ENABLE          YES)
          (SINMD_IN_LINE1       NO)
          (END_KEY              NO)
          (QPHRASE_MODE         0)      ; 1:shift, 2:ctrl, 4:alt, 8:fallback
          (DISABLE_SEL_LIST     "NONE")
	  (KEYSTROKE_REMAP	"NONE")
          (BEEP_WRONG           YES)
          (BEEP_DUPCHAR         NO)
          (TSI_FNAME            "%tabe_data%tsi.db")
	  (HINT_SELECT		NO)
	  (HINT_TSI		NO)))

(define bimsphone_default
        '((N_SELECTION_KEY      9)
          (SELECTION_KEYS       0)      ; 0: "1234567890", 1: "asdfgjkl;"
          (PAGE_KEYS            5)      ; 1:<> 2:,. 4:(Rt)(Lt)
          (QPHRASE_MODE         1)      ; 1:shift, 2:ctrl, 4:alt, 8:fallback
        ;
        ; This is only valid for "bimsphone*" IM name.
          (AUTO_SELECTION       YES)
          (KEYMAP               0)      ; 0:zozy, 1:et, 2:et26, 3:hsu
        ;
        ; This is only valid for "bimspinyin*" IM name.
          (PINPHO_MAP           "bims_pinyin")
        ;
        ; The following has effect only when AUTO_SELECTION is YES
          (TSI_FNAME            "%tabe_data%tsi.db")
          (YIN_FNAME            "%tabe_data%yin.db")
          (SPACE_SELECTION      NO)
          (PHRASE_SELECTION     YES)
          (N_SELECTION_PHR      4)
        ;
        ; The following has effect only when AUTO_SELECTION is NO
          (AUTO_UPCHAR          YES)))


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;  This is the global configuration of the zh_TW.Big5 locale 
;
(define zh_TW.Big5 
  '((DEFAULT_IM		"cj")
    (DEFAULT_IM_MODULE	"gen_inp")
    (DEFAULT_IM_SINMD	"DEFAULT")
    (PHRASE		"default.phr")
    (CINPUT		(cj simplex phone bimspinyin bimsphone jyutping
			 array30 jyutping0 chewing zh_hex))
    (FONTSET		"-sony-*-24-*-iso8859-1,-*-medium-r-*-24-*-big5-0")
    (OVERSPOT_FONTSET	"-sony-*-16-*-iso8859-1,-*-medium-r-*-16-*-big5-0")))
;
;  Here are detailed configuration of each IM (for zh_TW.Big5 locale).
;
(define cj@big5
	'((SETKEY		1)))

(define simplex@big5
	'((SETKEY		2)))

(define phone@big5
	'((SETKEY		3)
	  (END_KEY		YES)
	  (BEEP_DUPCHAR		YES)))

(define jyutping@big5
	'((SETKEY		4)
	  (END_KEY		YES)
	  (BEEP_DUPCHAR		YES)))

(define bimsphone@big5
	'((SETKEY		6)
	  (MODULE		"bimsphone")))

(define bimspinyin@big5
	'((SETKEY		7)
	  (MODULE		"bimsphone")))

(define array30@big5
	'((SETKEY		8)
      	  (BEEP_DUPCHAR		YES)
	  (DISABLE_SEL_LIST	"w")
	  (KEYSTROKE_REMAP	"t:0xaaba;T:0xaaba;")))

(define jyutping0@big5
	'((SETKEY		9)
	  (BEEP_DUPCHAR		YES)))

(define chewing@big5
	'((SETKEY		10)
	  (MODULE		"chewing")))


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;  This is the global configuration of the zh_CN.eucCN locale 
;
(define zh_CN.eucCN
  '((DEFAULT_IM		"pinyin")
    (DEFAULT_IM_MODULE	"gen_inp")
    (DEFAULT_IM_SINMD	"DEFAULT")
    (PHRASE		"default.phr")
    (CINPUT		(pinyin shuangpin jtcj_gb wubizixing phonegb2
			 zh_hex))
    (FONTSET		"-sony-*-24-*-iso8859-1,-*-medium-r-*-24-*-gb2312.1980-0")
    (OVERSPOT_FONTSET	"-sony-*-16-*-iso8859-1,-*-medium-r-*-16-*-gb2312.1980-0")))
;
;  Here are detailed configuration of each IM (for zh_CN.eucCN locale).
;
(define pinyin@euccn
	'((SETKEY		1)
	  (BEEP_DUPCHAR		YES)))

(define shuangpin@euccn
	'((SETKEY		2)
	  (BEEP_DUPCHAR 	YES)))

(define jtcj_gb@euccn
	'((SETKEY		3)))

(define phonegb2@euccn
	'((SETKEY		4)
	  (END_KEY		YES)
	  (BEEP_DUPCHAR		YES)))

(define wubizixing@euccn
	'((SETKEY		5)))



;
;  The zh_hex module (zh_hex input method) is a special IM, which can be
;  used in many different encodings.
;
(define zh_hex 
	'((SETKEY		0)
	  (MODULE		zh_hex)
	  (INP_CNAME_big5	"0xa4ba+0xbd58")
	  (INP_CNAME_euccn	"0xc4da+0xc2eb")
	  (BEEP_WRONG		YES)))