1
;;; mana-custom.scm: Customization variables for mana.scm
3
;;; Copyright (c) 2003-2006 uim Project http://uim.freedesktop.org/
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 mana-im-name-label (N_ "Mana"))
36
(define mana-im-short-desc (N_ "A multi-segment kana-kanji conversion engine"))
38
(define-custom-group 'mana
39
(ugettext mana-im-name-label)
40
(ugettext mana-im-short-desc))
42
(define-custom-group 'mana-advanced
44
(_ "Advanced settings for Mana"))
50
(define-custom 'mana-show-segment-separator? #f
53
(_ "Show segment separator")
54
(_ "long description will be here."))
56
(define-custom 'mana-segment-separator "|"
59
(_ "Segment separator")
60
(_ "long description will be here."))
62
(custom-add-hook 'mana-segment-separator
63
'custom-activity-hooks
65
mana-show-segment-separator?))
71
(define-custom 'mana-use-candidate-window? #t
74
(_ "Use candidate window")
75
(_ "long description will be here."))
77
(define-custom 'mana-candidate-op-count 1
80
(_ "Conversion key press count to show candidate window")
81
(_ "long description will be here."))
83
(define-custom 'mana-nr-candidate-max 10
86
(_ "Number of candidates in candidate window at a time")
87
(_ "long description will be here."))
89
(define-custom 'mana-select-candidate-by-numeral-key? #f
92
(_ "Select candidate by numeral keys")
93
(_ "long description will be here."))
95
;; activity dependency
96
(custom-add-hook 'mana-candidate-op-count
97
'custom-activity-hooks
99
mana-use-candidate-window?))
101
(custom-add-hook 'mana-nr-candidate-max
102
'custom-activity-hooks
104
mana-use-candidate-window?))
106
(custom-add-hook 'mana-select-candidate-by-numeral-key?
107
'custom-activity-hooks
109
mana-use-candidate-window?))
115
;; Can't be unified with action definitions in mana.scm until uim
117
(define mana-input-mode-indication-alist
119
(list 'action_mana_direct
123
(N_ "Direct input mode"))
124
(list 'action_mana_hiragana
128
(N_ "Hiragana input mode"))
129
(list 'action_mana_katakana
133
(N_ "Katakana input mode"))
134
(list 'action_mana_halfkana
137
(N_ "Halfwidth Katakana")
138
(N_ "Halfwidth Katakana input mode"))
139
(list 'action_mana_halfwidth_alnum
142
(N_ "Halfwidth Alphanumeric")
143
(N_ "Halfwidth Alphanumeric input mode"))
144
(list 'action_mana_fullwidth_alnum
147
(N_ "Fullwidth Alphanumeric")
148
(N_ "Fullwidth Alphanumeric input mode"))))
150
(define mana-kana-input-method-indication-alist
152
(list 'action_mana_roma
156
(N_ "Romaji input mode"))
157
(list 'action_mana_kana
161
(N_ "Kana input mode"))
162
(list 'action_mana_azik
166
(N_ "AZIK extended romaji input mode"))))
170
(define-custom 'mana-widgets '(widget_mana_input_mode
171
widget_mana_kana_input_method)
174
(list 'widget_mana_input_mode
177
(list 'widget_mana_kana_input_method
178
(_ "Kana input method")
179
(_ "Kana input method")))
180
(_ "Enabled toolbar buttons")
181
(_ "long description will be here."))
183
;; dynamic reconfiguration
184
;; mana-configure-widgets is not defined at this point. So wrapping
186
(custom-add-hook 'mana-widgets
189
(mana-configure-widgets)))
194
(define-custom 'default-widget_mana_input_mode 'action_mana_direct
197
(map indication-alist-entry-extract-choice
198
mana-input-mode-indication-alist))
199
(_ "Default input mode")
200
(_ "long description will be here."))
202
(define-custom 'mana-input-mode-actions
203
(map car mana-input-mode-indication-alist)
206
(map indication-alist-entry-extract-choice
207
mana-input-mode-indication-alist))
208
(_ "Input mode menu items")
209
(_ "long description will be here."))
212
(if custom-full-featured?
213
(custom-add-hook 'mana-input-mode-actions
216
(custom-choice-range-reflect-olist-val
217
'default-widget_mana_input_mode
218
'mana-input-mode-actions
219
mana-input-mode-indication-alist))))
221
;; activity dependency
222
(custom-add-hook 'default-widget_mana_input_mode
223
'custom-activity-hooks
225
(memq 'widget_mana_input_mode mana-widgets)))
227
(custom-add-hook 'mana-input-mode-actions
228
'custom-activity-hooks
230
(memq 'widget_mana_input_mode mana-widgets)))
232
;; dynamic reconfiguration
233
(custom-add-hook 'default-widget_mana_input_mode
236
(mana-configure-widgets)))
238
(custom-add-hook 'mana-input-mode-actions
241
(mana-configure-widgets)))
243
;;; Kana input method
245
(define-custom 'default-widget_mana_kana_input_method 'action_mana_roma
248
(map indication-alist-entry-extract-choice
249
mana-kana-input-method-indication-alist))
250
(_ "Default kana input method")
251
(_ "long description will be here."))
253
(define-custom 'mana-kana-input-method-actions
254
(map car mana-kana-input-method-indication-alist)
257
(map indication-alist-entry-extract-choice
258
mana-kana-input-method-indication-alist))
259
(_ "Kana input method menu items")
260
(_ "long description will be here."))
263
(if custom-full-featured?
264
(custom-add-hook 'mana-kana-input-method-actions
267
(custom-choice-range-reflect-olist-val
268
'default-widget_mana_kana_input_method
269
'mana-kana-input-method-actions
270
mana-kana-input-method-indication-alist))))
272
;; activity dependency
273
(custom-add-hook 'default-widget_mana_kana_input_method
274
'custom-activity-hooks
276
(memq 'widget_mana_kana_input_method mana-widgets)))
278
(custom-add-hook 'mana-kana-input-method-actions
279
'custom-activity-hooks
281
(memq 'widget_mana_kana_input_method mana-widgets)))
283
;; dynamic reconfiguration
284
(custom-add-hook 'default-widget_mana_kana_input_method
287
(mana-configure-widgets)))
289
(custom-add-hook 'mana-kana-input-method-actions
292
(mana-configure-widgets)))
294
(define-custom 'mana-use-with-vi? #f
295
'(mana-advanced special-op)
297
(_ "Enable vi-cooperative mode")
298
(_ "long description will be here."))
300
(define-custom 'mana-use-mode-transition-keys-in-off-mode? #f
301
'(mana-advanced mode-transition)
303
(_ "Enable input mode transition keys in direct (off state) input mode")
304
(_ "long description will be here."))