1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * Copyright (C) 2004 Hiroyuki Ikezoe
4 * Copyright (C) 2004 Takuro Ashie
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 #ifndef __SCIM_ANTHY_PREFS_H__
22 #define __SCIM_ANTHY_PREFS_H__
25 #define SCIM_ANTHY_CONFIG_INPUT_MODE "/IMEngine/Anthy/InputMode"
26 #define SCIM_ANTHY_CONFIG_TYPING_METHOD "/IMEngine/Anthy/TypingMethod"
27 #define SCIM_ANTHY_CONFIG_CONVERSION_MODE "/IMEngine/Anthy/ConversionMode"
28 #define SCIM_ANTHY_CONFIG_PERIOD_STYLE "/IMEngine/Anthy/PeriodStyle"
29 #define SCIM_ANTHY_CONFIG_SYMBOL_STYLE "/IMEngine/Anthy/SymbolStyle"
30 #define SCIM_ANTHY_CONFIG_SPACE_TYPE "/IMEngine/Anthy/SpaceType"
31 #define SCIM_ANTHY_CONFIG_TEN_KEY_TYPE "/IMEngine/Anthy/TenKeyType"
32 #define SCIM_ANTHY_CONFIG_BEHAVIOR_ON_PERIOD "/IMEngine/Anthy/BehaviorOnPeriod"
33 #define SCIM_ANTHY_CONFIG_BEHAVIOR_ON_FOCUS_OUT "/IMEngine/Anthy/BehaviorOnFocusOut"
35 #define SCIM_ANTHY_CONFIG_ROMAJI_THEME_FILE "/IMEngine/Anthy/RomajiThemeFile"
36 #define SCIM_ANTHY_CONFIG_ROMAJI_HALF_SYMBOL "/IMEngine/Anthy/RomajiHalfSymbol"
37 #define SCIM_ANTHY_CONFIG_ROMAJI_HALF_NUMBER "/IMEngine/Anthy/RomajiHalfNumber"
38 #define SCIM_ANTHY_CONFIG_ROMAJI_ALLOW_SPLIT "/IMEngine/Anthy/RomajiAllowSplit"
39 #define SCIM_ANTHY_CONFIG_ROMAJI_PSEUDO_ASCII_MODE "/IMEngine/Anthy/RomajiPseudoAsciiMode"
40 #define SCIM_ANTHY_CONFIG_ROMAJI_PSEUDO_ASCII_BLANK_BEHAVIOR "/IMEngine/Anthy/RomajiPseudoAsciiBlankBehavior"
42 #define SCIM_ANTHY_CONFIG_KANA_LAYOUT_FILE "/IMEngine/Anthy/KanaLayoutFile"
43 #define SCIM_ANTHY_CONFIG_KANA_LAYOUT_RO_KEY "/IMEngine/ANthy/KanaLayoutRoKey"
45 #define SCIM_ANTHY_CONFIG_NICOLA_LAYOUT_FILE "/IMEngine/Anthy/NICOLALayoutFile"
46 #define SCIM_ANTHY_CONFIG_NICOLA_TIME "/IMEngine/Anthy/NICOLATime"
47 #define SCIM_ANTHY_CONFIG_LEFT_THUMB_SHIFT_KEY "/IMEngine/Anthy/LeftThumbShiftKey"
48 #define SCIM_ANTHY_CONFIG_RIGHT_THUMB_SHIFT_KEY "/IMEngine/Anthy/RightThumbShiftKey"
50 #define SCIM_ANTHY_CONFIG_LEARN_ON_MANUAL_COMMIT "/IMEngine/Anthy/LearnOnManualCommit"
51 #define SCIM_ANTHY_CONFIG_LEARN_ON_AUTO_COMMIT "/IMEngine/Anthy/LearnOnAutoCommit"
53 #define SCIM_ANTHY_CONFIG_DICT_ENCODING "/IMEngine/Anthy/DictEncoding"
54 #define SCIM_ANTHY_CONFIG_DICT_ADMIN_COMMAND "/IMEngine/Anthy/DictAdminCommand"
55 #define SCIM_ANTHY_CONFIG_ADD_WORD_COMMAND "/IMEngine/Anthy/AddWordCommand"
57 #define SCIM_ANTHY_CONFIG_PREDICT_ON_INPUT "/IMEngine/Anthy/PredictOnInput"
58 #define SCIM_ANTHY_CONFIG_USE_DIRECT_KEY_ON_PREDICT "/IMEngine/Anthy/UseDirectKeyOnPredict"
60 #define SCIM_ANTHY_CONFIG_COLOR_THEME_FILE "/IMEngine/Anthy/ColorThemeFile"
62 #define SCIM_ANTHY_CONFIG_SHOW_CANDIDATES_LABEL "/IMEngine/Anthy/ShowCandidatesLabel"
63 #define SCIM_ANTHY_CONFIG_CAND_WIN_PAGE_SIZE "/IMEngine/Anthy/CandWinPageSize"
64 #define SCIM_ANTHY_CONFIG_CLOSE_CAND_WIN_ON_SELECT "/IMEngine/Anthy/CloseCandWinOnSelect"
65 #define SCIM_ANTHY_CONFIG_N_TRIGGERS_TO_SHOW_CAND_WIN "/IMEngine/Anthy/NTriggersToShowCandWin"
67 #define SCIM_ANTHY_CONFIG_SHOW_INPUT_MODE_LABEL "/IMEngine/Anthy/ShowInputModeLabel"
68 #define SCIM_ANTHY_CONFIG_SHOW_TYPING_METHOD_LABEL "/IMEngine/Anthy/ShowTypingMethodLabel"
69 #define SCIM_ANTHY_CONFIG_SHOW_CONVERSION_MODE_LABEL "/IMEngine/Anthy/ShowConversionModeLabel"
70 #define SCIM_ANTHY_CONFIG_SHOW_PERIOD_STYLE_LABEL "/IMEngine/Anthy/ShowPeriodStyleLabel"
71 #define SCIM_ANTHY_CONFIG_SHOW_SYMBOL_STYLE_LABEL "/IMEngine/Anthy/ShowSymbolStyleLabel"
72 #define SCIM_ANTHY_CONFIG_SHOW_DICT_LABEL "/IMEngine/Anthy/ShowDictLabel"
73 #define SCIM_ANTHY_CONFIG_SHOW_DICT_ADMIN_LABEL "/IMEngine/Anthy/ShowDictAdminLabel"
74 #define SCIM_ANTHY_CONFIG_SHOW_ADD_WORD_LABEL "/IMEngine/Anthy/ShowAddWordLabel"
76 #define SCIM_ANTHY_CONFIG_KEY_THEME "/IMEngine/Anthy/KeyTheme"
77 #define SCIM_ANTHY_CONFIG_KEY_THEME_FILE "/IMEngine/Anthy/KeyThemeFile"
79 #define SCIM_ANTHY_CONFIG_ON_OFF_KEY "/IMEngine/Anthy/OnOffKey"
80 #define SCIM_ANTHY_CONFIG_CIRCLE_INPUT_MODE_KEY "/IMEngine/Anthy/CircleInputModeKey"
81 #define SCIM_ANTHY_CONFIG_CIRCLE_KANA_MODE_KEY "/IMEngine/Anthy/CircleKanaModeKey"
82 #define SCIM_ANTHY_CONFIG_CIRCLE_TYPING_METHOD_KEY "/IMEngine/Anthy/CircleTypingMethodKey"
83 #define SCIM_ANTHY_CONFIG_LATIN_MODE_KEY "/IMEngine/Anthy/LatinModeKey"
84 #define SCIM_ANTHY_CONFIG_WIDE_LATIN_MODE_KEY "/IMEngine/Anthy/WideLatinModeKey"
85 #define SCIM_ANTHY_CONFIG_HIRAGANA_MODE_KEY "/IMEngine/Anthy/HiraganaModeKey"
86 #define SCIM_ANTHY_CONFIG_KATAKANA_MODE_KEY "/IMEngine/Anthy/KatakanaModeKey"
87 #define SCIM_ANTHY_CONFIG_HALF_KATAKANA_MODE_KEY "/IMEngine/Anthy/HalfKatakanaModeKey"
88 #define SCIM_ANTHY_CONFIG_CANCEL_PSEUDO_ASCII_MODE_KEY "/IMEngine/Anthy/CancelPseudoAsciiModeKey"
90 #define SCIM_ANTHY_CONFIG_INSERT_SPACE_KEY "/IMEngine/Anthy/InsertSpaceKey"
91 #define SCIM_ANTHY_CONFIG_INSERT_ALT_SPACE_KEY "/IMEngine/Anthy/InsertAltSpaceKey"
92 #define SCIM_ANTHY_CONFIG_INSERT_HALF_SPACE_KEY "/IMEngine/Anthy/InsertHalfSpaceKey"
93 #define SCIM_ANTHY_CONFIG_INSERT_WIDE_SPACE_KEY "/IMEngine/Anthy/InsertWideSpaceKey"
94 #define SCIM_ANTHY_CONFIG_BACKSPACE_KEY "/IMEngine/Anthy/BackSpaceKey"
95 #define SCIM_ANTHY_CONFIG_DELETE_KEY "/IMEngine/Anthy/DeleteKey"
96 #define SCIM_ANTHY_CONFIG_COMMIT_KEY "/IMEngine/Anthy/CommitKey"
97 #define SCIM_ANTHY_CONFIG_COMMIT_REVERSE_LEARN_KEY "/IMEngine/Anthy/CommitReverseLearnKey"
98 #define SCIM_ANTHY_CONFIG_CONVERT_KEY "/IMEngine/Anthy/ConvertKey"
99 #define SCIM_ANTHY_CONFIG_PREDICT_KEY "/IMEngine/Anthy/PredictKey"
100 #define SCIM_ANTHY_CONFIG_CANCEL_KEY "/IMEngine/Anthy/CancelKey"
101 #define SCIM_ANTHY_CONFIG_CANCEL_ALL_KEY "/IMEngine/Anthy/CancelAllKey"
102 #define SCIM_ANTHY_CONFIG_DO_NOTHING_KEY "/IMEngine/Anthy/DoNothingKey"
104 #define SCIM_ANTHY_CONFIG_MOVE_CARET_FIRST_KEY "/IMEngine/Anthy/MoveCaretFirstKey"
105 #define SCIM_ANTHY_CONFIG_MOVE_CARET_LAST_KEY "/IMEngine/Anthy/MoveCaretLastKey"
106 #define SCIM_ANTHY_CONFIG_MOVE_CARET_FORWARD_KEY "/IMEngine/Anthy/MoveCaretForwardKey"
107 #define SCIM_ANTHY_CONFIG_MOVE_CARET_BACKWARD_KEY "/IMEngine/Anthy/MoveCaretBackwardKey"
109 #define SCIM_ANTHY_CONFIG_SELECT_FIRST_SEGMENT_KEY "/IMEngine/Anthy/SelectFirstSegmentKey"
110 #define SCIM_ANTHY_CONFIG_SELECT_LAST_SEGMENT_KEY "/IMEngine/Anthy/SelectLastSegmentKey"
111 #define SCIM_ANTHY_CONFIG_SELECT_NEXT_SEGMENT_KEY "/IMEngine/Anthy/SelectNextSegmentKey"
112 #define SCIM_ANTHY_CONFIG_SELECT_PREV_SEGMENT_KEY "/IMEngine/Anthy/SelectPrevSegmentKey"
113 #define SCIM_ANTHY_CONFIG_SHRINK_SEGMENT_KEY "/IMEngine/Anthy/ShrinkSegmentKey"
114 #define SCIM_ANTHY_CONFIG_EXPAND_SEGMENT_KEY "/IMEngine/Anthy/ExpandSegmentKey"
115 #define SCIM_ANTHY_CONFIG_COMMIT_FIRST_SEGMENT_KEY "/IMEngine/Anthy/CommitFirstSegmentKey"
116 #define SCIM_ANTHY_CONFIG_COMMIT_SELECTED_SEGMENT_KEY "/IMEngine/Anthy/CommitSelectedSegmentKey"
117 #define SCIM_ANTHY_CONFIG_COMMIT_FIRST_SEGMENT_REVERSE_LEARN_KEY "/IMEngine/Anthy/CommitFirstSegmentReverseLearnKey"
118 #define SCIM_ANTHY_CONFIG_COMMIT_SELECTED_SEGMENT_REVERSE_LEARN_KEY "/IMEngine/Anthy/CommitSelectedSegmentReverseLearnKey"
120 #define SCIM_ANTHY_CONFIG_SELECT_FIRST_CANDIDATE_KEY "/IMEngine/Anthy/SelectFirstCandidateKey"
121 #define SCIM_ANTHY_CONFIG_SELECT_LAST_CANDIDATE_KEY "/IMEngine/Anthy/SelectLastCandidateKey"
122 #define SCIM_ANTHY_CONFIG_SELECT_NEXT_CANDIDATE_KEY "/IMEngine/Anthy/SelectNextCandidateKey"
123 #define SCIM_ANTHY_CONFIG_SELECT_PREV_CANDIDATE_KEY "/IMEngine/Anthy/SelectPrevCandidateKey"
124 #define SCIM_ANTHY_CONFIG_CANDIDATES_PAGE_UP_KEY "/IMEngine/Anthy/CandidatesPageUpKey"
125 #define SCIM_ANTHY_CONFIG_CANDIDATES_PAGE_DOWN_KEY "/IMEngine/Anthy/CandidatesPageDownKey"
126 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_1_KEY "/IMEngine/Anthy/SelectCandidates1Key"
127 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_2_KEY "/IMEngine/Anthy/SelectCandidates2Key"
128 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_3_KEY "/IMEngine/Anthy/SelectCandidates3Key"
129 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_4_KEY "/IMEngine/Anthy/SelectCandidates4Key"
130 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_5_KEY "/IMEngine/Anthy/SelectCandidates5Key"
131 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_6_KEY "/IMEngine/Anthy/SelectCandidates6Key"
132 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_7_KEY "/IMEngine/Anthy/SelectCandidates7Key"
133 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_8_KEY "/IMEngine/Anthy/SelectCandidates8Key"
134 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_9_KEY "/IMEngine/Anthy/SelectCandidates9Key"
135 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_10_KEY "/IMEngine/Anthy/SelectCandidates10Key"
137 #define SCIM_ANTHY_CONFIG_CONV_CHAR_TYPE_FORWARD_KEY "/IMEngine/Anthy/ConvertCharTypeForwardKey"
138 #define SCIM_ANTHY_CONFIG_CONV_CHAR_TYPE_BACKWARD_KEY "/IMEngine/Anthy/ConvertCharTypeBackwardKey"
139 #define SCIM_ANTHY_CONFIG_CONV_TO_HIRAGANA_KEY "/IMEngine/Anthy/ConvertToHiraganaKey"
140 #define SCIM_ANTHY_CONFIG_CONV_TO_KATAKANA_KEY "/IMEngine/Anthy/ConvertToKatakanaKey"
141 #define SCIM_ANTHY_CONFIG_CONV_TO_HALF_KEY "/IMEngine/Anthy/ConvertToHalfKey"
142 #define SCIM_ANTHY_CONFIG_CONV_TO_HALF_KATAKANA_KEY "/IMEngine/Anthy/ConvertToHalfKatakanaKey"
143 #define SCIM_ANTHY_CONFIG_CONV_TO_WIDE_LATIN_KEY "/IMEngine/Anthy/ConvertToWideLatinKey"
144 #define SCIM_ANTHY_CONFIG_CONV_TO_LATIN_KEY "/IMEngine/Anthy/ConvertToLatinKey"
146 #define SCIM_ANTHY_CONFIG_RECONVERT_KEY "/IMEngine/Anthy/ReconvertKey"
148 #define SCIM_ANTHY_CONFIG_DICT_ADMIN_KEY "/IMEngine/Anthy/DictAdminKey"
149 #define SCIM_ANTHY_CONFIG_ADD_WORD_KEY "/IMEngine/Anthy/AddWordKey"
151 #define SCIM_ANTHY_CONFIG_PREEDIT_STYLE "/IMEngine/Anthy/PreeditStyle"
152 #define SCIM_ANTHY_CONFIG_PREEDIT_FG_COLOR "/IMEngine/Anthy/PreeditFGColor"
153 #define SCIM_ANTHY_CONFIG_PREEDIT_BG_COLOR "/IMEngine/Anthy/PreeditBGColor"
154 #define SCIM_ANTHY_CONFIG_CONVERSION_STYLE "/IMEngine/Anthy/ConversionStyle"
155 #define SCIM_ANTHY_CONFIG_CONVERSION_FG_COLOR "/IMEngine/Anthy/ConversionFGColor"
156 #define SCIM_ANTHY_CONFIG_CONVERSION_BG_COLOR "/IMEngine/Anthy/ConversionBGColor"
157 #define SCIM_ANTHY_CONFIG_SELECTED_SEGMENT_STYLE "/IMEngine/Anthy/SelectedSegmentStyle"
158 #define SCIM_ANTHY_CONFIG_SELECTED_SEGMENT_FG_COLOR "/IMEngine/Anthy/SelectedSegmentFGColor"
159 #define SCIM_ANTHY_CONFIG_SELECTED_SEGMENT_BG_COLOR "/IMEngine/Anthy/SelectedSegmentBGColor"
162 /* default config values */
163 #define SCIM_ANTHY_CONFIG_INPUT_MODE_DEFAULT "Hiragana"
164 #define SCIM_ANTHY_CONFIG_TYPING_METHOD_DEFAULT "Romaji"
165 #define SCIM_ANTHY_CONFIG_CONVERSION_MODE_DEFAULT "MultiSeg"
166 #define SCIM_ANTHY_CONFIG_PERIOD_STYLE_DEFAULT "Japanese"
167 #define SCIM_ANTHY_CONFIG_SYMBOL_STYLE_DEFAULT "Japanese"
168 #define SCIM_ANTHY_CONFIG_SPACE_TYPE_DEFAULT "FollowMode"
169 #define SCIM_ANTHY_CONFIG_TEN_KEY_TYPE_DEFAULT "FollowMode"
170 #define SCIM_ANTHY_CONFIG_BEHAVIOR_ON_PERIOD_DEFAULT "None"
171 #define SCIM_ANTHY_CONFIG_BEHAVIOR_ON_FOCUS_OUT_DEFAULT "Commit"
173 #define SCIM_ANTHY_CONFIG_ROMAJI_THEME_FILE_DEFAULT ""
174 #define SCIM_ANTHY_CONFIG_ROMAJI_HALF_SYMBOL_DEFAULT false
175 #define SCIM_ANTHY_CONFIG_ROMAJI_HALF_NUMBER_DEFAULT false
176 #define SCIM_ANTHY_CONFIG_ROMAJI_ALLOW_SPLIT_DEFAULT true
177 #define SCIM_ANTHY_CONFIG_ROMAJI_PSEUDO_ASCII_MODE_DEFAULT true
178 #define SCIM_ANTHY_CONFIG_ROMAJI_PSEUDO_ASCII_BLANK_BEHAVIOR_DEFAULT true
180 #define SCIM_ANTHY_CONFIG_KANA_LAYOUT_FILE_DEFAULT ""
181 #define SCIM_ANTHY_CONFIG_KANA_LAYOUT_RO_KEY_DEFAULT "\xE3\x82\x8D"
183 #define SCIM_ANTHY_CONFIG_NICOLA_LAYOUT_FILE_DEFAULT ""
184 #define SCIM_ANTHY_CONFIG_NICOLA_TIME_DEFAULT 200
185 #define SCIM_ANTHY_CONFIG_LEFT_THUMB_SHIFT_KEY_DEFAULT "Muhenkan"
186 #define SCIM_ANTHY_CONFIG_RIGHT_THUMB_SHIFT_KEY_DEFAULT "Henkan,space"
188 #define SCIM_ANTHY_CONFIG_LEARN_ON_MANUAL_COMMIT_DEFAULT true
189 #define SCIM_ANTHY_CONFIG_LEARN_ON_AUTO_COMMIT_DEFAULT true
191 #define SCIM_ANTHY_CONFIG_DICT_ENCODING_DEFAULT "UTF-8"
192 #define SCIM_ANTHY_CONFIG_DICT_ADMIN_COMMAND_DEFAULT "kasumi"
193 #define SCIM_ANTHY_CONFIG_ADD_WORD_COMMAND_DEFAULT "kasumi --add"
195 #define SCIM_ANTHY_CONFIG_PREDICT_ON_INPUT_DEFAULT false
196 #define SCIM_ANTHY_CONFIG_USE_DIRECT_KEY_ON_PREDICT_DEFAULT true
198 #define SCIM_ANTHY_CONFIG_COLOR_THEME_FILE_DEFAULT ""
200 #define SCIM_ANTHY_CONFIG_SHOW_CANDIDATES_LABEL_DEFAULT true
201 #define SCIM_ANTHY_CONFIG_CAND_WIN_PAGE_SIZE_DEFAULT 10
202 #define SCIM_ANTHY_CONFIG_CLOSE_CAND_WIN_ON_SELECT_DEFAULT true
203 #define SCIM_ANTHY_CONFIG_N_TRIGGERS_TO_SHOW_CAND_WIN_DEFAULT 2
205 #define SCIM_ANTHY_CONFIG_SHOW_INPUT_MODE_LABEL_DEFAULT true
206 #define SCIM_ANTHY_CONFIG_SHOW_TYPING_METHOD_LABEL_DEFAULT false
207 #define SCIM_ANTHY_CONFIG_SHOW_CONVERSION_MODE_LABEL_DEFAULT true
208 #define SCIM_ANTHY_CONFIG_SHOW_PERIOD_STYLE_LABEL_DEFAULT false
209 #define SCIM_ANTHY_CONFIG_SHOW_SYMBOL_STYLE_LABEL_DEFAULT false
210 #define SCIM_ANTHY_CONFIG_SHOW_DICT_LABEL_DEFAULT true
211 #define SCIM_ANTHY_CONFIG_SHOW_DICT_ADMIN_LABEL_DEFAULT true
212 #define SCIM_ANTHY_CONFIG_SHOW_ADD_WORD_LABEL_DEFAULT true
214 #define SCIM_ANTHY_CONFIG_KEY_THEME_DEFAULT "Default"
215 #define SCIM_ANTHY_CONFIG_KEY_THEME_FILE_DEFAULT ""
217 #define SCIM_ANTHY_CONFIG_ON_OFF_KEY_DEFAULT "Zenkaku_Hankaku,Control+j,Control+J"
218 #define SCIM_ANTHY_CONFIG_CIRCLE_INPUT_MODE_KEY_DEFAULT "Control+comma,Control+less"
219 #define SCIM_ANTHY_CONFIG_CIRCLE_KANA_MODE_KEY_DEFAULT "Control+period,Control+greater,Hiragana_Katakana"
220 #define SCIM_ANTHY_CONFIG_CIRCLE_TYPING_METHOD_KEY_DEFAULT "Alt+Romaji,Control+slash"
221 #define SCIM_ANTHY_CONFIG_LATIN_MODE_KEY_DEFAULT ""
222 #define SCIM_ANTHY_CONFIG_WIDE_LATIN_MODE_KEY_DEFAULT ""
223 #define SCIM_ANTHY_CONFIG_HIRAGANA_MODE_KEY_DEFAULT ""
224 #define SCIM_ANTHY_CONFIG_KATAKANA_MODE_KEY_DEFAULT ""
225 #define SCIM_ANTHY_CONFIG_HALF_KATAKANA_MODE_KEY_DEFAULT ""
226 #define SCIM_ANTHY_CONFIG_CANCEL_PSEUDO_ASCII_MODE_KEY_DEFAULT "Escape"
228 #define SCIM_ANTHY_CONFIG_INSERT_SPACE_KEY_DEFAULT "space"
229 #define SCIM_ANTHY_CONFIG_INSERT_ALT_SPACE_KEY_DEFAULT "Shift+space"
230 #define SCIM_ANTHY_CONFIG_INSERT_HALF_SPACE_KEY_DEFAULT ""
231 #define SCIM_ANTHY_CONFIG_INSERT_WIDE_SPACE_KEY_DEFAULT ""
232 #define SCIM_ANTHY_CONFIG_BACKSPACE_KEY_DEFAULT "BackSpace,Control+h,Control+H"
233 #define SCIM_ANTHY_CONFIG_DELETE_KEY_DEFAULT "Delete,Control+d,Control+D"
234 #define SCIM_ANTHY_CONFIG_COMMIT_KEY_DEFAULT "Return,KP_Enter,Control+j,Control+J,Control+m,Control+M"
235 #define SCIM_ANTHY_CONFIG_COMMIT_REVERSE_LEARN_KEY_DEFAULT "Shift+Return"
236 #define SCIM_ANTHY_CONFIG_CONVERT_KEY_DEFAULT "space,KP_Space,Henkan"
237 #define SCIM_ANTHY_CONFIG_PREDICT_KEY_DEFAULT "Tab,ISO_Left_Tab"
238 #define SCIM_ANTHY_CONFIG_CANCEL_KEY_DEFAULT "Escape,Control+g,Control+G"
239 #define SCIM_ANTHY_CONFIG_CANCEL_ALL_KEY_DEFAULT ""
240 #define SCIM_ANTHY_CONFIG_DO_NOTHING_KEY_DEFAULT ""
242 #define SCIM_ANTHY_CONFIG_MOVE_CARET_FIRST_KEY_DEFAULT "Control+a,Control+A,Home"
243 #define SCIM_ANTHY_CONFIG_MOVE_CARET_LAST_KEY_DEFAULT "Control+e,Control+E,End"
244 #define SCIM_ANTHY_CONFIG_MOVE_CARET_FORWARD_KEY_DEFAULT "Right,Control+f,Control+F"
245 #define SCIM_ANTHY_CONFIG_MOVE_CARET_BACKWARD_KEY_DEFAULT "Left,Control+b,Control+B"
247 #define SCIM_ANTHY_CONFIG_SELECT_FIRST_SEGMENT_KEY_DEFAULT "Control+a,Control+A,Home"
248 #define SCIM_ANTHY_CONFIG_SELECT_LAST_SEGMENT_KEY_DEFAULT "Control+e,Control+E,End"
249 #define SCIM_ANTHY_CONFIG_SELECT_NEXT_SEGMENT_KEY_DEFAULT "Right,Control+f,Control+F"
250 #define SCIM_ANTHY_CONFIG_SELECT_PREV_SEGMENT_KEY_DEFAULT "Left,Control+b,Control+B"
251 #define SCIM_ANTHY_CONFIG_SHRINK_SEGMENT_KEY_DEFAULT "Shift+Left,Control+i,Control+I"
252 #define SCIM_ANTHY_CONFIG_EXPAND_SEGMENT_KEY_DEFAULT "Shift+Right,Control+o,Control+O"
253 #define SCIM_ANTHY_CONFIG_COMMIT_FIRST_SEGMENT_KEY_DEFAULT "Shift+Down"
254 #define SCIM_ANTHY_CONFIG_COMMIT_SELECTED_SEGMENT_KEY_DEFAULT "Control+Down"
255 #define SCIM_ANTHY_CONFIG_COMMIT_FIRST_SEGMENT_REVERSE_LEARN_KEY_DEFAULT ""
256 #define SCIM_ANTHY_CONFIG_COMMIT_SELECTED_SEGMENT_REVERSE_LEARN_KEY_DEFAULT ""
258 #define SCIM_ANTHY_CONFIG_SELECT_FIRST_CANDIDATE_KEY_DEFAULT "Home"
259 #define SCIM_ANTHY_CONFIG_SELECT_LAST_CANDIDATE_KEY_DEFAULT "End"
260 #define SCIM_ANTHY_CONFIG_SELECT_NEXT_CANDIDATE_KEY_DEFAULT "space,KP_Space,Tab,ISO_Left_Tab,Henkan,Down,KP_Add,Control+n,Control+N"
261 #define SCIM_ANTHY_CONFIG_SELECT_PREV_CANDIDATE_KEY_DEFAULT "Shift+Tab,Shift+ISO_Left_Tab,Up,KP_Subtract,Control+p,Control+P"
262 #define SCIM_ANTHY_CONFIG_CANDIDATES_PAGE_UP_KEY_DEFAULT "Page_Up"
263 #define SCIM_ANTHY_CONFIG_CANDIDATES_PAGE_DOWN_KEY_DEFAULT "Page_Down,KP_Tab"
264 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_1_KEY_DEFAULT "1"
265 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_2_KEY_DEFAULT "2"
266 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_3_KEY_DEFAULT "3"
267 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_4_KEY_DEFAULT "4"
268 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_5_KEY_DEFAULT "5"
269 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_6_KEY_DEFAULT "6"
270 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_7_KEY_DEFAULT "7"
271 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_8_KEY_DEFAULT "8"
272 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_9_KEY_DEFAULT "9"
273 #define SCIM_ANTHY_CONFIG_SELECT_CANDIDATE_10_KEY_DEFAULT "0"
275 #define SCIM_ANTHY_CONFIG_CONV_CHAR_TYPE_FORWARD_KEY_DEFAULT "Muhenkan"
276 #define SCIM_ANTHY_CONFIG_CONV_CHAR_TYPE_BACKWARD_KEY_DEFAULT ""
277 #define SCIM_ANTHY_CONFIG_CONV_TO_HIRAGANA_KEY_DEFAULT "F6"
278 #define SCIM_ANTHY_CONFIG_CONV_TO_KATAKANA_KEY_DEFAULT "F7"
279 #define SCIM_ANTHY_CONFIG_CONV_TO_HALF_KEY_DEFAULT "F8"
280 #define SCIM_ANTHY_CONFIG_CONV_TO_HALF_KATAKANA_KEY_DEFAULT "Shift+F8"
281 #define SCIM_ANTHY_CONFIG_CONV_TO_WIDE_LATIN_KEY_DEFAULT "F9"
282 #define SCIM_ANTHY_CONFIG_CONV_TO_LATIN_KEY_DEFAULT "F10"
284 #define SCIM_ANTHY_CONFIG_RECONVERT_KEY_DEFAULT "Shift+Henkan"
286 #define SCIM_ANTHY_CONFIG_DICT_ADMIN_KEY_DEFAULT "F11"
287 #define SCIM_ANTHY_CONFIG_ADD_WORD_KEY_DEFAULT "F12"
289 #define SCIM_ANTHY_CONFIG_PREEDIT_STYLE_DEFAULT "Underline"
290 #define SCIM_ANTHY_CONFIG_PREEDIT_FG_COLOR_DEFAULT "#006010"
291 #define SCIM_ANTHY_CONFIG_PREEDIT_BG_COLOR_DEFAULT "#FFFFFF"
292 #define SCIM_ANTHY_CONFIG_CONVERSION_STYLE_DEFAULT "Underline"
293 #define SCIM_ANTHY_CONFIG_CONVERSION_FG_COLOR_DEFAULT "#006010"
294 #define SCIM_ANTHY_CONFIG_CONVERSION_BG_COLOR_DEFAULT "#FFFFFF"
295 #define SCIM_ANTHY_CONFIG_SELECTED_SEGMENT_STYLE_DEFAULT "Reverse"
296 #define SCIM_ANTHY_CONFIG_SELECTED_SEGMENT_FG_COLOR_DEFAULT "#FFFFFF"
297 #define SCIM_ANTHY_CONFIG_SELECTED_SEGMENT_BG_COLOR_DEFAULT "#0900A5"
300 #ifdef SCIM_ANTHY_USE_GTK
304 #endif /* HAVE_CONFIG_H */
308 using namespace scim;
310 namespace scim_anthy {
311 struct BoolConfigData
337 struct StringConfigData
341 String default_value;
349 struct ColorConfigData
353 String fg_default_value;
356 String bg_default_value;
364 extern BoolConfigData config_bool_common [];
365 extern IntConfigData config_int_common [];
366 extern StringConfigData config_string_common [];
367 extern StringConfigData config_keyboards_mode [];
368 extern StringConfigData config_keyboards_edit [];
369 extern StringConfigData config_keyboards_caret [];
370 extern StringConfigData config_keyboards_segments [];
371 extern StringConfigData config_keyboards_candidates [];
372 extern StringConfigData config_keyboards_direct_select [];
373 extern StringConfigData config_keyboards_converting [];
374 extern StringConfigData config_keyboards_dict [];
375 extern ColorConfigData config_color_common [];
377 BoolConfigData *find_bool_config_entry (const char *config_key);
378 IntConfigData *find_int_config_entry (const char *config_key);
379 StringConfigData *find_string_config_entry (const char *config_key);
380 ColorConfigData *find_color_config_entry (const char *config_key);
384 #endif /* SCIM_ANTHY_USE_GTK */
387 #endif /* __SCIM_ANTHY_PREFS_H__ */
389 vi:ts=4:nowrap:ai:expandtab