0
|
1 UUMKEY(4)
|
|
2
|
|
3 NAME
|
|
4 uumkey - The keyboard definition file for the uum
|
|
5
|
|
6 SYNOPSIS
|
|
7 /usr/local/lib/wnn/ja_JP/uumkey
|
|
8
|
|
9 DESCRIPTION
|
|
10 uumkey is the definition file for the keyboard layout during conversion.
|
|
11 User can define the function of a particular key according to his needs.
|
|
12 Lines
|
|
13 that begin with ":" or ";" are treated as comments.
|
|
14
|
|
15 include <uumkey_filename>
|
|
16 Specifies the other keyboard definition files.
|
|
17
|
|
18 unset <command>
|
|
19 Specifies the command to remove all the function key definitions
|
|
20 which correspond to <command>.
|
|
21
|
|
22 command <key> [ <key> ....]
|
|
23 Definition of function keys: <key> can be represented in decimal,
|
|
24 hexadecimal, octal or character enclosed between single quotes.
|
|
25 There are 11 states for the front-end processor.
|
|
26 (Refer to State Table)
|
|
27
|
|
28
|
|
29 State Table
|
|
30 +------------------------------------------------------------------------------+
|
|
31 | State Number | Description |
|
|
32 |--------------+---------------------------------------------------------------|
|
|
33 | 0 | The state of performing correction on the conversion result |
|
|
34 | 1 | The state before conversion, ie. the input state. |
|
|
35 | 2 | The state when segmentation is done to the words and phrases |
|
|
36 | | after conversion. |
|
|
37 | 3 | The initial state when the input buffer is empty. |
|
|
38 | 4 | The state of cursor movement for the selection of candidates |
|
|
39 | | for a Chinese character. (including the selection of phrase |
|
|
40 | | candidates, performing certain operations, and selection of |
|
|
41 | | grammatical category and dictionary when adding words. |
|
|
42 | 5 | The state that specifies the range of characters to be added |
|
|
43 | | as a new word. |
|
|
44 | 6 | The input state for Pinyin during the addition of new words |
|
|
45 | | to dictionary |
|
|
46 | 7 | The state for searching/deleting word or dictionary |
|
|
47 | 8 | The inspect state; search for a word and retrieve information |
|
|
48 | | of the word. |
|
|
49 | 9 | The state for dictionary search. |
|
|
50 | A | The inspect state. |
|
|
51 +------------------------------------------------------------------------------+
|
|
52
|
|
53 The following settings are specified in this file.
|
|
54 henkan_on 0123456789
|
|
55 To set conversion state to ON or OFF.
|
|
56
|
|
57 quote_keyin 0123456789
|
|
58 To quote the next input character so that function keys used for
|
|
59 setting conversion state can also be used for input. This function
|
|
60 is used for special cases when input of "convert_on" function key
|
|
61 code is needed.
|
|
62
|
|
63 send_string 012
|
|
64 To send the conversion characters together with the corresponding
|
|
65 function code to application procedure.
|
|
66
|
|
67 kakutei 012
|
|
68 (Confirm) To send the conversion character string to application
|
|
69 procedure.
|
|
70
|
|
71 forward_char 01256
|
|
72 156: To move the cursor one character position to the right
|
|
73 0 : To move the cursor one word to the right
|
|
74 2 : To remain the cursor position as ASCII, perform multi-phrase
|
|
75 conversion for the character after the cursor, and move the
|
|
76 cursor one word to the right.
|
|
77
|
|
78 backward_char 01256
|
|
79 1 : To move the cursor one character position to the left.
|
|
80 If this function is used when the cursor is at the leftmost
|
|
81 position of the unconverted portion or a partially converted
|
|
82 string, multi-phrase conversion will be performed and the
|
|
83 cursor will move one word to the left.
|
|
84 56 : To move the cursor one character to the left.
|
|
85 0 : To move the cursor one word to the left.
|
|
86 2 : The highlighted portion will remain as ASCII, the portion
|
|
87 beyond the highlighted part will undergo multi-phrase
|
|
88 conversion, and the cursor will move one word to the left.
|
|
89
|
|
90 goto_top_of_line 01256
|
|
91 1256: To move the cursor to the first character of the line.
|
|
92 0 : To move the cursor to the first word of the line.
|
|
93
|
|
94 goto_end_of_line 01256
|
|
95 1256: To move the cursor to the last character of the line.
|
|
96 0 : To move the cursor to the last word of the line.
|
|
97
|
|
98 delete_char_at_cursor 156
|
|
99 To remove the character at the position of the cursor.
|
|
100
|
|
101 kaijo 02
|
|
102 To change the converted character strings after the cursor back
|
|
103 to that before the conversion.
|
|
104
|
|
105 henkan 1
|
|
106 To perform multi-phrase conversion.
|
|
107
|
|
108 tan_henkan 1
|
|
109 To perform conversion for a single word.
|
|
110
|
|
111 tan_henkan_dai 1
|
|
112 To perform conversion for a phrase.
|
|
113
|
|
114 nobi_henka 2
|
|
115 During word elongation, the highlighted portion will be converted
|
|
116 as a word and the remaining portion will undergo multi-phrase
|
|
117 conversion.
|
|
118
|
|
119 nobi_henka_dai 2
|
|
120 During compulsory word segmentation, the portion before the cursor
|
|
121 will be converted to a phrase, and the portion after the cursor
|
|
122 will undergo multi-phrase conversion.
|
|
123
|
|
124 jikouho 0
|
|
125 To extract the next word candidate.
|
|
126
|
|
127 jikouho_dai 0
|
|
128 To extract the next phrase candidate.
|
|
129
|
|
130 zenkouho 0
|
|
131 To extract the previous word candidate.
|
|
132
|
|
133 zenkouho_dai 0
|
|
134 To extract the previous phrase candidate.
|
|
135
|
|
136 select_jikouho 0
|
|
137 To extract the next group of word candidates.
|
|
138
|
|
139 select_jikouho_dai 0
|
|
140 To extract the next group of phrase cnadidates.
|
|
141
|
|
142 kana_henkan 1
|
|
143 To perform Kanji-To-Kana conversion, ie. reverse conversion.
|
|
144
|
|
145 kill 156
|
|
146 To remove the characters from and including the cursor position,
|
|
147 and store them in the "kill" buffer.
|
|
148
|
|
149 yank 156
|
|
150 yank_e 1356
|
|
151 To insert the content of the "kill" buffer into the current cursor
|
|
152 position.
|
|
153
|
|
154 bunsetu_nobasi 02
|
|
155 To increase one character to the length of a word.
|
|
156
|
|
157 bunsetu_chijime 02
|
|
158 To decrease one character from the length of a word.
|
|
159
|
|
160 jisho_utility 012
|
|
161 jisho_utility_e 0123
|
|
162 To enter the dictionary operation state.
|
|
163
|
|
164 touroku 012
|
|
165 touroku_e 0123
|
|
166 To enter the word addition state.
|
|
167
|
|
168 sainyuuryoku 1
|
|
169 sainyuuryoku_e 13
|
|
170 To re-input the previously input character strings.
|
|
171
|
|
172 kuten 156
|
|
173 kuten_e 1356
|
|
174 To input in kuten code mode.
|
|
175
|
|
176 jis 156
|
|
177 jis_e 1356
|
|
178 To input in jis code mode.
|
|
179
|
|
180 redraw_line 012456789
|
|
181 redraw_line 0123456789
|
|
182 To redraw the conversion input line.
|
|
183
|
|
184 previous_history 1
|
|
185 previous_history_e 13
|
|
186 To extract the previous string stored in history.
|
|
187
|
|
188 next_history 1
|
|
189 next_history_e 13
|
|
190 To extract the next string stored in history.
|
|
191
|
|
192 touroku_mark_set 5
|
|
193 To set the beginning and ending position of the input string during
|
|
194 word addition. When the beginning and ending position are the same,
|
|
195 ie length of word is 0, return to the initial state.
|
|
196
|
|
197 touroku_return 6
|
|
198 To end the input of string during word addition.
|
|
199
|
|
200 quit 4567
|
|
201 When in a state other than conversion state and input state
|
|
202 (eg. viewing of candidates, word addition etc, state number
|
|
203 4,5,6,7), exit the state.
|
|
204
|
|
205 touroku_jump_forward 5
|
|
206 During word addition, move the cursor by one word to the front.
|
|
207
|
|
208 touroku_jump_backward 5
|
|
209 During word addition, move the cursor by one word to the rear.
|
|
210
|
|
211
|
|
212
|
|
213 - 5-16 -
|
|
214 change_to_insert_mode 0
|
|
215 To change the converted input string back to insert mode, and there
|
|
216 after, the converted Kanji cannot change back to its Kanaa form.
|
|
217
|
|
218 quote 1
|
|
219 quote_e 13
|
|
220 To omit passing the next input character (except "henkan_on" ) to
|
|
221 the input automaton conversion. Instead, pass it directly to the
|
|
222 conversion line.
|
|
223
|
|
224 forward_select 4789
|
|
225 4 : When selecting candidates, the highlighted portion will move to
|
|
226 the right.
|
|
227 789 : During dictionary search, if a line is not selected, it will
|
|
228 scroll forward.
|
|
229
|
|
230 backward_select 4789
|
|
231 4 : When selecting candidates, the highlighted portion will move to
|
|
232 the left.
|
|
233 789 : During dictionary search, if a line is not selected, it will
|
|
234 scroll backward.
|
|
235
|
|
236 next_select 4789
|
|
237 4 : To move to the next screen during the selection of candidates.
|
|
238 789 : To move to the next line during dictionary search.
|
|
239
|
|
240 previous_select 4789
|
|
241 4 : To move to the previous screen during the selection of
|
|
242 candidates.
|
|
243 789 : To move to the previous line during dictionary search.
|
|
244
|
|
245 linestart_select 4789
|
|
246 4 : To move to the top of the screen during the selection of
|
|
247 candidates.
|
|
248 789 : During dictionary search, if a line is not selected, move to
|
|
249 the first screen.
|
|
250
|
|
251 lineend_select 4789
|
|
252 4 : To move to the end of the screen during the selection of
|
|
253 candidates.
|
|
254 789 : During dictionary search, if a line is not selected, move to
|
|
255 the last screen.
|
|
256
|
|
257 select_select 4789
|
|
258 4 : During the selection of candidates, select one candidate and
|
|
259 exit from this state.
|
|
260 789 : During dictionary search, select a candidate and exit from
|
|
261 this state.
|
|
262
|
|
263 send_ascii_char 0123456789
|
|
264 When the input buffer is empty, the ASCII character input will not
|
|
265 be sent to the buffer.
|
|
266
|
|
267 not_send_ascii_char 0123456789
|
|
268 When the input buffer is empty, the ASCII character input will be
|
|
269 sent to the buffer.
|
|
270
|
|
271 pop_send_ascii_char 0123456789
|
|
272 If the input buffer is empty, the operation of the ASCII character
|
|
273 input will be changed back to the previous state.
|
|
274
|
|
275 toggle_send_ascii_char 0123456789
|
|
276 If the input buffer is empty, the operation of the ASCII character
|
|
277 input will be reversed (ie. if the current operation is
|
|
278 "send_ascii_char", then it will be set to "not_send_ascii_char"
|
|
279 and vice versa).
|
|
280
|
|
281 quote_send_ascii_char
|
|
282 In the "send_ascii_char" state, if the buffer is empty, the next
|
|
283 ASCII character will enter the buffer. However, subsequent
|
|
284 characters will not enter the buffer even if it is empty.
|
|
285
|
|
286 reconnect_jserver 012456789
|
|
287 To reconnect with the jserver
|
|
288
|
|
289 inspect 0
|
|
290 To check the dictionary.
|
|
291
|
|
292 sakujo_kouho 0
|
|
293 To delete a candidate.
|
|
294
|
|
295 del_entry 89
|
|
296 To delete dictionary as well as the words in the dictionary.
|
|
297
|
|
298 use_entry 89
|
|
299 To temporary stop and subsequently reuse the dictionary as well as
|
|
300 the words in the dictionary.
|
|
301
|
|
302 * Example
|
|
303 ;Commands Code
|
|
304
|
|
305 forward_char ^F 0x90
|
|
306 jikouho ^N 0x92 ^W 0x9E
|
|
307 yank_e ^Y
|
|
308 select_select 32 ^J ^M 0x9E 0x9F
|
|
309
|
|
310
|
|
311
|
|
312
|
|
313
|
|
314 - 5-18 -
|
|
315 NOTE
|
|
316 When the conversion state is OFF, the front-end processor will be temporary
|
|
317 disconnected. Therefore, the input automaton also stops functioning.
|
|
318 A key code refers to a code between 0 and 255. However, not all codes can
|
|
319 be entered from the keyboard. To input a code that cannot be entered
|
|
320 directly via the keyboard, use key code conversion (cvt_key_tbl(4)) or
|
|
321 automaton.
|
|
322
|
|
323 Can not set output code of key code conversion to code of henkan_on entry.
|
|
324
|
|
325 * Reference
|
|
326 uun(1), uunrc(4), cvt_key_tbl(4), automaton(4)
|