1
;;; tutcode-custom.scm: Customization variables for tutcode.scm
3
;;; Copyright (c) 2003-2011 uim Project http://code.google.com/p/uim/
5
;;; All rights reserved.
7
;;; Redistribution and use in source and binary forms, with or without
8
;;; modification, are permitted provided that the following conditions
10
;;; 1. Redistributions of source code must retain the above copyright
11
;;; notice, this list of conditions and the following disclaimer.
12
;;; 2. Redistributions in binary form must reproduce the above copyright
13
;;; notice, this list of conditions and the following disclaimer in the
14
;;; documentation and/or other materials provided with the distribution.
15
;;; 3. Neither the name of authors nor the names of its contributors
16
;;; may be used to endorse or promote products derived from this software
17
;;; without specific prior written permission.
19
;;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND
20
;;; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
;;; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22
;;; ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE
23
;;; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
;;; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25
;;; OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26
;;; HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27
;;; LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28
;;; OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35
(define tutcode-im-name-label (N_ "TUT-Code"))
36
(define tutcode-im-short-desc (N_ "uim version of TUT-Code input method"))
38
(define-custom-group 'tutcode
40
tutcode-im-short-desc)
42
(define-custom-group 'tutcode-dict
43
(N_ "TUT-Code dictionaries")
44
(N_ "Dictionary settings for TUT-Code"))
46
(define-custom-group 'tutcode-bushu
47
(N_ "Bushu conversion")
48
(N_ "Bushu conversion settings for TUT-Code"))
50
(define-custom-group 'tutcode-mazegaki
51
(N_ "Mazegaki conversion")
52
(N_ "Mazegaki conversion settings for TUT-Code"))
54
(define-custom-group 'tutcode-prediction
56
(N_ "long description will be here."))
62
(define-custom 'tutcode-dic-filename (string-append (sys-datadir)
64
'(tutcode tutcode-dict)
65
'(pathname regular-file)
66
(N_ "Mazegaki dictionary file")
67
(N_ "long description will be here."))
69
(define-custom 'tutcode-personal-dic-filename
70
(string-append (or (home-directory (user-name)) "") "/.mazegaki.dic")
71
'(tutcode tutcode-dict)
72
'(pathname regular-file)
73
(N_ "Personal mazegaki dictionary file")
74
(N_ "long description will be here."))
76
(define-custom 'tutcode-rule-filename
77
(string-append (sys-pkgdatadir) "/tutcode-rule.scm")
79
'(pathname regular-file)
80
(N_ "Code table file")
81
(N_ "Code table name is 'filename-rule' when code table file name is 'filename.scm'."))
83
(define-custom 'tutcode-enable-mazegaki-learning? #t
84
'(tutcode tutcode-mazegaki)
86
(N_ "Enable learning in mazegaki conversion")
87
(N_ "long description will be here."))
89
(define-custom 'tutcode-use-recursive-learning? #t
90
'(tutcode tutcode-mazegaki)
92
(N_ "Use recursive learning")
93
(N_ "long description will be here."))
95
(define-custom 'tutcode-use-with-vi? #f
98
(N_ "Enable vi-cooperative mode")
99
(N_ "long description will be here."))
101
(define-custom 'tutcode-use-dvorak? #f
104
(N_ "Use Dvorak keyboard")
105
(N_ "long description will be here."))
107
(define-custom 'tutcode-use-kigou2-mode? #f
110
(N_ "Enable two stroke kigou mode")
111
(N_ "long description will be here."))
113
(define-custom 'tutcode-enable-fallback-surrounding-text? #f
116
(N_ "Enable fallback of surrounding text API")
117
(N_ "long description will be here."))
119
(define-custom 'tutcode-history-size 0
123
(N_ "long description will be here."))
125
(define-custom 'tutcode-mazegaki-yomi-max 10
126
'(tutcode tutcode-mazegaki)
128
(N_ "Maximum length of yomi for postfix mazegaki conversion")
129
(N_ "long description will be here."))
131
(define-custom 'tutcode-mazegaki-enable-inflection? #f
132
'(tutcode tutcode-mazegaki)
134
(N_ "Enable inflection in mazegaki conversion")
135
(N_ "long description will be here."))
137
(define-custom 'tutcode-mazegaki-suffix-max 4
138
'(tutcode tutcode-mazegaki)
140
(N_ "Maximum length of yomi suffix for mazegaki conversion")
141
(N_ "long description will be here."))
143
(define-custom 'tutcode-use-interactive-bushu-conversion? #f
144
'(tutcode tutcode-bushu)
146
(N_ "Enable interactive bushu conversion")
147
(N_ "long description will be here."))
149
(define-custom 'tutcode-bushu-index2-filename (string-append (sys-datadir)
151
'(tutcode tutcode-bushu)
152
'(pathname regular-file)
153
(N_ "bushu.index2 file")
154
(N_ "long description will be here."))
156
(define-custom 'tutcode-bushu-expand-filename (string-append (sys-datadir)
158
'(tutcode tutcode-bushu)
159
'(pathname regular-file)
160
(N_ "bushu.expand file")
161
(N_ "long description will be here."))
163
(define-custom 'tutcode-bushu-help-filename ""
164
'(tutcode tutcode-bushu)
165
'(pathname regular-file)
166
(N_ "bushu.help file")
167
(N_ "long description will be here."))
173
(define-custom 'tutcode-use-candidate-window? #t
176
(N_ "Use candidate window")
177
(N_ "long description will be here."))
179
(define-custom 'tutcode-use-table-style-candidate-window? #f
182
(N_ "Use table style candidate window")
183
(N_ "long description will be here."))
185
(define-custom 'tutcode-candidate-window-table-layout 'qwerty-jis
188
(list 'qwerty-jis (N_ "qwerty-jis") (N_ "Qwerty JIS"))
189
(list 'qwerty-us (N_ "qwerty-us") (N_ "Qwerty US"))
190
(list 'dvorak (N_ "dvorak") (N_ "Dvorak")))
191
(N_ "Key layout of table style candidate window")
192
(N_ "long description will be here."))
194
(define-custom 'tutcode-commit-candidate-by-label-key? #t
197
(N_ "Commit candidate by heading label keys")
198
(N_ "long description will be here."))
200
(define-custom 'tutcode-candidate-op-count 5
203
(N_ "Conversion key press count to show candidate window")
204
(N_ "long description will be here."))
206
(define-custom 'tutcode-nr-candidate-max 10
209
(N_ "Number of candidates in candidate window at a time")
210
(N_ "long description will be here."))
212
(define-custom 'tutcode-nr-candidate-max-for-kigou-mode 10
215
(N_ "Number of candidates in candidate window at a time for kigou mode")
216
(N_ "long description will be here."))
218
(define-custom 'tutcode-nr-candidate-max-for-prediction 10
221
(N_ "Number of candidates in candidate window at a time for prediction")
222
(N_ "long description will be here."))
224
(define-custom 'tutcode-nr-candidate-max-for-guide 10
227
(N_ "Number of candidates in candidate window at a time for kanji combination guide")
228
(N_ "long description will be here."))
230
(define-custom 'tutcode-nr-candidate-max-for-history 10
233
(N_ "Number of candidates in candidate window at a time for history")
234
(N_ "long description will be here."))
236
(define-custom 'tutcode-use-stroke-help-window? #f
239
(N_ "Use stroke help window")
240
(N_ "long description will be here."))
242
(define-custom 'tutcode-use-auto-help-window? #f
245
(N_ "Use auto help window")
246
(N_ "long description will be here."))
248
(define-custom 'tutcode-auto-help-with-real-keys? #f
251
(N_ "Show real keys on auto help window")
252
(N_ "long description will be here."))
254
;; prediction/completion
255
(define-custom 'tutcode-use-completion? #f
256
'(tutcode tutcode-prediction)
258
(N_ "Enable completion")
259
(N_ "long description will be here."))
261
(define-custom 'tutcode-completion-chars-min 2
262
'(tutcode tutcode-prediction)
264
(N_ "Minimum character length for completion")
265
(N_ "long description will be here."))
267
(define-custom 'tutcode-completion-chars-max 5
268
'(tutcode tutcode-prediction)
270
(N_ "Maximum character length for completion")
271
(N_ "long description will be here."))
273
(define-custom 'tutcode-use-prediction? #f
274
'(tutcode tutcode-prediction)
276
(N_ "Enable input prediction for mazegaki conversion")
277
(N_ "long description will be here."))
279
(define-custom 'tutcode-prediction-start-char-count 2
280
'(tutcode tutcode-prediction)
282
(N_ "Character count to start input prediction")
283
(N_ "long description will be here."))
285
(define-custom 'tutcode-use-kanji-combination-guide? #f
286
'(tutcode tutcode-prediction)
288
(N_ "Enable Kanji combination guide")
289
(N_ "long description will be here."))
291
(define-custom 'tutcode-stroke-help-with-kanji-combination-guide 'disable
292
'(tutcode tutcode-prediction)
294
(list 'full (N_ "Full stroke help") (N_ "Full stroke help"))
295
(list 'guide-only (N_ "Guide only") (N_ "Guide only"))
296
(list 'disable (N_ "Disable") (N_ "Disable")))
297
(N_ "Show stroke help temporarily by keys in kanji combination guide")
298
(N_ "long description will be here."))
300
(define-custom 'tutcode-use-bushu-prediction? #f
301
'(tutcode tutcode-prediction)
303
(N_ "Enable input prediction for bushu conversion")
304
(N_ "long description will be here."))
306
;; activity dependency
307
(custom-add-hook 'tutcode-candidate-op-count
308
'custom-activity-hooks
310
tutcode-use-candidate-window?))
312
(custom-add-hook 'tutcode-nr-candidate-max
313
'custom-activity-hooks
315
tutcode-use-candidate-window?))
317
(custom-add-hook 'tutcode-nr-candidate-max-for-kigou-mode
318
'custom-activity-hooks
320
tutcode-use-candidate-window?))
322
(custom-add-hook 'tutcode-nr-candidate-max-for-prediction
323
'custom-activity-hooks
325
tutcode-use-candidate-window?))
327
(custom-add-hook 'tutcode-nr-candidate-max-for-guide
328
'custom-activity-hooks
330
tutcode-use-candidate-window?))
332
(custom-add-hook 'tutcode-auto-help-with-real-keys?
333
'custom-activity-hooks
335
tutcode-use-auto-help-window?))
337
(custom-add-hook 'tutcode-use-table-style-candidate-window?
340
(if tutcode-use-table-style-candidate-window?
342
(custom-set-value! 'tutcode-nr-candidate-max
343
(length tutcode-table-heading-label-char-list))
345
'tutcode-nr-candidate-max-for-kigou-mode
346
(length tutcode-table-heading-label-char-list-for-kigou-mode))
348
'tutcode-nr-candidate-max-for-prediction
349
(length tutcode-heading-label-char-list-for-prediction))
351
'tutcode-nr-candidate-max-for-guide
352
(- (length tutcode-table-heading-label-char-list-for-kigou-mode)
353
(length tutcode-heading-label-char-list-for-prediction))))
355
(custom-set-value! 'tutcode-nr-candidate-max 10)
356
(custom-set-value! 'tutcode-nr-candidate-max-for-kigou-mode 10)
357
(custom-set-value! 'tutcode-nr-candidate-max-for-prediction 10)
358
(custom-set-value! 'tutcode-nr-candidate-max-for-guide 10)))))
360
(custom-add-hook 'tutcode-candidate-window-table-layout
361
'custom-activity-hooks
363
tutcode-use-table-style-candidate-window?))
365
(custom-add-hook 'tutcode-bushu-index2-filename
366
'custom-activity-hooks
368
tutcode-use-interactive-bushu-conversion?))
370
(custom-add-hook 'tutcode-bushu-expand-filename
371
'custom-activity-hooks
373
tutcode-use-interactive-bushu-conversion?))