1/* Copyright 1992 NEC Corporation, Tokyo, Japan.
2 *
3 * Permission to use, copy, modify, distribute and sell this software
4 * and its documentation for any purpose is hereby granted without
5 * fee, provided that the above copyright notice appear in all copies
6 * and that both that copyright notice and this permission notice
7 * appear in supporting documentation, and that the name of NEC
8 * Corporation not be used in advertising or publicity pertaining to
9 * distribution of the software without specific, written prior
10 * permission.  NEC Corporation makes no representations about the
11 * suitability of this software for any purpose.  It is provided "as
12 * is" without express or implied warranty.
13 *
14 * NEC CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
16 * NO EVENT SHALL NEC CORPORATION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
18 * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
19 * OTHER TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20 * PERFORMANCE OF THIS SOFTWARE.
21 */
22
23#if !defined(lint) && !defined(__CODECENTER__)
24static char bunmap_id[] = "@(#) 102.1 $Id: bunmap.h 14875 2005-11-12 21:25:31Z bonefish $";
25#endif /* lint */
26
27extern int DoFuncSequence();
28extern int UseOtherKeymap();
29extern int TanNop (uiContext);
30extern int YomiKakutei (uiContext);
31
32static struct funccfunc bun_funcs[] = {
33  {CANNA_FN_FunctionalInsert	,BunSelfInsert		},
34  {CANNA_FN_QuotedInsert	,BunQuotedInsert	},
35  {CANNA_FN_Forward		,BunExtend		},
36  {CANNA_FN_Backward		,BunShrink		},
37  {CANNA_FN_BeginningOfLine	,BunFullShrink		},
38  {CANNA_FN_EndOfLine		,BunFullExtend		},
39  {CANNA_FN_DeleteNext		,BunQuit		},
40  {CANNA_FN_DeletePrevious	,BunQuit		},
41  {CANNA_FN_KillToEndOfLine	,BunKillToEOL		},
42  {CANNA_FN_Henkan		,BunHenkan		},
43  {CANNA_FN_HenkanOrInsert	,BunHenkan		},
44  {CANNA_FN_HenkanOrNothing	,BunHenkan		},
45  {CANNA_FN_Kakutei		,YomiKakutei		},
46  {CANNA_FN_Extend		,BunExtend		},
47  {CANNA_FN_Shrink		,BunShrink		},
48  {CANNA_FN_Quit		,BunQuit		},
49  {CANNA_FN_Nop			,TanNop			},
50  {CANNA_FN_FuncSequence	,DoFuncSequence		},
51  {CANNA_FN_UseOtherKeymap	,UseOtherKeymap		},
52  {0				,0			},
53};
54
55extern int searchfunc(...);
56KanjiModeRec bunsetsu_mode = {
57  searchfunc,
58  default_kmap,
59  CANNA_KANJIMODE_TABLE_SHARED,
60  bun_funcs,
61};
62
63