~ubuntu-branches/ubuntu/precise/uim/precise

« back to all changes in this revision

Viewing changes to scm/wnn-custom.scm

  • Committer: Package Import Robot
  • Author(s): Ilya Barygin
  • Date: 2011-12-18 16:35:38 UTC
  • mfrom: (1.1.13) (15.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20111218163538-8ktir39z2mjpii8z
Tags: 1:1.7.1-3ubuntu1
* Merge from Debian testing (LP: #818199).
* Remaining changes:
  - debian/uim-qt.install: Fix plugin path for multiarch location.
* Dropped changes:
  - uim-applet-gnome removal (GNOME 3 applet is available)
  - 19_as-needed_compile_fix.dpatch (accepted into Debian package)
* translations.patch: add several files to POTFILE.in to prevent
  intltool-update failure.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
;;; wnn-custom.scm: Customization variables for wnn.scm
2
2
;;;
3
 
;;; Copyright (c) 2003-2009 uim Project http://code.google.com/p/uim/
 
3
;;; Copyright (c) 2003-2011 uim Project http://code.google.com/p/uim/
4
4
;;;
5
5
;;; All rights reserved.
6
6
;;;
47
47
                     (N_ "Wnn (advanced)")
48
48
                     (N_ "long description will be here."))
49
49
 
 
50
(define-custom-group 'wnn-prediction
 
51
                     (N_ "Prediction")
 
52
                     (N_ "long description will be here."))
 
53
 
50
54
;;
51
55
;; segment separator
52
56
;;
168
172
         'ja_azik
169
173
         "��"
170
174
         (N_ "AZIK")
171
 
         (N_ "AZIK extended romaji input mode"))))
 
175
         (N_ "AZIK extended romaji input mode"))
 
176
   (list 'action_wnn_act
 
177
         'ja_act
 
178
         "��"
 
179
         (N_ "ACT")
 
180
         (N_ "ACT extended romaji input mode"))
 
181
   (list 'action_wnn_kzik
 
182
         'ja_kzik
 
183
         "��"
 
184
         (N_ "KZIK")
 
185
         (N_ "KZIK extended romaji input mode"))))
172
186
 
173
187
;;; Buttons
174
188
 
175
189
(define-custom 'wnn-widgets '(widget_wnn_input_mode
176
190
                                widget_wnn_kana_input_method)
177
 
  '(wnn toolbar)
 
191
  '(wnn toolbar-widget)
178
192
  (list 'ordered-list
179
193
        (list 'widget_wnn_input_mode
180
194
              (N_ "Input mode")
197
211
;;; Input mode
198
212
 
199
213
(define-custom 'default-widget_wnn_input_mode 'action_wnn_direct
200
 
  '(wnn toolbar)
 
214
  '(wnn toolbar-widget)
201
215
  (cons 'choice
202
216
        (map indication-alist-entry-extract-choice
203
217
             wnn-input-mode-indication-alist))
206
220
 
207
221
(define-custom 'wnn-input-mode-actions
208
222
               (map car wnn-input-mode-indication-alist)
209
 
  '(wnn toolbar)
 
223
  '(wnn toolbar-widget)
210
224
  (cons 'ordered-list
211
225
        (map indication-alist-entry-extract-choice
212
226
             wnn-input-mode-indication-alist))
248
262
;;; Kana input method
249
263
 
250
264
(define-custom 'default-widget_wnn_kana_input_method 'action_wnn_roma
251
 
  '(wnn toolbar)
 
265
  '(wnn toolbar-widget)
252
266
  (cons 'choice
253
267
        (map indication-alist-entry-extract-choice
254
268
             wnn-kana-input-method-indication-alist))
257
271
 
258
272
(define-custom 'wnn-kana-input-method-actions
259
273
               (map car wnn-kana-input-method-indication-alist)
260
 
  '(wnn toolbar)
 
274
  '(wnn toolbar-widget)
261
275
  (cons 'ordered-list
262
276
        (map indication-alist-entry-extract-choice
263
277
             wnn-kana-input-method-indication-alist))
304
318
(define-custom 'wnn-use-remote-server? #f
305
319
  '(wnn-advanced wnnserver)
306
320
  '(boolean)
307
 
  (N_ "Use value of use remote Wnn server")
 
321
  (N_ "Use remote Wnn server")
308
322
  (N_ "long description will be here."))
309
323
 
310
324
 
336
350
  '(boolean)
337
351
  (N_ "Enable input mode transition keys in direct (off state) input mode")
338
352
  (N_ "long description will be here."))
 
353
 
 
354
;; prediction
 
355
(define-custom 'wnn-use-prediction? #f
 
356
  '(wnn-advanced wnn-prediction)
 
357
  '(boolean)
 
358
  (N_ "Enable input prediction")
 
359
  (N_ "long description will be here."))
 
360
 
 
361
(define-custom 'wnn-select-prediction-by-numeral-key? #f
 
362
  '(wnn-advanced wnn-prediction)
 
363
  '(boolean)
 
364
  (N_ "Select prediction candidate by numeral keys")
 
365
  (N_ "long description will be here."))
 
366
 
 
367
(define-custom 'wnn-use-implicit-commit-prediction? #t
 
368
  '(wnn-advanced wnn-prediction)
 
369
  '(boolean)
 
370
  (N_ "Show selected prediction candidate in preedit area")
 
371
  (N_ "long description will be here."))
 
372
 
 
373
(define-custom 'wnn-prediction-cache-words 256
 
374
  '(wnn-advanced wnn-prediction)
 
375
  '(integer 1 65535)
 
376
  (N_ "Number of cache of prediction candidates")
 
377
  (N_ "long description will be here."))
 
378
 
 
379
(define-custom 'wnn-prediction-start-char-count 2
 
380
  '(wnn-advanced wnn-prediction)
 
381
  '(integer 1 65535)
 
382
  (N_ "Character count to start input prediction")
 
383
  (N_ "long description will be here."))
 
384
 
 
385
(custom-add-hook 'wnn-use-candidate-window?
 
386
                 'custom-get-hooks
 
387
                 (lambda ()
 
388
                   (if (not wnn-use-candidate-window?)
 
389
                       (set! wnn-use-prediction? #f))))
 
390
 
 
391
(custom-add-hook 'wnn-use-prediction?
 
392
                 'custom-activity-hooks
 
393
                 (lambda ()
 
394
                   wnn-use-candidate-window?))
 
395
 
 
396
(custom-add-hook 'wnn-select-prediction-by-numeral-key?
 
397
                 'custom-activity-hooks
 
398
                 (lambda ()
 
399
                   wnn-use-prediction?))
 
400
 
 
401
(custom-add-hook 'wnn-use-implicit-commit-prediction?
 
402
                 'custom-activity-hooks
 
403
                 (lambda ()
 
404
                   wnn-use-prediction?))
 
405
 
 
406
(custom-add-hook 'wnn-prediction-cache-words
 
407
                 'custom-activity-hooks
 
408
                 (lambda ()
 
409
                   wnn-use-prediction?))
 
410
 
 
411
(custom-add-hook 'wnn-prediction-start-char-count
 
412
                 'custom-activity-hooks
 
413
                 (lambda ()
 
414
                   wnn-use-prediction?))