/* Copyright 1992 NEC Corporation, Tokyo, Japan.
 *
 * Permission to use, copy, modify, distribute and sell this software
 * and its documentation for any purpose is hereby granted without
 * fee, provided that the above copyright notice appear in all copies
 * and that both that copyright notice and this permission notice
 * appear in supporting documentation, and that the name of NEC
 * Corporation not be used in advertising or publicity pertaining to
 * distribution of the software without specific, written prior
 * permission.  NEC Corporation makes no representations about the
 * suitability of this software for any purpose.  It is provided "as
 * is" without express or implied warranty.
 *
 * NEC CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN 
 * NO EVENT SHALL NEC CORPORATION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF 
 * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 
 * OTHER TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 
 * PERFORMANCE OF THIS SOFTWARE. 
 */


extern int DoFuncSequence(), UseOtherKeymap();
extern int TanNop pro((uiContext)), YomiKakutei pro((uiContext));

static struct funccfunc bun_funcs[] = {
  {CANNA_FN_FunctionalInsert	,BunSelfInsert		},
  {CANNA_FN_QuotedInsert	,BunQuotedInsert	},
  {CANNA_FN_Forward		,BunExtend		},
  {CANNA_FN_Backward		,BunShrink		},
  {CANNA_FN_BeginningOfLine	,BunFullShrink		},
  {CANNA_FN_EndOfLine		,BunFullExtend		},
  {CANNA_FN_DeleteNext		,BunQuit		},
  {CANNA_FN_DeletePrevious	,BunQuit		},
  {CANNA_FN_KillToEndOfLine	,BunKillToEOL		},
  {CANNA_FN_Henkan		,BunHenkan		},
  {CANNA_FN_HenkanOrInsert	,BunHenkan		},
  {CANNA_FN_HenkanOrNothing	,BunHenkan		},
  {CANNA_FN_Kakutei		,YomiKakutei		},
  {CANNA_FN_Extend		,BunExtend		},
  {CANNA_FN_Shrink		,BunShrink		},
  {CANNA_FN_Quit		,BunQuit		},
  {CANNA_FN_Nop			,TanNop			},
  {CANNA_FN_FuncSequence	,DoFuncSequence		},
  {CANNA_FN_UseOtherKeymap	,UseOtherKeymap		},
  {0				,0			},
};

KanjiModeRec bunsetsu_mode = {
  searchfunc,
  default_kmap,
  CANNA_KANJIMODE_TABLE_SHARED,
  bun_funcs,
};

